Browse Source

Fix: JNA issue in release mode (#335)

* Restore checkout config for nightly workflows.

* Add missing proguard config line for JNA.
test/jme/compound-poc
Jorge Martin Espinosa 1 year ago committed by GitHub
parent
commit
deb14865c6
  1. 4
      .github/workflows/nightly.yml
  2. 4
      .github/workflows/nightly_manual.yml
  3. 3
      app/proguard-rules.pro

4
.github/workflows/nightly.yml

@ -16,10 +16,6 @@ jobs: @@ -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:

4
.github/workflows/nightly_manual.yml

@ -13,10 +13,6 @@ jobs: @@ -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:

3
app/proguard-rules.pro vendored

@ -6,6 +6,7 @@ @@ -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 @@ @@ -23,4 +24,4 @@
}
-keepclassmembers class <1>.<2> {
<1>.<2>$Companion Companion;
}
}

Loading…
Cancel
Save