Skip to content

Ship the privacy manifest in the app for the seven packages that have one - #46

Open
MAUstaoglu wants to merge 7 commits into
mainfrom
fix/privacy-manifests
Open

MAUstaoglu wants to merge 7 commits into
mainfrom
fix/privacy-manifests

Conversation

@MAUstaoglu

@MAUstaoglu MAUstaoglu commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Fixes #24. The seven packages that ship a PrivacyInfo.xcprivacy did 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.swift through SwiftPM and leaves it out of the Podfile, so a podspec declaration never reaches the app for those. Built from main, an app with all seven packages contains no plugin privacy manifest at all, url_launcher_tvos included, although its podspec declares one.

  • SwiftPM packages (firebase_messaging_tvos, flutter_secure_storage_tvos, shared_preferences_tvos, url_launcher_tvos): the manifest moves from tvos/Resources/ to tvos/Classes/Resources/, because SwiftPM silently ignores resources outside the target directory. Package.swift gains resources: [.process("Resources")], and the podspec declares the same file in resource_bundles. In two podspecs source_files narrows to source extensions, so CocoaPods does not also compile the manifest.
  • Podspec-only packages (sqflite_tvos, video_player_tvos, wakelock_plus_tvos): the podspec gains resource_bundles.
  • The manifests' contents are unchanged and equal upstream's current ones.

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 main and from this branch; find <app> -name PrivacyInfo.xcprivacy on each result.

main this branch
SwiftPM path (what the CLI uses) no plugin manifest all seven
CocoaPods path (Package.swift removed from copies) url_launcher_tvos only all seven

Same result for a simulator debug build and an unsigned device release build.

  • Ran the package's example/ app
  • Verified on tvOS simulator: build only (Xcode 27.1); the app was not exercised
  • Verified on a physical Apple TV
  • dart analyze is clean for the package (all seven, with Flutter 3.50.0; CI uses 3.44.0)

Also: check_repo.py passes, flutter test passes in each package, pub publish --dry-run has 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

  • Bumped version: in each package's pubspec.yaml: sqflite, flutter_secure_storage, shared_preferences, firebase_messaging → 0.0.3; url_launcher, video_player, wakelock_plus → 0.0.2
  • Added a matching entry at the top of each CHANGELOG.md
  • No behaviour change for an app's code
  • Bug fix → patch

Merging this releases the seven packages: release_plan.py plans all seven tags.

Checklist

  • Only the seven packages' files are touched
  • No secrets, absolute local paths, or TODO/debug leftovers in the diff
  • No platform constraint involved
  • Sibling issues are noted below rather than fixed here

Notes for reviewers

  • Several of the Package.swift files 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 copies Resources/ to tvos/Resources/ and declares it in neither file. That is a follow-up in the CLI.
  • If one of the three podspec-only packages later gains a Package.swift, its manifest has to move into the target the same way.
  • Found on the way, not fixed: with wakelock_plus 1.8.0 or later an app that also uses wakelock_plus_tvos does not build, because upstream now declares a tvos platform itself. The test app pinned <1.8.0.

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.
@MAUstaoglu
MAUstaoglu requested a review from DenisovAV November 18, 2026 21:43

This branch has not been deployed

No deployments
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.

1 participant