Skip to content
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

Merged
merged 3 commits into from
Nov 4, 2022
Merged

Conversation

qingzhuozhen
Copy link
Contributor

Summary

  • Support integration with Experiment Android SDK with analytics connector

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

@qingzhuozhen qingzhuozhen changed the title Amp 63339 feat: support integration with experiment android Nov 4, 2022
Comment on lines +51 to +53
companion object {
const val EXPOSURE_EVENT = "\$exposure"
}
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Contributor Author

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.

Comment on lines +30 to +42
// 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()
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@qingzhuozhen qingzhuozhen merged commit 2ada09b into main Nov 4, 2022
@qingzhuozhen qingzhuozhen deleted the AMP-63339 branch November 4, 2022 23:09
github-actions bot pushed a commit that referenced this pull request Nov 4, 2022
# [1.5.0](v1.4.8...v1.5.0) (2022-11-04)

### Features

* support integration with experiment android ([#92](#92)) ([2ada09b](2ada09b))
@github-actions
Copy link

github-actions bot commented Nov 4, 2022

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants