From 40cdc566c8a5dd19c6fd32ef6801291d63039205 Mon Sep 17 00:00:00 2001 From: FooIbar <118464521+FooIbar@users.noreply.github.com> Date: Mon, 19 Dec 2022 09:28:57 +0800 Subject: [PATCH] Upload mapping files in ci --- .github/workflows/ci.yml | 7 +++++++ app/proguard-rules.pro | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b3fee3ef7..4168df56a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,3 +56,10 @@ jobs: with: name: x86-${{ github.sha }} path: app/build/outputs/apk/release/app-x86-release.apk + + - name: Update mapping + uses: actions/upload-artifact@v3 + with: + name: mapping-${{ github.sha }} + path: app/build/outputs/mapping/release/mapping.txt + retention-days: 5 diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 40dc408b0..6d916e3ea 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -16,8 +16,8 @@ -keep class androidx.viewpager.widget.ViewPager$LayoutParams { int position; } --renamesourcefileattribute +-keepattributes LineNumberTable,SourceFile +-renamesourcefileattribute SourceFile -repackageclasses -allowaccessmodification --mergeinterfacesaggressively -overloadaggressively