Created
February 11, 2017 14:36
-
-
Save timdorr/35c95d0037c5334d143b49c25db303c9 to your computer and use it in GitHub Desktop.
Tesla App is now React Native!
This file contains 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.teslamotors.TeslaApp; | |
import android.app.Application; | |
import com.BaiduMaps.BaiduPackage; | |
import com.airbnb.android.react.maps.MapsPackage; | |
import com.facebook.react.ReactApplication; | |
import com.facebook.react.ReactNativeHost; | |
import com.facebook.react.ReactPackage; | |
import com.facebook.react.shell.MainReactPackage; | |
import com.i18n.reactnativei18n.ReactNativeI18n; | |
import com.idehub.GoogleAnalyticsBridge.GoogleAnalyticsBridgePackage; | |
import com.learnium.RNDeviceInfo.RNDeviceInfo; | |
import com.teslamotors.plugins.alert.AlertPromptPackage; | |
import com.teslamotors.plugins.biometricauthentication.BiometricAuthenticationPackage; | |
import com.teslamotors.plugins.calendar.CalendarSyncPackage; | |
import com.teslamotors.plugins.client.ClientPackage; | |
import com.teslamotors.plugins.colorblending.ColorBlendingImageViewPackage; | |
import com.teslamotors.plugins.crashlytics.CrashlyticsPackage; | |
import com.teslamotors.plugins.devicestorage.SharedPreferencesPackage; | |
import com.teslamotors.plugins.nativelocationutils.NativeLocationUtilsPackage; | |
import com.teslamotors.plugins.notifications.PushNotificationPackage; | |
import com.teslamotors.plugins.proximitysensornotifier.ProximitySensorNotifierPackage; | |
import com.teslamotors.plugins.shakehandler.ShakeHandlerPackage; | |
import com.teslamotors.plugins.viewsnapshotter.ViewSnapshotterPackage; | |
import java.util.Arrays; | |
import java.util.List; | |
public class MainApplication extends Application implements ReactApplication { | |
private final ReactNativeHost mReactNativeHost; | |
/* renamed from: com.teslamotors.TeslaApp.MainApplication.1 */ | |
class C08921 extends ReactNativeHost { | |
C08921(Application x0) { | |
super(x0); | |
} | |
protected boolean getUseDeveloperSupport() { | |
return false; | |
} | |
protected List<ReactPackage> getPackages() { | |
return Arrays.asList(new ReactPackage[]{new MainReactPackage(), new ColorBlendingImageViewPackage(), new SharedPreferencesPackage(), new NativeLocationUtilsPackage(), new ShakeHandlerPackage(), new MapsPackage(), new BaiduPackage(), new RNDeviceInfo(), new ReactNativeI18n(), new GoogleAnalyticsBridgePackage(), new AlertPromptPackage(), new ViewSnapshotterPackage(), new ClientPackage(), new CrashlyticsPackage(), new CalendarSyncPackage(), new ProximitySensorNotifierPackage(), PushNotificationPackage.getInstance(), new BiometricAuthenticationPackage()}); | |
} | |
} | |
public MainApplication() { | |
this.mReactNativeHost = new C08921(this); | |
} | |
public ReactNativeHost getReactNativeHost() { | |
return this.mReactNativeHost; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment