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() def versionMajor = 2 def versionMinor = 0 // 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 21 targetSdkVersion 33 versionCode versionProperties["versionCode"].toInteger() versionName "${versionMajor}.${versionMinor}.${versionProperties["versionCode"].toInteger()}" resConfigs 'de', 'en' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true vectorDrawables { useSupportLibrary true } javaCompileOptions { annotationProcessorOptions { arguments += ["room.schemaLocation": "$projectDir/schemas".toString()] } } } 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 compose = true } composeOptions { kotlinCompilerExtensionVersion = "1.3.2" } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } namespace 'me.zobrist.tichucounter' packagingOptions { resources { excludes += '/META-INF/{AL2.0,LGPL2.1}' } } } 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 "androidx.compose.material3:material3:1.0.1" 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.9.0' 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' implementation 'androidx.recyclerview:recyclerview:1.2.1' implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1' implementation 'androidx.compose.material:material-icons-extended:1.3.1' implementation "com.google.accompanist:accompanist-systemuicontroller:0.27.0" implementation 'androidx.activity:activity-compose:1.6.1' implementation "androidx.compose.ui:ui:1.3.3" implementation "androidx.compose.ui:ui-tooling-preview:1.3.3" implementation "androidx.compose.runtime:runtime-livedata:1.3.3" implementation "androidx.navigation:navigation-compose:2.5.3" implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1" 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" androidTestImplementation "androidx.compose.ui:ui-test-junit4:1.3.3" debugImplementation "androidx.compose.ui:ui-tooling:1.3.3" debugImplementation "androidx.compose.ui:ui-test-manifest:1.3.3" kapt "com.google.dagger:hilt-compiler:2.44" implementation "androidx.room:room-runtime:2.5.0" annotationProcessor "androidx.room:room-compiler:2.5.0" kapt "androidx.room:room-compiler:2.5.0" implementation "androidx.room:room-ktx:2.5.0" implementation "androidx.multidex:multidex:2.0.1" api "androidx.navigation:navigation-fragment-ktx:2.5.3" } // Allow references to generated code kapt { correctErrorTypes true }