Skip to content

Commit

Permalink
update ios postbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
bwees committed Mar 30, 2024
1 parent ff5c9d6 commit d516fb1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fastlane/privacy/ios-postbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const xcode = require('xcode');
const fs = require('fs');

// get the project file
const projectPath = 'ios/ReveilleRides.xcodeproj/project.pbxproj';
const projectPath = 'ios/MaroonRides.xcodeproj/project.pbxproj';
const project = xcode.project(projectPath);

// parse the project file
Expand All @@ -12,14 +12,14 @@ project.parse(function (error) {
console.log('Error parsing the project file');
}

// find the key of the group named 'ReveilleRides'
const mainGroup = project.findPBXGroupKey({name: 'ReveilleRides'});
// 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/ReveilleRides/PrivacyInfo.xcprivacy');
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('ReveilleRides/PrivacyInfo.xcprivacy', mainGroup);
project.addFile('MaroonRides/PrivacyInfo.xcprivacy', mainGroup);

console.log('Added PrivacyInfo.xcprivacy to the project!');

Expand Down

0 comments on commit d516fb1

Please sign in to comment.