taler-code-examples

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

build.gradle.kts (2581B)


      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.wallettestdriverapp"
     24     compileSdk = 34
     25 
     26     defaultConfig {
     27         applicationId = "net.taler.wallettestdriverapp"
     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     }
     58     composeOptions {
     59         kotlinCompilerExtensionVersion = "1.5.14"
     60     }
     61     packaging {
     62         resources {
     63             excludes += "/META-INF/{AL2.0,LGPL2.1}"
     64         }
     65     }
     66 }
     67 
     68 dependencies {
     69     // Android
     70     implementation("androidx.core:core-ktx:1.13.1")
     71     implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.4")
     72     // Compose
     73     implementation("androidx.activity:activity-compose:1.9.1")
     74     implementation(platform("androidx.compose:compose-bom:2024.06.00"))
     75     implementation("androidx.compose.ui:ui")
     76     implementation("androidx.compose.ui:ui-graphics")
     77     implementation("androidx.compose.ui:ui-tooling-preview")
     78     debugImplementation("androidx.compose.ui:ui-tooling")
     79     debugImplementation("androidx.compose.ui:ui-test-manifest")
     80     implementation("androidx.compose.material3:material3")
     81     // Networking
     82     implementation("com.squareup.okhttp3:okhttp:4.12.0")
     83 }