diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cc22619..8d0d42b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -287,6 +287,9 @@ jobs: { echo "Built against \`com.shimmerresearch:shimmerdriver\` and \`com.shimmerresearch:shimmerbluetoothmanager\` **$DRIVER** ([API_v$DRIVER]($driver_url)). Add both, at that version, to your app's dependencies." echo + # The driver's JNA is desktop-only; its two jars clash on META-INF/AL2.0 in an Android app. + echo "Exclude \`net.java.dev.jna\` from both, or the app fails packaging with \"2 files found with path 'META-INF/AL2.0'\". The exclusions this library builds with are in [ShimmerAndroidInstrumentDriver/build.gradle]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/blob/$TAG/ShimmerAndroidInstrumentDriver/build.gradle)." + echo gh api "repos/$GITHUB_REPOSITORY/releases/generate-notes" "${args[@]}" --jq .body } > notes.md gh release create "$TAG" release-assets/* \ diff --git a/ShimmerAndroidInstrumentDriver/build.gradle b/ShimmerAndroidInstrumentDriver/build.gradle index 6592508a..10abd3f2 100644 --- a/ShimmerAndroidInstrumentDriver/build.gradle +++ b/ShimmerAndroidInstrumentDriver/build.gradle @@ -88,6 +88,9 @@ allprojects { // excluding org.json which is provided by Android exclude group: 'io.netty' exclude group: 'com.google.protobuf' + // JNA (in the driver since 0.11.8_beta) is for the desktop USB debug listeners only; on + // Android its two jars clash on META-INF/AL2.0 and fail every app's packaging. + exclude group: 'net.java.dev.jna' exclude group: 'org.apache.commons.math' } @@ -96,6 +99,9 @@ allprojects { // excluding org.json which is provided by Android exclude group: 'io.netty' exclude group: 'com.google.protobuf' + // JNA (in the driver since 0.11.8_beta) is for the desktop USB debug listeners only; on + // Android its two jars clash on META-INF/AL2.0 and fail every app's packaging. + exclude group: 'net.java.dev.jna' } } }