build.gradle 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. apply plugin: 'com.android.application'
  2. android {
  3. // splits {
  4. // abi {
  5. // enable true
  6. // reset()
  7. // include 'armeabi-v7a',"arm64-v8a"
  8. // universalApk true
  9. // }
  10. // }333
  11. compileSdk = 36
  12. defaultConfig {
  13. applicationId "com.usai.redant.raimage"
  14. minSdk = 28
  15. targetSdk = 36
  16. versionCode 16
  17. versionName "1.28.58162"
  18. // ndk.abiFilters 'armeabi-v7a',"arm64-v8a"
  19. }
  20. buildTypes {
  21. release {
  22. minifyEnabled true
  23. // zipAlignEnabled true
  24. shrinkResources = false
  25. proguardFiles 'proguard-project.txt'
  26. ndk {
  27. // 只保留 ARM 架构
  28. // arm64-v8a: 适配所有新手机 + 你的 M4 模拟器 (这是主力)
  29. // armeabi-v7a: 适配 2017 年以前的老旧手机 (为了兼容性建议保留)
  30. // x86 / x86_64: 彻底删除,M4 不需要,真机也不需要
  31. abiFilters 'arm64-v8a', 'armeabi-v7a'
  32. }
  33. }
  34. debug {
  35. // minifyEnabled true
  36. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
  37. }
  38. }
  39. gradle.projectsEvaluated {
  40. tasks.withType(JavaCompile).tap {
  41. configureEach {
  42. // options.compilerArgs << "-Xlint:deprecation"
  43. // options.compilerArgs << "-Xlint:unchecked"
  44. }
  45. }
  46. }
  47. useLibrary 'org.apache.http.legacy'
  48. namespace = 'com.usai.redant.raimage'
  49. compileOptions {
  50. sourceCompatibility JavaVersion.VERSION_11
  51. targetCompatibility JavaVersion.VERSION_11
  52. }
  53. }
  54. dependencies {
  55. // compile 'com.android.support:support-v4:18.0.0'
  56. // compile 'org.bouncycastle.bcprov-jdk15on.1.57.org.bouncycastle:bcprov-jdk15on:1.57'
  57. implementation 'androidx.appcompat:appcompat:1.6.1'
  58. api 'androidx.legacy:legacy-support-v4:1.0.0'
  59. api 'androidx.constraintlayout:constraintlayout:2.1.4'
  60. api 'androidx.recyclerview:recyclerview:1.3.0'
  61. api project(path: ':RAUtilsLibrary')
  62. implementation 'com.google.android.material:material:1.8.0'
  63. // implementation files('libs/core-2.3.0.jar')
  64. // implementation files('libs/bcprov-jdk15on-157.jar')
  65. // implementation files('libs/httpmime-4.1.1.jar')
  66. }
  67. //android {
  68. // useLibrary 'org.apache.http.legacy'
  69. // namespace 'com.usai.redant.raimage'
  70. // compileOptions {
  71. // sourceCompatibility JavaVersion.VERSION_11
  72. // targetCompatibility JavaVersion.VERSION_11
  73. // }
  74. //}