build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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.1'
  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. //RxAndroid
  43. api 'io.reactivex.rxjava2:rxandroid:2.1.1'
  44. }