1apply plugin: 'com.android.library' 2apply plugin: 'kotlin-android' 3 4android { 5 namespace = "com.android.app.animation" 6 testNamespace = "com.android.app.animation.tests" 7 defaultConfig { 8 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 9 } 10 11 sourceSets { 12 main { 13 java.srcDirs = ['src'] 14 res.srcDirs = ['res'] 15 manifest.srcFile 'AndroidManifest.xml' 16 } 17 androidTest { 18 java.srcDirs = ["tests/src"] 19 manifest.srcFile 'tests/AndroidManifest.xml' 20 } 21 } 22 compileSdk 33 23 24 defaultConfig { 25 minSdk 33 26 targetSdk 33 27 } 28 29 lintOptions { 30 abortOnError false 31 } 32 tasks.lint.enabled = false 33 tasks.withType(JavaCompile) { 34 options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" 35 } 36 kotlinOptions { 37 jvmTarget = '1.8' 38 freeCompilerArgs = ["-Xjvm-default=all"] 39 } 40} 41 42dependencies { 43 implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.8.0" 44 implementation "androidx.core:core-animation:1.0.0-alpha02" 45 implementation "androidx.core:core-ktx:1.9.0" 46 androidTestImplementation "androidx.test.ext:junit:1.1.3" 47 androidTestImplementation "androidx.test:rules:1.4.0" 48} 49