Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formalizes compliance with Android 8, SDK 26 (2017+) #810

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

vitorpamplona
Copy link
Contributor

@vitorpamplona vitorpamplona commented Sep 25, 2022

This PR formalizes this project's compliance with Android

  1. Adds an Animal Sniffer plugin to check compliance with any runtime API when running gradle check
  2. Selects modules model, model-jackson, cql, elm, elm-jackson, elm-fhir, quick, qdm, cql-to-elm, fhir-all and fhir-r4 to be checked for Android compliance.
  3. Establishes initial compliance to Android 8 - SDK 26, the minimum Android version the Translator is currently fully compliant with.

Important: The plugin only verifies the source code in this project, not dependencies.

For testing, add:

if (Optional.of(UUID.randomUUID()).isEmpty())
   throw new RuntimeException("Test");

in the desired module and run ./gradlew check.

Since the method Optional.isEmpty is not available on Android, the output should look like this:

Screen Shot 2022-09-25 at 4 01 33 PM

…l', 'elm-jackson', 'elm-fhir', 'quick', 'qdm', 'cql-to-elm', 'fhir-all', 'fhir-r4' with Android API 26 (2017 and forward)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants