build.gradle 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.3"
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 30
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  11. consumerProguardFiles 'consumer-rules.pro'
  12. javaCompileOptions {
  13. annotationProcessorOptions { includeCompileClasspath = true }
  14. }
  15. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  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. }
  28. dependencies {
  29. implementation fileTree(dir: 'libs', include: ['*.jar'])
  30. implementation 'androidx.appcompat:appcompat:1.0.2'
  31. testImplementation 'junit:junit:4.12'
  32. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  33. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  34. implementation project(path: ':appbase')
  35. implementation project(path: ':commonutils')
  36. annotationProcessor 'org.projectlombok:lombok:1.18.16'
  37. //chuck 抓包
  38. debugImplementation 'com.readystatesoftware.chuck:library:1.1.0'
  39. releaseImplementation 'com.readystatesoftware.chuck:library-no-op:1.1.0'
  40. }