Add debug symbols to Android release (#2294)

This commit is contained in:
Bart Louwers
2024-04-18 20:05:36 +02:00
committed by GitHub
parent cca3adb375
commit a1bb9839db
3 changed files with 14 additions and 3 deletions

View File

@@ -142,6 +142,16 @@ jobs:
asset_name: MapLibreAndroid-release.aar
asset_content_type: application/zip
- name: Upload debug symbols
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: platform/android/build/debug-symbols.tar.gz
asset_name: debug-symbols.tar.gz
asset_content_type: application/gzip
- name: Clean release
run: |
rm -f ${{ steps.prepare_release.outputs.release_notes }}

View File

@@ -215,11 +215,12 @@ run-android-unit-test:
run-android-unit-test-%:
$(MLN_ANDROID_GRADLE) -Pmapbox.abis=none :MapLibreAndroid:testLegacyDebugUnitTest --info --tests "$*"
# Builds a release package of the Android SDK
# Builds a release package and .tar.gz with debug symbols of the Android SDK
.PHONY: apackage
apackage:
make android-lib-arm-v7 && make android-lib-arm-v8 && make android-lib-x86 && make android-lib-x86-64
$(MLN_ANDROID_GRADLE) -Pmapbox.abis=all assemble$(BUILDTYPE)
$(MLN_ANDROID_GRADLE) -Pmapbox.abis=all assembleDrawable$(BUILDTYPE)
tar -czvf build/debug-symbols.tar.gz -C MapLibreAndroid/build/intermediates/library_jni/drawableRelease/jni .
# Build test app instrumentation tests apk and test app apk for all abi's
.PHONY: android-ui-test

View File

@@ -1,4 +1,4 @@
VERSION_NAME=11.0.0-pre4
VERSION_NAME=11.0.0-pre6
# Only build native dependencies for the current ABI
# See https://code.google.com/p/android/issues/detail?id=221098#c20