Merged
Conversation
Switch android-test module from JVM tests to androidTest with Gradle Managed Devices (ATD API 30). Reuses existing unit tests from src/test/java/api/ via sourceSets. CI workflow boots headless emulator via pixel2api30DebugAndroidTest to catch ICU regex incompatibilities.
Add gson, gson-fire, okhttp, swagger-annotations as implementation deps so they're packaged into the test APK. Use exclude instead of include to filter out integration test packages that need API tokens.
…orkflow name: field already says "Java CI with Maven" which still fits since it includes both Maven and Android test jobs.
…and wrapper (replaces cache: 'gradle' on setup-java) 2. actions/cache@v4 for AVD — caches ~/.android/avd/* between runs so the ATD system image isn't re-downloaded First run populates caches. Subsequent runs skip the ~800MB system image download and AVD creation.
ivankamkin
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #105 —
GenerateApi.generate()crashes on Android withPatternSyntaxExceptiondue to unescaped}inreplaceAllregex pattern.Changes
replaceAll()(regex) withreplace()(literal) inGenerateApi.java:74GenerateApi,RecognizeApi, andScanApiwith JaCoCo coverage enforcementci.ymlwithneeds: testso it only runs after Maven tests passgradle/actions/setup-gradle@v4and AVD cache for faster Android CI runsAndroid test setup
The
android-test/module reuses existing unit tests fromsrc/test/java/api/via GradlesourceSets, running them as instrumented tests on a Pixel 2 API 30 ATD emulator managed by Gradle.