Skip to content

Instantly share code, notes, and snippets.

View damphat's full-sized avatar
🎃

Phat damphat

🎃
View GitHub Profile
@damphat
damphat / installRun.gradle
Created August 15, 2019 07:22 — forked from MoshDev/installRun.gradle
Install and Run Android App Using Gradle Task
//Place this script inside your application module build.gradle
//It will create a new task(s) based on your application variants within (run) group
//sample: ./gradlew installRunDebug
//sample: ./gradlew installRunStagDebug
project.afterEvaluate {
android.applicationVariants.all { variant ->
task "installRun${variant.name.capitalize()}"(type: Exec, dependsOn: "install${variant.name.capitalize()}", group: "run") {
commandLine = ["adb", "shell", "monkey", "-p", variant.applicationId + " 1"]
doLast {
@damphat
damphat / flutter_github_ci.yml
Created October 2, 2020 21:07 — forked from rodydavis/flutter_github_ci.yml
Flutter Github Actions Build and Deploy Web to Firebase Hosting, iOS to Testflight, Android to Google Play (fastlane)
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_web: