UNPKG

cordova-fabric-plugin

Version:
25 lines (19 loc) 930 B
var androidHelper = require('./lib/android-helper'); var iosHelper = require("./lib/ios-helper"); var utilities = require("./lib/utilities"); module.exports = function(context) { var platforms = context.opts.cordova.platforms; // Modify the Gradle build file to add a task that will upload the debug symbols // at build time. if (platforms.indexOf("android") !== -1) { androidHelper.removeFabricBuildToolsFromGradle(); androidHelper.addFabricBuildToolsGradle(); } // Add a build phase which runs a shell script that executes the Crashlytics // run command line tool which uploads the debug symbols at build time. if (platforms.indexOf("ios") !== -1) { var xcodeProjectPath = utilities.getXcodeProjectPath(context); iosHelper.removeShellScriptBuildPhase(context, xcodeProjectPath); iosHelper.addShellScriptBuildPhase(context, xcodeProjectPath); } };