Code Monkey home page Code Monkey logo

androidfastlanesample's Introduction

Android fastlane Sample

fastlane is a tool for building and releasing iOS and Android apps (see fastlane Website for more information). To setup fastlane for Android, see the Setup fastlane for Android Guide. I would recommend install fastlane via Ruby. To get an impression what fastlane is capable of, see fastlane Actions.

To run fastlane just select the lane you want to run, like the build_and_run_unit_tests_debug lane, which builds the debug target and run all unit tests:

fastlane build_and_run_unit_tests_debug

Gradle

Running Tasks

Like using the normal gradle or gradle wrapper you can run all tasks. The following example is running the clean first, then the assembleDebug task and at the end the testDebugUnitTest task:

gradle(
  task: 'clean assembleDebug testDebugUnitTest'
)

This combination can be used to build and run gradle tasks for feature branches.

Setting gradle Properties

You can also set gradle properties via fastlane and use them on building. E.g. you can set the versionCode and versionName like this:

properties: {
    'versionCode' => versionCode,
    'versionName' => version
}

Then it will write the following into the gradle.properties file:

versionCode=1
versionName=1.0.0

And then you can use it in you app/build.gradle like this:

versionCode project.property('versionCode') as Integer
versionName project.property('versionName')

Run External Tools

You can run external scripts in a lane.

sh('./kill-emulators.sh')

Setting Project Parameters

tbd

Make Screenshots

tbd

Writing Meta Data

tbd

Upload APKs

Upload to Hockey

tbd

Upload to Google Beta

tbd

Upload to Google Playstore

tbd

androidfastlanesample's People

Contributors

dkiefner avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.