build: minor cleanups and reorganization
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
8a58270e03
commit
1fa15e76e3
@ -11,15 +11,6 @@ final def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
buildToolsVersion '29.0.3'
|
buildToolsVersion '29.0.3'
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
|
||||||
}
|
|
||||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = '1.8'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildFeatures.dataBinding = true
|
buildFeatures.dataBinding = true
|
||||||
buildFeatures.viewBinding = true
|
buildFeatures.viewBinding = true
|
||||||
@ -31,12 +22,12 @@ android {
|
|||||||
versionName wireguardVersionName
|
versionName wireguardVersionName
|
||||||
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
|
buildConfigField 'int', 'MIN_SDK_VERSION', "$minSdkVersion.apiLevel"
|
||||||
}
|
}
|
||||||
// If the keystore file exists
|
compileOptions {
|
||||||
|
sourceCompatibility JavaVersion.VERSION_1_8
|
||||||
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
if (keystorePropertiesFile.exists()) {
|
if (keystorePropertiesFile.exists()) {
|
||||||
// Initialize a new Properties() object called keystoreProperties.
|
|
||||||
final def keystoreProperties = new Properties()
|
final def keystoreProperties = new Properties()
|
||||||
|
|
||||||
// Load your keystore.properties file into the keystoreProperties object.
|
|
||||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
@ -87,3 +78,9 @@ tasks.withType(JavaCompile) {
|
|||||||
options.compilerArgs << '-Xlint:unchecked'
|
options.compilerArgs << '-Xlint:unchecked'
|
||||||
options.deprecation = true
|
options.deprecation = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
|
||||||
|
kotlinOptions {
|
||||||
|
jvmTarget = JavaVersion.VERSION_1_8
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user