android-components / mozilla.components.service.experiments.debug / ExperimentsDebugActivity

ExperimentsDebugActivity

class ExperimentsDebugActivity (source)

Debugging activity exported by service-experiments to allow easier debugging. This accepts commands that can force the library to do the following:

  • Fetch or update experiments
  • Change the Kinto endpoint to the dev, staging, or prod endpoint
  • Override the active experiment to a branch specified by the branch command
  • Clear any overridden experiment

See here for more information on using the ExperimentsDebugActivity: https://github.com/mozilla-mobile/android-components/tree/master/components/service/experiments#experimentsdebugactivity-usage

See the adb developer docs for more info: https://developer.android.com/studio/command-line/adb#am

Constructors

Name Summary
<init> ExperimentsDebugActivity()
Debugging activity exported by service-experiments to allow easier debugging. This accepts commands that can force the library to do the following:

Functions

Name Summary
onCreate fun onCreate(savedInstanceState: <ERROR CLASS>?): Unit
On creation of the debug activity, process the command switches

Companion Object Properties

Name Summary
OVERRIDE_BRANCH_EXTRA_KEY const val OVERRIDE_BRANCH_EXTRA_KEY: String
Used only with OVERRIDE_EXPERIMENT_EXTRA_KEY.
OVERRIDE_CLEAR_ALL_EXTRA_KEY const val OVERRIDE_CLEAR_ALL_EXTRA_KEY: String
Clears any existing overrides.
OVERRIDE_EXPERIMENT_EXTRA_KEY const val OVERRIDE_EXPERIMENT_EXTRA_KEY: String
Overrides the current experiment and set the active experiment to the given branch. This command requires two parameters to be passed, overrideExperiment and branch in order for it to work.
SET_KINTO_INSTANCE_EXTRA_KEY const val SET_KINTO_INSTANCE_EXTRA_KEY: String
Sets the Kinto endpoint to the supplied endpoint. Must be one of: dev, staging, or prod.
UPDATE_EXPERIMENTS_EXTRA_KEY const val UPDATE_EXPERIMENTS_EXTRA_KEY: String
Fetch experiments from the server and update the active experiment if necessary.