Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Conversation

@momo-ozawa
Copy link
Contributor

Description

  • Fixes initializer is inaccessible due to 'internal' protection level error when initializing JetpackRestoreTypes from another module (i.e. WP-iOS)
  • Adds default bool values

Notes

The default init you get for free using a struct is internal, so we need to explicitly define a public init 👀

From Swift Lang Docs:

If you want a public structure type to be initializable with a memberwise initializer when used in another module, you must provide a public memberwise initializer yourself as part of the type’s definition.

Testing Details

🟢 Tests should be good!

  • Please check here if your pull request includes additional test coverage.

Momo Ozawa added 2 commits January 12, 2021 16:52
From Apple Docs:

If you want a public structure type to be initializable with a memberwise initializer when used in another module, you must provide a public memberwise initializer yourself as part of the type’s definition.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants