Fix android bundle abi
This commit is contained in:
@@ -22,7 +22,7 @@ if (flutterVersionName == null) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def keystoreProperties = new Properties()
|
def keystoreProperties = new Properties()
|
||||||
def keystorePropertiesFile=rootProject.file('release.properties')
|
def keystorePropertiesFile = rootProject.file('release.properties')
|
||||||
if (keystorePropertiesFile.exists()) {
|
if (keystorePropertiesFile.exists()) {
|
||||||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
||||||
}
|
}
|
||||||
@@ -49,7 +49,6 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
|
|
||||||
applicationId "app.hiddify.com"
|
applicationId "app.hiddify.com"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 33
|
targetSdkVersion 33
|
||||||
@@ -57,28 +56,31 @@ android {
|
|||||||
versionName flutterVersionName
|
versionName flutterVersionName
|
||||||
multiDexEnabled true
|
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.
|
splits {
|
||||||
universalApk true
|
abi {
|
||||||
}
|
enable true
|
||||||
|
reset()
|
||||||
|
include "x86_64", "armeabi-v7a", "arm64-v8a"
|
||||||
|
|
||||||
|
universalApk true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
signingConfigs {
|
signingConfigs {
|
||||||
release {
|
release {
|
||||||
keyAlias keystoreProperties['key.alias']
|
keyAlias keystoreProperties['key.alias']
|
||||||
keyPassword keystoreProperties['key.password']
|
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']
|
storePassword keystoreProperties['keystore.password']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
release {
|
release {
|
||||||
signingConfig signingConfigs.release
|
signingConfig signingConfigs.release
|
||||||
|
ndk {
|
||||||
|
abiFilters "x86_64", "armeabi-v7a", "arm64-v8a"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -86,13 +88,13 @@ android {
|
|||||||
viewBinding true
|
viewBinding true
|
||||||
aidl true
|
aidl true
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
android.applicationVariants.all { variant ->
|
android.applicationVariants.all { variant ->
|
||||||
variant.outputs.each { output ->
|
variant.outputs.each { output ->
|
||||||
output.versionCodeOverride = android.defaultConfig.versionCode
|
output.versionCodeOverride = android.defaultConfig.versionCode
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
flutter {
|
flutter {
|
||||||
@@ -100,7 +102,7 @@ flutter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
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 'com.google.code.gson:gson:2.10.1'
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||||
implementation 'androidx.core:core-ktx:1.10.1'
|
implementation 'androidx.core:core-ktx:1.10.1'
|
||||||
|
|||||||
Reference in New Issue
Block a user