appcenter-link-scripts
Advanced tools
Comparing version 1.12.2 to 1.13.0
{ | ||
"name": "appcenter-link-scripts", | ||
"version": "1.12.2", | ||
"version": "1.13.0", | ||
"description": "Node module that contains common functionality needed to link appcenter-* modules", | ||
@@ -27,3 +27,3 @@ "main": "src/index.js", | ||
"which": "^1.2.11", | ||
"xcode": "^1.0.0" | ||
"xcode": "^2.0.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -39,15 +39,13 @@ const fs = require('fs'); | ||
if (oldCodeMatches) { | ||
this.appDelegateContents = this.appDelegateContents.replace(oldCodeMatches[0], code); | ||
this.appDelegateContents = this.appDelegateContents.replace(oldCodeMatches[0], ` ${code}`); | ||
debug('Replaced code', code, 'to file', this.appDelegatePath); | ||
} else { | ||
const match = this.appDelegateContents.match(/NSURL \*jsCodeLocation;[ \t]*\r*\n/); | ||
/* Find the beginning of the didFinishLaunchingWithOptions method. */ | ||
const match = this.appDelegateContents.match(/[^\n]*didFinishLaunchingWithOptions[^{]*{[\s]*/); | ||
if (match === null) { | ||
throw Error(` | ||
Could not find line "NSURL \*jsCodeLocation;" in file AppDelegate.m. | ||
Update AppDelegate.m so that text is present, as we match on it and insert '${code}' after for AppCenter SDK integration. | ||
`); | ||
throw Error('Could not find the start of the didFinishLaunchingWithOptions method in the AppDelegate.m file.'); | ||
} | ||
const existingLine = match[0]; | ||
this.appDelegateContents = this.appDelegateContents.replace(existingLine, `${existingLine}\n${code}\n`); | ||
this.appDelegateContents = this.appDelegateContents.replace(existingLine, `${existingLine}${code}\n `); | ||
debug('Added code', code, 'to file', this.appDelegatePath); | ||
@@ -54,0 +52,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30612
673
+ Addedbplist-creator@0.1.1(transitive)
+ Addedbplist-parser@0.3.2(transitive)
+ Addedsimple-plist@1.4.0(transitive)
+ Addedxcode@2.1.0(transitive)
- Removedbase64-js@1.1.2(transitive)
- Removedbplist-creator@0.0.7(transitive)
- Removedbplist-parser@0.1.1(transitive)
- Removedplist@2.0.1(transitive)
- Removedsimple-plist@0.2.1(transitive)
- Removedxcode@1.1.0(transitive)
- Removedxmlbuilder@8.2.2(transitive)
- Removedxmldom@0.1.31(transitive)
Updatedxcode@^2.0.0