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

Reverse Sync Release 0.11.0 into develop #1324

Closed
wants to merge 49 commits into from
Closed

Conversation

vijay151096
Copy link
Contributor

No description provided.

KiruthikaJeyashankar and others added 30 commits December 26, 2023 14:58
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: vijay151096 <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
fix: cancel download popup & tuvali version
[Release 03-01-2024] - Fix UI issues and device specific issues
Revert "downgrade tuvali version to 0.4.6 for qa testing (#1149)"
[Release 24-01-2024]- Sunbird Integration and GenderMag Issues
…stop in the kan langugage in one of the help page question

Signed-off-by: PuBHARGAVI <[email protected]>
[Release 01-02-2024] User data backup and restore and Gender Mag issues
[INJI-766] remove backupAndRestore variable from env file
…-2024" (#1242)

This reverts commit 6de62fc, reversing
changes made to f63445f.

Signed-off-by: PuBHARGAVI <[email protected]>
* [INJIMOB-683]: add testid for missed vc field (#1226)

* [INJIMOB-683]: add testid for missed vc field

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-683]: add testidprops for missed vc field

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-683]: add testidprops for missed vc field

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-770]: parse date received in the vc's (#1225)

* [INJIMOB-770]: parse date received in the vc's

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-770]: parse date received in the vc's

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>

* downgrade cocoapods version (#1231)

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* Use latest cocoapods version (#1236)

* downgrade cocoapods version

Signed-off-by: adityankannan-tw <[email protected]>

* use latest cocoapods version

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
…backup

[INJIMOB-834] ignore corrupted VC while performing backup
* [INJIMOB-752] - Added basic backup and restore flow for iCloud

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] show proceed screen based on stored value

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] fetch last backup details of iCloud

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] show permision required screen when not signed in on iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] retry to sync unsynced file if exists while fetching last backup details

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added sync and open settings

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - Add missing translations and refactor

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-834] ignore corrupted VC while performing backup (#1253)

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove backup and restore toggle

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] sync style of newLabel in purple and default theme

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove debug logs

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] rename file googleCloudUtils to CloudBackupAndRestoreUtils

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] return no backup faile error when backupfiles list from cloud is empty

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] add initail state in downloadingCredential to fix warning

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added delayed visibility for backup screen

Signed-off-by: Sreenadh S <[email protected]>

---------

Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>
* [INJI-787] add bootstrap state for restarting restore ops

Notes:
- all operations depend on the state of the $DOCUMENT_DIR/inji/backup/
  directory contents and not on the state of the MMKV DB

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJI-787] conditional restore on restart of restore

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] fix recent file finder code

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] add vc remove logic for partial restore

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] refactor, ACK reviews, rm dead condition

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] remove console.logs

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] remove irrelevant TODOs

Signed-off-by: Harsh Vardhan <[email protected]>

---------

Signed-off-by: Harsh Vardhan <[email protected]>
[Internal-release-13 02 2024]: Sunbird Integration & Data Backup and Restore Functionality
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
PuBHARGAVI and others added 19 commits February 19, 2024 14:31
…received vc is tampered or when the vc is not stored properly (#1271)

* [INJIMOB-834] ignore corrupted VC while performing backup (#1253)

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-837] update ios version and bundle id (#1256)

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* INJIMOB - 837 - Update developer team id to match profiles (#1258)

* [INJIMOB-837] update ios version and bundle id

Signed-off-by: adityankannan-tw <[email protected]>

* [INJIMOB-837] update the developer team to match profiles

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* Inji 752 backup to iCloud (#1251)

* [INJIMOB-760]: update mosip Logo

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added basic backup and restore flow for iCloud

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] show proceed screen based on stored value

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] fetch last backup details of iCloud

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] show permision required screen when not signed in on iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] retry to sync unsynced file if exists while fetching last backup details

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added sync and open settings

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - Add missing translations and refactor

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove backup and restore toggle

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] sync style of newLabel in purple and default theme

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove debug logs

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] rename file googleCloudUtils to CloudBackupAndRestoreUtils

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] return no backup faile error when backupfiles list from cloud is empty

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] add initail state in downloadingCredential to fix warning

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added delayed visibility for backup screen

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] fix delay in databackup and restore screen

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Signed-off-by: Sreenadh S <[email protected]>
Co-authored-by: Vijay <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Swati Goel <[email protected]>

