Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Xamarin Insights grunt script
module.exports = function(grunt) {
grunt.initConfig({
shell: {
zipDYSM: {
command: [
'zip',
'-r',
'{PATH_TO_YOUR_BIN_FOLDER}/bin/iPhone/Debug/{APP_NAME}.app.dSYM.zip',
'{PATH_TO_YOUR_BIN_FOLDER}/bin/iPhone/Debug/{APP_NAME}.app.dSYM',
].join(' '),
options: {
execOptions: {
maxBuffer: Infinity
}
}
},
uploadDYSMToInsights: {
command: [
'curl',
'-F "dsym=@{PATH_TO_YOUR_BIN_FOLDER}/bin/iPhone/Debug/{APP_NAME}.app.dSYM.zip;type=application/zip"',
'https://xaapi.xamarin.com/api/dsym?apikey={INSIGHTS_API_KEY}',
].join(' '),
options: {
execOptions: {
maxBuffer: Infinity
}
}
}
}
});
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', [
'shell:zipDYSM',
'shell:uploadDYSMToInsights'
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment