2017-08-03 18:23:43 +00:00
|
|
|
package com.rocketchatrn;
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
|
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(),
|
|
|
|
new SvgPackage(),
|
|
|
|
new ImagePickerPackage(),
|
|
|
|
new VectorIconsPackage(),
|
|
|
|
new RNFetchBlobPackage(),
|
|
|
|
new ZeroconfReactPackage(),
|
|
|
|
new RealmReactPackage()
|
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
|
|
|
}
|