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'
|
2015-12-24 11:28:00 +00:00
|
|
|
|
|
|
|
android {
|
2018-10-05 20:08:10 +00:00
|
|
|
compileSdkVersion 28
|
|
|
|
buildToolsVersion '28.0.3'
|
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"
|
2015-12-24 11:28:00 +00:00
|
|
|
minSdkVersion 16
|
2018-10-05 20:08:10 +00:00
|
|
|
targetSdkVersion 28
|
2018-10-05 20:13:23 +00:00
|
|
|
versionCode 22
|
|
|
|
versionName "4.2.0"
|
2017-11-29 20:34:46 +00:00
|
|
|
setProperty("archivesBaseName", "calculator")
|
2015-12-29 11:49:48 +00:00
|
|
|
|
2018-10-05 20:08:10 +00:00
|
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
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 {
|
|
|
|
release
|
|
|
|
}
|
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 {
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
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'
|
2016-04-25 20:19:28 +00:00
|
|
|
signingConfig signingConfigs.release
|
2015-12-24 11:28:00 +00:00
|
|
|
}
|
|
|
|
}
|
2017-11-05 15:25:01 +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 {
|
2018-10-05 20:08:10 +00:00
|
|
|
implementation 'com.simplemobiletools:commons:4.9.1'
|
2017-11-29 20:34:46 +00:00
|
|
|
implementation 'me.grantland:autofittextview:0.2.1'
|
2016-06-01 16:00:18 +00:00
|
|
|
|
2017-11-29 20:34:46 +00:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2018-10-05 20:08:10 +00:00
|
|
|
testImplementation 'org.robolectric:robolectric:3.8'
|
2016-01-31 19:45:37 +00:00
|
|
|
|
2018-10-05 20:08:10 +00:00
|
|
|
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
|
|
|
|
androidTestImplementation 'androidx.test:runner:1.1.0-beta01'
|
|
|
|
androidTestImplementation 'androidx.test:rules:1.1.0-beta01'
|
|
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-beta01'
|
2017-11-05 15:25:01 +00:00
|
|
|
}
|
|
|
|
|
2017-11-29 20:34:46 +00:00
|
|
|
Properties props = new Properties()
|
2016-04-25 20:19:28 +00:00
|
|
|
def propFile = new File('signing.properties')
|
|
|
|
if (propFile.canRead()) {
|
|
|
|
props.load(new FileInputStream(propFile))
|
|
|
|
|
2017-11-05 15:25:01 +00:00
|
|
|
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('KEY_ALIAS') && props.containsKey('PASSWORD')) {
|
2016-04-25 20:19:28 +00:00
|
|
|
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
|
2017-11-05 15:25:01 +00:00
|
|
|
android.signingConfigs.release.storePassword = props['PASSWORD']
|
2016-04-25 20:19:28 +00:00
|
|
|
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
|
2017-11-05 15:25:01 +00:00
|
|
|
android.signingConfigs.release.keyPassword = props['PASSWORD']
|
2016-04-25 20:19:28 +00:00
|
|
|
} else {
|
|
|
|
println 'signing.properties found but some entries are missing'
|
|
|
|
android.buildTypes.release.signingConfig = null
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
println 'signing.properties not found'
|
|
|
|
android.buildTypes.release.signingConfig = null
|
|
|
|
}
|