-
Notifications
You must be signed in to change notification settings - Fork 81
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
refactor: update iOS bridge #176
Conversation
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.
Overall looks good. See nits. Thanks @Mercy811 !
@@ -66,7 +65,7 @@ class AmplitudeFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAware { | |||
amplitude = Amplitude(configuration) | |||
|
|||
// Set library | |||
amplitude.add(FlutterLibraryPlugin()) | |||
amplitude.add(FlutterLibraryPlugin(call.argument<String>("library")!!)) |
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.
nit: !!
could maybe throw an error? what about this instead?
amplitude.add(FlutterLibraryPlugin(call.argument<String>("library")!!)) | |
amplitude.add(FlutterLibraryPlugin(call.argument<String>("library") ?? "amplitude-flutter/unknown")) |
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.
I like it! Update both Kotlin and Swift at 4eb9b6f
🎉 This PR is included in version 4.0.0-beta.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
ios/Classes/SwiftAmplitudeFlutterPlugin.swift
swiftlint
to CIrelease.config.js
has to change package version for Flutter, Android (BuildConfig.SDK_VERSION`) and Swift plugins separatelyrelease.config.js
only need to change package version for Flutterlibrary
along with configuration wheninit