Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
public final class io/github/arthurkun/generic/datastore/RememberKt {
public static final fun remember (Lio/github/arthurkun/generic/datastore/core/DelegatedPreference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Landroidx/compose/runtime/MutableState;
}

public final class io/github/arthurkun/generic/datastore/batch/LocalPreferencesDatastoreKt {
public static final fun ProvidePreferencesDatastore (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lkotlin/jvm/functions/Function2;Landroidx/compose/runtime/Composer;I)V
public static final fun getLocalPreferencesDatastore ()Landroidx/compose/runtime/ProvidableCompositionLocal;
}

public final class io/github/arthurkun/generic/datastore/batch/PreferencesState2 {
public static final field $stable I
public final fun component1 ()Landroidx/compose/runtime/MutableState;
public final fun component2 ()Landroidx/compose/runtime/MutableState;
public final fun getFirst ()Ljava/lang/Object;
public final fun getSecond ()Ljava/lang/Object;
public final fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Lio/github/arthurkun/generic/datastore/batch/PreferencesState2;
public final fun setFirst (Ljava/lang/Object;)V
public final fun setSecond (Ljava/lang/Object;)V
}

public final class io/github/arthurkun/generic/datastore/batch/PreferencesState3 {
public static final field $stable I
public final fun component1 ()Landroidx/compose/runtime/MutableState;
public final fun component2 ()Landroidx/compose/runtime/MutableState;
public final fun component3 ()Landroidx/compose/runtime/MutableState;
public final fun getFirst ()Ljava/lang/Object;
public final fun getSecond ()Ljava/lang/Object;
public final fun getThird ()Ljava/lang/Object;
public final fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Lio/github/arthurkun/generic/datastore/batch/PreferencesState3;
public final fun setFirst (Ljava/lang/Object;)V
public final fun setSecond (Ljava/lang/Object;)V
public final fun setThird (Ljava/lang/Object;)V
}

public final class io/github/arthurkun/generic/datastore/batch/PreferencesState4 {
public static final field $stable I
public final fun component1 ()Landroidx/compose/runtime/MutableState;
public final fun component2 ()Landroidx/compose/runtime/MutableState;
public final fun component3 ()Landroidx/compose/runtime/MutableState;
public final fun component4 ()Landroidx/compose/runtime/MutableState;
public final fun getFirst ()Ljava/lang/Object;
public final fun getFourth ()Ljava/lang/Object;
public final fun getSecond ()Ljava/lang/Object;
public final fun getThird ()Ljava/lang/Object;
public final fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Lio/github/arthurkun/generic/datastore/batch/PreferencesState4;
public final fun setFirst (Ljava/lang/Object;)V
public final fun setFourth (Ljava/lang/Object;)V
public final fun setSecond (Ljava/lang/Object;)V
public final fun setThird (Ljava/lang/Object;)V
}

public final class io/github/arthurkun/generic/datastore/batch/PreferencesState5 {
public static final field $stable I
public final fun component1 ()Landroidx/compose/runtime/MutableState;
public final fun component2 ()Landroidx/compose/runtime/MutableState;
public final fun component3 ()Landroidx/compose/runtime/MutableState;
public final fun component4 ()Landroidx/compose/runtime/MutableState;
public final fun component5 ()Landroidx/compose/runtime/MutableState;
public final fun getFifth ()Ljava/lang/Object;
public final fun getFirst ()Ljava/lang/Object;
public final fun getFourth ()Ljava/lang/Object;
public final fun getSecond ()Ljava/lang/Object;
public final fun getThird ()Ljava/lang/Object;
public final fun getValue (Ljava/lang/Object;Lkotlin/reflect/KProperty;)Lio/github/arthurkun/generic/datastore/batch/PreferencesState5;
public final fun setFifth (Ljava/lang/Object;)V
public final fun setFirst (Ljava/lang/Object;)V
public final fun setFourth (Ljava/lang/Object;)V
public final fun setSecond (Ljava/lang/Object;)V
public final fun setThird (Ljava/lang/Object;)V
}

public final class io/github/arthurkun/generic/datastore/batch/RememberBatchRead_androidKt {
public static final fun rememberBatchRead (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)Landroidx/compose/runtime/State;
public static final fun rememberBatchRead (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lkotlin/coroutines/CoroutineContext;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)Landroidx/compose/runtime/State;
}

public final class io/github/arthurkun/generic/datastore/batch/RememberPreferencesKt {
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState5;
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState4;
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState3;
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/PreferencesDatastore;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState2;
}

public final class io/github/arthurkun/generic/datastore/batch/RememberPreferencesLocalKt {
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState5;
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState4;
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState3;
public static final fun rememberPreferences (Lio/github/arthurkun/generic/datastore/preferences/Preference;Lio/github/arthurkun/generic/datastore/preferences/Preference;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/SnapshotMutationPolicy;Landroidx/compose/runtime/Composer;II)Lio/github/arthurkun/generic/datastore/batch/PreferencesState2;
}

public final class io/github/arthurkun/generic/datastore/utils/State_androidKt {
public static final fun collectAsStatePlatform (Lkotlinx/coroutines/flow/Flow;Ljava/lang/Object;Lkotlin/coroutines/CoroutineContext;Landroidx/compose/runtime/Composer;II)Landroidx/compose/runtime/State;
public static final fun collectAsStatePlatform (Lkotlinx/coroutines/flow/StateFlow;Landroidx/compose/runtime/Composer;I)Landroidx/compose/runtime/State;
}

57 changes: 57 additions & 0 deletions generic-datastore-core/api/android/generic-datastore-core.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
public abstract interface class io/github/arthurkun/generic/datastore/core/BasePreference {
public static final field Companion Lio/github/arthurkun/generic/datastore/core/BasePreference$Companion;
public abstract fun asFlow ()Lkotlinx/coroutines/flow/Flow;
public abstract fun delete (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun get (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun getBlocking ()Ljava/lang/Object;
public abstract fun getDefaultValue ()Ljava/lang/Object;
public fun getValue ()Ljava/lang/Object;
public abstract fun key ()Ljava/lang/String;
public abstract fun resetToDefault (Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun set (Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public abstract fun setBlocking (Ljava/lang/Object;)V
public fun setValue (Ljava/lang/Object;)V
public abstract fun stateIn (Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;)Lkotlinx/coroutines/flow/StateFlow;
public static synthetic fun stateIn$default (Lio/github/arthurkun/generic/datastore/core/BasePreference;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;ILjava/lang/Object;)Lkotlinx/coroutines/flow/StateFlow;
public fun stateInCurrent (Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun stateInCurrent$default (Lio/github/arthurkun/generic/datastore/core/BasePreference;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public abstract fun update (Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

public final class io/github/arthurkun/generic/datastore/core/BasePreference$Companion {
public final fun appStateKey (Ljava/lang/String;)Ljava/lang/String;
public final fun isAppState (Ljava/lang/String;)Z
public final fun isPrivate (Ljava/lang/String;)Z
public final fun privateKey (Ljava/lang/String;)Ljava/lang/String;
}

public final class io/github/arthurkun/generic/datastore/core/BasePreference$DefaultImpls {
public static fun getValue (Lio/github/arthurkun/generic/datastore/core/BasePreference;)Ljava/lang/Object;
public static fun setValue (Lio/github/arthurkun/generic/datastore/core/BasePreference;Ljava/lang/Object;)V
public static synthetic fun stateIn$default (Lio/github/arthurkun/generic/datastore/core/BasePreference;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;ILjava/lang/Object;)Lkotlinx/coroutines/flow/StateFlow;
public static fun stateInCurrent (Lio/github/arthurkun/generic/datastore/core/BasePreference;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun stateInCurrent$default (Lio/github/arthurkun/generic/datastore/core/BasePreference;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
}

public abstract interface class io/github/arthurkun/generic/datastore/core/DelegatedPreference : io/github/arthurkun/generic/datastore/core/BasePreference, kotlin/properties/ReadWriteProperty {
public abstract fun resetToDefaultBlocking ()V
}

public final class io/github/arthurkun/generic/datastore/core/DelegatedPreference$DefaultImpls {
public static fun getValue (Lio/github/arthurkun/generic/datastore/core/DelegatedPreference;)Ljava/lang/Object;
public static fun setValue (Lio/github/arthurkun/generic/datastore/core/DelegatedPreference;Ljava/lang/Object;)V
public static fun stateInCurrent (Lio/github/arthurkun/generic/datastore/core/DelegatedPreference;Lkotlinx/coroutines/CoroutineScope;Lkotlinx/coroutines/flow/SharingStarted;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
}

public abstract interface annotation class io/github/arthurkun/generic/datastore/core/InternalGenericDatastoreApi : java/lang/annotation/Annotation {
}

public final class io/github/arthurkun/generic/datastore/core/PreferenceDefaults {
public static final field INSTANCE Lio/github/arthurkun/generic/datastore/core/PreferenceDefaults;
public final fun getDefaultJson ()Lkotlinx/serialization/json/Json;
}

public final class io/github/arthurkun/generic/datastore/core/PreferenceExtensionKt {
public static final fun distinctFlow (Lio/github/arthurkun/generic/datastore/core/DelegatedPreference;)Lkotlinx/coroutines/flow/Flow;
}

Loading
Loading