Created
August 21, 2019 13:22
-
-
Save ldco2016/88a599def02da3d026f7e43357ef1610 to your computer and use it in GitHub Desktop.
androids MainApplication.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.nfib.engage; | |
import android.app.Application; | |
import android.util.Log; | |
import com.facebook.react.PackageList; | |
import com.facebook.hermes.reactexecutor.HermesExecutorFactory; | |
import com.facebook.react.bridge.JavaScriptExecutorFactory; | |
import com.facebook.react.ReactApplication; | |
import com.learnium.RNDeviceInfo.RNDeviceInfo; | |
import com.wix.RNSwipeView.SwipeViewPackage; | |
import com.geektime.rnonesignalandroid.ReactNativeOneSignalPackage; | |
import io.sentry.RNSentryPackage; | |
import com.reactnativecommunity.webview.RNCWebViewPackage; | |
import com.facebook.react.ReactNativeHost; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.soloader.SoLoader; | |
import com.github.wumke.RNImmediatePhoneCall.RNImmediatePhoneCallPackage; | |
import org.devio.rn.splashscreen.SplashScreenReactPackage; | |
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() { | |
@SuppressWarnings("UnnecessaryLocalVariable") | |
List<ReactPackage> packages = new PackageList(this).getPackages(); | |
// Packages that cannot be autolinked yet can be added manually here, for example: | |
// packages.add(new MyReactNativePackage()); | |
packages.add(new AppCenterReactNativeCrashesPackage(MainApplication.this, getResources().getString(R.string.appCenterCrashes_whenToSendCrashes))); | |
packages.add(new AppCenterReactNativeAnalyticsPackage(MainApplication.this, getResources().getString(R.string.appCenterAnalytics_whenToEnableAnalytics))); | |
packages.add(new AppCenterReactNativePackage(MainApplication.this)); | |
packages.add(new ReactNativeOneSignalPackage()); | |
packages.add(new RNSentryPackage()); | |
packages.add(new RNDeviceInfo()); | |
new SplashScreenReactPackage(); | |
packages.add(new RNImmediatePhoneCallPackage()); | |
packages.add(new SwipeViewPackage()); | |
return packages; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment