AB

Light weight ab testing library for Android

License

License

GroupId

GroupId

it.sephiroth.android.library.ab
ArtifactId

ArtifactId

library
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

aar
Description

Description

AB
Light weight ab testing library for Android
Project URL

Project URL

http://blog.sephiroth.it
Source Code Management

Source Code Management

https://github.com/sephiroth74/ABTest

Download library

How to add to project

<!-- https://jarcasting.com/artifacts/it.sephiroth.android.library.ab/library/ -->
<dependency>
    <groupId>it.sephiroth.android.library.ab</groupId>
    <artifactId>library</artifactId>
    <version>2.0.2</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/it.sephiroth.android.library.ab/library/
implementation 'it.sephiroth.android.library.ab:library:2.0.2'
// https://jarcasting.com/artifacts/it.sephiroth.android.library.ab/library/
implementation ("it.sephiroth.android.library.ab:library:2.0.2")
'it.sephiroth.android.library.ab:library:aar:2.0.2'
<dependency org="it.sephiroth.android.library.ab" name="library" rev="2.0.2">
  <artifact name="library" type="aar" />
</dependency>
@Grapes(
@Grab(group='it.sephiroth.android.library.ab', module='library', version='2.0.2')
)
libraryDependencies += "it.sephiroth.android.library.ab" % "library" % "2.0.2"
[it.sephiroth.android.library.ab/library "2.0.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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" );
		}
	} );

Versions

Version
2.0.2
2.0.1