Skip to content

Commit

Permalink
Add MainActivity migration step
Browse files Browse the repository at this point in the history
  • Loading branch information
mmartosdev committed Feb 15, 2024
1 parent eeabd36 commit a6723c9
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 a6723c9

Please sign in to comment.