apply plugin: 'com.android.application' android { // splits { // abi { // enable true // reset() // include 'armeabi-v7a',"arm64-v8a" // universalApk true // } // }333 compileSdk = 36 defaultConfig { applicationId "com.usai.redant.raimage" minSdk = 28 targetSdk = 36 versionCode 16 versionName "1.28.58162" // ndk.abiFilters 'armeabi-v7a',"arm64-v8a" } buildTypes { release { minifyEnabled true // zipAlignEnabled true shrinkResources = false proguardFiles 'proguard-project.txt' ndk { // 只保留 ARM 架构 // arm64-v8a: 适配所有新手机 + 你的 M4 模拟器 (这是主力) // armeabi-v7a: 适配 2017 年以前的老旧手机 (为了兼容性建议保留) // x86 / x86_64: 彻底删除,M4 不需要,真机也不需要 abiFilters 'arm64-v8a', 'armeabi-v7a' } } debug { // minifyEnabled true // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt' } } gradle.projectsEvaluated { tasks.withType(JavaCompile).tap { configureEach { // options.compilerArgs << "-Xlint:deprecation" // options.compilerArgs << "-Xlint:unchecked" } } } useLibrary 'org.apache.http.legacy' namespace = 'com.usai.redant.raimage' compileOptions { sourceCompatibility JavaVersion.VERSION_11 targetCompatibility JavaVersion.VERSION_11 } } dependencies { // compile 'com.android.support:support-v4:18.0.0' // compile 'org.bouncycastle.bcprov-jdk15on.1.57.org.bouncycastle:bcprov-jdk15on:1.57' implementation 'androidx.appcompat:appcompat:1.6.1' api 'androidx.legacy:legacy-support-v4:1.0.0' api 'androidx.constraintlayout:constraintlayout:2.1.4' api 'androidx.recyclerview:recyclerview:1.3.0' api project(path: ':RAUtilsLibrary') implementation 'com.google.android.material:material:1.8.0' // implementation files('libs/core-2.3.0.jar') // implementation files('libs/bcprov-jdk15on-157.jar') // implementation files('libs/httpmime-4.1.1.jar') } //android { // useLibrary 'org.apache.http.legacy' // namespace 'com.usai.redant.raimage' // compileOptions { // sourceCompatibility JavaVersion.VERSION_11 // targetCompatibility JavaVersion.VERSION_11 // } //}