From edd593a8130dbe17ae5e0ac7882d4c8da6d8e7b5 Mon Sep 17 00:00:00 2001 From: James Newman Date: Wed, 27 May 2026 15:44:40 -0400 Subject: [PATCH 1/2] fix: pin android-core upper bound to prevent 6.0.0-rc.1 pull MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The open-ended `+` range resolves to the highest available version on Maven Central — now `6.0.0-rc.1` (published 2026-05-22). 6.x removed deprecated symbols, breaking standalone plugin builds. See mParticle/mparticle-android-sdk#710 for the broader incident. Co-Authored-By: Claude Opus 4.7 (1M context) --- plugin/src/android/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugin/src/android/build.gradle b/plugin/src/android/build.gradle index 7145b2d..8f7bc28 100644 --- a/plugin/src/android/build.gradle +++ b/plugin/src/android/build.gradle @@ -20,11 +20,13 @@ repositories { dependencies { compileOnly("org.apache.cordova:framework:10.1.2") - compileOnly("com.mparticle:android-core:+") + // Bounded range avoids resolving to 6.0.0-rc.1+ on Maven Central, which + // removed deprecated symbols this plugin relies on. See mparticle-android-sdk#710. + compileOnly("com.mparticle:android-core:[5.0,6.0)") testImplementation("junit:junit:4.13.2") testImplementation("org.json:json:20220320") testImplementation("org.mockito:mockito-core:4.5.1") testImplementation("org.apache.cordova:framework:10.1.2") - testImplementation("com.mparticle:android-core:+") + testImplementation("com.mparticle:android-core:[5.0,6.0)") } From 88126394e07f8c459623e2c4bf7c56b7a97dbe9a Mon Sep 17 00:00:00 2001 From: Nickolas Dimitrakas Date: Wed, 27 May 2026 16:47:42 -0400 Subject: [PATCH 2/2] fix(ci): bump Android Unit Tests job from JDK 11 to JDK 17 android-core 5.79.0 (resolved by the [5.0,6.0) range) is compiled with Java 17 (class file version 61.0). Running the unit-test job on JDK 11 (class file version 55.0) causes a "bad class file" error at compile time. Aligns the android-test job with the example-android job which already uses JDK 17 successfully. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b040807..ff2d306 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -42,11 +42,11 @@ jobs: steps: - name: Checkout Branch uses: actions/checkout@v6.0.2 - - name: "Install JDK 11" + - name: "Install JDK 17" uses: actions/setup-java@v5 with: distribution: zulu - java-version: 11 + java-version: 17 - name: Install NPM uses: actions/setup-node@v6 - name: NPM Build