Skip to content

Commit 483f1bb

Browse files
authored
feat!: Update ProviderEvents to match specifications (#170)
Signed-off-by: penguindan <[email protected]>
1 parent 7131dfc commit 483f1bb

File tree

14 files changed

+403
-113
lines changed

14 files changed

+403
-113
lines changed

kotlin-sdk/api/android/kotlin-sdk.api

Lines changed: 72 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public abstract interface class dev/openfeature/kotlin/sdk/Client : dev/openfeat
1919
public abstract fun addHooks (Ljava/util/List;)V
2020
public abstract fun getHooks ()Ljava/util/List;
2121
public abstract fun getMetadata ()Ldev/openfeature/kotlin/sdk/ClientMetadata;
22+
public abstract fun getStatusFlow ()Lkotlinx/coroutines/flow/Flow;
2223
}
2324

2425
public abstract interface class dev/openfeature/kotlin/sdk/ClientMetadata {
@@ -312,6 +313,7 @@ public final class dev/openfeature/kotlin/sdk/OpenFeatureClient : dev/openfeatur
312313
public fun getObjectDetails (Ljava/lang/String;Ldev/openfeature/kotlin/sdk/Value;Ldev/openfeature/kotlin/sdk/FlagEvaluationOptions;)Ldev/openfeature/kotlin/sdk/FlagEvaluationDetails;
313314
public fun getObjectValue (Ljava/lang/String;Ldev/openfeature/kotlin/sdk/Value;)Ldev/openfeature/kotlin/sdk/Value;
314315
public fun getObjectValue (Ljava/lang/String;Ldev/openfeature/kotlin/sdk/Value;Ldev/openfeature/kotlin/sdk/FlagEvaluationOptions;)Ldev/openfeature/kotlin/sdk/Value;
316+
public fun getStatusFlow ()Lkotlinx/coroutines/flow/Flow;
315317
public fun getStringDetails (Ljava/lang/String;Ljava/lang/String;)Ldev/openfeature/kotlin/sdk/FlagEvaluationDetails;
316318
public fun getStringDetails (Ljava/lang/String;Ljava/lang/String;Ldev/openfeature/kotlin/sdk/FlagEvaluationOptions;)Ldev/openfeature/kotlin/sdk/FlagEvaluationDetails;
317319
public fun getStringValue (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
@@ -639,34 +641,90 @@ public final class dev/openfeature/kotlin/sdk/Value$Structure$Companion {
639641
public final fun invoke (Ljava/util/Map;)Ldev/openfeature/kotlin/sdk/Value$Structure;
640642
}
641643

642-
public abstract interface class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
644+
public abstract class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
645+
public abstract fun getEventDetails ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
646+
}
647+
648+
public final class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails {
649+
public fun <init> ()V
650+
public fun <init> (Ljava/util/Set;Ljava/lang/String;Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;Ljava/util/Map;)V
651+
public synthetic fun <init> (Ljava/util/Set;Ljava/lang/String;Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;Ljava/util/Map;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
652+
public final fun component1 ()Ljava/util/Set;
653+
public final fun component2 ()Ljava/lang/String;
654+
public final fun component3 ()Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;
655+
public final fun component4 ()Ljava/util/Map;
656+
public final fun copy (Ljava/util/Set;Ljava/lang/String;Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;Ljava/util/Map;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
657+
public static synthetic fun copy$default (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;Ljava/util/Set;Ljava/lang/String;Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;Ljava/util/Map;ILjava/lang/Object;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
658+
public fun equals (Ljava/lang/Object;)Z
659+
public final fun getErrorCode ()Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;
660+
public final fun getEventMetadata ()Ljava/util/Map;
661+
public final fun getFlagsChanged ()Ljava/util/Set;
662+
public final fun getMessage ()Ljava/lang/String;
663+
public fun hashCode ()I
664+
public fun toString ()Ljava/lang/String;
643665
}
644666

645667
public final class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderConfigurationChanged : dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
646-
public static final field INSTANCE Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderConfigurationChanged;
668+
public fun <init> ()V
669+
public fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;)V
670+
public synthetic fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
671+
public final fun component1 ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
672+
public final fun copy (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderConfigurationChanged;
673+
public static synthetic fun copy$default (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderConfigurationChanged;Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;ILjava/lang/Object;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderConfigurationChanged;
674+
public fun equals (Ljava/lang/Object;)Z
675+
public fun getEventDetails ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
676+
public fun hashCode ()I
677+
public fun toString ()Ljava/lang/String;
647678
}
648679

649680
public final class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError : dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
650-
public fun <init> (Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;)V
651-
public final fun component1 ()Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;
652-
public final fun copy (Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError;
653-
public static synthetic fun copy$default (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError;Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;ILjava/lang/Object;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError;
681+
public fun <init> ()V
682+
public fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;)V
683+
public synthetic fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
684+
public final fun component1 ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
685+
public final fun component2 ()Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;
686+
public final fun copy (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError;
687+
public static synthetic fun copy$default (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError;Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;ILjava/lang/Object;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderError;
654688
public fun equals (Ljava/lang/Object;)Z
655689
public final fun getError ()Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError;
690+
public fun getEventDetails ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
656691
public fun hashCode ()I
657692
public fun toString ()Ljava/lang/String;
658693
}
659694

660695
public final class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderNotReady : dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
661696
public static final field INSTANCE Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderNotReady;
697+
public fun equals (Ljava/lang/Object;)Z
698+
public synthetic fun getEventDetails ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
699+
public fun getEventDetails ()Ljava/lang/Void;
700+
public fun hashCode ()I
701+
public fun toString ()Ljava/lang/String;
662702
}
663703

664704
public final class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderReady : dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
665-
public static final field INSTANCE Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderReady;
705+
public fun <init> ()V
706+
public fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;)V
707+
public synthetic fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
708+
public final fun component1 ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
709+
public final fun copy (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderReady;
710+
public static synthetic fun copy$default (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderReady;Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;ILjava/lang/Object;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderReady;
711+
public fun equals (Ljava/lang/Object;)Z
712+
public fun getEventDetails ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
713+
public fun hashCode ()I
714+
public fun toString ()Ljava/lang/String;
666715
}
667716

668717
public final class dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderStale : dev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents {
669-
public static final field INSTANCE Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderStale;
718+
public fun <init> ()V
719+
public fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;)V
720+
public synthetic fun <init> (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
721+
public final fun component1 ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
722+
public final fun copy (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderStale;
723+
public static synthetic fun copy$default (Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderStale;Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;ILjava/lang/Object;)Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$ProviderStale;
724+
public fun equals (Ljava/lang/Object;)Z
725+
public fun getEventDetails ()Ldev/openfeature/kotlin/sdk/events/OpenFeatureProviderEvents$EventDetails;
726+
public fun hashCode ()I
727+
public fun toString ()Ljava/lang/String;
670728
}
671729

672730
public final class dev/openfeature/kotlin/sdk/exceptions/ErrorCode : java/lang/Enum {
@@ -684,11 +742,16 @@ public final class dev/openfeature/kotlin/sdk/exceptions/ErrorCode : java/lang/E
684742
}
685743

686744
public abstract class dev/openfeature/kotlin/sdk/exceptions/OpenFeatureError : java/lang/Exception {
745+
public static final field Companion Ldev/openfeature/kotlin/sdk/exceptions/OpenFeatureError$Companion;
687746
public abstract fun errorCode ()Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;
688747
}
689748

749+
public final class dev/openfeature/kotlin/sdk/exceptions/OpenFeatureError$Companion {
750+
}
751+
690752
public final class dev/openfeature/kotlin/sdk/exceptions/OpenFeatureError$FlagNotFoundError : dev/openfeature/kotlin/sdk/exceptions/OpenFeatureError {
691-
public fun <init> (Ljava/lang/String;)V
753+
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V
754+
public synthetic fun <init> (Ljava/lang/String;Ljava/lang/String;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
692755
public fun errorCode ()Ldev/openfeature/kotlin/sdk/exceptions/ErrorCode;
693756
public fun getMessage ()Ljava/lang/String;
694757
}

0 commit comments

Comments
 (0)