Repository navigation
Ship the privacy manifest in the app for the seven packages that have one - #46
Open
MAUstaoglu wants to merge 7 commits into
Open
MAUstaoglu wants to merge 7 commits into
MAUstaoglu wants to merge 7 commits into
Conversation
PrivacyInfo.xcprivacy was in tvos/Resources/ but the podspec did not declare it, so it never reached the app and an App Store upload could be rejected with ITMS-91061 (#24). Declare it in resource_bundles, named after upstream's <package>_privacy bundle.
PrivacyInfo.xcprivacy was in tvos/Resources/ but the podspec did not declare it, so it never reached the app and an App Store upload could be rejected with ITMS-91061 (#24). Declare it in resource_bundles, named after upstream's <package>_privacy bundle.
PrivacyInfo.xcprivacy was in tvos/Resources/ but the podspec did not declare it, so it never reached the app and an App Store upload could be rejected with ITMS-91061 (#24). Declare it in resource_bundles, named after upstream's <package>_privacy bundle.
…p, 0.0.3 PrivacyInfo.xcprivacy was in tvos/Resources/ but neither the podspec nor Package.swift declared it, so it never reached the app and an App Store upload could be rejected with ITMS-91061 (#24). SwiftPM only bundles resources inside the target directory, so it moves to tvos/Classes/Resources/, processed by Package.swift and bundled by the podspec's resource_bundles under upstream's bundle name. source_files narrows from Classes/**/* to the source extensions so CocoaPods does not also add the manifest to the Sources phase.
….0.3 PrivacyInfo.xcprivacy was in tvos/Resources/ but neither the podspec nor Package.swift declared it, so it never reached the app and an App Store upload could be rejected with ITMS-91061 (#24). SwiftPM only bundles resources inside the target directory, so it moves to tvos/Classes/Resources/, processed by Package.swift and bundled by the podspec's resource_bundles under upstream's bundle name. source_files narrows from Classes/**/* to the source extensions so CocoaPods does not also add the manifest to the Sources phase.
….0.3 PrivacyInfo.xcprivacy was in tvos/Resources/ but neither the podspec nor Package.swift declared it, so it never reached the app and an App Store upload could be rejected with ITMS-91061 (#24). SwiftPM only bundles resources inside the target directory, so it moves to tvos/Classes/Resources/, processed by Package.swift and bundled by the podspec's resource_bundles under upstream's bundle name.
The podspec bundled PrivacyInfo.xcprivacy, but flutter-tvos links any plugin that ships a tvos/Package.swift through SwiftPM, and that target declared no resources, so the app had no manifest. SwiftPM only bundles resources inside the target directory, so the manifest moves to tvos/Classes/Resources/, which Package.swift processes and the podspec now points at.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes #24. The seven packages that ship a
PrivacyInfo.xcprivacydid not get it into the built app, so an upload can be rejected with ITMS-91061.It is wider than the report. flutter-tvos builds every plugin that has a
tvos/Package.swiftthrough SwiftPM and leaves it out of the Podfile, so a podspec declaration never reaches the app for those. Built frommain, an app with all seven packages contains no plugin privacy manifest at all,url_launcher_tvosincluded, although its podspec declares one.firebase_messaging_tvos,flutter_secure_storage_tvos,shared_preferences_tvos,url_launcher_tvos): the manifest moves fromtvos/Resources/totvos/Classes/Resources/, because SwiftPM silently ignores resources outside the target directory.Package.swiftgainsresources: [.process("Resources")], and the podspec declares the same file inresource_bundles. In two podspecssource_filesnarrows to source extensions, so CocoaPods does not also compile the manifest.sqflite_tvos,video_player_tvos,wakelock_plus_tvos): the podspec gainsresource_bundles.Package(s) touched: firebase_messaging_tvos, flutter_secure_storage_tvos, shared_preferences_tvos, sqflite_tvos, url_launcher_tvos, video_player_tvos, wakelock_plus_tvos
How was it tested?
One app depending on all seven packages, built with flutter-tvos 1.12.0 and the published 3.50.0 engine, Xcode 27.1, from
mainand from this branch;find <app> -name PrivacyInfo.xcprivacyon each result.mainPackage.swiftremoved from copies)url_launcher_tvosonlySame result for a simulator debug build and an unsigned device release build.
example/appdart analyzeis clean for the package (all seven, with Flutter 3.50.0; CI uses 3.44.0)Also:
check_repo.pypasses,flutter testpasses in each package,pub publish --dry-runhas 0 warnings and the archives contain the manifest.Not done: an App Store Connect or TestFlight upload, so ITMS-91061 itself was not observed before or after.
Versioning & changelog
version:in each package'spubspec.yaml: sqflite, flutter_secure_storage, shared_preferences, firebase_messaging → 0.0.3; url_launcher, video_player, wakelock_plus → 0.0.2CHANGELOG.mdMerging this releases the seven packages:
release_plan.pyplans all seven tags.Checklist
TODO/debug leftovers in the diffNotes for reviewers
Package.swiftfiles say they are generated and not to be edited by hand. They are edited here, because the generator (flutter-tvos plugin port) has the same gap: it copiesResources/totvos/Resources/and declares it in neither file. That is a follow-up in the CLI.Package.swift, its manifest has to move into the target the same way.wakelock_plus1.8.0 or later an app that also useswakelock_plus_tvosdoes not build, because upstream now declares atvosplatform itself. The test app pinned<1.8.0.