build.gradle 1.7 KB

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