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

Exclude newer version of commons-io used in javarosa #5181

Merged
merged 1 commit into from
Jul 8, 2022

Conversation

grzesiek2010
Copy link
Member

@grzesiek2010 grzesiek2010 commented Jul 8, 2022

Closes #5178

The problem was that in Javarosa we merged getodk/javarosa#688 which added a new dependency commons-io:commons-io:2.11.0. This dependency became automatically available in Collect and caused conflicts since the version we use is 2.5 and we can't use a newer one, see: #4158

What has been done to verify that this works as intended?

I've verified that the crash does not occur anymore on Android 5.

Why is this the best possible solution? Were any other approaches considered?

I could also downgrade commons-io used in Javarosa to the version used in Collect and then maybe even remove it from Collect but I think those two project should have separate dependencies.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

This should just fix the issue on Android 5 and have no side effects.

Do we need any specific form for testing your changes? If so, please attach one.

No.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

No.

Before submitting this PR, please make sure you have:

  • run ./gradlew checkAll and confirmed all checks still pass OR confirm CircleCI build passes and run ./gradlew connectedDebugAndroidTest locally.
  • verified that any code or assets from external sources are properly credited in comments and/or in the about file.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

@lognaturel
Copy link
Member

That’s annoying!! We have an Android version check just for this in JR. I’m surprised it didn’t catch this.

Maybe we should use the same version in JR instead?

@grzesiek2010
Copy link
Member Author

Maybe we should use the same version in JR instead?

I thought about this but to me my current solution is better. If javarosa can use the newest version I don't think we should downgrade it.

@lognaturel
Copy link
Member

I guess because JavaRosa doesn't make use of any part of the API that is out of bounds for Collect, we're ok for now. And if we do try to use an API we can't use in Collect, it's at that point that the JR Android check will catch it.

Ok, works for me!

@lognaturel lognaturel merged commit d40f330 into getodk:master Jul 8, 2022
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.

Collect crashes when trying to Configure project with QR code or Entering Get Blank Form on Android 5.1.
2 participants