build.gradle 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. apply plugin: 'com.android.library'
  2. group='com.github.kezhangzhao'
  3. android {
  4. compileSdkVersion 30
  5. defaultConfig {
  6. minSdkVersion 19
  7. targetSdkVersion 30
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility = '1.8'
  20. targetCompatibility = '1.8'
  21. }
  22. }
  23. dependencies {
  24. implementation fileTree(dir: 'libs', include: ['*.jar'])
  25. implementation 'androidx.appcompat:appcompat:1.3.1'
  26. implementation 'com.google.android.material:material:1.2.0'
  27. implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
  28. testImplementation 'junit:junit:4.12'
  29. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  30. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  31. }