dryrun


Source link: https://github.com/cesarferreira/dryrun

dryrun

Try any android library hosted online directly from the command line

Install

gem install dryrun

Usage

dryrun https://github.com/cesarferreira/android-helloworld

Wait a few seconds and the app is now opened on your phone 😃

$ dryrun -h Usage: dryrun GIT_URL [OPTIONS]  Options
  -m, --module MODULE_NAME

Custom module to run
  -b, --branch BRANCH_NAME

Checkout custom branch to run
  -f, --flavour FLAVOUR

Custom flavour (e.g. dev, qa, prod)
  -p, --path PATH

Custom path to android project
  -t, --tag TAG

  Checkout tag/commit hash to clone (e.g. "v0.4.5", "6f7dd4b")
  -c, --cleanup

  Clean the temporary folder before cloning the project
  -w, --wipe

  Wipe the temporary dryrun folder
  -h, --help

  Displays help
  -v, --version

  Displays the version

Alternative scenario (if you don't use dryrun)

  1. Find the github's repository url
  2. Click the download zip
  3. Extract the zip file
  4. Open Android Studio
  5. Import the project you just downloaded
  6. Sync gradle
  7. Run the project
  8. Choose the device you want to run
  9. Test all you want
  10. Delete the project folder and the zip file when you don't want it anymore

Goodies

  • Private repos can be tested too 😃
  $ dryrun [email protected]:cesarferreira/android-helloworld.git 
  • No need to cleanup after you test the library.
  • No need to wait for Android Studio to load.

Notes

Be aware that ANDROID_HOME needs to be set with the adb path:

  • MAC -> ANDROID_HOME=/usr/local/opt/android-sdk
  • Linux -> ANDROID_HOME=/usr/local/opt/android-sdk
  • Windows -> ANDROID_HOME="...sdk" In windows this ANDROID_HOME is not automatically created, see more in here

Additionally, on windows in order to use git commands, the following path should be on the environment variable

  • ...\Git\cmd

Created by

Cesar Ferreira

License

MIT © Cesar Ferreira

Resources

A sample project with the new BottomSheet classes from the android support library.

A simple helper library to separate navigation logic from your MainActivity and reduce boilerplate.

A view that arranges it's children in the form of a stack.

A Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.

The best room chat system for Android. Real-time, IRC Style using firebase as database.

Infinite cycle ViewPager with two-way orientation and interactive effect.

Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes