Within the FlutterInjector class,
the setFlutterLoader() Builder
function allows for control of how the
FlutterLoader class locates and loads
the libflutter.so library.

Description of change

engine commit removed the

commit added a

PR 20473 further refactored

to allow for additional mocking/testing.

Migration guide

Code before migration:

FlutterMain

setIsRunningInRobolectricTest

true

);

Code after migration:

FlutterJNI

mockFlutterJNI

mock

FlutterJNI

class

);

FlutterInjector

setInstance

new

FlutterInjector

Builder

()