mirror of
https://github.com/jpush/jpush-phonegap-plugin.git
synced 2025-02-21 21:43:02 +08:00
commit
847d94c080
@ -151,8 +151,11 @@ module.exports = (context) => {
|
|||||||
let willEnablePushNotificationForXCode = true;
|
let willEnablePushNotificationForXCode = true;
|
||||||
try { // try to read ios developmentTeam from build.json
|
try { // try to read ios developmentTeam from build.json
|
||||||
cordovaBuildConfig = JSON.parse(fs.readFileSync(cordovaBuildConfigPath, "utf8"));
|
cordovaBuildConfig = JSON.parse(fs.readFileSync(cordovaBuildConfigPath, "utf8"));
|
||||||
|
if(cordovaBuildConfig.ios.release.developmentTeam === null && cordovaBuildConfig.ios.release.developmentTeam === undefined) {
|
||||||
|
throw 'no valid developmentTeam found in build.json';
|
||||||
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.log("Do not detected 'build.json' to get ios developent team. \n" +
|
console.log("Do not detected 'build.json' or ios.release.developmentTeam not avaliable in 'build.json' \n" +
|
||||||
"Will not enable XCode Push Notification Capability. \n" +
|
"Will not enable XCode Push Notification Capability. \n" +
|
||||||
"Will only enable Push Notification for CI by add config to '" + basePath + xcodeprojName + "/Entitlements-Debug.plist' and '" + basePath + xcodeprojName + "/Entitlements-Release.plist' \n" +
|
"Will only enable Push Notification for CI by add config to '" + basePath + xcodeprojName + "/Entitlements-Debug.plist' and '" + basePath + xcodeprojName + "/Entitlements-Release.plist' \n" +
|
||||||
"Please add 'build.json' to cordova project root folder to make after hook fully functional. \n" +
|
"Please add 'build.json' to cordova project root folder to make after hook fully functional. \n" +
|
||||||
|
Loading…
Reference in New Issue
Block a user