mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-04 22:56:32 +08:00
Forward VM version to inspector
Reviewed By: bnham Differential Revision: D6938018 fbshipit-source-id: c79853ddf835acab86a16ebd539874d29d3aa60a
This commit is contained in:
committed by
Facebook Github Bot
parent
b1d8af48ae
commit
ad2d9e7fab
@@ -51,6 +51,7 @@ public class Inspector {
|
||||
public static class Page {
|
||||
private final int mId;
|
||||
private final String mTitle;
|
||||
private final String mVM;
|
||||
|
||||
public int getId() {
|
||||
return mId;
|
||||
@@ -60,6 +61,10 @@ public class Inspector {
|
||||
return mTitle;
|
||||
}
|
||||
|
||||
public String getVM() {
|
||||
return mVM;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Page{" +
|
||||
@@ -69,9 +74,10 @@ public class Inspector {
|
||||
}
|
||||
|
||||
@DoNotStrip
|
||||
private Page(int id, String title) {
|
||||
private Page(int id, String title, String vm) {
|
||||
mId = id;
|
||||
mTitle = title;
|
||||
mVM = vm;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -154,6 +154,7 @@ public class InspectorPackagerConnection {
|
||||
jsonPage.put("id", String.valueOf(page.getId()));
|
||||
jsonPage.put("title", page.getTitle());
|
||||
jsonPage.put("app", mPackageName);
|
||||
jsonPage.put("vm", page.getVM());
|
||||
jsonPage.put("isLastBundleDownloadSuccess", bundleStatus.isLastDownloadSucess);
|
||||
jsonPage.put("bundleUpdateTimestamp", bundleStatus.updateTimestamp);
|
||||
array.put(jsonPage);
|
||||
|
||||
Reference in New Issue
Block a user