plugins { id 'com.android.application' id 'kotlin-android' id 'com.google.dagger.hilt.android' id 'kotlin-kapt' } // Create a variable called keystorePropertiesFile, and initialize it to your // keystore.properties file, in the rootProject folder. def keystorePropertiesFile = rootProject.file("keystore.properties") def versionPropertiesFile = rootProject.file("version.properties") // Initialize a new Properties() object called keystoreProperties. def keystoreProperties = new Properties() def versionProperties = new Properties() // Load your keystore.properties file into the keystoreProperties object. keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) versionProperties.load(new FileInputStream(versionPropertiesFile)) android { compileSdkVersion 33 defaultConfig { applicationId "me.zobrist.tichucounter" minSdkVersion 16 targetSdkVersion 33 versionCode versionProperties["versionCode"].toInteger() versionName "1.1.0Beta1" resConfigs("de", "en") testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true } signingConfigs { create("release") { keyAlias = keystoreProperties["keyAlias"] keyPassword = keystoreProperties["keyPassword"] storeFile = file(keystoreProperties["storeFile"]) storePassword = keystoreProperties["storePassword"] } } buildTypes { release { minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' signingConfig = signingConfigs.getByName("release") } } buildFeatures { viewBinding = true } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } namespace 'me.zobrist.tichucounter' } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.9.0' implementation 'androidx.appcompat:appcompat:1.6.0-rc01' implementation 'com.google.android.material:material:1.7.0' implementation 'com.google.android.play:core-ktx:1.8.1' implementation 'com.google.android.play:core-ktx:1.8.1' implementation 'com.google.code.gson:gson:2.8.9' implementation 'androidx.constraintlayout:constraintlayout:2.1.4' implementation 'androidx.navigation:navigation-fragment-ktx:2.5.3' implementation 'androidx.navigation:navigation-ui-ktx:2.5.3' implementation 'androidx.legacy:legacy-support-v4:1.0.0' implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.5.1' implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1' implementation 'androidx.fragment:fragment-ktx:1.5.5' implementation 'androidx.preference:preference-ktx:1.2.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1' implementation "com.google.dagger:hilt-android:2.44" kapt "com.google.dagger:hilt-compiler:2.44" implementation("androidx.room:room-runtime:2.4.3") annotationProcessor("androidx.room:room-compiler:2.4.3") kapt("androidx.room:room-compiler:2.4.3") implementation("androidx.room:room-ktx:2.4.3") implementation("androidx.multidex:multidex:2.0.1") } // Allow references to generated code kapt { correctErrorTypes true }