SPB Git

Repository Public

build.gradle.kts 6.5 KB 166 lines kotlin

1/**2 * =============================================================================3 *                  SP BOUCHER | SOFTWARE & RESEARCH4 *             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * PROJECT METADATA8 * -----------------------------------------------------------------------------9 * Project          : Ka Android Template10 * File             : app/build.gradle.kts11 * Module           : app12 * Repository       : https://git.spboucher.ai/ka-android-template13 * Created          : 2026-11-2914 * Last Modified    : 2026-11-2915 *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: contact@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 */8889import java.util.Properties9091plugins {92    id("com.android.application")93    id("org.jetbrains.kotlin.plugin.compose")94    id("org.jetbrains.kotlin.plugin.serialization")95}9697val keystoreProps = Properties().apply {98    val f = rootProject.file("keystore.properties")99    if (f.exists()) f.inputStream().use { load(it) }100}101102android {103    namespace = "com.spboucher.gabarit"104    compileSdk { version = release(37) { minorApiLevel = 2 } }105106    defaultConfig {107        applicationId = "com.spboucher.gabarit"108        minSdk = 26109        targetSdk = 36110        versionCode = 1111        versionName = "3.0.0"112    }113    signingConfigs {114        if (keystoreProps.containsKey("storeFile")) {115            create("release") {116                storeFile = file(keystoreProps.getProperty("storeFile"))117                storePassword = keystoreProps.getProperty("storePassword")118                keyAlias = keystoreProps.getProperty("keyAlias")119                keyPassword = keystoreProps.getProperty("keyPassword")120            }121        }122    }123    buildTypes {124        release {125            isMinifyEnabled = true126            isShrinkResources = true127            proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")128            signingConfig = signingConfigs.findByName("release")129        }130    }131    compileOptions {132        sourceCompatibility = JavaVersion.VERSION_17133        targetCompatibility = JavaVersion.VERSION_17134    }135    buildFeatures { compose = true; buildConfig = true }136}137138139dependencies {140    implementation(platform("androidx.compose:compose-bom:2026.11.01"))141    implementation("androidx.compose.ui:ui")142    implementation("androidx.compose.ui:ui-tooling-preview")143    implementation("androidx.compose.material3:material3")144    implementation("androidx.compose.material:material-icons-extended")145    implementation("androidx.activity:activity-compose:1.13.0")146    implementation("androidx.navigation:navigation-compose:2.10.2")147    implementation("androidx.lifecycle:lifecycle-runtime-compose:2.11.1")148    implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.11.1")149    implementation("androidx.datastore:datastore-preferences:1.3.0")150    implementation("androidx.work:work-runtime-ktx:2.12.0")151    implementation("androidx.glance:glance-appwidget:1.2.0")152    implementation("androidx.glance:glance-material3:1.2.0")153    implementation("androidx.browser:browser:1.10.0")154    implementation("androidx.core:core-ktx:1.19.1")155    implementation("io.coil-kt.coil3:coil-compose:3.6.3")156    implementation("io.coil-kt.coil3:coil-network-okhttp:3.6.3")157    implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.13.0")158    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.11.0")159    implementation("com.squareup.okhttp3:okhttp:5.5.1")160    implementation("org.maplibre.gl:android-sdk:13.8.0")161162    testImplementation("junit:junit:4.13.2")163    testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0")164    testImplementation("com.squareup.okhttp3:mockwebserver:5.5.1")165}166
Files main
Menu

Theme