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: initialize native android sdk in flutter #159

Merged

Conversation

mrehan27
Copy link
Contributor

@mrehan27 mrehan27 commented Nov 6, 2024

part of MBL-620

Changes

  • Initialized native Android SDK using configuration provided by Flutter
  • Removed unused constants related to initialization

@mrehan27 mrehan27 requested a review from Shahroz16 November 6, 2024 07:58
@mrehan27 mrehan27 self-assigned this Nov 6, 2024
Copy link

github-actions bot commented Nov 6, 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: 159.3.0 (28848158)

// Checks if SDK was initialized before, which means lifecycle callbacks are already
// registered as well
val isLifecycleCallbacksRegistered = kotlin.runCatching { CustomerIO.instance() }.isSuccess
val logLevelRawValue = args.getAsTypeOrNull<String>("logLevel")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used hardcoded strings for keys instead because the constants aren't reused outside this function, so I felt they weren't adding much value. That said, I'm open to moving them back to constants if anyone thinks it would improve clarity or maintainability.

Copy link
Collaborator

@Shahroz16 Shahroz16 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

@mrehan27 mrehan27 closed this Nov 6, 2024
@mrehan27 mrehan27 reopened this Nov 6, 2024
@mrehan27 mrehan27 merged commit 380a50f into feature/data-pipelines-support Nov 6, 2024
4 of 7 checks passed
@mrehan27 mrehan27 deleted the rehan/mbl-620-sdk-init-android branch November 6, 2024 10:24
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