libpdfviewer/app/build.gradle.kts

69 lines
1.9 KiB
Plaintext
Raw Normal View History

2021-11-21 21:10:47 +01:00
import java.util.Properties
import java.io.FileInputStream
val keystorePropertiesFile = rootProject.file("keystore.properties")
val useKeystoreProperties = keystorePropertiesFile.canRead()
val keystoreProperties = Properties()
if (useKeystoreProperties) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
plugins {
id("com.android.application")
2021-11-22 16:18:59 +01:00
id("kotlin-android")
2021-11-21 21:10:47 +01:00
}
android {
if (useKeystoreProperties) {
signingConfigs {
create("release") {
storeFile = rootProject.file(keystoreProperties["storeFile"]!!)
storePassword = keystoreProperties["storePassword"] as String
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
}
}
}
compileSdk = 32
buildToolsVersion = "32.0.0"
2021-11-21 21:10:47 +01:00
defaultConfig {
applicationId = "org.grapheneos.pdfviewer"
minSdk = 26
targetSdk = 31
2021-11-21 23:42:53 +01:00
versionCode = 7
2021-11-21 21:10:47 +01:00
versionName = versionCode.toString()
resourceConfigurations.add("en")
2021-11-21 21:10:47 +01:00
}
buildTypes {
getByName("debug") {
applicationIdSuffix = ".debug"
}
getByName("release") {
isShrinkResources = true
isMinifyEnabled = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
if (useKeystoreProperties) {
signingConfig = signingConfigs.getByName("release")
}
}
}
compileOptions {
sourceCompatibility(JavaVersion.VERSION_11)
targetCompatibility(JavaVersion.VERSION_11)
}
2021-11-25 05:13:47 +01:00
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
2021-11-21 21:10:47 +01:00
}
dependencies {
implementation("androidx.appcompat:appcompat:1.4.1")
implementation("com.google.android.material:material:1.5.0")
2021-11-21 21:10:47 +01:00
}