Fix android bundle abi

This commit is contained in:
problematicconsumer
2023-09-23 00:54:17 +03:30
parent 5beee2e70f
commit 0250884797

View File

@@ -22,7 +22,7 @@ if (flutterVersionName == null) {
}
def keystoreProperties = new Properties()
def keystorePropertiesFile=rootProject.file('release.properties')
def keystorePropertiesFile = rootProject.file('release.properties')
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
}
@@ -49,7 +49,6 @@ android {
}
defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "app.hiddify.com"
minSdkVersion 21
targetSdkVersion 33
@@ -57,13 +56,13 @@ android {
versionName flutterVersionName
multiDexEnabled true
}
splits {
abi {
enable true
reset()
include "x86_64", "armeabi-v7a", "arm64-v8a"
// Specifies that we do not want to also generate a universal APK that includes all ABIs.
universalApk true
}
}
@@ -72,13 +71,16 @@ android {
release {
keyAlias keystoreProperties['key.alias']
keyPassword keystoreProperties['key.password']
storeFile keystoreProperties['keystore.path']? file(keystoreProperties['keystore.path']): null
storeFile keystoreProperties['keystore.path'] ? file(keystoreProperties['keystore.path']) : null
storePassword keystoreProperties['keystore.password']
}
}
buildTypes {
release {
signingConfig signingConfigs.release
ndk {
abiFilters "x86_64", "armeabi-v7a", "arm64-v8a"
}
}
}
@@ -100,7 +102,7 @@ flutter {
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
implementation 'com.google.code.gson:gson:2.10.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.core:core-ktx:1.10.1'