Skip to content

Commit

Permalink
Merge pull request #383 from KovalevAndrey/1.x-remove-deprecated-methods
Browse files Browse the repository at this point in the history
1.x remove deprecated methods
  • Loading branch information
KovalevAndrey authored Mar 27, 2023
2 parents 71279fa + 6cc799c commit 4e52b54
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 29 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Pending changes

- [#383](https://github.com/bumble-tech/appyx/pull/383)**Changed**: Removed deprecated methods in Node, ParentNode and CombinedHandler classes
- [#376](https://github.com/bumble-tech/appyx/issues/376)**Changed**: Androidx lifecycle version updated to 2.6.1.
- [#376](https://github.com/bumble-tech/appyx/issues/376)**Updated**: Kotlin and Compose compiler version updated to 1.8.10 to align kotlin version used in androidx lifecycle
- [#375](https://github.com/bumble-tech/appyx/issues/375)**Fixed**: SaveableStateHolder does no longer save state for destroyed elements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,6 @@ class CombinedHandler<T, S>(
}
}

@Suppress("UnstableCollections")
@Deprecated(
message = "Use rememberCombinedHandler with immutable handlers instead. This function will be removed in 1.1",
replaceWith = ReplaceWith(
"rememberCombinedHandler<T, S>(handlers.toImmutableList<T, S>())",
"com.bumble.appyx.core.collections.toImmutableList",
)
)
@Composable
fun <T, S> rememberCombinedHandler(handlers: List<ModifierTransitionHandler<T, S>>): ModifierTransitionHandler<T, S> =
remember { CombinedHandler(handlers = handlers) }

@Composable
fun <T, S> rememberCombinedHandler(
handlers: ImmutableList<ModifierTransitionHandler<T, S>>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,6 @@ open class Node @VisibleForTesting internal constructor(
})
}

@Deprecated(
replaceWith = ReplaceWith("executeAction(action)"),
message = "Will be removed in 1.1"
)
protected suspend inline fun <reified T : Node> executeWorkflow(
crossinline action: () -> Unit
): T = executeAction(action)

protected suspend inline fun <reified T : Node> executeAction(
crossinline action: () -> Unit
): T = withContext(lifecycleScope.coroutineContext) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,6 @@ abstract class ParentNode<NavTarget : Any>(
}
}

@Deprecated(
replaceWith = ReplaceWith("attachChild(action"),
message = "Will be removed in 1.1"
)
protected suspend inline fun <reified T : Node> attachWorkflow(
timeout: Long = ATTACH_WORKFLOW_SYNC_TIMEOUT,
crossinline action: () -> Unit
) = attachChild<T>(timeout, action)

/**
* attachChild executes provided action e.g. backstack.push(NodeANavTarget) and waits for the specific
* Node of type T to appear in the ParentNode's children list. It should happen almost immediately because it happens
Expand Down

0 comments on commit 4e52b54

Please sign in to comment.