An open API service indexing awesome lists of open source software.

https://github.com/sephiroth74/abtest

Simple library for ab testing in android
https://github.com/sephiroth74/abtest

Last synced: 5 months ago
JSON representation

Simple library for ab testing in android

Awesome Lists containing this project

README

          

ABTest
======

Simple library for ab testing in android

## Usage (gradle)

Add this line to your dependecy group:

compile 'it.sephiroth.android.library.ab:library:+'

## Example

This library is meant for very simple AB testing.

The library can be initialized everywhere in your code:

AB alphaBetaTest = AB.getInstance( this );

You can retrieve the current group in this way:

Log.d( LOG_TAG, "group: " + alphaBetaTest.getGroup() );

And you can perform an ab test in this way:

alphaBetaTest.doABTest( "test-action", new ABTest() {

@Override
public void B() {
Log.i( LOG_TAG, getName() + " = B" );
}

@Override
public void A() {
Log.i( LOG_TAG, getName() + " = A" );
}
} );