build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. }
  20. dependencies {
  21. implementation fileTree(dir: 'libs', include: ['*.jar'])
  22. implementation 'androidx.appcompat:appcompat:1.0.2'
  23. testImplementation 'junit:junit:4.12'
  24. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  25. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  26. implementation 'androidx.recyclerview:recyclerview:1.1.0'
  27. implementation 'androidx.recyclerview:recyclerview-selection:1.0.0'
  28. api 'com.google.android:flexbox:1.0.0'
  29. implementation 'org.projectlombok:lombok'//谷歌流式布局(recycleView)
  30. annotationProcessor 'org.projectlombok:lombok:1.18.16'
  31. implementation 'org.projectlombok:lombok:1.18.16' //添加lombok依赖
  32. }