From 5237cf92941248797d4a65f8a8193a84e3113711 Mon Sep 17 00:00:00 2001 From: Matt Creaser Date: Fri, 3 May 2024 18:40:28 -0300 Subject: [PATCH] Make Analytics Options Builder build function public for Java to call --- aws-analytics-pinpoint/api/aws-analytics-pinpoint.api | 1 + .../analytics/pinpoint/AWSPinpointAnalyticsPlugin.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/aws-analytics-pinpoint/api/aws-analytics-pinpoint.api b/aws-analytics-pinpoint/api/aws-analytics-pinpoint.api index ad0089136..c0028308e 100644 --- a/aws-analytics-pinpoint/api/aws-analytics-pinpoint.api +++ b/aws-analytics-pinpoint/api/aws-analytics-pinpoint.api @@ -33,6 +33,7 @@ public final class com/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsP public final class com/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin$Options$Builder { public final fun autoFlushEventsInterval (J)Lcom/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin$Options$Builder; + public final fun build ()Lcom/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin$Options; public final fun getAutoFlushEventsInterval ()J public final fun getTrackLifecycleEvents ()Z public final synthetic fun setAutoFlushEventsInterval (J)V diff --git a/aws-analytics-pinpoint/src/main/java/com/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin.kt b/aws-analytics-pinpoint/src/main/java/com/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin.kt index dc3de1ab0..094a3522c 100644 --- a/aws-analytics-pinpoint/src/main/java/com/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin.kt +++ b/aws-analytics-pinpoint/src/main/java/com/amplifyframework/analytics/pinpoint/AWSPinpointAnalyticsPlugin.kt @@ -191,7 +191,7 @@ class AWSPinpointAnalyticsPlugin @JvmOverloads constructor( */ fun trackLifecycleEvents(value: Boolean) = apply { trackLifecycleEvents = value } - internal fun build() = Options( + fun build() = Options( autoFlushEventsInterval = autoFlushEventsInterval, trackLifecycleEvents = trackLifecycleEvents )