// Copyright 2019-2020 The Hush developers // Released under the GPLv3 apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "org.myhush.silentdragon" minSdkVersion 17 targetSdkVersion 29 versionCode 2 versionName "0.5.14" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true } signingConfigs { release } buildTypes { release { signingConfig signingConfigs.release minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } def secretsPropertiesFile = rootProject.file("secrets.properties") def secretProperties = new Properties() if (secretsPropertiesFile.exists()) { secretProperties.load(new FileInputStream(secretsPropertiesFile)) android.signingConfigs.release.storeFile = file(secretProperties["store_file_location"]) android.signingConfigs.release.keyAlias = secretProperties["key_alias"] android.signingConfigs.release.keyPassword = secretProperties["key_password"] android.signingConfigs.release.storePassword = secretProperties["store_password"] android.buildTypes.release.signingConfig = android.signingConfigs.release } else { android.buildTypes.release.signingConfig = null } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation 'androidx.appcompat:appcompat:1.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' implementation 'com.google.android.material:material:1.0.0' implementation 'androidmads.library.qrgenearator:QRGenearator:1.0.3' implementation 'com.squareup.okhttp3:okhttp:3.10.0' implementation 'com.beust:klaxon:5.0.1' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'com.google.android.gms:play-services-vision:17.0.2' implementation 'androidx.vectordrawable:vectordrawable:1.0.0' implementation 'com.github.joshjdevl.libsodiumjni:libsodium-jni-aar:2.0.1' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' }