build.gradle 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdk = 36
  4. // splits {
  5. // abi {
  6. // enable true
  7. // reset()
  8. // include 'armeabi-v7a'
  9. // universalApk true
  10. // }
  11. // }
  12. defaultConfig {
  13. applicationId "com.usai.ratradefiling"
  14. minSdk = 28
  15. targetSdk = 36
  16. versionCode 7
  17. versionName "1.18"
  18. ndk {
  19. // 只保留 ARM 架构
  20. // arm64-v8a: 适配所有新手机 + 你的 M4 模拟器 (这是主力)
  21. // armeabi-v7a: 适配 2017 年以前的老旧手机 (为了兼容性建议保留)
  22. // x86 / x86_64: 彻底删除,M4 不需要,真机也不需要
  23. abiFilters 'arm64-v8a', 'armeabi-v7a'
  24. }
  25. // testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  26. }
  27. buildTypes {
  28. release {
  29. minifyEnabled true
  30. // zipAlignEnabled true
  31. shrinkResources false
  32. proguardFiles 'proguard-project.txt'
  33. debuggable false
  34. }
  35. debug {
  36. minifyEnabled true
  37. shrinkResources false
  38. proguardFiles 'proguard-project.txt'
  39. }
  40. }
  41. namespace = 'com.usai.ratradefiling'
  42. compileOptions {
  43. targetCompatibility JavaVersion.VERSION_11
  44. sourceCompatibility JavaVersion.VERSION_11
  45. }
  46. gradle.projectsEvaluated {
  47. tasks.withType(JavaCompile).tap {
  48. configureEach {
  49. options.compilerArgs << "-Xlint:deprecation"
  50. options.compilerArgs << "-Xlint:unchecked"
  51. }
  52. }
  53. }
  54. }
  55. dependencies {
  56. // implementation fileTree(dir: "libs", include: ["*.jar"])
  57. // api '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. // implementation 'com.google.android.material:material:1.8.0'
  61. api 'androidx.appcompat:appcompat:1.7.0'
  62. api 'androidx.legacy:legacy-support-v4:1.0.0'
  63. api 'androidx.constraintlayout:constraintlayout:2.2.1'
  64. implementation 'com.google.android.material:material:1.12.0'
  65. // implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.18'
  66. // implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
  67. // api 'com.android.support:support-v4:27.1.0'
  68. //
  69. implementation project(path: ':RAUtilsLibrary')
  70. implementation project(path: ':CommonEditorLib')
  71. // implementation project(path: ':rapdflib')
  72. // implementation 'androidx.wear:wear:1.0.0'
  73. // compileOnly 'com.google.android.wearable:wearable:2.6.0'
  74. // testImplementation 'junit:junit:4.12'
  75. // androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  76. // androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  77. }