forked from Path-Check/safeplaces-dct-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'official/develop' into self-assessment
* 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)
- Loading branch information
Showing
84 changed files
with
4,840 additions
and
543 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ | |
# | ||
# ENVFILE=.env.beta ./gradlew assembleRelease | ||
|
||
flag_better_location_status_checks=true | ||
# flag_google_import=true |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,6 @@ app/locales/*_old.json | |
|
||
# CocoaPods | ||
/ios/Pods/ | ||
yarn.lock | ||
.vscode/launch.json | ||
ios/Podfile.lock | ||
|
||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export default from '@react-native-community/async-storage/jest/async-storage-mock'; |
This file contains 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
This file contains 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
22 changes: 22 additions & 0 deletions
22
android/app/src/androidTest/java/org/pathcheck/covidsafepaths/storage/LocationTest.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.pathcheck.covidsafepaths.storage | ||
|
||
import org.junit.Assert.* | ||
import org.junit.Test | ||
|
||
class LocationTest { | ||
|
||
@Test | ||
fun northAndSouthPolesNotNearby() { | ||
assertFalse(Location.areLocationsNearby(90.0, 0.0, -90.0, 0.0)) | ||
} | ||
|
||
@Test | ||
fun newYorkAndSydneyNotNearby() { | ||
assertFalse(Location.areLocationsNearby(40.7128, -74.006, -33.8688, 151.2093)) | ||
} | ||
|
||
@Test | ||
fun spotsInKansasCityAreNearby() { | ||
assertTrue(Location.areLocationsNearby(39.09772, -94.582959, 39.097769, -94.582937)) | ||
} | ||
} |
Oops, something went wrong.