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

chore: update public API #152

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

Shahroz16
Copy link
Collaborator

closes: https://linear.app/customerio/issue/MBL-618/implement-public-api-structure-for-instance-pattern

changes:

  • updated public API to be more testable and use dart/flutter conventions
  • updated the tests and sample app to utilize the updated APIs

@Shahroz16 Shahroz16 requested a review from mrehan27 October 28, 2024 21:20
Copy link

github-actions bot commented Oct 28, 2024

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


  • amiapp_flutter: 152.3.0 (28836491)

required CustomerIOConfig config,
}) {
return _customerIO.initialize(config: config);
static Future<void> initialize({required CustomerIOConfig config}) async {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is still static function, because CustomerIO.instance.initialize didn't look good and then I checked what others could be doing, and saw Firebase also has initialize method as static while others instance bound.

Copy link
Contributor

@mrehan27 mrehan27 left a comment

Choose a reason for hiding this comment

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

Looks good 👍🏻

Copy link
Contributor

@mrehan27 mrehan27 left a comment

Choose a reason for hiding this comment

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

I just noticed a few CI checks failing, we just need to fix them before merging. Rest looks good.

lib/customer_io.dart Outdated Show resolved Hide resolved
test/customer_io_test.dart Outdated Show resolved Hide resolved
@Shahroz16 Shahroz16 merged commit a783266 into feature/data-pipelines-support Oct 29, 2024
6 checks passed
@Shahroz16 Shahroz16 deleted the mbl-618-public-api-changes branch October 29, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants