build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 { annotationProcessorOptions { includeCompileClasspath = true } }
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. api fileTree(dir: 'libs', include: ['*.jar'])
  23. testImplementation 'junit:junit:4.12'
  24. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  25. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  26. annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
  27. implementation 'androidx.fragment:fragment:1.2.1'
  28. implementation 'com.android.support:appcompat-v7'
  29. }