Skip to content

Commit 7431cfc

Browse files
graycreateclaude
andcommitted
feat: add ReTrace mapping file upload to Google Play Console
- Include mapping.txt in release-bundle artifact during build - Add mapping file detection in upload workflow - Configure mappingFile parameter for both Google Play upload steps This enables: - Automatic ReTrace mapping file upload to Google Play Console - Proper crash stack trace deobfuscation for minified releases - Better crash diagnostics for production issues 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f750cda commit 7431cfc

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ jobs:
183183
uses: actions/upload-artifact@v4
184184
with:
185185
name: release-bundle
186-
path: app/build/outputs/bundle/**/*.aab
186+
path: |
187+
app/build/outputs/bundle/**/*.aab
188+
app/build/outputs/mapping/release/mapping.txt
187189
retention-days: 30
188190

189191
release:
@@ -290,6 +292,15 @@ jobs:
290292
echo "No debug symbols found"
291293
fi
292294
295+
# Look for ProGuard/R8 mapping file
296+
MAPPING_PATH=$(find release-artifacts -name "mapping.txt" 2>/dev/null | head -1)
297+
if [ -n "$MAPPING_PATH" ]; then
298+
echo "mapping_path=$MAPPING_PATH" >> $GITHUB_OUTPUT
299+
echo "Found ReTrace mapping file at: $MAPPING_PATH"
300+
else
301+
echo "No ReTrace mapping file found"
302+
fi
303+
293304
- name: Determine release track and status
294305
id: release-config
295306
run: |
@@ -331,6 +342,7 @@ jobs:
331342
track: ${{ steps.release-config.outputs.track }}
332343
status: ${{ steps.release-config.outputs.status }}
333344
debugSymbols: ${{ steps.find-files.outputs.symbols_path }}
345+
mappingFile: ${{ steps.find-files.outputs.mapping_path }}
334346
whatsNewDirectory: whatsnew/
335347
continue-on-error: true
336348
id: upload-with-symbols
@@ -344,6 +356,7 @@ jobs:
344356
releaseFiles: ${{ steps.find-files.outputs.aab_path }}
345357
track: ${{ steps.release-config.outputs.track }}
346358
status: ${{ steps.release-config.outputs.status }}
359+
mappingFile: ${{ steps.find-files.outputs.mapping_path }}
347360
whatsNewDirectory: whatsnew/
348361

349362
- name: Play Store Upload Summary

0 commit comments

Comments
 (0)