| plugins { |
| id 'com.android.application' |
| id "kotlin-android" |
| id 'kotlin-kapt' |
| } |
| |
| android { |
| compileSdk 31 |
| defaultConfig { |
| applicationId "com.airbnb.lottie.sample.compose" |
| minSdk 21 |
| targetSdk 30 |
| versionCode 1 |
| versionName VERSION_NAME |
| } |
| buildTypes { |
| release { |
| minifyEnabled false |
| } |
| } |
| compileOptions { |
| sourceCompatibility JavaVersion.VERSION_1_8 |
| targetCompatibility JavaVersion.VERSION_1_8 |
| } |
| kotlinOptions { |
| jvmTarget = JavaVersion.VERSION_1_8.toString() |
| freeCompilerArgs += [ |
| "-Xallow-jvm-ir-dependencies", |
| "-Xskip-prerelease-check", |
| "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi", |
| "-Xuse-experimental=androidx.compose.animation.ExperimentalAnimationApi", |
| "-Xopt-in=androidx.compose.material.ExperimentalMaterialApi", |
| "-Xopt-in=com.google.accompanist.pager.ExperimentalPagerApi", |
| "-Xopt-in=kotlin.RequiresOptIn", |
| ] |
| } |
| buildFeatures { |
| compose true |
| } |
| composeOptions { |
| kotlinCompilerExtensionVersion composeVersion |
| } |
| } |
| |
| kapt { |
| correctErrorTypes = true |
| } |
| |
| dependencies { |
| implementation project(':lottie-compose') |
| implementation "androidx.core:core-ktx:$coreVersion" |
| implementation "androidx.activity:activity-compose:$activityVersion" |
| implementation 'androidx.appcompat:appcompat:1.4.0-beta01' |
| implementation "com.google.android.material:material:$materialVersion" |
| implementation "androidx.compose.ui:ui:$composeVersion" |
| implementation "androidx.compose.material:material:$composeVersion" |
| implementation "androidx.compose.material:material-icons-extended:$composeVersion" |
| implementation "androidx.compose.ui:ui-tooling:$composeVersion" |
| implementation "androidx.navigation:navigation-compose:2.4.0-alpha10" |
| implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion" |
| |
| implementation "androidx.navigation:navigation-ui-ktx:2.3.5" |
| |
| implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion" |
| |
| implementation "com.google.dagger:dagger:$daggerVersion" |
| kapt "com.google.dagger:dagger-compiler:$daggerVersion" |
| |
| implementation "com.squareup.retrofit2:retrofit:$retrofitVersion" |
| implementation "com.squareup.retrofit2:converter-moshi:$retrofitVersion" |
| implementation "com.google.accompanist:accompanist-coil:0.15.0" |
| implementation "com.google.accompanist:accompanist-pager-indicators:0.18.0" |
| implementation 'com.airbnb.android:mavericks:2.3.0' |
| implementation 'com.airbnb.android:mavericks-compose:2.1.0-alpha02' |
| } |