taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

build.gradle (3056B)


      1 plugins {
      2     id 'com.android.application'
      3     id 'kotlin-android'
      4     id 'kotlinx-serialization'
      5     id "org.jetbrains.kotlin.plugin.compose" version "$kotlin_version"
      6 }
      7 
      8 android {
      9     namespace 'net.taler.merchantpos'
     10     compileSdkVersion 36
     11 
     12     defaultConfig {
     13         applicationId "net.taler.merchantpos"
     14         minSdkVersion 23
     15         targetSdkVersion 36
     16         versionCode 23
     17         versionName "1.6.0"
     18         testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
     19 
     20         buildConfigField("String", "BACKEND_API_VERSION", "\"20:0:8\"")
     21     }
     22 
     23     buildTypes {
     24         release {
     25             minifyEnabled true
     26             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
     27         }
     28         debug {
     29             minifyEnabled minify_debug
     30             proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
     31         }
     32     }
     33 
     34     compileOptions {
     35         sourceCompatibility = JavaVersion.VERSION_17
     36         targetCompatibility = JavaVersion.VERSION_17
     37     }
     38 
     39     kotlinOptions {
     40         jvmTarget = "17"
     41     }
     42 
     43     buildFeatures {
     44         buildConfig = true
     45         compose = true
     46     }
     47 
     48     testOptions {
     49         unitTests {
     50             includeAndroidResources = true
     51         }
     52     }
     53     packagingOptions {
     54         resources {
     55             excludes += ['META-INF/common.kotlin_module', 'META-INF/*.kotlin_module']
     56         }
     57     }
     58 
     59     lint {
     60         abortOnError true
     61         disable 'WrongConstant'
     62         ignoreWarnings false
     63     }
     64 }
     65 
     66 dependencies {
     67     implementation project(":merchant-lib")
     68     implementation project(":taler-kotlin-android")
     69 
     70     implementation "com.google.android.material:material:$material_version"
     71     implementation "androidx.constraintlayout:constraintlayout:$constraintlayout_version"
     72     implementation platform('androidx.compose:compose-bom:2026.02.01')
     73     implementation 'androidx.compose.material3:material3'
     74     implementation 'androidx.compose.material:material-icons-extended'
     75     implementation 'androidx.compose.ui:ui'
     76     implementation 'androidx.compose.ui:ui-tooling-preview'
     77     implementation "androidx.compose.runtime:runtime-livedata"
     78     implementation 'androidx.activity:activity-compose:1.13.0'
     79     implementation "androidx.navigation:navigation-compose:$nav_version"
     80     implementation "androidx.fragment:fragment-ktx:1.8.9"
     81     implementation "androidx.recyclerview:recyclerview:1.4.0"
     82     implementation "androidx.recyclerview:recyclerview-selection:1.2.0"
     83 
     84     // CameraX
     85     implementation "androidx.camera:camera-camera2:1.5.3"
     86     implementation "androidx.camera:camera-lifecycle:1.5.3"
     87     implementation "androidx.camera:camera-view:1.5.3"
     88 
     89     // ZXING core – on-device barcode/QR detector
     90     implementation "com.google.zxing:core:3.5.4"
     91 
     92     implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0"
     93 
     94     testImplementation 'androidx.test.ext:junit:1.3.0'
     95     testImplementation 'org.robolectric:robolectric:4.16.1'
     96 
     97     debugImplementation 'androidx.compose.ui:ui-tooling'
     98 }