package de.fragdenstaat.app;

import android.app.Application;

import com.facebook.react.ReactApplication;
import com.slowpath.hockeyapp.RNHockeyAppPackage;
import com.instabug.reactlibrary.RNInstabugReactnativePackage;
import com.RNFetchBlob.RNFetchBlobPackage;
import org.wonday.pdf.RCTPdfView;
import com.oblador.vectoricons.VectorIconsPackage;
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 com.slowpath.hockeyapp.RNHockeyAppModule;
import com.slowpath.hockeyapp.RNHockeyAppPackage;

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

public class MainApplication extends Application implements ReactApplication {

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new RNHockeyAppPackage(MainApplication.this),
          new MainReactPackage(),
            new RNHockeyAppPackage(),
            new RNInstabugReactnativePackage(Secrets.INSTABUG_ANDROID_ID,MainApplication.this,"shake","#1D82DC"),
            new RNFetchBlobPackage(),
            new RCTPdfView(),
            new VectorIconsPackage(),
            new RealmReactPackage()
      );
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}

@@ -104,58 +104,8 @@
 on;%0A
-import com.slowpath.hockeyapp.RNHockeyAppPackage;%0A
 impo
@@ -1111,46 +1111,8 @@
 (),%0A
-            new RNHockeyAppPackage(),%0A
     

remove wrongly by `react-native link` added lines