2025-09-25 16:19:06 +08:00
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
|
|
|
|
|
|
|
|
android {
|
|
|
|
|
|
compileSdk 35
|
|
|
|
|
|
|
|
|
|
|
|
namespace 'com.android.UniPlugin'
|
|
|
|
|
|
defaultConfig {
|
|
|
|
|
|
applicationId "com.android.UniPlugin"
|
|
|
|
|
|
minSdkVersion 21
|
|
|
|
|
|
targetSdkVersion 33 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效
|
|
|
|
|
|
|
2025-10-11 16:40:39 +08:00
|
|
|
|
versionCode 164
|
|
|
|
|
|
versionName "1.6.4"
|
2025-09-25 16:19:06 +08:00
|
|
|
|
multiDexEnabled true
|
|
|
|
|
|
ndk {
|
|
|
|
|
|
ndk {
|
|
|
|
|
|
//设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
|
|
|
|
|
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86","x86_64"
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
signingConfigs {
|
|
|
|
|
|
config {
|
|
|
|
|
|
keyAlias 'key0'
|
|
|
|
|
|
keyPassword '123456'
|
|
|
|
|
|
storeFile file('uniplugin.jks')
|
|
|
|
|
|
storePassword '123456'
|
|
|
|
|
|
v1SigningEnabled true
|
|
|
|
|
|
v2SigningEnabled true
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
|
|
release {
|
|
|
|
|
|
signingConfig signingConfigs.config
|
|
|
|
|
|
zipAlignEnabled false
|
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
|
}
|
|
|
|
|
|
debug {
|
|
|
|
|
|
signingConfig signingConfigs.config
|
|
|
|
|
|
zipAlignEnabled false
|
|
|
|
|
|
minifyEnabled false
|
|
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
//使用uniapp时,需复制下面代码
|
|
|
|
|
|
/*代码开始*/
|
|
|
|
|
|
aaptOptions {
|
|
|
|
|
|
additionalParameters '--auto-add-overlay'
|
|
|
|
|
|
//noCompress 'foo', 'bar'
|
|
|
|
|
|
ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
|
|
|
|
|
|
}
|
|
|
|
|
|
lint {
|
|
|
|
|
|
baseline = file("lint-baseline.xml")
|
|
|
|
|
|
}
|
|
|
|
|
|
compileOptions {
|
|
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
packagingOptions {
|
|
|
|
|
|
// 选择第一个匹配的文件(推荐)
|
|
|
|
|
|
pickFirst 'lib/arm64-v8a/libc++_shared.so'
|
|
|
|
|
|
// 如果其他 ABI 也存在冲突,添加对应路径
|
|
|
|
|
|
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
|
|
|
|
|
|
pickFirst 'lib/x86/libc++_shared.so'
|
|
|
|
|
|
jniLibs {
|
|
|
|
|
|
useLegacyPackaging true
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/*代码结束*/
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
|
main {
|
|
|
|
|
|
jniLibs.srcDirs = ['libs']
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
|
|
|
|
implementation fileTree(dir: 'libs', include: ['*.aar'])
|
|
|
|
|
|
|
|
|
|
|
|
/*uniapp所需库-----------------------开始*/
|
|
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
|
|
|
|
|
implementation 'com.facebook.fresco:fresco:1.13.0'
|
|
|
|
|
|
implementation "com.facebook.fresco:animated-gif:1.13.0"
|
|
|
|
|
|
/*uniapp所需库-----------------------结束*/
|
|
|
|
|
|
// 基座需要,必须添加
|
|
|
|
|
|
implementation 'com.github.bumptech.glide:glide:4.9.0'
|
|
|
|
|
|
implementation 'com.alibaba:fastjson:1.2.83'
|
|
|
|
|
|
implementation 'androidx.webkit:webkit:1.3.0'
|
|
|
|
|
|
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
|
|
|
|
|
|
implementation 'androidx.core:core:1.1.0'
|
|
|
|
|
|
implementation "androidx.fragment:fragment:1.1.0"
|
|
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
|
|
|
|
|
|
|
|
|
|
implementation project(':mylibrary')
|
|
|
|
|
|
// uts依赖
|
|
|
|
|
|
implementation "com.squareup.okhttp3:okhttp:3.12.12"
|
|
|
|
|
|
implementation "androidx.core:core-ktx:1.6.0"
|
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.0"
|
|
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:1.6.0"
|
|
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.8"
|
|
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.3.8"
|
|
|
|
|
|
implementation "com.github.getActivity:XXPermissions:18.0"
|
|
|
|
|
|
implementation 'com.google.android.material:material:1.5.0'
|
|
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
|
|
|
|
|
|
|
|
|
|
|
}
|