Skip to content

Commit f06a21c

Browse files
Fix for Google Play Console warning while uploading builds with GitHub Actions: "This App Bundle contains native code, and you've not uploaded debug symbols."
1 parent c68bc9e commit f06a21c

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/build-signed-bundle.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,5 +120,12 @@ jobs:
120120
name: bundles
121121
path: ./app/build/outputs/bundle/*/*-release.aab
122122

123+
- name: Upload Mapping File to GitHub Artifacts
124+
uses: actions/upload-artifact@v4
125+
with:
126+
name: mapping
127+
# Adjust path if using a different flavor (e.g., productionRelease)
128+
path: ./app/build/outputs/mapping/*/*-mapping.aab
129+
123130
- name: Check Build Status = ${{ job.status }}
124131
run: echo "Build status report=${{ job.status }}."

.github/workflows/deploy-to-open-track.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ jobs:
2626
name: bundles
2727
path: ${{ env.DOWNLOADS_PATH }}
2828

29+
- name: Download mapping from GitHub Artifacts
30+
uses: actions/download-artifact@v4
31+
with:
32+
name: mapping
33+
path: ${{ env.DOWNLOADS_PATH }}
34+
2935
- name: Download Release Notes from GitHub Artifacts
3036
uses: actions/download-artifact@v4
3137
with:
@@ -62,6 +68,8 @@ jobs:
6268
# Replace with your package name
6369
packageName: com.mobiledevpro.closetalk.app
6470
releaseFiles: ${{ env.AAB_FILE }}
71+
# Upload the mapping file
72+
mappingFile: ${{ env.DOWNLOADS_PATH }}/mapping.txt
6573
# Can be 'internal', 'alpha', 'beta', or 'production', or 'internalsharing'
6674
track: beta
6775
# Optional: 'completed', 'draft', 'inProgress', or 'halted'

app/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ android {
7474
configure<CrashlyticsExtension> {
7575
mappingFileUploadEnabled = true
7676
}
77+
78+
// This packs native symbols into the AAB, allowing Google Play to symbolicate native crashes
79+
ndk {
80+
debugSymbolLevel = "full"
81+
}
7782
}
7883
}
7984

0 commit comments

Comments
 (0)