Skip to content

Commit

Permalink
KoinConfiguration type + KoinStartup update
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Dec 20, 2024
1 parent 1d47051 commit ad43516
Show file tree
Hide file tree
Showing 8 changed files with 2,294 additions and 10 deletions.
2 changes: 0 additions & 2 deletions projects/android/koin-android/api/koin-android.api
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ public final class org/koin/androidx/scope/ComponentActivityExtKt {
public static final fun createActivityScope (Landroidx/activity/ComponentActivity;)Lorg/koin/core/scope/Scope;
public static final fun createScope (Landroidx/activity/ComponentActivity;Ljava/lang/Object;)Lorg/koin/core/scope/Scope;
public static synthetic fun createScope$default (Landroidx/activity/ComponentActivity;Ljava/lang/Object;ILjava/lang/Object;)Lorg/koin/core/scope/Scope;
public static final fun getRetainedScopeOrNull (Landroidx/activity/ComponentActivity;)Lorg/koin/core/scope/Scope;
public static final fun getScopeOrNull (Landroidx/activity/ComponentActivity;)Lorg/koin/core/scope/Scope;
public static final fun retainedScopeId (Landroidx/activity/ComponentActivity;)Ljava/lang/String;
}

public final class org/koin/androidx/scope/FragmentExtKt {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ public final class org/koin/androix/startup/KoinInitializer : androidx/startup/I
public fun dependencies ()Ljava/util/List;
}

public final class org/koin/androix/startup/KoinStartup {
public static final field INSTANCE Lorg/koin/androix/startup/KoinStartup;
public final fun onKoinStartup (Lkotlin/jvm/functions/Function1;)V
public abstract interface class org/koin/androix/startup/KoinStartup {
public abstract fun onKoinStartup ()Lorg/koin/dsl/KoinConfiguration;
}

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package org.koin.androix.startup

import org.koin.core.annotation.KoinExperimentalAPI
import org.koin.core.module.KoinApplicationDslMarker
import org.koin.dsl.KoinAppDeclaration
import org.koin.dsl.KoinConfiguration

/**
* KoinStartup holds KoinAppDeclaration for AndroidX Startup with KoinInitializer
Expand All @@ -32,5 +32,5 @@ interface KoinStartup {
* @see startKoin function
*/
@KoinApplicationDslMarker
fun onKoinStartup() : KoinAppDeclaration
fun onKoinStartup() : KoinConfiguration
}
Loading

0 comments on commit ad43516

Please sign in to comment.