plugins { id 'com.android.application' id 'kotlin-android' id 'kotlin-kapt' id 'dagger.hilt.android.plugin' } apply from: '../dependencies.gradle' android { compileSdkVersion 30 defaultConfig { applicationId "com.github.guilhe.zoocompose" minSdkVersion 23 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } signingConfigs { // We use a bundled debug keystore, to allow debug builds from CI to be upgradable debug { storeFile rootProject.file('debug.keystore') storePassword 'android' keyAlias 'androiddebugkey' keyPassword 'android' } } buildTypes { debug { signingConfig signingConfigs.debug } release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } kotlinOptions { jvmTarget = "1.8" } buildFeatures { compose true // Disable unused AGP features buildConfig false aidl false renderScript false resValues false shaders false } composeOptions { kotlinCompilerExtensionVersion versions.compose_version } packagingOptions { // Multiple dependency bring these files in. Exclude them to enable // our test APK to build (has no effect on our AARs) excludes += "/META-INF/AL2.0" excludes += "/META-INF/LGPL2.1" } compileOptions { targetCompatibility JavaVersion.VERSION_11 sourceCompatibility JavaVersion.VERSION_11 } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin_version" implementation "androidx.core:core-ktx:1.3.2" implementation "androidx.appcompat:appcompat:1.2.0" implementation "com.google.android.material:material:1.3.0" implementation "androidx.lifecycle:lifecycle-runtime-ktx:$versions.androidx_lifecycle" implementation "androidx.lifecycle:lifecycle-livedata-ktx:$versions.androidx_lifecycle" // Compose implementation "androidx.activity:activity-compose:1.3.0-alpha04" implementation "androidx.compose.ui:ui:$versions.compose_version" implementation "androidx.compose.material:material:$versions.compose_version" implementation "androidx.compose.material:material-icons-extended:$versions.compose_version" implementation "androidx.constraintlayout:constraintlayout-compose:1.0.0-alpha04" implementation "androidx.compose.ui:ui-tooling:$versions.compose_version" implementation "androidx.compose.runtime:runtime:$versions.compose_version" implementation "androidx.compose.runtime:runtime-livedata:$versions.compose_version" implementation "androidx.navigation:navigation-compose:1.0.0-alpha09" // Hilt kapt "com.google.dagger:hilt-compiler:$versions.hilt_core_version" implementation "com.google.dagger:hilt-android:$versions.hilt_core_version" implementation "androidx.hilt:hilt-lifecycle-viewmodel:$versions.hilt_version" // Testing testImplementation "junit:junit:4.13.2" androidTestImplementation "androidx.test.ext:junit:1.1.2" androidTestImplementation "androidx.compose.ui:ui-test-junit4:$versions.compose_version" }