SPB Git

Repository Public

build.gradle.kts 5.5 KB 137 lines kotlin

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project          : KA Maps Engine10 * File             : sdk/android/example/build.gradle.kts11 * Module           : sdk12 * Repository       : https://git.spboucher.ai/ka-maps-engine13 * Created          : 2026-12-0114 * Last Modified    : 2026-12-0115 *16 * =============================================================================17 * AUTHOR & PROFESSIONAL AFFILIATION18 * =============================================================================19 *20 * Author           : Simon-Pierre Boucher21 * Position         : Professor of Finance22 * Institution      : Université du Québec en Outaouais (UQO)23 * Department       : Département des sciences administratives24 * Organization     : SP Boucher25 *26 * Website          : https://spboucher.ai27 * Git              : https://git.spboucher.ai28 *29 * =============================================================================30 * OFFICIAL CONTACT DIRECTORY31 * =============================================================================32 *33 * General          : info@spboucher.ai34 * Professional     : contact@spboucher.ai35 * Direct           : simon@spboucher.ai36 * Research         : research@spboucher.ai37 * Development      : dev@spboucher.ai38 * Support          : support@spboucher.ai39 * Security/Admin   : admin@spboucher.ai40 * Notifications    : notifications@spboucher.ai41 *42 * Preferred Contact: support@spboucher.ai43 *44 * =============================================================================45 * COPYRIGHT & INTELLECTUAL PROPERTY46 * =============================================================================47 *48 * Copyright (c) 202649 * Simon-Pierre Boucher50 *51 * All rights reserved where applicable.52 *53 * This file is governed by the applicable project license,54 * copyright notices, institutional agreements and relevant law.55 *56 * Unless expressly authorized by the applicable license or57 * rights holder, copying, redistribution, sublicensing,58 * publication and commercial exploitation are not permitted.59 *60 * Existing third-party rights and notices remain unaffected.61 *62 * =============================================================================63 * CONFIDENTIALITY & SECURITY64 * =============================================================================65 *66 * Classification   : Public67 * Distribution     : Public repository; use is governed by the project license68 * Security Contact : admin@spboucher.ai69 *70 * Access to this source does not independently grant permission71 * to redistribute or disclose confidential materials.72 *73 * Do not embed credentials, private keys, access tokens,74 * certificates or confidential personal information.75 *76 * =============================================================================77 * LICENSE & MAINTENANCE78 * =============================================================================79 *80 * License          : None specified (no license file in this repository)81 * Maintainer       : Simon-Pierre Boucher82 * Technical Contact: dev@spboucher.ai83 *84 * =============================================================================85 * END OF SP BOUCHER SOURCE HEADER86 * =============================================================================87 */8889plugins {90    id("com.android.application")91    id("org.jetbrains.kotlin.plugin.compose")92    id("org.jetbrains.kotlin.plugin.serialization")93}9495android {96    namespace = "com.spboucher.kamaps.example"97    compileSdk { version = release(37) { minorApiLevel = 2 } }9899    defaultConfig {100        applicationId = "com.spboucher.kamaps.example"101        minSdk = 26102        targetSdk = 36103        versionCode = 1104        versionName = "0.1.0"105    }106    buildTypes {107        release {108            // Même réglage que les quatre applications : R8 complet, pour éprouver les règles livrées dans l'AAR.109            isMinifyEnabled = true110            isShrinkResources = true111            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")112            signingConfig = signingConfigs.getByName("debug")113        }114    }115    compileOptions {116        sourceCompatibility = JavaVersion.VERSION_17117        targetCompatibility = JavaVersion.VERSION_17118    }119    buildFeatures { compose = true }120}121122dependencies {123    // -PkamapsFromRepo : consomme l'AAR publié (comme le feront les applications) plutôt que le module.124    // -PkamapsNoWork : sans WorkManager (application sans hors-ligne, retour VA8) — la carte doit fonctionner.125    val version = providers.gradleProperty("kamapsVersion").orElse("0.4.0").get()126    val noWork = providers.gradleProperty("kamapsNoWork").isPresent127    if (providers.gradleProperty("kamapsFromRepo").isPresent) implementation("ai.spboucher:kamaps:$version") { if (noWork) exclude(group = "androidx.work") }128    else implementation(project(":kamaps")) { if (noWork) exclude(group = "androidx.work") }129    implementation(platform("androidx.compose:compose-bom:2026.11.01"))130    implementation("androidx.compose.ui:ui")131    implementation("androidx.compose.foundation:foundation")132    implementation("androidx.compose.material3:material3")133    implementation("androidx.activity:activity-compose:1.13.0")134    implementation("androidx.lifecycle:lifecycle-runtime-compose:2.11.1")135    implementation("androidx.core:core-ktx:1.19.1")136}137
Files main
Menu

Theme