package com.phodal.play;

import android.app.Application;

import com.facebook.react.ReactApplication;
import org.devio.rn.splashscreen.SplashScreenReactPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.dylanvann.fastimage.FastImageViewPackage;
import com.react.rnspinkit.RNSpinkitPackage;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.oblador.vectoricons.VectorIconsPackage;
import com.facebook.soloader.SoLoader;

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 MainReactPackage(),
            new SplashScreenReactPackage(),
            new RNDeviceInfo(),
            new FastImageViewPackage(),
            new RNSpinkitPackage(),
        new VectorIconsPackage()
      );
    }
  };

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

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

@@ -522,16 +522,86 @@
 oLoader;
+%0Aimport com.idehub.GoogleAnalyticsBridge.GoogleAnalyticsBridgePackage;
 %0A%0Aimport
@@ -1042,28 +1042,24 @@
 (),%0A        
-    
 new SplashSc
@@ -1070,36 +1070,32 @@
 ReactPackage(),%0A
-    
         new RNDe
@@ -1110,28 +1110,24 @@
 (),%0A        
-    
 new FastImag
@@ -1146,28 +1146,24 @@
 (),%0A        
-   
- 
 new RNSpinki
@@ -1206,16 +1206,60 @@
 ackage()
+,%0A        new GoogleAnalyticsBridgePackage()
 %0A      )

fix Android RN Analytics Bridge issue