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

    platforms.forEach(platform => {
      if (platform === ANDROID) {
        androidManifest.writePreferences(context, preferences);
      }
      if (platform === IOS) {
        iosDevelopmentTeam.addDevelopmentTeam(preferences);
      }
    });
  }
function run(context) {
    const preferences = configPreferences.read(context);
    const platforms = context.opts.cordova.platforms;

    platforms.forEach(platform => {
      if (platform === ANDROID) {
        androidManifest.writePreferences(context, preferences);
      }
      if (platform === IOS) {
        iosDevelopmentTeam.addDevelopmentTeam(preferences);
      }
    });
  }
function run ( context ) { const preferences = configPreferences . read ( context ) ; const platforms = context . opts . cordova . platforms ; platforms . forEach ( platform => { if ( platform === ANDROID ) { androidManifest . writePreferences ( context , preferences ) ; } if ( platform === IOS ) { iosDevelopmentTeam . addDevelopmentTeam ( preferences ) ; } } ) ; }
builds after platform config
builds after platform config