Skip to content

Commit

Permalink
Merge pull request #504 from Chilledheart/android_split_apk_packages
Browse files Browse the repository at this point in the history
Android split apk packages
  • Loading branch information
Chilledheart authored Dec 6, 2023
2 parents 19c4579 + 0869e0e commit 1adaa6d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 1 addition & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.android.tools.build:gradle:7.4.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Expand All @@ -26,7 +26,6 @@ allprojects {
}

ext {
abiFilters = "x86_64"
minSdkVersion = 24
targetSdkVersion = 30
compileSdkVersion = 30
Expand Down
2 changes: 1 addition & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Jul 15 09:20:22 BST 2023
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
12 changes: 12 additions & 0 deletions android/yass/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// https://developer.android.com/build/configure-apk-splits
splits {
abi {
enable true
// Resets the list of ABIs for Gradle to create APKs for to none.
reset()
// Specifies a list of ABIs for Gradle to create APKs for.
include "x86", "x86_64", "armeabi-v7a", "arm64-v8a"
// Specifies that you don't want to also generate a universal APK that includes all ABIs.
universalApk false
}
}
}

task copyTask {
Expand Down

0 comments on commit 1adaa6d

Please sign in to comment.