1*bb5273feSAndroid Build Coastguard Workerimport static de.fayard.refreshVersions.core.Versions.versionFor 2*bb5273feSAndroid Build Coastguard Worker 3*bb5273feSAndroid Build Coastguard Workerplugins { 4*bb5273feSAndroid Build Coastguard Worker id 'com.android.application' 5*bb5273feSAndroid Build Coastguard Worker id "org.jetbrains.kotlin.android" 6*bb5273feSAndroid Build Coastguard Worker} 7*bb5273feSAndroid Build Coastguard Worker 8*bb5273feSAndroid Build Coastguard Workerandroid { 9*bb5273feSAndroid Build Coastguard Worker namespace 'com.airbnb.lottie.snapshots' 10*bb5273feSAndroid Build Coastguard Worker compileSdk 34 11*bb5273feSAndroid Build Coastguard Worker defaultConfig { 12*bb5273feSAndroid Build Coastguard Worker applicationId "com.airbnb.lottie.snapshots" 13*bb5273feSAndroid Build Coastguard Worker minSdk 21 14*bb5273feSAndroid Build Coastguard Worker targetSdk 34 15*bb5273feSAndroid Build Coastguard Worker versionCode 1 16*bb5273feSAndroid Build Coastguard Worker versionName VERSION_NAME 17*bb5273feSAndroid Build Coastguard Worker testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 18*bb5273feSAndroid Build Coastguard Worker buildConfigField("String", "GIT_BRANCH", "\"" + System.getenv("GITHUB_REF_NAME") + "\"") 19*bb5273feSAndroid Build Coastguard Worker buildConfigField("String", "GIT_SHA", "\"" + System.getenv("GITHUB_SHA") + "\"") 20*bb5273feSAndroid Build Coastguard Worker } 21*bb5273feSAndroid Build Coastguard Worker 22*bb5273feSAndroid Build Coastguard Worker buildTypes { 23*bb5273feSAndroid Build Coastguard Worker debug { 24*bb5273feSAndroid Build Coastguard Worker buildConfigField("String", "S3AccessKey", "\"" + System.getenv("LOTTIE_S3_API_KEY") + "\"") 25*bb5273feSAndroid Build Coastguard Worker buildConfigField("String", "S3SecretKey", "\"" + System.getenv("LOTTIE_S3_SECRET_KEY") + "\"") 26*bb5273feSAndroid Build Coastguard Worker buildConfigField("String", "HappoApiKey", "\"" + System.getenv("LOTTIE_HAPPO_API_KEY") + "\"") 27*bb5273feSAndroid Build Coastguard Worker buildConfigField("String", "HappoSecretKey", "\"" + System.getenv("LOTTIE_HAPPO_SECRET_KEY") + "\"") 28*bb5273feSAndroid Build Coastguard Worker } 29*bb5273feSAndroid Build Coastguard Worker release { 30*bb5273feSAndroid Build Coastguard Worker minifyEnabled false 31*bb5273feSAndroid Build Coastguard Worker } 32*bb5273feSAndroid Build Coastguard Worker } 33*bb5273feSAndroid Build Coastguard Worker 34*bb5273feSAndroid Build Coastguard Worker kotlinOptions { 35*bb5273feSAndroid Build Coastguard Worker freeCompilerArgs += [ 36*bb5273feSAndroid Build Coastguard Worker "-Xskip-prerelease-check", 37*bb5273feSAndroid Build Coastguard Worker "-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi", 38*bb5273feSAndroid Build Coastguard Worker "-opt-in=kotlin.RequiresOptIn", 39*bb5273feSAndroid Build Coastguard Worker ] 40*bb5273feSAndroid Build Coastguard Worker } 41*bb5273feSAndroid Build Coastguard Worker buildFeatures { 42*bb5273feSAndroid Build Coastguard Worker compose true 43*bb5273feSAndroid Build Coastguard Worker viewBinding true 44*bb5273feSAndroid Build Coastguard Worker buildConfig true 45*bb5273feSAndroid Build Coastguard Worker } 46*bb5273feSAndroid Build Coastguard Worker 47*bb5273feSAndroid Build Coastguard Worker composeOptions { 48*bb5273feSAndroid Build Coastguard Worker kotlinCompilerExtensionVersion = versionFor(project, AndroidX.compose.compiler) 49*bb5273feSAndroid Build Coastguard Worker } 50*bb5273feSAndroid Build Coastguard Worker} 51*bb5273feSAndroid Build Coastguard Worker 52*bb5273feSAndroid Build Coastguard Workerdependencies { 53*bb5273feSAndroid Build Coastguard Worker implementation project(':lottie-compose') 54*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.appcompat 55*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.core.ktx 56*bb5273feSAndroid Build Coastguard Worker implementation libs.androidx.activity.compose 57*bb5273feSAndroid Build Coastguard Worker implementation platform(libs.compose.bom) 58*bb5273feSAndroid Build Coastguard Worker implementation libs.compose.ui 59*bb5273feSAndroid Build Coastguard Worker implementation libs.compose.ui.tooling 60*bb5273feSAndroid Build Coastguard Worker implementation libs.compose.material 61*bb5273feSAndroid Build Coastguard Worker 62*bb5273feSAndroid Build Coastguard Worker implementation libs.okhttp 63*bb5273feSAndroid Build Coastguard Worker 64*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.aws.android.sdk.s3 65*bb5273feSAndroid Build Coastguard Worker androidTestImplementation(libs.aws.android.sdk.mobile.client) { transitive = true } 66*bb5273feSAndroid Build Coastguard Worker androidTestImplementation(libs.aws.android.sdk.auth.userpools) { transitive = true } 67*bb5273feSAndroid Build Coastguard Worker 68*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.androidx.test.junit 69*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.androidx.test.espresso 70*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.androidx.test.espresso.idling 71*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.androidx.test.core 72*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.androidx.test.rules 73*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.jjwt 74*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.mockito.android 75*bb5273feSAndroid Build Coastguard Worker androidTestImplementation libs.mockito.kotlin 76*bb5273feSAndroid Build Coastguard Worker} 77