taler-code-examples

Reference examples (sample code)
Log | Files | Refs | README | LICENSE

build.gradle.kts (2586B)


      1 /*
      2  * This file is part of GNU Taler
      3  * (C) 2024 Taler Systems S.A.
      4  *
      5  * GNU Taler is free software; you can redistribute it and/or modify it under the
      6  * terms of the GNU General Public License as published by the Free Software
      7  * Foundation; either version 3, or (at your option) any later version.
      8  *
      9  * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
     10  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11  * A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     12  *
     13  * You should have received a copy of the GNU General Public License along with
     14  * GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15  */
     16 
     17 plugins {
     18     id("com.android.application")
     19     id("org.jetbrains.kotlin.android")
     20 }
     21 
     22 android {
     23     namespace = "net.taler.anastasistestdriverapp"
     24     compileSdk = 34
     25 
     26     defaultConfig {
     27         applicationId = "net.taler.anastasistestdriverapp"
     28         minSdk = 24
     29         targetSdk = 34
     30         versionCode = 1
     31         versionName = "1.0"
     32 
     33         testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
     34         vectorDrawables {
     35             useSupportLibrary = true
     36         }
     37     }
     38 
     39     buildTypes {
     40         release {
     41             isMinifyEnabled = false
     42             proguardFiles(
     43                 getDefaultProguardFile("proguard-android-optimize.txt"),
     44                 "proguard-rules.pro"
     45             )
     46         }
     47     }
     48     compileOptions {
     49         sourceCompatibility = JavaVersion.VERSION_17
     50         targetCompatibility = JavaVersion.VERSION_17
     51     }
     52     kotlinOptions {
     53         jvmTarget = "17"
     54     }
     55     buildFeatures {
     56         compose = true
     57         buildConfig = true
     58     }
     59     composeOptions {
     60         kotlinCompilerExtensionVersion = "1.5.14"
     61     }
     62     packaging {
     63         resources {
     64             excludes += "/META-INF/{AL2.0,LGPL2.1}"
     65         }
     66     }
     67 }
     68 
     69 dependencies {
     70     implementation(project(":anastasis-lib"))
     71     // Android
     72     implementation("androidx.core:core-ktx:1.12.0")
     73     implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.2")
     74     // Compose
     75     implementation("androidx.activity:activity-compose:1.8.0")
     76     implementation(platform("androidx.compose:compose-bom:2023.10.01"))
     77     implementation("androidx.compose.ui:ui")
     78     implementation("androidx.compose.ui:ui-graphics")
     79     implementation("androidx.compose.ui:ui-tooling-preview")
     80     debugImplementation("androidx.compose.ui:ui-tooling")
     81     debugImplementation("androidx.compose.ui:ui-test-manifest")
     82     implementation("androidx.compose.material3:material3")
     83 }