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

Confirm the iOS platform folder exists before attempting to pull in iOS file #1022

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
1a8cd4d
Some of plugin.xml is now handled by after_prepare
neil-spartan Feb 9, 2018
a2facdf
Correctly set config strings
neil-spartan Feb 9, 2018
2a97dec
Merge pull request #3 from neil-spartan/patch-3
callum-spartan Feb 9, 2018
a8e418c
Merge pull request #4 from neil-spartan/patch-4
callum-spartan Feb 9, 2018
30e9cb4
GoogleService-Info.plist must be included as a <resource-file>
neil-spartan Feb 9, 2018
cbc9650
Don't need to manually copy config file on iOS
neil-spartan Feb 9, 2018
43c9a01
Merge pull request #5 from neil-spartan/patch-5
callum-spartan Feb 9, 2018
3ac8e44
Merge pull request #6 from neil-spartan/patch-6
callum-spartan Feb 9, 2018
e358267
Adding hook to copy config into plugin
neil-spartan Feb 9, 2018
95292db
Hook for plugin install to copy config
neil-spartan Feb 9, 2018
d9c0543
Merge pull request #7 from neil-spartan/patch-7
callum-spartan Feb 9, 2018
5c8d50f
Merge pull request #8 from neil-spartan/patch-8
callum-spartan Feb 9, 2018
9a3b1e4
Call after_prepare script after plugin install.
neil-spartan Jul 5, 2018
e391900
Merge pull request #10 from neil-spartan/patch-9
callum-spartan Jul 5, 2018
1c5128b
Attempted to make after_plugin_install script work
neil-spartan Jul 6, 2018
dfbdf38
Merge pull request #11 from neil-spartan/patch-10
callum-spartan Jul 6, 2018
08d26dc
Get platforms from context
neil-spartan Jul 6, 2018
897ddbb
Merge pull request #12 from neil-spartan/patch-11
callum-spartan Jul 6, 2018
715b4bf
Removed console.log from after_plugin_install script
neil-spartan Jul 6, 2018
0d68246
Merge pull request #13 from neil-spartan/patch-12
callum-spartan Jul 6, 2018
ba62672
Fix: modified dependencies to include specific versions of firebase a…
neil-spartan Nov 13, 2018
f0cf9a9
Merge pull request #14 from neil-spartan/patch-13
callum-spartan Nov 13, 2018
68e18b9
Fix: further modified dependency versions to fix runtime exception. (…
neil-spartan Nov 16, 2018
afe9c2a
Fix: Checking if there is an iOS platform before attempting to pull i…
stevenmldn Mar 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix: Checking if there is an iOS platform before attempting to pull i…
…n the FCM.plist file
stevenmldn committed Mar 11, 2019
commit afe9c2a4d074c87ec581c256ba113a96b45f2226
13 changes: 11 additions & 2 deletions scripts/after_plugin_install.js
Original file line number Diff line number Diff line change
@@ -3,10 +3,19 @@

var fs = require('fs');

fs.unlinkSync('./plugins/cordova-plugin-firebase/src/ios/GoogleService-Info.plist');
function directoryExists(path) {
try {
return fs.statSync(path).isDirectory();
} catch (e) {
return false;
}
}

fs.writeFileSync('./plugins/cordova-plugin-firebase/src/ios/GoogleService-Info.plist', fs.readFileSync('./GoogleService-Info.plist'));
if (directoryExists('platforms/ios')) {
fs.unlinkSync('./plugins/cordova-plugin-firebase/src/ios/GoogleService-Info.plist');

fs.writeFileSync('./plugins/cordova-plugin-firebase/src/ios/GoogleService-Info.plist', fs.readFileSync('./GoogleService-Info.plist'));
}
module.exports = function (context) {
require('./after_prepare')(context);
};