build.gradle 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. versionCode rootProject.ext.android["versionCode"]
  11. versionName rootProject.ext.android["versionName"]
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles "consumer-rules.pro"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  19. }
  20. debug {
  21. jniDebuggable true
  22. debuggable true
  23. }
  24. yufabu {
  25. jniDebuggable true
  26. debuggable true
  27. }
  28. }
  29. compileOptions {
  30. sourceCompatibility JavaVersion.VERSION_1_8
  31. targetCompatibility JavaVersion.VERSION_1_8
  32. }
  33. }
  34. dependencies {
  35. implementation 'androidx.appcompat:appcompat:1.1.0'
  36. implementation 'com.google.android.material:material:1.1.0'
  37. testImplementation 'junit:junit:4.+'
  38. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  39. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  40. // 添加base依赖
  41. implementation project(path: ':lib_base')
  42. }