All Projects → cesarferreira → Android Rocket Launcher

cesarferreira / Android Rocket Launcher

Licence: mit
🚀 Launch android modules from the terminal

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Android Rocket Launcher

Lambdacd
a library to define a continuous delivery pipeline in code
Stars: ✭ 655 (+306.83%)
Mutual labels:  library, tool
Andes
Python toolbox / library for power system transient dynamics simulation with symbolic modeling and numerical analysis 🔥
Stars: ✭ 68 (-57.76%)
Mutual labels:  library, tool
Depressurizer
A Steam library categorizing tool.
Stars: ✭ 1,008 (+526.09%)
Mutual labels:  library, tool
Motionia
Motionia is a lightweight simplified on demand animation library!
Stars: ✭ 294 (+82.61%)
Mutual labels:  library, tool
Gradle Maven Plugin
Gradle 5.x Maven Publish Plugin to deploy artifacts
Stars: ✭ 124 (-22.98%)
Mutual labels:  library, plugin
Ferret
Declarative web scraping
Stars: ✭ 4,837 (+2904.35%)
Mutual labels:  library, tool
Dublin Traceroute
Dublin Traceroute is a NAT-aware multipath tracerouting tool
Stars: ✭ 159 (-1.24%)
Mutual labels:  library, tool
Behaviortree.js
An JavaScript implementation of Behavior Trees.
Stars: ✭ 228 (+41.61%)
Mutual labels:  library, tool
Xseries
Library for cross-version Minecraft Bukkit support and various efficient API methods.
Stars: ✭ 109 (-32.3%)
Mutual labels:  library, plugin
Surf
Easy and powerful PHP deployment tool
Stars: ✭ 79 (-50.93%)
Mutual labels:  deployment, tool
Rex
Your RegEx companion.
Stars: ✭ 283 (+75.78%)
Mutual labels:  library, tool
Streamdeck Tools
The Stream Deck Tools library wraps all the communication with the Stream Deck app, allowing you to focus on actually writing the Plugin's logic
Stars: ✭ 133 (-17.39%)
Mutual labels:  library, plugin
Harp
A Go application deployment tool.
Stars: ✭ 263 (+63.35%)
Mutual labels:  deployment, tool
Xspear
Powerfull XSS Scanning and Parameter analysis tool&gem
Stars: ✭ 583 (+262.11%)
Mutual labels:  library, tool
Chroma
A general purpose syntax highlighter in pure Go
Stars: ✭ 3,013 (+1771.43%)
Mutual labels:  library, tool
Align
A general purpose application and library for aligning text.
Stars: ✭ 63 (-60.87%)
Mutual labels:  library, tool
Autoserver
Create a full-featured REST/GraphQL API from a configuration file
Stars: ✭ 188 (+16.77%)
Mutual labels:  library, deployment
Php Validate
Lightweight and feature-rich PHP validation and filtering library. Support scene grouping, pre-filtering, array checking, custom validators, custom messages. 轻量且功能丰富的PHP验证、过滤库。支持场景分组,前置过滤,数组检查,自定义验证器,自定义消息。
Stars: ✭ 225 (+39.75%)
Mutual labels:  library, tool
Deployer
A deployment tool written in PHP with support for popular frameworks out of the box
Stars: ✭ 8,928 (+5445.34%)
Mutual labels:  deployment, tool
Phplrt
PHP Language Recognition Tool
Stars: ✭ 127 (-21.12%)
Mutual labels:  library, tool

Android Rocket Launcher

Gradle plugin that adds tasks to your android modules for installing and launching all variants

download License Closed

How to use

Paste this code into your main build.gradle

dependencies {
    // ...
    classpath 'com.cesarferreira:android-rocket-launcher:1.0.0'
}

Paste this code into your app module build.gradle

apply plugin: 'android-rocket-launcher'

Now, when you run ./gradlew tasks, you'll see something like this:

openDevDebug - Installs and opens DevDebug build
openDevRelease - Installs and opens DevRelease build
openEnvtestDebug - Installs and opens EnvtestDebug build
openEnvtestRelease - Installs and opens EnvtestRelease build
openProdDebug - Installs and opens ProdDebug build
openProdRelease - Installs and opens ProdRelease build
openSandboxDebug - Installs and opens SandboxDebug build
openSandboxRelease - Installs and opens SandboxRelease build

Alternative

Copy-pasting this gradle task on every project

// Running the APK on your Android Device
android.applicationVariants.all { variant ->
    if (variant.install) {
        tasks.create(name: "run${variant.name.capitalize()}", type: Exec,
                dependsOn: variant.install) {
            group = 'Run'
            description "Installs and Runs the APK for ${variant.description}."
            def getMainActivity = { file ->
                new XmlSlurper().parse(file).application.activity.find {
                    it.'intent-filter'.find { filter ->
                        return filter.action.find {
                            it.'@android:name'.text() == 'android.intent.action.MAIN'
                        } \
                                 && filter.category.find {
                            it.'@android:name'.text() == 'android.intent.category.LAUNCHER'
                        }
                    }
                }.'@android:name'
            }
            doFirst {
                def activityClass =
                        getMainActivity(variant.outputs.processManifest.manifestOutputFile)
                commandLine android.adbExe, 'shell', 'am', 'start', '-n',
                        "${variant.applicationId}/${activityClass}"
            }
        }
    }
}

It's a no brainer 😄

Maintainers

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].