Skip to content

Instantly share code, notes, and snippets.

View yasiralijaved's full-sized avatar

Yasir Ali yasiralijaved

  • Islamabad, Pakistan
View GitHub Profile
@yasiralijaved
yasiralijaved / build.gradle
Last active May 2, 2018 18:31
app level build.gradle file to configure Slack extension for sending the New Build related messages to a Slack Channel using Channel's WebHook
// Slack Plugin For Gradle. https://github.com/Mindera/gradle-slack-plugin
slack {
url 'https://hooks.slack.com/services/abc/abc/abc'
dependsOnTasks 'crashlyticsUploadDistributionInternalQA',
'crashlyticsUploadDistributionExternalQA'
title "*```New Build Available | ${version} (${gitCommitCount()})] ```*https://fabric.io/url/to/myapp"
enabled = true
}
@yasiralijaved
yasiralijaved / build.gradle
Last active May 2, 2018 18:06
custom Gradle task "externalQADist" that Jenkins calls to build and distribute the apk and also send the notification to a Slack Channel for External QA Team
// Used by Jenkins to distribute apk among External Testers via Fabric Beta
task externalQADist (type: GradleBuild) {
group 'MyApp Distribution'
description 'Task for Jenkins to distribute Build for External QA'
tasks = ['clean',
'cleanBuildCache',
'assembleExternalQA',
'crashlyticsUploadDistributionExternalQA']
}
@yasiralijaved
yasiralijaved / build.gradle
Last active July 4, 2018 13:07
app level build.gradle file to create Gradle's custom tasks "inernalQADist" and "externalQADist" that Jenkins calls to build and distribute the apk and also send the notification to a Slack Channel for Internal and External QA Teams
// Gradle Plugin to publish APK to Google PlayStore right from the Gradle Task.
// https://github.com/Triple-T/gradle-play-publisher
apply plugin: 'com.github.triplet.play'
// Fabric.io Plugin
apply plugin: 'io.fabric'
// Slack Plugin For Gradle. https://github.com/Mindera/gradle-slack-plugin
apply plugin: 'com.mindera.gradle.slack'
@yasiralijaved
yasiralijaved / build.gradle
Last active May 2, 2018 17:33
app level build.gradle file to create Gradle's custom task "inernalQADist" that Jenkins calls to build and distribute the apk and also send the notification to a Slack Channel for Internal QA Team
// Used by Jenkins to distribute apk among Internal Testers via Fabric Beta
task internalQADist (type: GradleBuild) {
group 'MyApp Distribution'
description 'Task for Jenkins to distribute Build for Internal QA'
tasks = ['clean',
'cleanBuildCache',
'assembleInternalQA',
'crashlyticsUploadDistributionInternalQA']
}
@yasiralijaved
yasiralijaved / read-guardian-in-facebook
Created April 17, 2012 11:19 — forked from tony2nite/read-guardian-in-facebook
Bookmarklet to redirect from an article on The Guardian site to The Guardian Facebook app
<html>
<body>
<a href="javascript:(function () {
var host = 'http://www.guardian.co.uk/';
var url = document.location.href;
if (url.indexOf(host) == 0) {
var dir = url.substring(host.length);
var FACEBOOK_GUARDIAN = 'https://apps.facebook.com/theguardian/';
document.location.href = FACEBOOK_GUARDIAN + dir;
}