2015-12-24 11:28:00 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2017-10-22 13:37:36 +00:00
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2022-01-09 13:05:16 +00:00
|
|
|
apply plugin: 'kotlin-kapt'
|
2015-12-24 11:28:00 +00:00
|
|
|
|
2019-04-07 20:54:30 +00:00
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
def keystoreProperties = new Properties()
|
2019-12-19 21:00:29 +00:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
2019-04-07 20:54:30 +00:00
|
|
|
|
2015-12-24 11:28:00 +00:00
|
|
|
android {
|
2022-08-12 19:34:55 +00:00
|
|
|
compileSdkVersion 33
|
2016-04-25 20:45:24 +00:00
|
|
|
|
2015-12-24 11:28:00 +00:00
|
|
|
defaultConfig {
|
2016-02-28 14:56:08 +00:00
|
|
|
applicationId "com.simplemobiletools.calculator"
|
2018-10-19 16:14:18 +00:00
|
|
|
minSdkVersion 21
|
2022-08-12 19:34:55 +00:00
|
|
|
targetSdkVersion 33
|
2022-10-10 14:08:52 +00:00
|
|
|
versionCode 56
|
|
|
|
versionName "5.10.2"
|
2017-11-29 20:34:46 +00:00
|
|
|
setProperty("archivesBaseName", "calculator")
|
2015-12-24 11:28:00 +00:00
|
|
|
}
|
2016-04-25 20:23:03 +00:00
|
|
|
|
2016-04-25 20:19:28 +00:00
|
|
|
signingConfigs {
|
2019-12-19 21:00:29 +00:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
2019-04-07 20:54:30 +00:00
|
|
|
}
|
2016-04-25 20:19:28 +00:00
|
|
|
}
|
2016-04-25 20:23:03 +00:00
|
|
|
|
2015-12-24 11:28:00 +00:00
|
|
|
buildTypes {
|
2018-01-30 21:05:44 +00:00
|
|
|
debug {
|
2022-01-14 13:18:17 +00:00
|
|
|
applicationIdSuffix ".debug"
|
2018-01-30 21:05:44 +00:00
|
|
|
}
|
2015-12-24 11:28:00 +00:00
|
|
|
release {
|
2016-01-04 22:19:39 +00:00
|
|
|
minifyEnabled true
|
2015-12-24 11:28:00 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-12-22 21:55:47 +00:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2015-12-24 11:28:00 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-05 15:25:01 +00:00
|
|
|
|
2022-01-14 13:18:17 +00:00
|
|
|
flavorDimensions "variants"
|
|
|
|
productFlavors {
|
|
|
|
core {}
|
|
|
|
fdroid {}
|
2022-06-29 21:13:44 +00:00
|
|
|
prepaid {}
|
2022-01-14 13:18:17 +00:00
|
|
|
}
|
|
|
|
|
2017-11-05 15:28:27 +00:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
}
|
|
|
|
|
2017-11-05 15:25:01 +00:00
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2015-12-24 11:28:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-10-10 14:04:53 +00:00
|
|
|
implementation 'com.github.SimpleMobileTools:Simple-Commons:2e9ca234a7'
|
2017-11-29 20:34:46 +00:00
|
|
|
implementation 'me.grantland:autofittextview:0.2.1'
|
2020-11-06 19:57:37 +00:00
|
|
|
implementation 'net.objecthunter:exp4j:0.4.8'
|
2022-01-09 13:05:16 +00:00
|
|
|
|
2022-08-12 19:15:57 +00:00
|
|
|
kapt 'androidx.room:room-compiler:2.4.3'
|
|
|
|
implementation 'androidx.room:room-runtime:2.4.3'
|
|
|
|
annotationProcessor 'androidx.room:room-compiler:2.4.3'
|
2017-11-05 15:25:01 +00:00
|
|
|
}
|