Skip to content

Commit

Permalink
feat: split apks to different archs
Browse files Browse the repository at this point in the history
  • Loading branch information
GramingFoxTeam committed Jul 15, 2023
1 parent 58c5812 commit 4a800f2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,6 @@ jobs:
with:
generate_release_notes: true
tag_name: ${{ env.RELEASE_VERSION }}
files: androidApp/app/build/outputs/apk/debug/app-debug.apk
files: |
androidApp/app/build/outputs/apk/debug/app-armeabi-v7a-debug.apk
androidApp/app/build/outputs/apk/debug/app-arm64-v8a-debug.apk
15 changes: 10 additions & 5 deletions androidApp/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
targetSdk 26
compileSdk 33
versionCode 1
versionName "1.0"
versionName "1.0.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
Expand All @@ -20,10 +20,6 @@ android {
arguments "-DANDROID_STL=c++_shared"
}
}
ndk {
abiFilters "armeabi-v7a", "arm64-v8a"
}

}

buildTypes {
Expand All @@ -42,6 +38,15 @@ android {
version '3.18.1'
}
}

splits {
abi {
enable true
reset()
include "armeabi-v7a", "arm64-v8a"
universalApk false
}
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion androidApp/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="280dp"
android:layout_marginBottom="300dp"
android:text="Welcome to TizenTube."
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
Expand Down

0 comments on commit 4a800f2

Please sign in to comment.