Skip to content

Quick Start

Using Fladle takes 3 steps:

  1. Apply the Fladle plugin. Follow instructions here

    Root build.gradle

    buildscript {
      dependencies {
        classpath "com.osacky.flank.gradle:fladle:0.17.4"
      }
    }
    
    buildscript {
      dependencies {
        classpath("com.osacky.flank.gradle:fladle:0.17.4")
      }
    }
    

    Application module build.gradle

    apply plugin: "com.android.application"
    apply plugin: "com.osacky.fladle"
    
    plugins {
        id ("com.android.application")
        id ("com.osacky.fladle")
    }
    
  2. Configure Authentication using these steps.

    Warning

    If using buildFlavors or testing against a non default variant, variant must also configured

  3. Run your tests!

    First assemble your debug apk and test apk.

    ./gradlew :app:assembleDebug :app:assembleDebugAndroidTest
    

    Note

    When using flavors, make sure to assemble your buildVariants.

    ./gradlew :app:assembleFreeDebug :app:assembleFreeDebugAndroidTest

    Run Flank!

    ./gradlew runFlank