SPB Git

Repository Public

build.gradle.kts 7.6 KB 182 lines kotlin

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project          : Vrai-Prix 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/vrai-prix-android15 * Project Website  : https://www.vrai-prix.com16 * Created          : 2026-11-2917 * 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: dev@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.vraiprix"107    compileSdk { version = release(37) { minorApiLevel = 2 } }108109    defaultConfig {110        applicationId = "com.spboucher.vraiprix"111        minSdk = 26112        targetSdk = 36113        versionCode = 3114        versionName = "3.1.0"115        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"116        // KA Maps fournit arm64-v8a, armeabi-v7a et x86_64 : sans ce filtre, un appareil x86 (32 bits) installerait117        // l'app sans la bibliothèque de la carte118        ndk { abiFilters += listOf("arm64-v8a", "armeabi-v7a", "x86_64") }119    }120    signingConfigs {121        if (keystoreProps.containsKey("storeFile")) {122            create("release") {123                storeFile = file(keystoreProps.getProperty("storeFile"))124                storePassword = keystoreProps.getProperty("storePassword")125                keyAlias = keystoreProps.getProperty("keyAlias")126                keyPassword = keystoreProps.getProperty("keyPassword")127            }128        }129    }130    buildTypes {131        release {132            isMinifyEnabled = true133            isShrinkResources = true134            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")135            signingConfig = signingConfigs.findByName("release")136        }137    }138    compileOptions {139        sourceCompatibility = JavaVersion.VERSION_17140        targetCompatibility = JavaVersion.VERSION_17141    }142    buildFeatures { compose = true; buildConfig = true }143    testOptions { unitTests.isReturnDefaultValues = true }144    androidResources { localeFilters += listOf("fr") }145}146147148dependencies {149    implementation(platform("androidx.compose:compose-bom:2026.11.01"))150    implementation("androidx.compose.ui:ui")151    implementation("androidx.compose.ui:ui-tooling-preview")152    implementation("androidx.compose.material3:material3")153    implementation("androidx.compose.material:material-icons-extended")154    implementation("androidx.activity:activity-compose:1.13.0")155    implementation("androidx.navigation:navigation-compose:2.10.2")156    implementation("androidx.lifecycle:lifecycle-runtime-compose:2.11.1")157    implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.11.1")158    implementation("androidx.datastore:datastore-preferences:1.3.0")159    implementation("androidx.work:work-runtime-ktx:2.12.0")160    implementation("androidx.glance:glance-appwidget:1.2.0")161    implementation("androidx.glance:glance-material3:1.2.0")162    implementation("androidx.browser:browser:1.10.0")163    implementation("androidx.core:core-ktx:1.19.1")164    implementation("io.coil-kt.coil3:coil-compose:3.6.3")165    implementation("io.coil-kt.coil3:coil-network-okhttp:3.6.3")166    implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.13.0")167    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0")168    implementation("com.squareup.okhttp3:okhttp:5.5.1")169    // KA Maps : moteur de carte maison (Rust, Vulkan / OpenGL ES), voir docs/ARCHITECTURE.md « Carte »170    implementation("ai.spboucher:kamaps:${providers.gradleProperty("kamaps.version").orNull ?: "0.4.0"}")171172    testImplementation("junit:junit:4.13.2")173    testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0")174    testImplementation("com.squareup.okhttp3:mockwebserver:5.5.1")175176    // essais sur appareil des écrans de carte (docs/TESTS.md, « Carte KA Maps »)177    androidTestImplementation("androidx.test:runner:1.7.0")178    androidTestImplementation("androidx.test:rules:1.7.0")179    androidTestImplementation("androidx.test.ext:junit:1.3.0")180    androidTestImplementation("androidx.test.uiautomator:uiautomator:2.3.0")181}182
Files main
Menu

Theme