* [Reverse-Sync-14-02-2024] : Sunbird Integration & Data Backup and Restore Implementation (#1261)

* fix cancel download popup not shown

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* fix: show tuvali version

Co-authored-by: vijay151096 <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* downgrade tuvali version to 0.4.6 for qa testing (#1149)

Signed-off-by: PuBHARGAVI <[email protected]>

* Revert "downgrade tuvali version to 0.4.6 for qa testing (#1149)"

This reverts commit 633f42f.

Signed-off-by: Swati Goel <[email protected]>

* Resetting the Data_Backup Toggle (#1202)

* [INJI-766] set backupAndRestore env variable to true and remove full stop in the kan langugage in one of the help page question

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJI-766] remove backupAndRestore variable from env file

Signed-off-by: PuBHARGAVI <[email protected]>

* Revert "Merge pull request #1227 from tw-mosip/internal-release-01-02-2024" (#1242)

This reverts commit 6de62fc, reversing
changes made to f63445f.

Signed-off-by: PuBHARGAVI <[email protected]>

* [Internal-Release-20+] : Sunbird Changes (#1243)

* [INJIMOB-683]: add testid for missed vc field (#1226)

* [INJIMOB-683]: add testid for missed vc field

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-683]: add testidprops for missed vc field

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-683]: add testidprops for missed vc field

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-770]: parse date received in the vc's (#1225)

* [INJIMOB-770]: parse date received in the vc's

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-770]: parse date received in the vc's

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>

* downgrade cocoapods version (#1231)

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* Use latest cocoapods version (#1236)

* downgrade cocoapods version

Signed-off-by: adityankannan-tw <[email protected]>

* use latest cocoapods version

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* [INJIMOB-760]: update mosip Logo

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] add backup & restore in iOS (iCloud) (#119)

* [INJIMOB-752] - Added basic backup and restore flow for iCloud

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] show proceed screen based on stored value

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] fetch last backup details of iCloud

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] show permision required screen when not signed in on iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] retry to sync unsynced file if exists while fetching last backup details

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added sync and open settings

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - Add missing translations and refactor

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-834] ignore corrupted VC while performing backup (#1253)

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove backup and restore toggle

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] sync style of newLabel in purple and default theme

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove debug logs

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] rename file googleCloudUtils to CloudBackupAndRestoreUtils

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] return no backup faile error when backupfiles list from cloud is empty

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] add initail state in downloadingCredential to fix warning

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added delayed visibility for backup screen

Signed-off-by: Sreenadh S <[email protected]>

---------

Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>

* [INJIMOB-787] Conditional restore of VCs (#120)

* [INJI-787] add bootstrap state for restarting restore ops

Notes:
- all operations depend on the state of the $DOCUMENT_DIR/inji/backup/
  directory contents and not on the state of the MMKV DB

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJI-787] conditional restore on restart of restore

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] fix recent file finder code

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] add vc remove logic for partial restore

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] refactor, ACK reviews, rm dead condition

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] remove console.logs

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] remove irrelevant TODOs

Signed-off-by: Harsh Vardhan <[email protected]>

---------

Signed-off-by: Harsh Vardhan <[email protected]>

* Revert "Inji mob 737 rtl issue (#1238)"

This reverts commit 2665cde.

* [INJIMOB-760]: adjust the mosip logo in the issuer section

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>
Signed-off-by: Swati Goel <[email protected]>
Signed-off-by: Vijay <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Swati Goel <[email protected]>
Co-authored-by: PuBHARGAVI <[email protected]>
Co-authored-by: Pooja Babusingh <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>
Co-authored-by: Harsh Vardhan <[email protected]>

