-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
706 additions
and
1,731 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
compose/src/androidMain/kotlin/pro/respawn/flowmvi/compose/preview/StateProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package pro.respawn.flowmvi.compose.preview | ||
|
||
import androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider | ||
|
||
/** | ||
* Preview provider that takes a vararg argument for convenience | ||
*/ | ||
@Deprecated( | ||
""" | ||
FlowMVI will no longer provide preview functionality as it is platform-dependent and out of scope of the library. | ||
Please copy and paste the code of the provider to your repository if you need it. | ||
""", | ||
ReplaceWith( | ||
"CollectionPreviewParameterProvider<T>(states.asList())", | ||
"androidx.compose.ui.tooling.preview.datasource.CollectionPreviewParameterProvider", | ||
) | ||
) | ||
public open class StateProvider<T>(vararg states: T) : CollectionPreviewParameterProvider<T>(states.asList()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 0 additions & 64 deletions
64
compose/src/commonMain/kotlin/pro/respawn/flowmvi/compose/dsl/Deprecated.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
core/src/androidMain/kotlin/pro/respawn/flowmvi/plugins/Deprecated.android.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package pro.respawn.flowmvi.plugins | ||
|
||
import android.util.Log | ||
import pro.respawn.flowmvi.api.FlowMVIDSL | ||
import pro.respawn.flowmvi.api.LazyPlugin | ||
import pro.respawn.flowmvi.api.MVIAction | ||
import pro.respawn.flowmvi.api.MVIIntent | ||
import pro.respawn.flowmvi.api.MVIState | ||
import pro.respawn.flowmvi.dsl.StoreBuilder | ||
import pro.respawn.flowmvi.logging.asStoreLogLevel | ||
|
||
/** | ||
* Create a new [loggingPlugin] that prints using android's [Log]. | ||
*/ | ||
@Deprecated( | ||
"Just use logging plugin", | ||
ReplaceWith("loggingPlugin(tag = tag, level = level)") | ||
) | ||
@FlowMVIDSL | ||
public fun <S : MVIState, I : MVIIntent, A : MVIAction> androidLoggingPlugin( | ||
tag: String? = null, | ||
level: Int? = null, | ||
): LazyPlugin<S, I, A> = loggingPlugin(tag = tag, level = level?.asStoreLogLevel) | ||
|
||
/** | ||
* Create a new [loggingPlugin] that prints using android's [Log]. | ||
*/ | ||
@Deprecated( | ||
"Just use logging plugin", | ||
ReplaceWith("enableLogging(name = name, level = level)") | ||
) | ||
@FlowMVIDSL | ||
public fun <S : MVIState, I : MVIIntent, A : MVIAction> StoreBuilder<S, I, A>.androidLoggingPlugin( | ||
name: String? = null, | ||
level: Int? = null, | ||
): Unit = loggingPlugin<S, I, A>(tag = name, level = level?.asStoreLogLevel).let(::install) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.