Skip to content

Commit

Permalink
Merge pull request #677 from aashay-gaikwad/ribs-helpers
Browse files Browse the repository at this point in the history
Moved Builder, SimpleBuilder, Interactor to separate module
  • Loading branch information
zsoltk authored Feb 11, 2024
2 parents f05f56f + 5f221b6 commit a4ab1fe
Show file tree
Hide file tree
Showing 12 changed files with 61 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Pending changes

### API breaking changes

- [#677](https://github.com/bumble-tech/appyx/pull/677) – Moved Builder, SimpleBuilder, Interactor to separate module

### Fixed

- [#670](https://github.com/bumble-tech/appyx/pull/670) - Fixes ios lifecycle
- [#673](https://github.com/bumble-tech/appyx/pull/673) – Fix canHandeBackPress typo

Expand Down
17 changes: 17 additions & 0 deletions documentation/releases/2.0.0-alpha11.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,21 @@ interface AppyxComponent /*...*/ {
/*...*/
- fun canHandeBackPress(): StateFlow<Boolean>
+ fun canHandleBackPress(): StateFlow<Boolean>
```

## Moved `Builder`, `SimpleBuilder`, and `Interactor`

If you were depending on these classes being part of appyx-navigation, you’ll now need to get them from "com.bumble.appyx:utils-ribs-helpers:$version".

```diff
+ implementation("com.bumble.appyx:utils-ribs-helpers:$version")

- import com.bumble.appyx.navigation.builder.Builder
+ import com.bumble.appyx.utils.ribshelpers.builder.Builder

- import com.bumble.appyx.navigation.builder.SimpleBuilder
+ import com.bumble.appyx.utils.ribshelpers.builder.SimpleBuilder

- import com.bumble.appyx.navigation.clienthelper.interactor.Interactor
+ import com.bumble.appyx.utils.ribshelpers.interactor.Interactor
```
10 changes: 10 additions & 0 deletions documentation/releases/downloads.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,16 @@ dependencies {
}
```

### RIBs like helpers

Adds client code helper classes like `Builder`, `SimpleBuilder`, and `Interactor`

```kotlin
dependencies {
implementation("com.bumble.appyx:utils-ribs-helpers:$version")
}
```


### Testing

Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ include(
":utils:interop-ribs",
":utils:interop-rx2",
":utils:interop-rx3",
":utils:ribs-helpers",
":utils:testing-junit4",
":utils:testing-junit5",
":utils:testing-ui",
Expand Down
17 changes: 17 additions & 0 deletions utils/ribs-helpers/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("com.bumble.appyx.android.library")
id("appyx-publish-android")
}

publishingPlugin {
artifactId = "utils-ribs-helpers"
}

appyx {
namespace.set("com.bumble.appyx.utils.ribs.helpers")
}

dependencies {
api(project(":appyx-navigation:appyx-navigation"))
api(project(":appyx-interactions:appyx-interactions"))
}
4 changes: 4 additions & 0 deletions utils/ribs-helpers/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.1.3" type="baseline" client="gradle" dependencies="false" name="AGP (7.1.3)" variant="all" version="7.1.3">

</issues>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bumble.appyx.navigation.builder
package com.bumble.appyx.utils.ribshelpers.builder

import com.bumble.appyx.navigation.modality.NodeContext
import com.bumble.appyx.navigation.node.Node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bumble.appyx.navigation.builder
package com.bumble.appyx.utils.ribshelpers.builder

import com.bumble.appyx.navigation.modality.NodeContext
import com.bumble.appyx.navigation.node.Node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bumble.appyx.navigation.clienthelper.interactor
package com.bumble.appyx.utils.ribshelpers.interactor

import com.bumble.appyx.interactions.core.plugin.SavesInstanceState
import com.bumble.appyx.navigation.children.ChildAware
Expand Down
1 change: 1 addition & 0 deletions utils/testing-unit-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ appyx {

dependencies {
api(project(":appyx-navigation:appyx-navigation"))
api(project(":utils:ribs-helpers"))
implementation(project(":utils:utils-customisations"))
implementation(libs.kotlin.test)
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.bumble.appyx.utils.testing.unit.common.util

import com.bumble.appyx.navigation.builder.Builder
import com.bumble.appyx.navigation.lifecycle.Lifecycle
import com.bumble.appyx.navigation.modality.NodeContext
import com.bumble.appyx.navigation.node.Node
import com.bumble.appyx.utils.ribshelpers.builder.Builder
import kotlin.test.assertEquals
import kotlin.test.assertTrue

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.bumble.appyx.utils.testing.unit.common.util

import com.bumble.appyx.navigation.builder.SimpleBuilder
import com.bumble.appyx.navigation.lifecycle.Lifecycle
import com.bumble.appyx.navigation.modality.NodeContext
import com.bumble.appyx.navigation.node.Node
import com.bumble.appyx.utils.ribshelpers.builder.SimpleBuilder
import kotlin.test.assertEquals
import kotlin.test.assertTrue

Expand Down

0 comments on commit a4ab1fe

Please sign in to comment.