build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 25
  4. defaultConfig {
  5. minSdkVersion 19
  6. targetSdkVersion 25
  7. versionCode 1
  8. versionName "1.0"
  9. externalNativeBuild {
  10. cmake {
  11. cppFlags ""
  12. }
  13. ndk{
  14. // 打包生成的 APK 文件指挥包含 ARM 指令集的动态库
  15. abiFilters "armeabi-v7a" /*, "arm64-v8a", "x86", "x86_64"*/
  16. }
  17. }
  18. }
  19. externalNativeBuild {
  20. cmake {
  21. path "CMakeLists.txt"
  22. }
  23. }
  24. ndkVersion '23.0.7599858'
  25. buildTypes {
  26. release {
  27. minifyEnabled false
  28. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  29. }
  30. debug {
  31. jniDebuggable true
  32. debuggable true
  33. }
  34. yufabu {
  35. jniDebuggable true
  36. debuggable true
  37. }
  38. }
  39. }
  40. dependencies {
  41. implementation fileTree(include: ['*.jar'], dir: 'libs')
  42. implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'//1.1.0
  43. implementation 'com.google.android.material:material:1.1.0'
  44. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  45. testImplementation 'junit:junit:4.+'
  46. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  47. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  48. implementation 'com.squareup.retrofit2:converter-gson:2.3.0'
  49. implementation 'com.alibaba:fastjson:1.1.55.android'
  50. }