What's Changed
- Upgrade deprecated build actions by @mattmook in #226
- Pull syntax functions down into the relevant classes instead of relyi… by @Rosomack in #225
- Fix build error by @Rosomack in #227
Full Changelog: 8.0.0...9.0.0
Breaking changes
Syntax extension functions have been pulled up to reduce internal complexity and open up new functionality, such as reified types on runOn
.
Migration guide
API | Pre-9.0.0 | 9.0.0 | Action to take |
---|---|---|---|
class SimpleSyntax | org.orbitmvi.orbit.syntax.simple.SimpleSyntax | Renamed to org.orbitmvi.orbit.syntax.Syntax | Search and replace imports and usages |
class SimpleContext | org.orbitmvi.orbit.syntax.simple.SimpleContext | Renamed to org.orbitmvi.orbit.syntax.IntentContext | Search and replace imports and usages |
extension function ContainerHost.intent |
org.orbitmvi.orbit.syntax.simple.intent | Moved into ContainerHost interface |
Remove import |
extension function ContainerHost.blockingIntent |
org.orbitmvi.orbit.syntax.simple.blockingIntent | Moved into ContainerHost interface |
Remove import |
extension function ContainerHost.subIntent |
org.orbitmvi.orbit.syntax.simple.subIntent | Moved into ContainerHost interface |
Remove import |
extension function SimpleSyntax.postSideEffect |
org.orbitmvi.orbit.syntax.simple.postSideEffect | Moved into Syntax class |
Remove import |
extension function SimpleSyntax.reduce |
org.orbitmvi.orbit.syntax.simple.reduce | Moved into Syntax class |
Remove import |
extension function SimpleSyntax.repeatOnSubscription |
org.orbitmvi.orbit.syntax.simple.repeatOnSubscription | Moved into Syntax class |
Remove import |
extension function SimpleSyntax.runOn |
org.orbitmvi.orbit.syntax.simple.runOn | Moved into Syntax class |
Remove import |
extension function SimpleSyntax.runOn |
runOn(ExampleState.Ready::class) |
Uses reified type parameter now runOn<ExampleState.Ready> |
Search and replace |