Add AppIdentity and DeviceIdentity to Inspector

Reviewed By: Hypuk

Differential Revision: D5924011

fbshipit-source-id: a81d420dbe1a5ede203d2fa313548e19664b9587
This commit is contained in:
Paco Estevez Garcia authored and Facebook Github Bot committed 2017-10-03 06:03:23 -07:00
1 parent 96f23e7416
commit da14fad829
7 files changed
+34 -5

No files matched your search

@@ -2,8 +2,12 @@
package com.facebook.react;
import static com.facebook.react.modules.systeminfo.AndroidInfoHelpers.getFriendlyDeviceName;
import android.app.Activity;
import android.app.Application;
import android.net.Uri;
import android.os.Build;
import com.facebook.infer.annotation.Assertions;
import com.facebook.react.bridge.JSBundleLoader;
import com.facebook.react.bridge.JSCJavaScriptExecutorFactory;
@@ -262,12 +266,15 @@ public class ReactInstanceManagerBuilder {
mUIImplementationProvider = new UIImplementationProvider();
}
String appName = Uri.encode(mApplication.getPackageName());
String deviceName = Uri.encode(getFriendlyDeviceName());
return new ReactInstanceManager(
mApplication,
mCurrentActivity,
mDefaultHardwareBackBtnHandler,
mJavaScriptExecutorFactory == null
? new JSCJavaScriptExecutorFactory()
? new JSCJavaScriptExecutorFactory(appName, deviceName)
: mJavaScriptExecutorFactory,
(mJSBundleLoader == null && mJSBundleAssetUrl != null)
? JSBundleLoader.createAssetLoader(