build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  6. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  7. defaultConfig {
  8. minSdkVersion rootProject.ext.android["minSdkVersion"]
  9. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. compileOptions {
  18. sourceCompatibility JavaVersion.VERSION_1_8
  19. targetCompatibility JavaVersion.VERSION_1_8
  20. }
  21. dexOptions {
  22. javaMaxHeapSize "4g"
  23. }
  24. repositories {
  25. flatDir {
  26. dirs 'libs'
  27. }
  28. }
  29. sourceSets {
  30. main {
  31. jniLibs.srcDirs = ['libs']
  32. }
  33. }
  34. ndkVersion '21.0.6113669'
  35. }
  36. dependencies {
  37. implementation rootProject.ext.dependencies["appcompat"]
  38. implementation rootProject.ext.dependencies["material"]
  39. // 添加base依赖
  40. implementation project(path: ':lib_base')
  41. implementation rootProject.ext.dependencies["gson"]
  42. api project(path: ':lib_ampe:LocalRepo')
  43. }