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

Sargon OS undo Profile JSON format change #177

Merged
merged 283 commits into from
Jun 28, 2024

Conversation

CyonAlexRDX
Copy link
Contributor

@CyonAlexRDX CyonAlexRDX commented Jun 28, 2024

Note

Target branch is sargon_os not main.

This PR reverts some changes in #176 PR which changed Profile format. The purpose of this PR is to make #176 PR mergable to main without any big changes done in hosts.

Here is a Proof of not-to-breaking iOS repo PR (which should ofc not be merged until SargonOS PR is merged): radixdlt/babylon-wallet-ios#1190

@CyonAlexRDX CyonAlexRDX marked this pull request as ready for review June 28, 2024 13:51
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.7%. Comparing base (df13633) to head (b6c52b1).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           sargon_os    #177   +/-   ##
=========================================
  Coverage       97.7%   97.7%           
=========================================
  Files            878     878           
  Lines          14146   14146           
  Branches          37      37           
=========================================
  Hits           13823   13823           
  Misses           317     317           
  Partials           6       6           
Flag Coverage Δ
kotlin 98.7% <ø> (ø)
rust 97.2% <100.0%> (ø)
swift 99.5% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
.../device_factor_source/device_factor_source_hint.rs 100.0% <100.0%> (ø)
src/profile/v100/header/device_info.rs 100.0% <100.0%> (ø)
src/profile/v100/header/device_info_description.rs 100.0% <100.0%> (ø)
src/profile/v100/header/header.rs 100.0% <ø> (ø)
src/profile/v100/profile.rs 99.0% <ø> (ø)
src/profile/v100/profile_uniffi_fn.rs 100.0% <ø> (ø)

@CyonAlexRDX CyonAlexRDX changed the title Sargon os undo breaking profile change Sargon OS undo Profile JSON format change Jun 28, 2024
@CyonAlexRDX CyonAlexRDX merged commit 4bfdccb into sargon_os Jun 28, 2024
10 checks passed
@CyonAlexRDX CyonAlexRDX deleted the sargon_os_undo_breaking_profile_change branch June 28, 2024 19:53
GhenadieVP added a commit that referenced this pull request Jul 29, 2024
* Rust: `SargonOS` &`Drivers` more Profile Logic | Swift: Shared State  (working example app)! (#131)

Introducing SargonOS

* MFA: Sec Structure of Factor <Source | ID | Instance>s (#150)

MFA Batch 1: SecurityStructureOfFactorSources and MatrixOfFactorSoures and also on FactorSourceID and FactorInstance level. Also add some new FactorSourceKinds at least a POC version of them or stubbed out ones.

* Sargon OS undo Profile JSON format change (#177)

Revert Profile JSON format changes in DeviceInfo

* Merge 'main' into 'sargon_os'

* Implement HostInfo struct (#189)

* Implement HostInfo struct

* Store host id in secure storage

* Fix doc

* Separate id and date from host info

* Implement HostOS that will encapsulate the different values and constants of each host os

* Expose uniffi method for creating device info from host info

* Small fix for AppleHostDriver (#192)

wip

---------

Co-authored-by: micbakos-rdx <michael.bakogiannis@rdx.works>
Co-authored-by: micbakos-rdx <125959264+micbakos-rdx@users.noreply.github.com>
Co-authored-by: Ghenadie <118184705+GhenadieVP@users.noreply.github.com>
GhenadieVP added a commit that referenced this pull request Aug 12, 2024
* Rust: `SargonOS` &`Drivers` more Profile Logic | Swift: Shared State  (working example app)! (#131)

Introducing SargonOS

* MFA: Sec Structure of Factor <Source | ID | Instance>s (#150)

MFA Batch 1: SecurityStructureOfFactorSources and MatrixOfFactorSoures and also on FactorSourceID and FactorInstance level. Also add some new FactorSourceKinds at least a POC version of them or stubbed out ones.

* Sargon OS undo Profile JSON format change (#177)

Revert Profile JSON format changes in DeviceInfo

* Merge 'main' into 'sargon_os'

* wip

* Implement HostInfo struct (#189)

* Implement HostInfo struct

* Store host id in secure storage

* Fix doc

* Separate id and date from host info

* Implement HostOS that will encapsulate the different values and constants of each host os

* Expose uniffi method for creating device info from host info

* wip

* Sargon os v1 android (#196)

* Implement sargon os drivers

* Boot sargon os in example app

* Remove active profile id

* Add more unit tests

* Fix apple tests

* pr review

* version bump

---------

Co-authored-by: Alexander Cyon <116169792+CyonAlexRDX@users.noreply.github.com>
Co-authored-by: micbakos-rdx <michael.bakogiannis@rdx.works>
Co-authored-by: micbakos-rdx <125959264+micbakos-rdx@users.noreply.github.com>
micbakos-rdx added a commit that referenced this pull request Aug 14, 2024
* Rust: `SargonOS` &`Drivers` more Profile Logic | Swift: Shared State  (working example app)! (#131)

Introducing SargonOS

* MFA: Sec Structure of Factor <Source | ID | Instance>s (#150)

MFA Batch 1: SecurityStructureOfFactorSources and MatrixOfFactorSoures and also on FactorSourceID and FactorInstance level. Also add some new FactorSourceKinds at least a POC version of them or stubbed out ones.

* Sargon OS undo Profile JSON format change (#177)

Revert Profile JSON format changes in DeviceInfo

* Merge 'main' into 'sargon_os'

* Implement HostInfo struct (#189)

* Implement HostInfo struct

* Store host id in secure storage

* Fix doc

* Separate id and date from host info

* Implement HostOS that will encapsulate the different values and constants of each host os

* Expose uniffi method for creating device info from host info

* wip

* Sargon os v1 android (#196)

* Implement sargon os drivers

* Boot sargon os in example app

* Remove active profile id

* Add more unit tests

* Fix apple tests

* Change profile holder to keep profile state instead of profile

* Driver emits profile states instead of profile

* Implement new and delete wallet functions

* Remove unused comment

* Implement import functionality

* Propagate CRUD operations on profile to the profile state change driver.

* Remove unnecessary comment

* Fix swift tests

* Fix doc

* Prioritize bdfs save and then save profile in new wallet

* Implement retry read mechanism for profile snapshot.

This currently exists on Android codebase and needs revisiting.

* Bump version

---------

Co-authored-by: Alexander Cyon <116169792+CyonAlexRDX@users.noreply.github.com>
Co-authored-by: Ghenadie Vasiliev-Pusca <ghenadie.vasiliev-pusca@rdx.works>
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.

3 participants