examples/cordova1/plugins/branch-cordova-sdk/src/scripts/hooks/beforePrepare.js
function run(context) {
    const preferences = configPreferences.read(context);
    const platforms = context.opts.cordova.platforms;

    platforms.forEach(platform => {
      if (platform === IOS) {
        iosPlist.addBranchSettings(preferences);
        iosCapabilities.enableAssociatedDomains(preferences);
        iosAssociatedDomains.addAssociatedDomains(preferences);
      }
    });
  }
function run(context) {
    const preferences = configPreferences.read(context);
    const platforms = context.opts.cordova.platforms;

    platforms.forEach(platform => {
      if (platform === IOS) {
        iosPlist.addBranchSettings(preferences);
        iosCapabilities.enableAssociatedDomains(preferences);
        iosAssociatedDomains.addAssociatedDomains(preferences);
      }
    });
  }
function run ( context ) { const preferences = configPreferences . read ( context ) ; const platforms = context . opts . cordova . platforms ; platforms . forEach ( platform => { if ( platform === IOS ) { iosPlist . addBranchSettings ( preferences ) ; iosCapabilities . enableAssociatedDomains ( preferences ) ; iosAssociatedDomains . addAssociatedDomains ( preferences ) ; } } ) ; }
builds before platform config
builds before platform config