* [INJIMOB-685] remove received vc metadata from storage when it is tampered or failed to store vc into storage

Signed-off-by: PuBHARGAVI <[email protected]>

* Injimob 837 - Update the bundle id for new app (#1263)

* [INJIMOB-837] update ios version and bundle id

Signed-off-by: adityankannan-tw <[email protected]>

* [INJIMOB-837] update the developer team to match profiles

Signed-off-by: adityankannan-tw <[email protected]>

* [INJIMOB-837] update the flavor with correct id

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* [INJIMOB-685] remove redundant store error in request machine

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-837] update the flavor with correct id (#1265)

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* [INJIMOB-685] remove redundant logic to remove the tampered vc metadata

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-685] fix the logic of checking if tampered vc is myvc or received vc

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-685] fix tampering of received vcs

If the received vc is tampered, we should be deleting the vc file & metadata of it. Since the metadata removal was not performed, we were getting download error. This is resolved here.

Co-authored-by: PuBHARGAVI <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-787] refactor backup & restore state machine (#1266)

* fix cancel download popup not shown

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* fix: show tuvali version

Co-authored-by: vijay151096 <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* downgrade tuvali version to 0.4.6 for qa testing (#1149)

Signed-off-by: PuBHARGAVI <[email protected]>

* Revert "downgrade tuvali version to 0.4.6 for qa testing (#1149)"

This reverts commit 633f42f.

Signed-off-by: Swati Goel <[email protected]>

* Resetting the Data_Backup Toggle (#1202)

* [INJI-766] set backupAndRestore env variable to true and remove full stop in the kan langugage in one of the help page question

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJI-766] remove backupAndRestore variable from env file

Signed-off-by: PuBHARGAVI <[email protected]>

* Revert "Merge pull request #1227 from tw-mosip/internal-release-01-02-2024" (#1242)

This reverts commit 6de62fc, reversing
changes made to f63445f.

Signed-off-by: PuBHARGAVI <[email protected]>

* [Internal-Release-20+] : Sunbird Changes (#1243)

* [INJIMOB-683]: add testid for missed vc field (#1226)

* [INJIMOB-683]: add testid for missed vc field

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-683]: add testidprops for missed vc field

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-683]: add testidprops for missed vc field

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-770]: parse date received in the vc's (#1225)

* [INJIMOB-770]: parse date received in the vc's

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-770]: parse date received in the vc's

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>

* downgrade cocoapods version (#1231)

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* Use latest cocoapods version (#1236)

* downgrade cocoapods version

Signed-off-by: adityankannan-tw <[email protected]>

* use latest cocoapods version

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>

* [INJIMOB-760]: update mosip Logo

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] add backup & restore in iOS (iCloud) (#119)

* [INJIMOB-752] - Added basic backup and restore flow for iCloud

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] show proceed screen based on stored value

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] fetch last backup details of iCloud

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] show permision required screen when not signed in on iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] retry to sync unsynced file if exists while fetching last backup details

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added sync and open settings

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - Add missing translations and refactor

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-752] - refactoring

Signed-off-by: Sreenadh S <[email protected]>

* [INJIMOB-834] ignore corrupted VC while performing backup (#1253)

* [INJIMOB-834] ignore corrupted VC while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-834] remove corrupted VC metaData while performing backup

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] download any unsynced files during lang setup in iOS

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove backup and restore toggle

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] sync style of newLabel in purple and default theme

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] remove debug logs

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] rename file googleCloudUtils to CloudBackupAndRestoreUtils

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] return no backup faile error when backupfiles list from cloud is empty

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] add initail state in downloadingCredential to fix warning

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] - Added delayed visibility for backup screen

Signed-off-by: Sreenadh S <[email protected]>

---------

Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>

* [INJIMOB-787] Conditional restore of VCs (#120)

* [INJI-787] add bootstrap state for restarting restore ops

Notes:
- all operations depend on the state of the $DOCUMENT_DIR/inji/backup/
  directory contents and not on the state of the MMKV DB

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJI-787] conditional restore on restart of restore

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] fix recent file finder code

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] add vc remove logic for partial restore

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] refactor, ACK reviews, rm dead condition

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] remove console.logs

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-787] remove irrelevant TODOs

