b8c01139d3
Bumps appcompat from 1.3.1 to 1.4.0. --- updated-dependencies: - dependency-name: androidx.appcompat:appcompat dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
66 lines
1.9 KiB
Groovy
66 lines
1.9 KiB
Groovy
plugins {
|
|
id "com.android.application"
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 31
|
|
buildToolsVersion "31.0.0"
|
|
defaultConfig {
|
|
applicationId "org.grapheneos.pdfviewer"
|
|
minSdkVersion 26
|
|
targetSdkVersion 31
|
|
versionCode 6
|
|
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_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(include: ["*.jar"], dir: "libs")
|
|
implementation "androidx.appcompat:appcompat:1.4.0"
|
|
implementation "com.google.android.material:material:1.4.0"
|
|
}
|
|
|
|
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
|
|
}
|