build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion rootProject.ext.compileSdkVersion
  6. buildToolsVersion rootProject.ext.buildToolsVersion
  7. lintOptions {
  8. checkReleaseBuilds false
  9. abortOnError false
  10. }
  11. defaultConfig {
  12. minSdkVersion rootProject.ext.minSdkVersion
  13. targetSdkVersion rootProject.ext.targetSdkVersion
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. }
  26. dependencies {
  27. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  28. implementation fileTree(include: ['*.jar'], dir: 'libs')
  29. compileOnly 'androidx.appcompat:appcompat:1.2.0'
  30. compileOnly 'org.greenrobot:greendao:3.3.0'
  31. api 'com.google.code.gson:gson:2.8.6'
  32. api 'com.squareup.okhttp3:okhttp:3.10.0'
  33. api 'com.github.bumptech.glide:glide:4.11.0'
  34. annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
  35. api 'org.greenrobot:eventbus:3.3.1' // 确保使用最新版本
  36. }
  37. //apply from: './javadoc.gradle'