build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. plugins {
  2. id 'com.android.library'
  3. id 'org.jetbrains.kotlin.android'
  4. id 'kotlin-android-extensions'
  5. }
  6. android {
  7. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  8. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  9. defaultConfig {
  10. minSdkVersion rootProject.ext.android["minSdkVersion"]
  11. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. }
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. }
  24. dependencies {
  25. implementation fileTree(dir: 'libs', include: ['*.jar'])
  26. implementation rootProject.ext.dependencies["appcompat"]
  27. implementation rootProject.ext.dependencies["material"]
  28. implementation rootProject.ext.dependencies["gson"]
  29. implementation rootProject.ext.dependencies["glide"]
  30. // 添加base依赖
  31. implementation project(path: ':lib_base')
  32. //AMPE
  33. implementation project(path: ':lib_ampe')
  34. }