Skip to content

Commit

Permalink
style: renamed projectplatform to iosprojectmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanneff committed Mar 7, 2017
1 parent 4507dd0 commit ec5f7db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/scripts/ios/capabilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
function enableAssociatedDomains (preferences) {
console.log('BRANCH SDK: Updating iOS Xcode preferences')

var projectFile = preferences.projectPlatform.parseProjectFile(path.join(preferences.projectRoot, 'platforms', 'ios'))
var entitlementsFile = path.join(preferences.projectRoot, 'platforms', 'ios', preferences.projectName, 'Resources', preferences.projectName + '.entitlements')
var projectFile = preferences.iosProjectModule.parseProjectFile(path.join(preferences.projectRoot, 'platforms', 'ios'))

activateAssociativeDomains(projectFile.xcode, entitlementsFile)
addPbxReference(projectFile.xcode, entitlementsFile)
Expand Down
6 changes: 3 additions & 3 deletions src/scripts/sdk/configXml.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@

return {
'projectRoot': projectRoot,
'projectPlatform': projectPlatform,
'bundleId': bundleId,
'branchKey': branchKey,
'uriScheme': uriScheme,
Expand All @@ -70,6 +69,7 @@
'androidPrefix': androidPrefix, // optional
'androidTestMode': androidTestMode // optional
'projectName': getProjectName(configXml),
'iosProjectModule': getProjectModule(context),
}
}

Expand All @@ -82,8 +82,8 @@
}
}

// read project platform
function getProjectPlatform (context) {
// read iOS project module from cordova context
function getProjectModule (context) {
// try pre-5.0 cordova structure
try {
return context.requireCordovaModule('cordova-lib/src/plugman/platforms').ios
Expand Down

0 comments on commit ec5f7db

Please sign in to comment.