This PR is part two of a four part series of PRs implementing support for sharing photos via the share extension.
In this PR a mechanism is introduced to share information about sites and stories between the main app and the share extension, and ground work is laid for the share extension to share and associate files (photos) back to the main app.
Notes:
I struggled with a naming scheme for this. I'm not entirely happy with the "shadow" motif but 🤷. Open to other suggestions.
I owe this PR some unit tests but I'm holding off until part 4 so I can wrangle everything involved in this feature at once and not risk having to rewrite tests due to changes in part 3 and 4.
To test:
[x] Launch the app. Check the info logged to the console. Confirm zero shadow sites were found.
[x] Create a new story or two. Then terminate the app.
[x] Relaunch the app. Check the info logged to the console. Confirm that shadow sites and stories were found and their number correctly corresponds to the number of site (1) and stories currently in the app.
[x] Switch to the share extension target and launch the share extension selecting the Photos app.
[x] Select some photos and share to the share extension.
[x] Click the post button. Look at the info logged to the console. Confirm that shadow sites and stories were found and their number correctly corresponds to the number of site (1) and stories currently in the main app.
@jleandroperez could I trouble you for a review sir?
Refs: #91
This PR is part two of a four part series of PRs implementing support for sharing photos via the share extension.
In this PR a mechanism is introduced to share information about sites and stories between the main app and the share extension, and ground work is laid for the share extension to share and associate files (photos) back to the main app.
Notes:
To test:
@jleandroperez could I trouble you for a review sir?