blob: 0f3b5b738c57223eb055f46448bf82bee3d7cef5 [file] [log] [blame]
plugins {
id 'com.android.application'
id "kotlin-android"
id 'kotlin-kapt'
}
android {
compileSdk 30
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-alpha03'
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-alpha04"
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'
}