How to connect time travel client desktop app to android/ios emulator app? #289
-
I was looking over the documentation related to the time travel client and cannot seem to figure out how to connect the client to the android and iOS emulator. AndroidI could connect it to a physical android device using the ip address from the device's about settings and default port of iOSFor the ios emulator I could connect the time travel client to the sample todo app with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
For Android it is better to connect via ADB. The idea plugin is able to connect only via ADB. The desktop client app has settings with both ADB and IP/port modes. When ADB mode is used, the client executes an For iOS, you need to add |
Beta Was this translation helpful? Give feedback.
For Android it is better to connect via ADB. The idea plugin is able to connect only via ADB. The desktop client app has settings with both ADB and IP/port modes. When ADB mode is used, the client executes an
adb
command to forward TCP port (6379) between the app and the host. Then it connects as usual to localhost:6379. If not using the ADB mode, you will have to forward the port manually via ADB.For iOS, you need to add
mvikotlin-timetravel
module as API dependency and export it to the framework as usual: https://github.com/arkivanov/MVIKotlin/blob/4e0624946fe24a2fc47ecbfeb35a6fecaf09f709/sample/todo-darwin-umbrella/build.gradle.kts#L27