Skip to content

Commit

Permalink
Prepare ViewModel deprecation to go in koin-viewmodel module
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudgiuliani committed Jul 12, 2024
1 parent 4177fa5 commit e54fa9a
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import org.koin.core.instance.newInstance
import org.koin.core.module.Module
import org.koin.core.qualifier.Qualifier

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* ViewModel DSL Extension
* Allow to declare a ViewModel - be later inject into Activity/Fragment with dedicated injector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ import org.koin.core.instance.newInstance
import org.koin.core.qualifier.Qualifier
import org.koin.dsl.ScopeDSL

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* ViewModel DSL Extension
* Allow to declare a ViewModel - be later inject into Activity/Fragment with dedicated injector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import org.koin.core.module.dsl.new
import org.koin.core.module.dsl.onOptions
import org.koin.dsl.ScopeDSL

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* Declare a [ScopeDSL.viewModel] definition by resolving a constructor reference for the dependency.
* The resolution is done at compile time by leveraging inline functions, no reflection is required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import org.koin.core.module.dsl.DefinitionOptions
import org.koin.core.module.dsl.new
import org.koin.core.module.dsl.onOptions

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* Declare a [Module.viewModel] definition by resolving a constructor reference for the dependency.
* The resolution is done at compile time by leveraging inline functions, no reflection is required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import org.koin.core.definition.KoinDefinition
import org.koin.core.module.Module
import org.koin.core.qualifier.Qualifier

//TODO Ported from Android side
//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* ViewModel DSL Extension
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import org.koin.core.definition.KoinDefinition
import org.koin.core.qualifier.Qualifier
import org.koin.dsl.ScopeDSL

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* ViewModel DSL Extension
* Allow to declare a ViewModel - be later inject into Activity/Fragment with dedicated injector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import org.koin.core.module.dsl.new
import org.koin.core.module.dsl.onOptions
import org.koin.dsl.ScopeDSL

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* Declare a [ScopeDSL.viewModel] definition by resolving a constructor reference for the dependency.
* The resolution is done at compile time by leveraging inline functions, no reflection is required.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import org.koin.core.module.dsl.DefinitionOptions
import org.koin.core.module.dsl.new
import org.koin.core.module.dsl.onOptions

//TODO DEPRECATE in favor of koin-viewmodel to mutualise ViewModel DSL for Android and Compose

/**
* Declare a [Module.viewModel] definition by resolving a constructor reference for the dependency.
* The resolution is done at compile time by leveraging inline functions, no reflection is required.
Expand Down

0 comments on commit e54fa9a

Please sign in to comment.