Skip to content

Commit

Permalink
Upload debug symbols to play store.
Browse files Browse the repository at this point in the history
  • Loading branch information
jigar-f committed Dec 11, 2024
1 parent 3c0222e commit 777cb3d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
if: matrix.platform == 'macos'
with:
node-version: 18

- name: Install macOS dependencies
if: matrix.platform == 'macos'
run: |
Expand Down Expand Up @@ -289,12 +289,15 @@ jobs:

- name: Build Flutter app (Android)
if: matrix.platform == 'android'
run: make ${{ matrix.platform }}-${{ matrix.target }}-release
env:
VERSION: ${{ env.version }}
run: |
make ${{ matrix.platform }}-${{ matrix.target }}-release
@echo "Generating debug symbols"
make debug-symbols
- name: Build Flutter app
if: matrix.platform != 'windows' && matrix.platform != 'android'
if: matrix.platform != 'windows' && matrix.platform != 'android'
run: make ${{ matrix.platform }}-release
env:
VERSION: ${{ env.version }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ jobs:
packageName: org.getlantern.lantern
releaseFiles: lantern-installer.aab
track: beta
debugSymbols: ${{ github.workspace }}/build/outputs/debug-symbols/debug-symbols.zip
mappingFile: ${{ github.workspace }}/build/app/outputs/mapping/prodPlay/mapping.txt


- name: Upload Android App bundle to Play Store (production)
if: needs.set-version.outputs.prefix == 'lantern-installer' && (needs.determine-platform.outputs.platform == 'android' || needs.determine-platform.outputs.platform == 'all')
Expand All @@ -172,6 +175,8 @@ jobs:
packageName: org.getlantern.lantern
releaseFiles: lantern-installer.aab
track: production
debugSymbols: ${{ github.workspace }}/build/outputs/debug-symbols/debug-symbols.zip
mappingFile: ${{ github.workspace }}/build/app/outputs/mapping/prodPlay/mapping.txt

- name: Grant private modules access
run: git config --global url."https://${{ secrets.CI_PRIVATE_REPOS_GH_TOKEN }}:[email protected]/".insteadOf "https://github.com/"
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,11 @@ $(MOBILE_BUNDLE): $(MOBILE_SOURCES) $(GO_SOURCES) $(MOBILE_ANDROID_LIB) require-

android-debug: $(MOBILE_DEBUG_APK)


debug-symbols:
@echo "Generating debug symbols for Android..."
cd android && ./gradlew zipDebugSymbols

set-version:
@echo "Setting the CFBundleShortVersionString to $(VERSION)"
@cd ios && agvtool new-marketing-version $(VERSION)
Expand Down

0 comments on commit 777cb3d

Please sign in to comment.