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

Simplify Android API checking #692

Merged
merged 11 commits into from
Sep 20, 2022
Merged

Simplify Android API checking #692

merged 11 commits into from
Sep 20, 2022

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented Sep 20, 2022

This PR removes the need for an extra dummy project to run Android lint. Instead, the JavaRosa gradle project can be conditionally configured as an Android Library (as opposed to a Java project) which allows Android tasks (such as lintDebug to be run against the code.

@seadowg seadowg marked this pull request as ready for review September 20, 2022 13:05
@lognaturel
Copy link
Member

That’s very nice! Did you do a quick sanity check to make sure it does fail as expected if using unsupported APIs?

@seadowg
Copy link
Member Author

seadowg commented Sep 20, 2022

That’s very nice! Did you do a quick sanity check to make sure it does fail as expected if using unsupported APIs?

Yup! For example, if desugaring is removed it will fail due to the stream() calls.

@lognaturel lognaturel merged commit 2b07ea9 into getodk:master Sep 20, 2022
@seadowg seadowg deleted the api-checker branch September 20, 2022 14:13
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

2 participants