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

SAF-210 - Fix debug build error with apache commons-io lib #775

Merged
merged 9 commits into from
May 9, 2020

Conversation

efalkner
Copy link
Collaborator

@efalkner efalkner commented May 7, 2020

…ignoring apache commons lib

Description:

On the latest develop build (as of May 6, 2020), installing a debug (Android) APK would result in the app throwing a "red box error" (see attached image), that indicated we were missing a crucial dependency. In a release build, this would manifest as the app crashing.

This fix patches the @mauron85/background-geolocation-android module, per the pull request here: mauron85/background-geolocation-android#31, using patch-package, to address its conflicting apache commons dependency, rather than excluding that dependency for the whole project.

Linked issues:

Screenshots:

Screen Shot 2020-05-06 at 3 44 17 PM

How to test:

Install an APK and ensure that the app does not crash on loading, or display a red box error (see attached image)

Copy link
Contributor

@tstirrat tstirrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. Hopefully there's a way to make the patch cleaner and isolated from the other.

@tstirrat tstirrat changed the title SAF-210 - add a clean command for yarn for convenience. patch library and stop … SAF-210 - Fix debug build error with apache commons-io lib May 9, 2020
tstirrat
tstirrat previously approved these changes May 9, 2020
Copy link
Contributor

@tstirrat tstirrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reverted yarn.lock because I don't think that is necessary and all those updates to individual deps should be isolated.

Copy link
Contributor

@tstirrat tstirrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the apk and it works! no red error

@tstirrat tstirrat merged commit 4622fd1 into develop May 9, 2020
@tstirrat tstirrat deleted the SAF-210_bug/should_not_exclude_commons_io branch May 9, 2020 18:16
aputinski pushed a commit to safe-paths-contrib/covid-safe-paths that referenced this pull request May 11, 2020
* official/develop:
  Fix EULA modal close icon color (Path-Check#792)
  feat(i18n) Language updates, May 10 (Path-Check#790)
  feat(GPS) Store Location Data in an encrypted Realm DB (Path-Check#788)
  Enable location status checks in testing build (Path-Check#787)
  fix(Onboarding) Fix EULA links to open in device browser (Path-Check#783)
  chore(Build) Fix debug build error with apache commons-io lib (Path-Check#775, SAF-210)
  chore(Testing) snapshot tests for LocationTracking,  main/* (Path-Check#785)
  Only render mayo clinic link when language is english (Path-Check#782)
  fix(UX) Fix pulse alignment on Android devices with “notch” (Path-Check#771)
  fix(Location) Improve location "tracking" status checks (Path-Check#749)
  Fix text crop in About screen (Path-Check#774)
  [iOS] add missing languages (Path-Check#773)
monaabd27 pushed a commit to monaabd27/covid-safe-paths that referenced this pull request May 18, 2020
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.

2 participants