Skip to content

A sample app showcasing how to perform A/B testing by using feature flags in a Kotlin application

Notifications You must be signed in to change notification settings

configcat-labs/ab-testing-kotlin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Running and A/B Test in Android (Kotlin) Using ConfigCat and Amplitude

In this repository you will find an Android(Kotlin) application that shows a simple page. The application uses a feature flag, handled through ConfigCat's management system, in order to change the button's text from "Subscribe Now!" to "Subscribe Now! $4.99". The application is also connected to Amplitude and sends event data to the amplitude server using an SDK key, to make A/B testing possible.

Build & Run

Prerequisites

  • Android Studio
  • An Android Virtual Device
  • Kotlin knowledge

Running the app

  • Clone the repository
  • Replace the ConfigCat SDK key in MainActivity.kt with your own key from the ConfigCat dashboard
  • Replace the Amplitude SDK key in MainActivity.kt with your key from Amplitude
  • Run the application

Learn more

ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here.

You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on Twitter, Facebook, LinkedIn, and GitHub.

Author

Roxana Halați

Contributions

Contributions are welcome!

About

A sample app showcasing how to perform A/B testing by using feature flags in a Kotlin application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages