Skip to content

feat: add onFeatureFlags callback#224

Merged
ioannisj merged 21 commits intomainfrom
feat/on-feature-flags-callback
Dec 11, 2025
Merged

feat: add onFeatureFlags callback#224
ioannisj merged 21 commits intomainfrom
feat/on-feature-flags-callback

Conversation

@ioannisj
Copy link
Collaborator

@ioannisj ioannisj commented Dec 5, 2025

💡 Motivation and Context

Based off original PR here #183
Relates to #81

💚 How did you test it?

📝 Checklist

  • I reviewed the submitted code.
  • I added tests to verify the changes.
  • I updated the docs if needed.
  • No breaking change or entry added to the changelog.

ioannisj and others added 11 commits November 7, 2025 17:30
# Conflicts:
#	CHANGELOG.md
#	ios/Classes/PosthogFlutterPlugin.swift
#	lib/src/posthog_flutter_io.dart
#	test/posthog_flutter_platform_interface_fake.dart
Co-authored-by: Ioannis J <yiannis@posthog.com>
This reverts commit 91cf32f.

# Conflicts:
#	lib/src/posthog_config.dart
#	lib/src/posthog_flutter_io.dart
#	test/posthog_flutter_platform_interface_fake.dart
@ioannisj ioannisj requested a review from a team December 5, 2025 14:11
@ioannisj ioannisj mentioned this pull request Dec 5, 2025
4 tasks
@ioannisj ioannisj marked this pull request as draft December 8, 2025 12:13
@ioannisj ioannisj marked this pull request as ready for review December 8, 2025 20:31
case 'showSurvey':
final Map<String, dynamic> survey =
Map<String, dynamic>.from(call.arguments);
final survey = Map<String, dynamic>.from(call.arguments);
Copy link
Member

Choose a reason for hiding this comment

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

can we avoid dynamic here, we can change the method signature if needed to use Object or Object?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I didn't want to touch other code here, hence the ignore_for_file: avoid_dynamic_calls on files that are not part of the PR but should be a simple change yeah

@ioannisj
Copy link
Collaborator Author

btw yesterday I learned about fvm when testing things out. I think it would be nice to add as part of the CI to build against min sdk version

@marandaneto
Copy link
Member

btw yesterday I learned about fvm when testing things out. I think it would be nice to add as part of the CI to build against min sdk version

yep its a popular pm, i'd like to use once we write a proper dart/flutter sdk which supports lin/windows as well instead of only flutter apps on android/ios (and web), so we dont need to depend on the wrapper for everything and works across all supported platforms
if its an easy set up, we can start using this before that as well, we still dont have much tests to run now so not sure if its a big benefit (since its a wrapper)

@ioannisj
Copy link
Collaborator Author

yep its a popular pm, i'd like to use once we write a proper dart/flutter sdk which supports lin/windows as well instead of only flutter apps on android/ios (and web), so we dont need to depend on the wrapper for everything and works across all supported platforms
if its an easy set up, we can start using this before that as well, we still dont have much tests to run now so not sure if its a big benefit (since its a wrapper)

Was just thinking to run the builds against 3.22.0 just to make sure nothing breaks for min

@ioannisj ioannisj merged commit db5dc16 into main Dec 11, 2025
11 checks passed
@ioannisj ioannisj deleted the feat/on-feature-flags-callback branch December 11, 2025 11:04
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.

3 participants