Signed-off-by: Harsh Vardhan <[email protected]>

---------

Signed-off-by: Harsh Vardhan <[email protected]>

* Revert "Inji mob 737 rtl issue (#1238)"

This reverts commit 2665cde.

* [INJIMOB-760]: adjust the mosip logo in the issuer section

Signed-off-by: Vijay <[email protected]>

* [INJIMOB-787] refactor backup & restore states machines

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-752] fix label for drive name on backup

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-799] fix show restored vcs as shareable

Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-752] fix warnings

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>
Signed-off-by: Swati Goel <[email protected]>
Signed-off-by: Vijay <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Co-authored-by: vijay151096 <[email protected]>
Co-authored-by: Swati Goel <[email protected]>
Co-authored-by: PuBHARGAVI <[email protected]>
Co-authored-by: Pooja Babusingh <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>
Co-authored-by: Harsh Vardhan <[email protected]>

* [INJIMOB-685] remove unused state and actions in requestMachine

After adding timestamp to the incoming received vc, every vc shared from wallet is condered as separate vc. Due to this reason, the check if the incoming vc is already available in our received vcs will always be returning false. Thus removing the mergingIncomingVcrelated states in requestMachine to avoid unnecessary checks.

Co-authored-by: PuBHARGAVI <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-685] remove sharing reason related code

Co-authored-by: PuBHARGAVI <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB_685] remove unused event in vc machine

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-685] revert ios fastfile and project.pbxproj files changes

Signed-off-by: PuBHARGAVI <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: Vijay <[email protected]>
Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>
Signed-off-by: Swati Goel <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Signed-off-by: Harsh Vardhan <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>
Co-authored-by: Vijay <[email protected]>
Co-authored-by: Swati Goel <[email protected]>
Co-authored-by: Pooja Babusingh <[email protected]>
Co-authored-by: Harsh Vardhan <[email protected]>
testIDs added for - Inji tour guide slides, banner notification, issuer component

Signed-off-by: KiruthikaJeyashankar <[email protected]>
…ve metadata if vc file not found (#1284)

* [INJIMOB-something] use incremental timestamp for restore and make unload take a flag start time

Signed-off-by: Harsh Vardhan <[email protected]>

* [INJIMOB-865,868] fix duplicate vckey value for restored vcs and remove vc metadata if file not found

Co-authored-by: adityankannan-tw <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-869] remove unused method in store.ts machine

Co-authored-by: adityankannan-tw <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-869] revert removing vc metadata if file not found

Co-authored-by: adityankannan-tw <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-865] fix tamper vc removal

When a VC is tampered, we get the tampered vc popup. Once we press okay button in the popup, we will be refreshing the vc machine's myVcs & recievedVcs context. Due to calling of parallel states, we were having issue with refreshing of myVcs. It is fixed by targeting to init state to refresh

Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: PuBHARGAVI <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-865] remove vc metadata when file is not found

Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-869] add code comments & fix minor code issues

Signed-off-by: Harsh Vardhan <[email protected]>

---------

Signed-off-by: Harsh Vardhan <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Harsh Vardhan <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>
)

* [INJI-604]: Handle Verification VC Error Scenarios

Signed-off-by: BalachandarG <[email protected]>

* [INJIMOB-604] remove the card from UI when verify credential is failed and show error overlay

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-604] remove unused actions in existingMosipVcItem and issuers machine

Signed-off-by: PuBHARGAVI <[email protected]>

* INJIMOB-604 Replace Error message overlay with new error screen.

Signed-off-by: BalachandarG <[email protected]>

* [INJI-604]: Transation added for Verification error messages.

Signed-off-by: BalachandarG <[email protected]>

* [INJI-604] remove unnecessary log in error screen

Signed-off-by: PuBHARGAVI <[email protected]>

