2017-11-06 23:45:48 +00:00
|
|
|
package chat.rocket.reactnative;
|
2017-08-03 18:23:43 +00:00
|
|
|
|
|
|
|
import android.app.Application;
|
|
|
|
|
|
|
|
import com.facebook.react.ReactApplication;
|
2017-08-10 17:43:31 +00:00
|
|
|
import com.horcrux.svg.SvgPackage;
|
2017-08-10 20:09:54 +00:00
|
|
|
import com.imagepicker.ImagePickerPackage;
|
2017-08-10 16:25:50 +00:00
|
|
|
import com.oblador.vectoricons.VectorIconsPackage;
|
2017-08-09 19:02:09 +00:00
|
|
|
import com.RNFetchBlob.RNFetchBlobPackage;
|
2017-08-07 00:34:35 +00:00
|
|
|
import com.balthazargronon.RCTZeroconf.ZeroconfReactPackage;
|
2017-08-03 18:23:43 +00:00
|
|
|
import io.realm.react.RealmReactPackage;
|
|
|
|
import com.facebook.react.ReactNativeHost;
|
|
|
|
import com.facebook.react.ReactPackage;
|
|
|
|
import com.facebook.react.shell.MainReactPackage;
|
|
|
|
import com.facebook.soloader.SoLoader;
|
2017-11-18 20:17:24 +00:00
|
|
|
import com.dieam.reactnativepushnotification.ReactNativePushNotificationPackage;
|
2017-12-02 13:19:58 +00:00
|
|
|
import com.brentvatne.react.ReactVideoPackage;
|
2018-01-15 20:43:52 +00:00
|
|
|
import com.remobile.toast.RCTToastPackage;
|
2018-02-08 14:08:50 +00:00
|
|
|
import com.wix.reactnativekeyboardinput.KeyboardInputPackage;
|
2018-03-07 00:17:20 +00:00
|
|
|
import com.rnim.rn.audio.ReactNativeAudioPackage;
|
2018-04-03 16:24:59 +00:00
|
|
|
import com.smixx.fabric.FabricPackage;
|
2018-05-07 20:41:36 +00:00
|
|
|
import com.dylanvann.fastimage.FastImageViewPackage;
|
2018-06-01 17:38:13 +00:00
|
|
|
import com.AlexanderZaytsev.RNI18n.RNI18nPackage;
|
2018-01-15 20:43:52 +00:00
|
|
|
|
2017-08-03 18:23:43 +00:00
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
2017-12-20 20:12:49 +00:00
|
|
|
import org.devio.rn.splashscreen.SplashScreenReactPackage;
|
2017-08-03 18:23:43 +00:00
|
|
|
|
2017-09-21 17:08:00 +00:00
|
|
|
public class MainApplication extends Application implements ReactApplication {
|
|
|
|
|
|
|
|
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
|
2017-08-03 18:23:43 +00:00
|
|
|
@Override
|
2017-09-21 17:08:00 +00:00
|
|
|
public boolean getUseDeveloperSupport() {
|
2017-08-03 18:23:43 +00:00
|
|
|
return BuildConfig.DEBUG;
|
|
|
|
}
|
|
|
|
|
2017-09-21 17:08:00 +00:00
|
|
|
@Override
|
2017-08-03 18:23:43 +00:00
|
|
|
protected List<ReactPackage> getPackages() {
|
|
|
|
return Arrays.<ReactPackage>asList(
|
2017-09-21 17:08:00 +00:00
|
|
|
new MainReactPackage(),
|
2018-02-08 14:08:50 +00:00
|
|
|
new SvgPackage(),
|
|
|
|
new ImagePickerPackage(),
|
|
|
|
new VectorIconsPackage(),
|
|
|
|
new RNFetchBlobPackage(),
|
|
|
|
new ZeroconfReactPackage(),
|
|
|
|
new RealmReactPackage(),
|
|
|
|
new ReactNativePushNotificationPackage(),
|
|
|
|
new ReactVideoPackage(),
|
|
|
|
new SplashScreenReactPackage(),
|
|
|
|
new RCTToastPackage(),
|
2018-03-07 00:17:20 +00:00
|
|
|
new ReactNativeAudioPackage(),
|
2018-02-16 18:34:25 +00:00
|
|
|
new KeyboardInputPackage(MainApplication.this),
|
2018-04-03 16:24:59 +00:00
|
|
|
new RocketChatNativePackage(),
|
2018-05-07 20:41:36 +00:00
|
|
|
new FabricPackage(),
|
2018-06-01 17:38:13 +00:00
|
|
|
new FastImageViewPackage(),
|
|
|
|
new RNI18nPackage()
|
2017-08-03 18:23:43 +00:00
|
|
|
);
|
|
|
|
}
|
2017-09-21 17:08:00 +00:00
|
|
|
};
|
2017-08-03 18:23:43 +00:00
|
|
|
|
2017-09-21 17:08:00 +00:00
|
|
|
@Override
|
|
|
|
public ReactNativeHost getReactNativeHost() {
|
|
|
|
return mReactNativeHost;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onCreate() {
|
|
|
|
super.onCreate();
|
|
|
|
SoLoader.init(this, /* native exopackage */ false);
|
|
|
|
}
|
2017-08-03 18:23:43 +00:00
|
|
|
}
|