-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support integration with experiment android #92
Conversation
companion object { | ||
const val EXPOSURE_EVENT = "\$exposure" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could be a top level definition outside the class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Companion objects are generally frowned upon in Kotlin I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting to know that. Didn't set up a constant class earlier, I could change that later. Was kind of under the wrong impression about it.
// Sample for Experiment Integration | ||
val experimentConfig = ExperimentConfig.builder() | ||
.debug(true) | ||
.build() | ||
|
||
val experimentClient = Experiment.initializeWithAmplitudeAnalytics(this, EXPERIMENT_API_KEY, experimentConfig) | ||
|
||
try { | ||
experimentClient.fetch(null).get() | ||
} catch (e: Exception) { | ||
e.printStackTrace() | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
# [1.5.0](v1.4.8...v1.5.0) (2022-11-04) ### Features * support integration with experiment android ([#92](#92)) ([2ada09b](2ada09b))
🎉 This PR is included in version 1.5.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary
Checklist