Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project : Valo-Plex Android10 * File : app/build.gradle.kts11 * Description : module de l'application (Compose, signature de publication12 * lue dans keystore.properties, R8).13 * Module : app14 * Repository : https://git.spboucher.ai/valo-plex-android15 * Project Website : https://www.valo-plex.com16 * Created : 2026-12-0117 * Last Modified : 2026-12-0118 *19 * =============================================================================20 * AUTHOR & PROFESSIONAL AFFILIATION21 * =============================================================================22 *23 * Author : Simon-Pierre Boucher24 * Position : Professor of Finance25 * Institution : Université du Québec en Outaouais (UQO)26 * Department : Département des sciences administratives27 * Organization : SP Boucher28 *29 * Website : https://spboucher.ai30 * Git : https://git.spboucher.ai31 *32 * =============================================================================33 * OFFICIAL CONTACT DIRECTORY34 * =============================================================================35 *36 * General : info@spboucher.ai37 * Professional : contact@spboucher.ai38 * Direct : simon@spboucher.ai39 * Research : research@spboucher.ai40 * Development : dev@spboucher.ai41 * Support : support@spboucher.ai42 * Security/Admin : admin@spboucher.ai43 * Notifications : notifications@spboucher.ai44 *45 * Preferred Contact: contact@spboucher.ai46 *47 * =============================================================================48 * COPYRIGHT & INTELLECTUAL PROPERTY49 * =============================================================================50 *51 * Copyright (c) 202652 * Simon-Pierre Boucher53 *54 * All rights reserved where applicable.55 *56 * This file is governed by the applicable project license,57 * copyright notices, institutional agreements and relevant law.58 *59 * Unless expressly authorized by the applicable license or60 * rights holder, copying, redistribution, sublicensing,61 * publication and commercial exploitation are not permitted.62 *63 * Existing third-party rights and notices remain unaffected.64 *65 * =============================================================================66 * CONFIDENTIALITY & SECURITY67 * =============================================================================68 *69 * Classification : Public70 * Distribution : Public repository; use is governed by the project license71 * Security Contact : admin@spboucher.ai72 *73 * Access to this source does not independently grant permission74 * to redistribute or disclose confidential materials.75 *76 * Do not embed credentials, private keys, access tokens,77 * certificates or confidential personal information.78 *79 * =============================================================================80 * LICENSE & MAINTENANCE81 * =============================================================================82 *83 * License : None specified (no license file in this repository)84 * Maintainer : Simon-Pierre Boucher85 * Technical Contact: dev@spboucher.ai86 *87 * =============================================================================88 * END OF SP BOUCHER SOURCE HEADER89 * =============================================================================90 */9192import java.util.Properties9394plugins {95 id("com.android.application")96 id("org.jetbrains.kotlin.plugin.compose")97 id("org.jetbrains.kotlin.plugin.serialization")98}99100val keystoreProps = Properties().apply {101 val f = rootProject.file("keystore.properties")102 if (f.exists()) f.inputStream().use { load(it) }103}104105android {106 namespace = "com.spboucher.valoplex"107 compileSdk { version = release(37) { minorApiLevel = 2 } }108109 defaultConfig {110 applicationId = "com.spboucher.valoplex"111 minSdk = 26112 targetSdk = 36113 versionCode = 4114 versionName = "1.2.0"115 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"116 // KA Maps livre une bibliothèque native par architecture : téléphones (arm) et émulateurs x86_64117 ndk { abiFilters += listOf("arm64-v8a", "armeabi-v7a", "x86_64") }118 }119 signingConfigs {120 if (keystoreProps.containsKey("storeFile")) {121 create("release") {122 storeFile = file(keystoreProps.getProperty("storeFile"))123 storePassword = keystoreProps.getProperty("storePassword")124 keyAlias = keystoreProps.getProperty("keyAlias")125 keyPassword = keystoreProps.getProperty("keyPassword")126 }127 }128 }129 buildTypes {130 release {131 isMinifyEnabled = true132 isShrinkResources = true133 proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")134 signingConfig = signingConfigs.findByName("release")135 }136 }137 compileOptions {138 sourceCompatibility = JavaVersion.VERSION_17139 targetCompatibility = JavaVersion.VERSION_17140 }141 buildFeatures { compose = true; buildConfig = true }142 testOptions { unitTests.isReturnDefaultValues = true }143 androidResources { localeFilters += listOf("fr") }144}145146dependencies {147 implementation(platform("androidx.compose:compose-bom:2026.11.01"))148 implementation("androidx.compose.ui:ui")149 implementation("androidx.compose.foundation:foundation")150 implementation("androidx.compose.material3:material3")151 implementation("androidx.activity:activity-compose:1.13.0")152 implementation("androidx.navigation:navigation-compose:2.10.2")153 implementation("androidx.lifecycle:lifecycle-runtime-compose:2.11.1")154 implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.11.1")155 implementation("androidx.datastore:datastore-preferences:1.3.0")156 implementation("androidx.core:core-ktx:1.19.1")157 implementation("io.coil-kt.coil3:coil-compose:3.6.3")158 implementation("io.coil-kt.coil3:coil-network-okhttp:3.6.3")159 implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.13.0")160 implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0")161 implementation("com.squareup.okhttp3:okhttp:5.5.1")162 // KA Maps : moteur de carte maison (cœur Rust, Vulkan / OpenGL ES), voir settings.gradle.kts163 // L'app n'a pas de cartes hors ligne : WorkManager, ses permissions et ses composants ne sont pas embarqués.164 implementation("ai.spboucher:kamaps:0.4.0") { exclude(group = "androidx.work") }165166 testImplementation("junit:junit:4.13.2")167 androidTestImplementation("androidx.test:runner:1.7.0")168 androidTestImplementation("androidx.test:rules:1.7.0")169 androidTestImplementation("androidx.test.ext:junit:1.3.0")170 androidTestImplementation("androidx.test.uiautomator:uiautomator:2.3.0")171}172