From a7b0c3ef8b6d6a6d9f3a5d05d2a1bfe01c8070a2 Mon Sep 17 00:00:00 2001 From: bwees Date: Mon, 27 May 2024 10:24:39 -0400 Subject: [PATCH 1/3] privaqcy manifests for expo 50 --- .github/workflows/build.yml | 4 --- app.json | 20 +++++++++++++ fastlane/privacy/PrivacyInfo.xcprivacy | 41 -------------------------- fastlane/privacy/ios-postbuild.js | 30 ------------------- package.json | 3 +- 5 files changed, 21 insertions(+), 77 deletions(-) delete mode 100644 fastlane/privacy/PrivacyInfo.xcprivacy delete mode 100644 fastlane/privacy/ios-postbuild.js diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a73219c..6324d62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,10 +52,6 @@ jobs: run: | npx expo prebuild --platform ios --npm - - name: Run Postbuild [iOS] - run: | - npm run ios-postbuild - - name: Fastlane Beta [iOS] run: fastlane beta env: diff --git a/app.json b/app.json index 716df46..4c218d9 100644 --- a/app.json +++ b/app.json @@ -20,6 +20,26 @@ "resizeMode": "cover", "backgroundColor": "#191919" } + }, + "privacyManifests": { + "NSPrivacyAccessedAPITypes": [ + { + "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategorySystemBootTime", + "NSPrivacyAccessedAPITypeReasons": ["35F9.1"] + }, + { + "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryDiskSpace", + "NSPrivacyAccessedAPITypeReasons": ["85F4.1"] + }, + { + "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryFileTimestamp", + "NSPrivacyAccessedAPITypeReasons": ["DDA9.1"] + }, + { + "NSPrivacyAccessedAPIType": "NSPrivacyAccessedAPICategoryUserDefaults", + "NSPrivacyAccessedAPITypeReasons": ["CA92.1"] + } + ] } }, "android": { diff --git a/fastlane/privacy/PrivacyInfo.xcprivacy b/fastlane/privacy/PrivacyInfo.xcprivacy deleted file mode 100644 index b2233b3..0000000 --- a/fastlane/privacy/PrivacyInfo.xcprivacy +++ /dev/null @@ -1,41 +0,0 @@ - - - - - NSPrivacyAccessedAPITypes - - - NSPrivacyAccessedAPIType - NSPrivacyAccessedAPICategorySystemBootTime - NSPrivacyAccessedAPITypeReasons - - 35F9.1 - - - - NSPrivacyAccessedAPIType - NSPrivacyAccessedAPICategoryDiskSpace - NSPrivacyAccessedAPITypeReasons - - 85F4.1 - - - - NSPrivacyAccessedAPIType - NSPrivacyAccessedAPICategoryFileTimestamp - NSPrivacyAccessedAPITypeReasons - - DDA9.1 - - - - NSPrivacyAccessedAPIType - NSPrivacyAccessedAPICategoryUserDefaults - NSPrivacyAccessedAPITypeReasons - - CA92.1 - - - - - \ No newline at end of file diff --git a/fastlane/privacy/ios-postbuild.js b/fastlane/privacy/ios-postbuild.js deleted file mode 100644 index 5ef8ef4..0000000 --- a/fastlane/privacy/ios-postbuild.js +++ /dev/null @@ -1,30 +0,0 @@ -// load xcode package -const xcode = require('xcode'); -const fs = require('fs'); - -// get the project file -const projectPath = 'ios/MaroonRides.xcodeproj/project.pbxproj'; -const project = xcode.project(projectPath); - -// parse the project file -project.parse(function (error) { - if (error) { - console.log('Error parsing the project file'); - } - - // find the key of the group named 'MaroonRides' - const mainGroup = project.findPBXGroupKey({name: 'MaroonRides'}); - - // copy the file PrivacyInfo.xcprivacy to the group - fs.copyFileSync('fastlane/privacy/PrivacyInfo.xcprivacy', 'ios/MaroonRides/PrivacyInfo.xcprivacy'); - - // add the file PrivacyInfo.xcprivacy to the project (it is a .plist file) - project.addFile('MaroonRides/PrivacyInfo.xcprivacy', mainGroup); - - console.log('Added PrivacyInfo.xcprivacy to the project!'); - - // save the project file - fs.writeFileSync(projectPath, project.writeSync()); -}); - - diff --git a/package.json b/package.json index 32b7778..46c4cd2 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,7 @@ "lint": "eslint .", "format": "eslint --fix . && prettier '**/*.{json,yaml}' --write --ignore-path .gitignore", "check-types": "tsc --noEmit --pretty", - "postinstall": "patch-package", - "ios-postbuild": "node ./fastlane/privacy/ios-postbuild.js" + "postinstall": "patch-package" }, "dependencies": { "@expo/vector-icons": "^14.0.0", From 24ef28406a30d24e9fde0132f303169e7a619128 Mon Sep 17 00:00:00 2001 From: bwees Date: Mon, 27 May 2024 10:25:57 -0400 Subject: [PATCH 2/3] remove dependency --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index 46c4cd2..aadfbc6 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,5 @@ "eslint-plugin-unused-imports": "^3.0.0", "prettier": "^3.0.0", "typescript": "^5.1.6", - "xcode": "^3.0.1" } } From 7b85ca4a2ceb30de08434f590144c2227e5bf730 Mon Sep 17 00:00:00 2001 From: bwees Date: Mon, 27 May 2024 10:27:02 -0400 Subject: [PATCH 3/3] remove comma --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index aadfbc6..9723985 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,6 @@ "eslint-plugin-testing-library": "^5.11.0", "eslint-plugin-unused-imports": "^3.0.0", "prettier": "^3.0.0", - "typescript": "^5.1.6", + "typescript": "^5.1.6" } }