Skip to content

Commit

Permalink
Merge pull request #685 from manuel-martos/2.x-update-migration-guide
Browse files Browse the repository at this point in the history
Update migration guide
  • Loading branch information
zsoltk authored Feb 20, 2024
2 parents 33aa424 + a6723c9 commit 4baf14e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions documentation/2.x/migrationguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,28 @@ Artifacts have a `utils-` prefix:
+implementation("com.bumble.appyx:utils-testing-junit5")
```

### MainActivity

If you migrate all of your codebase from 1.x to 2.x in a single go, you should skip this step. However, if you intend to keep them in parallel for a gradual migration, you must do the following:

- Update your 1.x version to `1.4.1-migrate-2.x`
- Rename `appyxIntegrationPoint` usage in 1.x code to `appyxV1IntegrationPoint`:

```diff
import com.bumble.appyx.core.integration.NodeHost
import com.bumble.appyx.core.integrationpoint.NodeActivity

class MainActivity : NodeActivity() {
super.onCreate(savedInstanceState)
setContent {
HelloAppyxTheme {
- NodeHost(integrationPoint = appyxIntegrationPoint) {
+ NodeHost(integrationPoint = appyxV1IntegrationPoint) {
RootNode(it)
}
}
}
```

### Usage site (RootNode)

Expand Down

0 comments on commit 4baf14e

Please sign in to comment.