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

Add xcprivacy privacy manifest to macOS framework #55078

Merged
merged 4 commits into from
Sep 14, 2024

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Sep 10, 2024

Create a PrivacyInfo.xcprivacy (this name is required) plist and move it to the top-level of the macOS framework bundle. NSPrivacyTracking* and NSPrivacyCollectedDataTypes keys are required, but the values are blank. macOS explicitly does not need the NSPrivacyAccessedAPITypes (see more info in flutter/flutter#143381)

You can see on this PR it's copied to the correct path in the framework https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737163270670636097/+/u/Global_generators/Release-FlutterMacOS.framework/stdout:

  adding: FlutterMacOS.xcframework/macos-arm64_x86_64/FlutterMacOS.framework/PrivacyInfo.xcprivacy (deflated 35%)

There's no way to test this except to submit a macOS app with this framework to TestFlight.

I can't find a good spot in the engine to validate the structure of the framework output. I hereby pledge to add a macOS test to the framework post-roll flutter/flutter#155189

iOS framework variant of this PR #48951
Fixes flutter/flutter#143381

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@jmagman jmagman marked this pull request as ready for review September 10, 2024 19:23
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

Copy link
Contributor

@reidbaker reidbaker left a comment

Choose a reason for hiding this comment

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

Could you inspect a compiled app to see if this file was present as a test?

@jmagman
Copy link
Member Author

jmagman commented Sep 13, 2024

Could you inspect a compiled app to see if this file was present as a test?

I hereby pledge to add a macOS test to the framework post-roll similar to flutter/flutter#155187 (but for macOS) ✋

Draft PR: flutter/flutter#155189

Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM

@jmagman jmagman added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 14, 2024
@auto-submit auto-submit bot merged commit 6d34044 into flutter:main Sep 14, 2024
30 checks passed
@jmagman jmagman deleted the macos-privacy branch September 14, 2024 02:44
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 14, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 14, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 14, 2024
…155201)

flutter/engine@4d8d851...c83cc88

2024-09-14 [email protected] Roll Dart SDK from c0f7e399ff4a to de4a3d63671c (1 revision) (flutter/engine#55199)
2024-09-14 [email protected] [Impeller] desktop: Add missing dispatch for TextFrameDispatcher in embedder view. (flutter/engine#55197)
2024-09-14 [email protected] Add xcprivacy privacy manifest to macOS framework (flutter/engine#55078)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 23, 2024
Add tool test to validate a built macOS app contains the FlutterMacOS framework xcprivacy manifest.

Blocked on flutter/engine#55078 rolling in.
@jmagman jmagman linked an issue Sep 23, 2024 that may be closed by this pull request
@jmagman jmagman added the cp: stable cherry pick to the stable release candidate branch label Sep 23, 2024
flutteractionsbot pushed a commit to flutteractionsbot/engine that referenced this pull request Sep 23, 2024
Create a `PrivacyInfo.xcprivacy` (this name is required) plist and move it to the top-level of the macOS framework bundle.  `NSPrivacyTracking*` and `NSPrivacyCollectedDataTypes` keys are required, but the values are blank.  macOS explicitly does not need the `NSPrivacyAccessedAPITypes` (see more info in flutter/flutter#143381)

You can see on this PR it's copied to the correct path in the framework https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8737163270670636097/+/u/Global_generators/Release-FlutterMacOS.framework/stdout:

```
  adding: FlutterMacOS.xcframework/macos-arm64_x86_64/FlutterMacOS.framework/PrivacyInfo.xcprivacy (deflated 35%)
```

There's no way to test this except to submit a macOS app with this framework to TestFlight.

I can't find a good spot in the engine to validate the structure of the framework output.  I hereby pledge to add a macOS test to the framework post-roll flutter/flutter#155189 � 

iOS framework variant of this PR flutter#48951
Fixes flutter/flutter#131494

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
flutteractionsbot pushed a commit to flutteractionsbot/flutter that referenced this pull request Sep 23, 2024
…155189)

Add tool test to validate a built macOS app contains the FlutterMacOS framework xcprivacy manifest.

Blocked on flutter/engine#55078 rolling in.
thejitenpatel pushed a commit to thejitenpatel/flutter that referenced this pull request Sep 26, 2024
…155189)

Add tool test to validate a built macOS app contains the FlutterMacOS framework xcprivacy manifest.

Blocked on flutter/engine#55078 rolling in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: desktop autosubmit Merge PR when tree becomes green via auto submit App cp: stable cherry pick to the stable release candidate branch platform-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add empty privacy manifest to FlutterMacOS
3 participants