2015-12-24 12:28:00 +01:00
|
|
|
apply plugin: 'com.android.application'
|
2016-06-01 18:00:18 +02:00
|
|
|
apply plugin: 'android-apt'
|
2015-12-24 12:28:00 +01:00
|
|
|
|
|
|
|
android {
|
|
|
|
compileSdkVersion 23
|
2016-06-15 16:12:47 +02:00
|
|
|
buildToolsVersion "23.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"
|
2015-12-24 12:28:00 +01:00
|
|
|
minSdkVersion 16
|
|
|
|
targetSdkVersion 23
|
2016-08-29 21:06:54 +02:00
|
|
|
versionCode 11
|
|
|
|
versionName "1.11"
|
2015-12-29 12:49:48 +01:00
|
|
|
|
|
|
|
testInstrumentationRunner "android.support.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 {
|
|
|
|
release
|
|
|
|
}
|
2016-04-25 22:23:03 +02:00
|
|
|
|
2015-12-24 12:28:00 +01:00
|
|
|
buildTypes {
|
|
|
|
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'
|
2016-04-25 22:19:28 +02:00
|
|
|
signingConfig signingConfigs.release
|
2015-12-24 12:28:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile fileTree(dir: 'libs', include: ['*.jar'])
|
2016-06-15 16:12:47 +02:00
|
|
|
compile 'com.android.support:appcompat-v7:23.4.0'
|
2016-06-01 18:00:18 +02:00
|
|
|
compile 'com.jakewharton:butterknife:8.0.1'
|
2016-01-04 21:56:34 +01:00
|
|
|
compile 'me.grantland:autofittextview:0.2.1'
|
2016-01-31 20:45:37 +01:00
|
|
|
compile 'com.github.yukuku:ambilwarna:2.0.1'
|
|
|
|
|
2016-06-01 18:00:18 +02:00
|
|
|
apt 'com.jakewharton:butterknife-compiler:8.0.1'
|
|
|
|
|
2015-12-26 22:35:45 +01:00
|
|
|
testCompile 'junit:junit:4.12'
|
2015-12-29 12:49:48 +01:00
|
|
|
testCompile 'org.robolectric:robolectric:3.0'
|
2016-01-31 20:45:37 +01:00
|
|
|
|
2016-06-15 16:12:47 +02:00
|
|
|
androidTestCompile 'com.android.support:support-annotations:23.4.0'
|
2015-12-29 12:49:48 +01:00
|
|
|
androidTestCompile 'com.android.support.test:runner:0.4.1'
|
|
|
|
androidTestCompile 'com.android.support.test:rules:0.4.1'
|
|
|
|
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.1'
|
2015-12-24 12:28:00 +01:00
|
|
|
}
|
2016-04-25 22:19:28 +02:00
|
|
|
|
|
|
|
def Properties props = new Properties()
|
|
|
|
def propFile = new File('signing.properties')
|
|
|
|
if (propFile.canRead()) {
|
|
|
|
props.load(new FileInputStream(propFile))
|
|
|
|
|
|
|
|
if (props != null && props.containsKey('STORE_FILE') && props.containsKey('STORE_PASSWORD') &&
|
|
|
|
props.containsKey('KEY_ALIAS') && props.containsKey('KEY_PASSWORD')) {
|
|
|
|
android.signingConfigs.release.storeFile = file(props['STORE_FILE'])
|
|
|
|
android.signingConfigs.release.storePassword = props['STORE_PASSWORD']
|
|
|
|
android.signingConfigs.release.keyAlias = props['KEY_ALIAS']
|
|
|
|
android.signingConfigs.release.keyPassword = props['KEY_PASSWORD']
|
|
|
|
} 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
|
|
|
|
}
|