2019-06-28 05:22:08 +02:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
android {
|
2019-09-07 10:19:33 +02:00
|
|
|
compileSdkVersion 29
|
2020-02-10 16:24:46 +01:00
|
|
|
buildToolsVersion "29.0.3"
|
2019-06-28 05:22:08 +02:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "org.grapheneos.pdfviewer"
|
|
|
|
minSdkVersion 24
|
2019-09-07 10:19:46 +02:00
|
|
|
targetSdkVersion 29
|
2019-08-20 19:18:18 +02:00
|
|
|
versionCode 3
|
2019-06-28 05:22:08 +02:00
|
|
|
versionName versionCode.toString()
|
|
|
|
resConfigs "en"
|
|
|
|
}
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
release
|
|
|
|
}
|
|
|
|
buildTypes {
|
|
|
|
debug {
|
|
|
|
applicationIdSuffix ".debug"
|
|
|
|
}
|
|
|
|
release {
|
|
|
|
minifyEnabled true
|
|
|
|
shrinkResources true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2019-10-06 00:08:55 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
2019-06-28 05:22:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
def 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 = rootProject.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
|
|
|
|
}
|