Skip to content

Commit 3ac95f5

Browse files
committed
refactor: [SDK-5156] answer flag lookups instead of gating events
Follows KMP 31a7759: each event carries its own gate policy, so the host only implements IFeatureFlagReader, "is this flag on", and CoreModule wires that to IFeatureManager. Pins the submodule to the policy change.
1 parent 65f3142 commit 3ac95f5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/CoreModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ internal class CoreModule : IModule {
114114
builder.register { provider ->
115115
val featureManager = provider.getService(IFeatureManager::class.java)
116116
LoggerFactory.createObservabilityEventRecorder(
117-
gate = { event -> featureManager.isEnabled(event.flag) },
117+
flags = { flag -> featureManager.isEnabled(flag) },
118118
logger = AndroidLogger(),
119119
)
120120
}.provides<IObservabilityEventRecorder>()

0 commit comments

Comments
 (0)