2015-12-24 12:28:00 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2017-10-22 15:37:36 +02:00
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
apply plugin: 'kotlin-android-extensions'
|
2015-12-24 12:28:00 +01:00
|
|
|
|
2019-04-07 22:54:30 +02:00
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
def keystoreProperties = new Properties()
|
2019-12-19 22:00:29 +01:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
}
|
2019-04-07 22:54:30 +02:00
|
|
|
|
2015-12-24 12:28:00 +01:00
|
|
|
android {
|
2019-11-26 11:51:38 +01:00
|
|
|
compileSdkVersion 29
|
2020-02-15 23:29:05 +01:00
|
|
|
buildToolsVersion '29.0.3'
|
2016-04-25 22:45:24 +02:00
|
|
|
|
2015-12-24 12:28:00 +01:00
|
|
|
defaultConfig {
|
2016-02-28 15:56:08 +01:00
|
|
|
applicationId "com.simplemobiletools.calculator"
|
2018-10-19 18:14:18 +02:00
|
|
|
minSdkVersion 21
|
2019-11-26 11:51:38 +01:00
|
|
|
targetSdkVersion 29
|
2020-05-24 23:12:56 +02:00
|
|
|
versionCode 34
|
|
|
|
versionName "5.2.0"
|
2017-11-29 21:34:46 +01:00
|
|
|
setProperty("archivesBaseName", "calculator")
|
2015-12-29 12:49:48 +01:00
|
|
|
|
2018-10-05 22:08:10 +02:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
2015-12-24 12:28:00 +01:00
|
|
|
}
|
2016-04-25 22:23:03 +02:00
|
|
|
|
2016-04-25 22:19:28 +02:00
|
|
|
signingConfigs {
|
2019-12-19 22:00:29 +01:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
2019-04-07 22:54:30 +02:00
|
|
|
}
|
2016-04-25 22:19:28 +02:00
|
|
|
}
|
2016-04-25 22:23:03 +02:00
|
|
|
|
2015-12-24 12:28:00 +01:00
|
|
|
buildTypes {
|
2018-01-30 22:05:44 +01:00
|
|
|
debug {
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
2015-12-24 12:28:00 +01:00
|
|
|
release {
|
2016-01-04 23:19:39 +01:00
|
|
|
minifyEnabled true
|
2015-12-24 12:28:00 +01:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2019-12-22 22:55:47 +01:00
|
|
|
if (keystorePropertiesFile.exists()) {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
2015-12-24 12:28:00 +01:00
|
|
|
}
|
|
|
|
}
|
2017-11-05 16:25:01 +01:00
|
|
|
|
2017-11-05 16:28:27 +01:00
|
|
|
sourceSets {
|
|
|
|
main.java.srcDirs += 'src/main/kotlin'
|
|
|
|
}
|
|
|
|
|
2017-11-05 16:25:01 +01:00
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
abortOnError false
|
|
|
|
}
|
2015-12-24 12:28:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-05-24 22:39:05 +02:00
|
|
|
implementation 'com.simplemobiletools:commons:5.28.23'
|
2017-11-29 21:34:46 +01:00
|
|
|
implementation 'me.grantland:autofittextview:0.2.1'
|
2016-06-01 18:00:18 +02:00
|
|
|
|
2017-11-29 21:34:46 +01:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2018-10-05 22:08:10 +02:00
|
|
|
testImplementation 'org.robolectric:robolectric:3.8'
|
2016-01-31 20:45:37 +01:00
|
|
|
|
2018-10-05 22:08:10 +02:00
|
|
|
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
|
2018-10-19 18:14:18 +02:00
|
|
|
androidTestImplementation 'androidx.test:runner:1.1.0-beta02'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.1.0-beta02'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-beta02'
|
2017-11-05 16:25:01 +01:00
|
|
|
}
|