publish/scripts/postinstall.js
function askAndroidPrompt() {
    prompt.get({
        name: 'using_android',
        description: 'Are you using Android (y/n)',
        default: 'y'
    }, function(err, result) {
        if (err) {
            return console.log(err);
        }
        mergeConfig(result);
        askAndroidPromptResult(result);
        if (usingiOS || usingAndroid) {
            promptQuestions();
        } else {
            askSaveConfigPrompt();
        }
    });
}
function askAndroidPrompt() {
    prompt.get({
        name: 'using_android',
        description: 'Are you using Android (y/n)',
        default: 'y'
    }, function(err, result) {
        if (err) {
            return console.log(err);
        }
        mergeConfig(result);
        askAndroidPromptResult(result);
        if (usingiOS || usingAndroid) {
            promptQuestions();
        } else {
            askSaveConfigPrompt();
        }
    });
}
function askAndroidPrompt ( ) { prompt . get ( { name : 'using_android' , description : 'Are you using Android (y/n)' , default : 'y' } , function ( err , result ) { if ( err ) { return console . log ( err ) ; } mergeConfig ( result ) ; askAndroidPromptResult ( result ) ; if ( usingiOS || usingAndroid ) { promptQuestions ( ) ; } else { askSaveConfigPrompt ( ) ; } } ) ; }
Prompt the user if they are integrating Fabric with Android
Prompt the user if they are integrating Fabric with Android