common.gradle 874 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 31
  4. defaultConfig {
  5. minSdkVersion 21
  6. targetSdkVersion 30
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. consumerProguardFiles "consumer-rules.pro"
  11. kapt {
  12. arguments {
  13. arg("AROUTER_MODULE_NAME", project.getName())
  14. }
  15. }
  16. }
  17. buildTypes {
  18. release {
  19. minifyEnabled false
  20. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  21. }
  22. }
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. kotlinOptions {
  28. jvmTarget = '1.8'
  29. }
  30. viewBinding {
  31. enabled = true
  32. }
  33. }