Fix: JNA issue in release mode (#335)

* Restore checkout config for nightly workflows.

* Add missing proguard config line for JNA.
This commit is contained in:
Jorge Martin Espinosa
2023-04-18 13:31:25 +02:00
committed by GitHub
parent 59df0faedc
commit 32d028c50e
3 changed files with 2 additions and 9 deletions

View File

@@ -16,10 +16,6 @@ jobs:
if: ${{ github.repository == 'vector-im/element-x-android' }}
steps:
- uses: actions/checkout@v3
with:
# Ensure we are building the branch and not the branch after being merged on develop
# https://github.com/actions/checkout/issues/881
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
- name: Use JDK 17
uses: actions/setup-java@v3
with:

View File

@@ -13,10 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
# Ensure we are building the branch and not the branch after being merged on develop
# https://github.com/actions/checkout/issues/881
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
- name: Use JDK 17
uses: actions/setup-java@v3
with:

View File

@@ -6,6 +6,7 @@
# http://developer.android.com/guide/developing/tools/proguard.html
# JNA
-dontwarn java.awt.*
-keep class com.sun.jna.** { *; }
-keep class * implements com.sun.jna.** { *; }
@@ -23,4 +24,4 @@
}
-keepclassmembers class <1>.<2> {
<1>.<2>$Companion Companion;
}
}