/*
 * Copyright (c) 2011-2019, Zingaya, Inc. All rights reserved.
 */

package com.dyteMobileSdk;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import com.dyteMobileSdk.BackgroundTimer.RNBackgroundTimer;
import com.dyteMobileSdk.DocumentPicker.RNDocumentPickerModule;
import com.dyteMobileSdk.FS.RNFSManager;
import com.dyteMobileSdk.FileViewer.RNFileViewerModule;
import com.dyteMobileSdk.ImagePicker.ReactNativeImagePicker;
import com.dyteMobileSdk.Permissions.RNPermissionsModule;
import com.facebook.react.ReactPackage;
import com.facebook.react.bridge.NativeModule;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.uimanager.ViewManager;
import com.facebook.react.bridge.JavaScriptModule;
import com.dyteMobileSdk.BluetoothHeadsetDetect.RNBluetoothHeadsetDetectModule;
import com.dyteMobileSdk.incallmanager.InCallManagerModule;

public class DyteHelperPackage implements ReactPackage {
    @Override
    public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
        return Arrays.<NativeModule>asList(new DyteHelperModule(reactContext),
                new ReactNativeImagePicker(reactContext),
                new RNFileViewerModule(reactContext),
                new RNFSManager(reactContext),
                new RNDocumentPickerModule(reactContext),
                new RNPermissionsModule(reactContext),
                new RNBackgroundTimer(reactContext),
                new RNBluetoothHeadsetDetectModule(reactContext),
                new InCallManagerModule(reactContext),
        );
    }

    // Deprecated from RN 0.47
    public List<Class<? extends JavaScriptModule>> createJSModules() {
        return Collections.emptyList();
    }

    @Override
    public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
        return Collections.emptyList();
    }
}