2018-03-31 10:28:26 +01:00
|
|
|
package io.lbry.browser.reactpackages;
|
2018-03-18 15:42:16 +01:00
|
|
|
|
|
|
|
import com.facebook.react.ReactPackage;
|
|
|
|
import com.facebook.react.bridge.NativeModule;
|
|
|
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
|
|
import com.facebook.react.uimanager.ViewManager;
|
|
|
|
|
2018-08-20 16:00:16 +01:00
|
|
|
import io.lbry.browser.reactmodules.BackgroundMediaModule;
|
2018-03-31 10:28:26 +01:00
|
|
|
import io.lbry.browser.reactmodules.DaemonServiceControlModule;
|
2018-06-08 09:13:45 +01:00
|
|
|
import io.lbry.browser.reactmodules.FirstRunModule;
|
2019-05-02 07:06:42 +01:00
|
|
|
import io.lbry.browser.reactmodules.FirebaseModule;
|
2019-07-09 01:43:30 +01:00
|
|
|
import io.lbry.browser.reactmodules.GalleryModule;
|
2019-08-09 07:42:21 +01:00
|
|
|
import io.lbry.browser.reactmodules.RequestsModule;
|
2018-03-31 10:28:26 +01:00
|
|
|
import io.lbry.browser.reactmodules.ScreenOrientationModule;
|
2019-08-09 07:42:21 +01:00
|
|
|
import io.lbry.browser.reactmodules.StatePersistorModule;
|
2018-04-23 05:10:18 +01:00
|
|
|
import io.lbry.browser.reactmodules.VersionInfoModule;
|
2019-08-09 07:42:21 +01:00
|
|
|
import io.lbry.browser.reactmodules.UtilityModule;
|
2018-03-18 15:42:16 +01:00
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class LbryReactPackage implements ReactPackage {
|
|
|
|
@Override
|
|
|
|
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
|
|
return Collections.emptyList();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
|
|
List<NativeModule> modules = new ArrayList<>();
|
|
|
|
|
2018-08-20 16:00:16 +01:00
|
|
|
modules.add(new BackgroundMediaModule(reactContext));
|
2018-03-23 00:03:05 +01:00
|
|
|
modules.add(new DaemonServiceControlModule(reactContext));
|
2018-06-08 09:13:45 +01:00
|
|
|
modules.add(new FirstRunModule(reactContext));
|
2019-05-02 07:06:42 +01:00
|
|
|
modules.add(new FirebaseModule(reactContext));
|
2019-07-09 01:43:30 +01:00
|
|
|
modules.add(new GalleryModule(reactContext));
|
2019-08-09 07:42:21 +01:00
|
|
|
modules.add(new RequestsModule(reactContext));
|
2018-03-22 07:26:04 +01:00
|
|
|
modules.add(new ScreenOrientationModule(reactContext));
|
2019-08-09 07:42:21 +01:00
|
|
|
modules.add(new StatePersistorModule(reactContext));
|
2018-06-20 17:39:29 -03:00
|
|
|
modules.add(new UtilityModule(reactContext));
|
2018-04-23 05:10:18 +01:00
|
|
|
modules.add(new VersionInfoModule(reactContext));
|
2018-06-08 09:13:45 +01:00
|
|
|
|
2018-03-18 15:42:16 +01:00
|
|
|
return modules;
|
|
|
|
}
|
2018-06-20 17:39:29 -03:00
|
|
|
}
|