build.gradle 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. //apply plugin: 'com.github.dcendents.android-maven'
  3. android {
  4. compileSdkVersion rootProject.ext.android["compileSdkVersion"]
  5. buildToolsVersion rootProject.ext.android["buildToolsVersion"]
  6. defaultConfig {
  7. minSdkVersion 16
  8. targetSdkVersion rootProject.ext.android["targetSdkVersion"]
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. consumerProguardFiles 'consumer-rules.pro'
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  18. }
  19. debug {
  20. jniDebuggable true
  21. debuggable true
  22. }
  23. yufabu {
  24. jniDebuggable true
  25. debuggable true
  26. }
  27. }
  28. sourceSets.main {
  29. jni.srcDirs = []//disable automatic ndk-build call
  30. jniLibs.srcDirs = ['libs']
  31. }
  32. }
  33. dependencies {
  34. implementation fileTree(dir: 'libs', include: ['*.jar'])
  35. }