From 7c1d755f0db65ee6c84b9fd49b309f95283baacf Mon Sep 17 00:00:00 2001 From: NZ COVID Tracer App Date: Fri, 17 Dec 2021 10:46:50 +1300 Subject: [PATCH] Release 6.1.0 --- android/app/src/main/AndroidManifest.xml | 115 +-- android/app/src/main/res/values/styles.xml | 1 + android/build.gradle | 9 +- appcenter-post-clone.sh | 6 + ios/Podfile | 14 + ios/Podfile.lock | 44 +- ios/UniteAppRN.xcodeproj/project.pbxproj | 710 ++++++++++++------ ios/UniteAppRN/Entitlements.entitlements | 18 + ios/UniteAppRN/Entitlements_DEV.entitlements | 10 + .../Entitlements_DEVOPS.entitlements | 10 + .../Entitlements_ENF_Debug.entitlements | 18 + .../Entitlements_ENF_Release.entitlements | 18 + ios/UniteAppRN/Entitlements_TEST.entitlements | 10 + ios/UniteAppRN/Entitlements_UAT.entitlements | 18 + ios/WalletManager/WalletManager.h | 11 + ios/WalletManager/WalletManager.m | 56 ++ .../android/build.gradle | 3 + .../android/gradle.properties | 8 +- package.json | 12 +- packager/modulePaths.js | 7 - scripts/setenv.sh | 1 + setup.ts | 45 +- sonar-project.properties | 8 + specs/scanSpec.ts | 2 +- src/App.tsx | 3 + src/__snapshots__/config.spec.ts.snap | 1 + src/analytics/events.ts | 1 + src/assets/icons/export-diary.png | Bin 0 -> 1162 bytes src/assets/icons/export-diary@2x.png | Bin 0 -> 2446 bytes src/assets/icons/export-diary@3x.png | Bin 0 -> 3745 bytes src/assets/icons/import-diary.png | Bin 0 -> 1310 bytes src/assets/icons/import-diary@2x.png | Bin 0 -> 2737 bytes src/assets/icons/import-diary@3x.png | Bin 0 -> 4084 bytes src/assets/icons/share-diary.png | Bin 0 -> 1188 bytes src/assets/icons/share-diary@2x.png | Bin 0 -> 2336 bytes src/assets/icons/share-diary@3x.png | Bin 0 -> 3796 bytes src/assets/icons/vaccine-pass.png | Bin 0 -> 1511 bytes src/assets/icons/vaccine-pass@2x.png | Bin 0 -> 3145 bytes src/assets/icons/vaccine-pass@3x.png | Bin 0 -> 4956 bytes src/components/atoms/BulletItem.tsx | 1 + src/components/atoms/Button.tsx | 8 +- src/components/atoms/CloseButton.tsx | 6 +- src/components/atoms/DatePicker.tsx | 1 + src/components/atoms/DatePickerAndroid.tsx | 158 ++-- src/components/atoms/DatePickerIOS.tsx | 24 +- .../atoms/FormLocationConfirmField.tsx | 114 +++ src/components/atoms/ListPlaceHolder.tsx | 35 +- src/components/atoms/LocationIcon.tsx | 3 +- src/components/atoms/SearchBar.tsx | 9 +- src/components/atoms/Toast.tsx | 46 +- src/components/molecules/ActionSheet.tsx | 164 ++++ src/components/molecules/FormV2.tsx | 27 +- src/config.ts | 3 + src/db/entities/checkInItem.ts | 10 +- src/db/getLocationType.ts | 3 +- .../announcement/components/Announcement.tsx | 2 +- src/features/announcement/reducer.ts | 2 +- .../dashboard/assets/icons/vaccine-pass.png | Bin 0 -> 16370 bytes .../assets/icons/vaccine-pass@2x.png | Bin 0 -> 10667 bytes .../assets/icons/vaccine-pass@3x.png | Bin 0 -> 5119 bytes .../components/DashboardSaveLocationsInfo.tsx | 25 - .../components/DashboardVaccinePassInfo.tsx | 30 + src/features/dashboard/reducer.spec.ts | 2 +- src/features/dashboard/reducer.ts | 12 +- src/features/dashboard/selectors.ts | 4 +- src/features/dashboard/strings.ts | 6 +- src/features/dashboard/types.ts | 2 +- .../dashboard/views/DashboardList.tsx | 18 +- src/features/debugging/commands/copyEnvVar.ts | 1 + .../debugging/commands/copySessionLog.ts | 2 +- src/features/device/reducer.ts | 12 + src/features/device/selectors.ts | 10 + .../diary/components/DiaryEntryListItem.tsx | 128 +++- .../diary/components/DiarySectionHeader.tsx | 2 +- src/features/diary/events.ts | 3 + src/features/diary/hooks/useDiaryScreens.tsx | 16 +- src/features/diary/hooks/useDiarySections.tsx | 47 +- src/features/diary/hooks/useEntireDiary.tsx | 71 ++ src/features/diary/hooks/useStartDate.tsx | 27 + src/features/diary/mappers.ts | 69 +- src/features/diary/reducer.spec.ts | 62 ++ src/features/diary/reducer.ts | 82 +- src/features/diary/sagas/pagination.ts | 4 +- src/features/diary/sagas/shareDiary.spec.ts | 70 +- src/features/diary/sagas/shareDiary.ts | 88 +++ src/features/diary/sagas/shareDiary.tsx | 103 --- src/features/diary/screens.ts | 10 +- src/features/diary/selectors.ts | 5 + src/features/diary/strings.ts | 60 ++ src/features/diary/types.ts | 28 +- .../diary/views/AddManualDiaryEntry.tsx | 69 +- src/features/diary/views/Diary.tsx | 392 +++++++++- src/features/diary/views/DiaryEntry.tsx | 3 +- .../{profile => diary}/views/DiaryShared.tsx | 9 +- src/features/diary/views/EditDiaryEntry.tsx | 47 +- src/features/diary/views/ShareDiary.tsx | 120 +-- .../diary/views/ShareDiaryConfirm.tsx | 404 ++++++++++ src/features/diary/views/ShareDiaryList.tsx | 466 ++++++++++++ .../easterEgg/components/EasterEggOverlay.tsx | 6 + .../easterEgg/util/emoji_whitelist.ts | 3 + src/features/enf/strings.ts | 4 +- src/features/enf/views/ENFShare.tsx | 9 +- src/features/enfExposure/analytics.ts | 2 +- src/features/enfExposure/api.ts | 18 + .../enfExposure/hooks/useENFAlertCopy.ts | 2 +- .../hooks/useENFAlertDates.spec.ts | 2 +- .../enfExposure/hooks/useEnfAlertDates.ts | 2 +- .../enfExposure/sagas/updateENFAlert.spec.ts | 2 +- .../sagas/updateENFNotificationConfig.ts | 2 + src/features/enfExposure/selectors.ts | 2 +- src/features/exposure/api.ts | 6 +- .../BeenInContact/BeenInContact.tsx | 2 +- .../exposure/sagas/pollExposureEvents.ts | 6 +- src/features/exposure/service/mapEvent.ts | 2 +- .../locations/components/LocationList.tsx | 2 + src/features/locations/helper.ts | 9 + src/features/locations/screens.ts | 9 +- src/features/locations/strings.ts | 4 +- .../locations/views/PickSavedLocation.tsx | 14 +- .../locations/views/PlaceOrActivity.tsx | 168 +++-- src/features/migration/sagas/copyCheckIns.ts | 2 +- src/features/migration/sagas/copyMatches.ts | 2 +- src/features/nfc/LinkScan.tsx | 59 +- src/features/nfc/reducer.ts | 15 +- src/features/nfc/universalLinkHelper.spec.ts | 99 +++ src/features/nfc/universalLinkHelper.ts | 94 +++ .../reminder/components/ReminderCard.tsx | 2 +- src/features/reminder/reducer.ts | 4 + .../sagas/autoDismissInAppReminder.spec.ts | 14 + .../sagas/autoDismissInAppReminder.ts | 13 + .../reminder/sagas/cancelReminders.spec.ts | 19 + .../reminder/sagas/cancelReminders.ts | 5 +- src/features/reminder/sagas/index.ts | 4 +- .../sagas/toggleReminderEnabled.spec.ts | 13 +- .../reminder/sagas/toggleReminderEnabled.ts | 14 +- .../sagas/updateReminderConfig.spec.ts | 7 +- .../reminder/sagas/updateReminderConfig.ts | 2 +- .../reminder/service/getInAppReminders.ts | 2 +- .../service/getUpdatedInAppReminders.spec.ts | 2 +- .../service/getUpdatedInAppReminders.ts | 2 +- .../reminder/service/scheduleReminders.ts | 2 +- src/features/scan/helpers.ts | 22 + src/features/scan/strings.ts | 7 +- src/features/scan/views/Scan.tsx | 6 +- .../scan/views/VisitRecordedScreen.tsx | 93 ++- src/features/stats/hooks/useStatsSection.ts | 2 +- src/hooks/useToast.tsx | 14 +- src/lib/helpers.ts | 16 + .../__snapshots__/strings.spec.ts.snap | 136 +++- src/translations/strings.ts | 70 +- src/utils/checkInDate.ts | 5 +- src/views/TabNavigator.tsx | 4 +- yarn.lock | 70 +- 153 files changed, 4241 insertions(+), 1140 deletions(-) create mode 100644 ios/WalletManager/WalletManager.h create mode 100644 ios/WalletManager/WalletManager.m create mode 100644 sonar-project.properties create mode 100644 src/assets/icons/export-diary.png create mode 100644 src/assets/icons/export-diary@2x.png create mode 100644 src/assets/icons/export-diary@3x.png create mode 100644 src/assets/icons/import-diary.png create mode 100644 src/assets/icons/import-diary@2x.png create mode 100644 src/assets/icons/import-diary@3x.png create mode 100644 src/assets/icons/share-diary.png create mode 100644 src/assets/icons/share-diary@2x.png create mode 100644 src/assets/icons/share-diary@3x.png create mode 100644 src/assets/icons/vaccine-pass.png create mode 100644 src/assets/icons/vaccine-pass@2x.png create mode 100644 src/assets/icons/vaccine-pass@3x.png create mode 100644 src/components/atoms/FormLocationConfirmField.tsx create mode 100644 src/components/molecules/ActionSheet.tsx create mode 100644 src/features/dashboard/assets/icons/vaccine-pass.png create mode 100644 src/features/dashboard/assets/icons/vaccine-pass@2x.png create mode 100644 src/features/dashboard/assets/icons/vaccine-pass@3x.png delete mode 100644 src/features/dashboard/components/DashboardSaveLocationsInfo.tsx create mode 100644 src/features/dashboard/components/DashboardVaccinePassInfo.tsx create mode 100644 src/features/diary/hooks/useEntireDiary.tsx create mode 100644 src/features/diary/hooks/useStartDate.tsx create mode 100644 src/features/diary/sagas/shareDiary.ts delete mode 100644 src/features/diary/sagas/shareDiary.tsx rename src/features/{profile => diary}/views/DiaryShared.tsx (85%) create mode 100644 src/features/diary/views/ShareDiaryConfirm.tsx create mode 100644 src/features/diary/views/ShareDiaryList.tsx create mode 100644 src/features/locations/helper.ts create mode 100644 src/features/nfc/universalLinkHelper.spec.ts create mode 100644 src/features/nfc/universalLinkHelper.ts create mode 100644 src/features/reminder/sagas/autoDismissInAppReminder.spec.ts create mode 100644 src/features/reminder/sagas/autoDismissInAppReminder.ts create mode 100644 src/features/reminder/sagas/cancelReminders.spec.ts diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index d0182f3..002d229 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -1,13 +1,11 @@ - - - - - - - - + + + + + - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - + + + + - - - - - - - - - - - - - - - - - - - + android:windowSoftInputMode="adjustResize" + android:exported="true" + > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml index d70ffc5..cf8e6ef 100644 --- a/android/app/src/main/res/values/styles.xml +++ b/android/app/src/main/res/values/styles.xml @@ -2,6 +2,7 @@