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
- Host: GitHub
- URL: https://github.com/sephiroth74/abtest
- Owner: sephiroth74
- Created: 2013-03-27T15:02:01.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-04-21T18:58:45.000Z (over 10 years ago)
- Last Synced: 2025-03-30T01:23:41.671Z (10 months ago)
- Language: Java
- Size: 491 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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" );
}
} );