FlutterMain.setIsRunningInRobolectricTest on Android removed

Summary

Context

Description of change

Migration guide

Timeline

Summary

If you write Java JUnit tests (such as Robolectric tests)
against the Flutter engine’s Java embedding and used the
FlutterMain.setIsRunningInRobolectricTest(true) API,
replace it with the following:

FlutterJNI

mockFlutterJNI

mock

FlutterJNI

class

);

FlutterInjector

setInstance

new

FlutterInjector

Builder

()

setFlutterLoader

new

FlutterLoader

mockFlutterJNI