examples/cordova1/plugins/branch-cordova-sdk/src/scripts/ios/enableEntitlements.js
function enableAssociatedDomains(preferences) {
    const entitlementsFile = path.join(
      preferences.projectRoot,
      "platforms",
      "ios",
      preferences.projectName,
      "Resources",
      `${preferences.projectName}.entitlements`
    );

    activateAssociativeDomains(
      preferences.iosProjectModule.xcode,
      entitlementsFile
    );
    addPbxReference(preferences.iosProjectModule.xcode, entitlementsFile);
    preferences.iosProjectModule.write();
  }
function enableAssociatedDomains(preferences) {
    const entitlementsFile = path.join(
      preferences.projectRoot,
      "platforms",
      "ios",
      preferences.projectName,
      "Resources",
      `${preferences.projectName}.entitlements`
    );

    activateAssociativeDomains(
      preferences.iosProjectModule.xcode,
      entitlementsFile
    );
    addPbxReference(preferences.iosProjectModule.xcode, entitlementsFile);
    preferences.iosProjectModule.write();
  }
function enableAssociatedDomains ( preferences ) { const entitlementsFile = path . join ( preferences . projectRoot , "platforms" , "ios" , preferences . projectName , "Resources" , ` ${ preferences . projectName } ` ) ; activateAssociativeDomains ( preferences . iosProjectModule . xcode , entitlementsFile ) ; addPbxReference ( preferences . iosProjectModule . xcode , entitlementsFile ) ; preferences . iosProjectModule . write ( ) ; }
updates the xcode preferences to allow associated domains
updates the xcode preferences to allow associated domains