mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-15 12:12:31 +08:00
Rename executeApplicationScript -> loadApplicationScript
Reviewed By: davidaurelio Differential Revision: D2921959 fb-gh-sync-id: 5bf44f5d037f2341000070f59309df0fab72aa29 shipit-source-id: 5bf44f5d037f2341000070f59309df0fab72aa29
This commit is contained in:
committed by
facebook-github-bot-5
parent
cf7a97cc0f
commit
0de8860a46
@@ -103,7 +103,7 @@ public class JSDebuggerWebSocketClient implements WebSocketListener {
|
||||
}
|
||||
}
|
||||
|
||||
public void executeApplicationScript(
|
||||
public void loadApplicationScript(
|
||||
String sourceURL,
|
||||
HashMap<String, String> injectedObjects,
|
||||
JSDebuggerCallback callback) {
|
||||
|
||||
@@ -40,7 +40,7 @@ public interface JavaJSExecutor {
|
||||
* @param sourceURL url or file location from which script content was loaded
|
||||
*/
|
||||
@DoNotStrip
|
||||
void executeApplicationScript(String script, String sourceURL) throws ProxyExecutorException;
|
||||
void loadApplicationScript(String script, String sourceURL) throws ProxyExecutorException;
|
||||
|
||||
/**
|
||||
* Execute javascript method within js context
|
||||
|
||||
@@ -159,10 +159,10 @@ public class WebsocketJavaScriptExecutor implements JavaJSExecutor {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void executeApplicationScript(String script, String sourceURL)
|
||||
public void loadApplicationScript(String script, String sourceURL)
|
||||
throws ProxyExecutorException {
|
||||
JSExecutorCallbackFuture callback = new JSExecutorCallbackFuture();
|
||||
Assertions.assertNotNull(mWebSocketClient).executeApplicationScript(
|
||||
Assertions.assertNotNull(mWebSocketClient).loadApplicationScript(
|
||||
sourceURL,
|
||||
mInjectedObjects,
|
||||
callback);
|
||||
@@ -190,7 +190,7 @@ public class WebsocketJavaScriptExecutor implements JavaJSExecutor {
|
||||
|
||||
@Override
|
||||
public void setGlobalVariable(String propertyName, String jsonEncodedValue) {
|
||||
// Store and use in the next executeApplicationScript() call.
|
||||
// Store and use in the next loadApplicationScript() call.
|
||||
mInjectedObjects.put(propertyName, jsonEncodedValue);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user