mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-28 01:16:50 +00:00
[#3174] add js injection support for service worker
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
210ea5df7d
commit
05379747da
1
.env
1
.env
@ -17,3 +17,4 @@ MIXPANEL_TOKEN=3f2e1a8970f159aa2a3d5dc5d65eab38
|
|||||||
DEFAULT_NETWORK=mainnet_rpc
|
DEFAULT_NETWORK=mainnet_rpc
|
||||||
TESTFAIRY_TOKEN=969f6c921cb435cea1d41d1ea3f5b247d6026d55
|
TESTFAIRY_TOKEN=969f6c921cb435cea1d41d1ea3f5b247d6026d55
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
|
DEBUG_WEBVIEW=1
|
||||||
|
1
.env.e2e
1
.env.e2e
@ -16,3 +16,4 @@ POW_TARGET=0.002
|
|||||||
POW_TIME=1
|
POW_TIME=1
|
||||||
DEFAULT_NETWORK=testnet_rpc
|
DEFAULT_NETWORK=testnet_rpc
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
|
DEBUG_WEBVIEW=1
|
||||||
|
@ -17,3 +17,4 @@ POW_TARGET=0.002
|
|||||||
POW_TIME=1
|
POW_TIME=1
|
||||||
DEFAULT_NETWORK=mainnet_rpc
|
DEFAULT_NETWORK=mainnet_rpc
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
|
DEBUG_WEBVIEW=1
|
||||||
|
@ -17,3 +17,4 @@ POW_TARGET=0.002
|
|||||||
POW_TIME=1
|
POW_TIME=1
|
||||||
DEFAULT_NETWORK=testnet_rpc
|
DEFAULT_NETWORK=testnet_rpc
|
||||||
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
INSTABUG_TOKEN=758630ed52864cbad9c5eeeac596c60c
|
||||||
|
DEBUG_WEBVIEW=0
|
||||||
|
@ -50,6 +50,11 @@ public class MainApplication extends MultiDexApplication implements ReactApplica
|
|||||||
jscEnabled = true;
|
jscEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean webViewDebugEnabled = false;
|
||||||
|
if (BuildConfig.DEBUG_WEBVIEW == "1") {
|
||||||
|
webViewDebugEnabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
StatusPackage statusPackage = new StatusPackage(BuildConfig.DEBUG, devCluster, jscEnabled, BuildConfig.LOG_LEVEL_STATUS_GO);
|
StatusPackage statusPackage = new StatusPackage(BuildConfig.DEBUG, devCluster, jscEnabled, BuildConfig.LOG_LEVEL_STATUS_GO);
|
||||||
Function<String, String> callRPC = statusPackage.getCallRPC();
|
Function<String, String> callRPC = statusPackage.getCallRPC();
|
||||||
List<ReactPackage> packages = new ArrayList<ReactPackage>(Arrays.asList(
|
List<ReactPackage> packages = new ArrayList<ReactPackage>(Arrays.asList(
|
||||||
@ -69,7 +74,7 @@ public class MainApplication extends MultiDexApplication implements ReactApplica
|
|||||||
new ImageResizerPackage(),
|
new ImageResizerPackage(),
|
||||||
new PickerPackage(),
|
new PickerPackage(),
|
||||||
new TestFairyPackage(),
|
new TestFairyPackage(),
|
||||||
new WebViewBridgePackage(BuildConfig.DEBUG, callRPC),
|
new WebViewBridgePackage(webViewDebugEnabled, callRPC),
|
||||||
new ReactNativeConfigPackage(),
|
new ReactNativeConfigPackage(),
|
||||||
new RNInstabugReactnativePackage.Builder(BuildConfig.INSTABUG_TOKEN,MainApplication.this)
|
new RNInstabugReactnativePackage.Builder(BuildConfig.INSTABUG_TOKEN,MainApplication.this)
|
||||||
.setInvocationEvent("shake")
|
.setInvocationEvent("shake")
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -7282,7 +7282,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-native-webview-bridge": {
|
"react-native-webview-bridge": {
|
||||||
"version": "github:status-im/react-native-webview-bridge#b4200c08c0036a90ee07199b118849a65c7cc635",
|
"version": "github:status-im/react-native-webview-bridge#9b40cce26f1732772dbbeac11fe2fda44fb8703c",
|
||||||
"requires": {
|
"requires": {
|
||||||
"invariant": "2.2.0",
|
"invariant": "2.2.0",
|
||||||
"keymirror": "0.1.1"
|
"keymirror": "0.1.1"
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
"react-native-tcp": "3.3.0",
|
"react-native-tcp": "3.3.0",
|
||||||
"react-native-testfairy": "2.8.0",
|
"react-native-testfairy": "2.8.0",
|
||||||
"react-native-udp": "2.2.1",
|
"react-native-udp": "2.2.1",
|
||||||
"react-native-webview-bridge": "github:status-im/react-native-webview-bridge#feature/camera-permissions",
|
"react-native-webview-bridge": "github:status-im/react-native-webview-bridge#fix-web3-injection",
|
||||||
"realm": "2.3.3",
|
"realm": "2.3.3",
|
||||||
"rn-snoopy": "github:status-im/rn-snoopy",
|
"rn-snoopy": "github:status-im/rn-snoopy",
|
||||||
"string_decoder": "0.10.31",
|
"string_decoder": "0.10.31",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user