Skip to content

Commit

Permalink
[core] Include additional architectures and universal APK
Browse files Browse the repository at this point in the history
  • Loading branch information
jm2097 committed May 7, 2023
1 parent c17b8b6 commit d862ac1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/release_apks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "v*.*.*"
- "v*.*.*-stable"
- "v*.*.*-alpha"
- "v*.*.*-beta"
- "v*.*.*-rc.*"
Expand All @@ -27,35 +28,23 @@ jobs:

- name: Rename APKs
run: |
mv build/app/outputs/flutter-apk/app-release.apk build/app/outputs/flutter-apk/xsighub-release-${{ github.ref_name }}.apk
mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk build/app/outputs/flutter-apk/xsighub-armeabi-v7a-release-${{ github.ref_name }}.apk
mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk build/app/outputs/flutter-apk/xsighub-arm64-v8a-release-${{ github.ref_name }}.apk
mv build/app/outputs/flutter-apk/app-x86_64-release.apk build/app/outputs/flutter-apk/xsighub-x86_64-release-${{ github.ref_name }}.apk
mv build/app/outputs/flutter-apk/app-x86-release.apk build/app/outputs/flutter-apk/xsighub-x86-release-${{ github.ref_name }}.apk
- name: Create Release and Upload APKs
uses: softprops/action-gh-release@v1
with:
files: |
build/app/outputs/flutter-apk/xsighub-release-${{ github.ref_name }}.apk
build/app/outputs/flutter-apk/xsighub-armeabi-v7a-release-${{ github.ref_name }}.apk
build/app/outputs/flutter-apk/xsighub-arm64-v8a-release-${{ github.ref_name }}.apk
build/app/outputs/flutter-apk/xsighub-x86_64-release-${{ github.ref_name }}.apk
build/app/outputs/flutter-apk/xsighub-x86-release-${{ github.ref_name }}.apk
draft: false
prerelease: ${{ contains(github.ref_name, '-alpha') || contains(github.ref_name, '-beta') || contains(github.ref_name, '-rc') }}
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Update CHANGELOG
# uses: stefanzweifel/changelog-updater-action@v1.2.0
# id: "changelog-updater"
# with:
# latest-version: ${{ github.event.release.tag_name }}
# release-notes: ${{ github.event.release.body }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: Commit updated CHANGELOG
# uses: stefanzweifel/git-auto-commit-action@v4
# with:
# branch: ${{ github.event.release.target_commitish }}
# commit_message: Update CHANGELOG - ${{ github.ref_name }}
# file_pattern: CHANGELOG.md
9 changes: 9 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ android {
signingConfig signingConfigs.debug
}
}

splits {
abi {
enable true
reset()
include 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
universalApk true
}
}
}

flutter {
Expand Down

0 comments on commit d862ac1

Please sign in to comment.