Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 28, 2016
1 parent bc08f30 commit 23c63cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions hooks/ios/install_entitlements.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.error("START Running hook to add iOS Keychain Sharing entitlements (required since iOS 10)");
console.log("START Running hook to add iOS Keychain Sharing entitlements (required since iOS 10)");

var xcode = require('xcode'),
fs = require('fs'),
Expand All @@ -16,7 +16,6 @@ module.exports = function (context) {

var iosPlatform = path.join(context.opts.projectRoot, 'platforms/ios/');
var iosFolder = fs.existsSync(iosPlatform) ? iosPlatform : context.opts.projectRoot;
console.log("iosFolder: " + iosFolder);

fs.readdir(iosFolder, function (err, data) {
if (err) {
Expand Down Expand Up @@ -52,8 +51,6 @@ module.exports = function (context) {
var projectPlistPath = path.join(iosFolder, projName, util.format('%s-Info.plist', projName));
var projectPlistJson = plist.parse(fs.readFileSync(projectPlistPath, 'utf8'));
var bundleID = projectPlistJson.CFBundleIdentifier;
console.log("KeychainSharingBundleID: " + bundleID);


// create a new entitlements plist file
var sourceFile = path.join(context.opts.plugin.pluginInfo.dir, 'src/ios/resources/KeychainSharing.entitlements');
Expand Down Expand Up @@ -83,9 +80,8 @@ module.exports = function (context) {
}

// write the updated project file
console.log("---- writing updated project file to: " + projectPath);
fs.writeFileSync(projectPath, pbxProject.writeSync());
console.error("END Running hook to add iOS Keychain Sharing entitlements (required since iOS 10)");
console.log("END Running hook to add iOS Keychain Sharing entitlements (required since iOS 10)");

deferral.resolve();
});
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<header-file src="src/ios/GooglePlus.h"/>
<source-file src="src/ios/GooglePlus.m"/>

<preference name="REVERSED_CLIENT_ID" default=" " />
<preference name="REVERSED_CLIENT_ID" />

<config-file target="*-Info.plist" parent="CFBundleURLTypes">
<array>
Expand Down

0 comments on commit 23c63cf

Please sign in to comment.