74 lines
2.6 KiB
Groovy
74 lines
2.6 KiB
Groovy
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'kotlin-android'
|
|
|
|
// Create a variable called keystorePropertiesFile, and initialize it to your
|
|
// keystore.properties file, in the rootProject folder.
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
// Initialize a new Properties() object called keystoreProperties.
|
|
def keystoreProperties = new Properties()
|
|
|
|
// Load your keystore.properties file into the keystoreProperties object.
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
|
android {
|
|
signingConfigs {
|
|
release {
|
|
keyAlias keystoreProperties['keyAlias']
|
|
keyPassword keystoreProperties['keyPassword']
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
compileSdk 32
|
|
defaultConfig {
|
|
applicationId "de.twomartens.troubleshooting"
|
|
minSdk 29
|
|
targetSdk 29
|
|
versionCode 2
|
|
versionName "0.1"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
}
|
|
debug {
|
|
applicationIdSuffix ".debug"
|
|
debuggable true
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
buildFeatures {
|
|
viewBinding true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def lifecycle_version = '2.2.0'
|
|
def work_version = '2.7.1'
|
|
apply plugin: "org.jetbrains.kotlin.kapt"
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'androidx.appcompat:appcompat:1.5.1'
|
|
implementation 'androidx.core:core-ktx:1.8.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
testImplementation 'junit:junit:4.13.2'
|
|
androidTestImplementation 'androidx.test:runner:1.5.1'
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.0'
|
|
implementation 'androidx.recyclerview:recyclerview:1.2.1'
|
|
implementation 'com.google.android.material:material:1.8.0-alpha03'
|
|
implementation 'com.github.uDevel:widgetlab:0.9.7'
|
|
implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
|
|
kapt "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"
|
|
implementation "androidx.work:work-runtime-ktx:$work_version"
|
|
}
|