I'm writing a plugin for Flutter on Android that makes use of native code. To my understanding the only way to see the changes in effect is to completely restart the app. Is there another way to do this? Something like Flutters Hot Restart? It takes about a minute to start the app, every time.
Asked
Active
Viewed 1,135 times
4
-
For me, I just rebuild and it reloads the app on all connected physical devices + emulators. Takes between 15-25 seconds each time. That was default behavior. – Alicia Sykes May 06 '19 at 13:39
1 Answers
7
From the hot reload page in the docs:
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM)
Hot reload/restart leverages the dart VM to hot swap code. In other words, there's no hot reload/restart for native code since it doesn't run on the dart VM.
Making changes to native code is akin to developing on the native platform directly. If the platform is slow, there's no magic flutter can do to speed it up.

Edman
- 5,335
- 29
- 32