* [INJIMOB-604] remove removeVcFromMyVcs action from verify vc failed event and fix typegen warnings

Signed-off-by: PuBHARGAVI <[email protected]>

* INJIMOB-604 : Removing logs and renaming functions

Signed-off-by: BalachandarG <[email protected]>

* [INJIMOB-604]: Removing unused method.

Signed-off-by: BalachandarG <[email protected]>

* [Inji-604]: Fixing the issue of recursive VC deletion during Go Back event in Verification Error screen.

Signed-off-by: BalachandarG <[email protected]>

* [Inji-604]: Fixing bugs post conflict resolve.

Signed-off-by: BalachandarG <[email protected]>

* [Inji-604]: Removing unused events and adding translations for Go Back button

* [Inji-604]: Removed angle brackets for Technical Error

* [Inji-604]: Added ToDo to handle backup

* [Inji-604]: Removing isVerified flag from the Existing VC Item Machine.

* [Inji-604] iOS crash fixed for Verification error Go Back Button
Signed-off-by: BalachandarG <[email protected]>

---------

Signed-off-by: BalachandarG <[email protected]>
Signed-off-by: PuBHARGAVI <[email protected]>
Signed-off-by: Swati Goel <[email protected]>
Co-authored-by: PuBHARGAVI <[email protected]>
Co-authored-by: Swati Goel <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
* [INJIMOB-881] add entitlements file changes for icloud

Signed-off-by: adityankannan-tw <[email protected]>

* [INJIMOB-881] update code signing identity to iphone distribution

Signed-off-by: adityankannan-tw <[email protected]>

---------

Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
Signed-off-by: adityankannan-tw <[email protected]>
Co-authored-by: adityankannan-tw <[email protected]>
…1305)

* [INJIMOB-531] send base64 encode data to encrypt to avoid data truncation

When we pass data from a react native app with <part1>\x00<part2> value, any data post the \x00 gets truncated (i.e., part2 is trimmed off). This happens most likely with the react native bridge. To avoid this issue of truncation, we are required to pass the data as base64 encoded string and secure-keystore module will perform decoding before processing for encryption.

Co-authored-by: Harsh Vardhan <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-531] upgrade secure-keystore package version

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Harsh Vardhan <[email protected]>
…edential and remove unused actions in vc item machine (#1306)

Signed-off-by: PuBHARGAVI <[email protected]>
* OpenG2P Beneficiary Card Rendering Changes.

Signed-off-by: Vijay <[email protected]>

* OpenG2P Beneficiary Card Rendering Changes.

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
* OpenG2P Beneficiary Card Rendering fix.

Signed-off-by: Vijay <[email protected]>

* OpenG2P Beneficiary Card Rendering fix.

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
* [INJIMOB-903] add logic to use cloud file as a single source of truth for backup and restore

Signed-off-by: Sreenadh S <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-903] - reset loader while fetching last backup details

Signed-off-by: Sreenadh S <[email protected]>
Co-authored-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-903] fix android issue with fetching last backup details

Co-authored-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>

* [INJIMOB-903] move google profile info api call to API

Signed-off-by: KiruthikaJeyashankar <[email protected]>

---------

Signed-off-by: Sreenadh S <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>
…ng called again during app launch and sharing. (#1317)

* [Inji-604]: Removing verification calls from app refresh and adding it only on download VC.

Signed-off-by: BalachandarG <[email protected]>

* [Inji-604]: Removing unused VERIFY event from Esignet machine.

Signed-off-by: BalachandarG <[email protected]>

---------

Signed-off-by: BalachandarG <[email protected]>
* vc schema change compatibility changes for rendering

Signed-off-by: Vijay <[email protected]>

* vc schema change compatibility changes for rendering

Signed-off-by: Vijay <[email protected]>

---------

Signed-off-by: Vijay <[email protected]>
Signed-off-by: KiruthikaJeyashankar <[email protected]>
Co-authored-by: Sreenadh S <[email protected]>
@vijay151096 vijay151096 closed this Mar 4, 2024
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.

9 participants