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

Modernised DFU Manifest #482

Merged

Conversation

dinesharjani
Copy link
Contributor

Instead of NSObject, so Objective-C classes, these are now structs. They're also Codable(s), so we don't need to do the JSON dance ourselves. I'm sure there are many more parts inside the library that deserve this same treatment, but we can't do it all at once. This is a small step.

Copy link
Member

@philips77 philips77 left a comment

Choose a reason for hiding this comment

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

You have dropped compatibility with Legacy DFU.
Other than that, changes look good.

@dinesharjani dinesharjani force-pushed the manifest-code-cleanup branch 2 times, most recently from 2cef058 to 0a06545 Compare June 1, 2022 12:20
@dinesharjani
Copy link
Contributor Author

Updated.

Copy link
Member

@philips77 philips77 left a comment

Choose a reason for hiding this comment

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

I like the changes. One note, is that the metadata is optional and may contain invalid sizes. This is only for informational purpose for the user and the real sdSize and blSize are included in the dat file and signed.
One minor request to change is to rename SecureMetadata to something else, as the metadata is not at all secure and the name may be misleading. I would say Metadata and give there a comment.

Instead of NSObject, so Objective-C classes, these are now structs. They're also Codable(s), so we don't need to do the JSON dance ourselves. I'm sure there are many more parts inside the library that deserve this same treatment, but we can't do it all at once. This is a small step.
@dinesharjani
Copy link
Contributor Author

Fixed last two issues (renamed Metadata)

@dinesharjani dinesharjani merged commit 6e758a8 into NordicSemiconductor:master Jun 3, 2022
@dinesharjani dinesharjani deleted the manifest-code-cleanup branch June 3, 2022 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants