build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 29
  4. defaultConfig {
  5. minSdkVersion 19
  6. targetSdkVersion 29
  7. versionCode 1
  8. versionName "1.0"
  9. multiDexEnabled true
  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. //.so文件引用
  20. sourceSets {
  21. main {
  22. jniLibs.srcDirs = ['libs']
  23. }
  24. }
  25. }
  26. repositories {
  27. flatDir {
  28. dirs 'libs', '../libs'
  29. }
  30. }
  31. allprojects {
  32. repositories {
  33. maven { url uri('../../repo') }
  34. }
  35. }
  36. dependencies {
  37. implementation fileTree(dir: 'libs', include: ['*.jar'])
  38. implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
  39. testImplementation 'junit:junit:4.12'
  40. androidTestImplementation 'androidx.test:runner:1.2.0'
  41. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  42. api project(':libLiveCloud')
  43. }