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:
parent
59df0faedc
commit
32d028c50e
3 changed files with 2 additions and 9 deletions
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
|
|
@ -16,10 +16,6 @@ jobs:
|
||||||
if: ${{ github.repository == 'vector-im/element-x-android' }}
|
if: ${{ github.repository == 'vector-im/element-x-android' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Use JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
4
.github/workflows/nightly_manual.yml
vendored
4
.github/workflows/nightly_manual.yml
vendored
|
|
@ -13,10 +13,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- 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
|
- name: Use JDK 17
|
||||||
uses: actions/setup-java@v3
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
1
app/proguard-rules.pro
vendored
1
app/proguard-rules.pro
vendored
|
|
@ -6,6 +6,7 @@
|
||||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||||
|
|
||||||
# JNA
|
# JNA
|
||||||
|
-dontwarn java.awt.*
|
||||||
-keep class com.sun.jna.** { *; }
|
-keep class com.sun.jna.** { *; }
|
||||||
-keep class * implements com.sun.jna.** { *; }
|
-keep class * implements com.sun.jna.** { *; }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue