build.gradle 1.2 KB

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