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

feat: add PrivacyInfo.xcprivacy for CordovaLib & app template #1383

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Oct 28, 2023

Platforms affected

iOS

Motivation and Context

Starting in April 2024, Apple requires that newly submitted apps include a Privacy Manifest that declares whether the app collects personal data, whether it uses that data for tracking purposes, and whether the app uses privacy-impacting system APIs.

Description

Adds a PrivacyInfo.xcprivacy manifest file to CordovaLib, declaring that CordovaLib does not do any tracking or use any privacy-impacting APIs.

Adds a PrivacyInfo.xcprivacy manifest file to the generated app template, with empty declarations. It is up to the app author to provide the correct privacy details for their application.

Minor cleanups to the CordovaLib project to improve both Xcode subproject and Swift package use.

Testing

Tested locally in Xcode.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
  • I've updated the documentation if necessary

@dpogue dpogue changed the title Add PrivacyInfo.xcprivacy for CordovaLib & iOS template [WIP] Add PrivacyInfo.xcprivacy for CordovaLib & iOS template Oct 28, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.24%. Comparing base (92017bb) to head (be301c3).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1383      +/-   ##
==========================================
- Coverage   78.25%   78.24%   -0.02%     
==========================================
  Files          15       15              
  Lines        1789     1788       -1     
==========================================
- Hits         1400     1399       -1     
  Misses        389      389              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@knaito-asial
Copy link
Contributor

knaito-asial commented Feb 27, 2024

Should we need to add 'Cordova' directory like this?
Because Corodva/PrivacyInfo.xcprivacy file is added.

   for (const p of ['include', 'Classes', 'Cordova', 'CordovaLib.xcodeproj/project.pbxproj']) {

https://github.com/dpogue/cordova-ios/blob/8d69afdf4d01df1ed4cf4e48691f5292e73d090b/lib/create.js#L121

@dpogue
Copy link
Member Author

dpogue commented Feb 28, 2024

Should we need to add 'Cordova' directory like this?
Because Corodva/PrivacyInfo.xcprivacy file is added.

Good catch. I've added some changes to clean up the CordovaLib project structure a little bit (both for Xcode and for the Swift Package) and the files should be there as expected now.

@dpogue dpogue changed the title [WIP] Add PrivacyInfo.xcprivacy for CordovaLib & iOS template Add PrivacyInfo.xcprivacy for CordovaLib & iOS template Feb 28, 2024
@dpogue dpogue marked this pull request as ready for review February 28, 2024 07:30
@dpogue dpogue force-pushed the privacy-manifest branch 2 times, most recently from 61c5adb to 4ebe09a Compare February 28, 2024 07:50
@dpogue
Copy link
Member Author

dpogue commented Feb 28, 2024

Note to self: https://github.com/apache/cordova-coho/pull/324/files needs to be updated after this is merged to use the correct path to Info.plist for versioning

@dpogue dpogue added this to the 7.1.0 milestone Feb 28, 2024
@erisu erisu changed the title Add PrivacyInfo.xcprivacy for CordovaLib & iOS template feat: add PrivacyInfo.xcprivacy for CordovaLib & app template Mar 6, 2024
CordovaLib/Info.plist Outdated Show resolved Hide resolved
Copy link
Member

@erisu erisu left a comment

Choose a reason for hiding this comment

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

LGTM

@erisu erisu merged commit b400b70 into apache:master Mar 6, 2024
9 checks passed
@dpogue dpogue deleted the privacy-manifest branch March 8, 2024 18:10
@mg
Copy link

mg commented Mar 19, 2024

Hi. Are there any plans to back port this to Cordova iOS 6.x? Our plans are to update to 7.x in the fall.

@dpogue
Copy link
Member Author

dpogue commented Mar 19, 2024

Are there any plans to back port this to Cordova iOS 6.x?

@mg Sadly no. Cordova is maintained by volunteers and we just don't have the resources or capacity to support multiple active branches.

@mg
Copy link

mg commented Mar 19, 2024

@dpogue roger, thanks for the response

ishiguro-m-wing added a commit to dejiren/cordova-ios that referenced this pull request Mar 29, 2024
This reverts commit 1974dbb.

Revert "feat: add privacy-manifest config support (apache#1406)"

This reverts commit c97845a.

Revert "ci(gh-action): add Apache RAT & package license checker workflow w/ license header additions (apache#1408)"

This reverts commit d316558.

Revert "fix: use PROVISIONING_PROFILE_SPECIFIER for manual codesigning (apache#1405)"

This reverts commit af6335e.

Revert "feat: add PrivacyInfo.xcprivacy for CordovaLib & app template (apache#1383)"

This reverts commit b400b70.

Revert "fix: WASM MIME type error by specifying it in Info.plist template (apache#1374)"

This reverts commit 902df96.

Revert "chore: update package & package-lock (apache#1404)"

This reverts commit 2091208.

Revert "chore: bump 7.1.0-dev for next minor release (apache#1403)"

This reverts commit 766adcf.

Revert "chore(deps-dev): bump @babel/traverse from 7.21.4 to 7.23.2 (apache#1382)"

This reverts commit 92017bb.

Revert "chore: Update Slack signup link in SUPPORT_QUESTION.md (apache#1380)"

This reverts commit be4c884.

Revert "chore: bump version 7.0.2-dev"

This reverts commit a1f3ace.
ishiguro-m-wing pushed a commit to dejiren/cordova-ios that referenced this pull request Mar 29, 2024
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.

None yet

5 participants