mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Format Java code in xplat/js/react-native-github
Summary: This diff formats the Java class files inside xplat/js/react-native-github. Since google-java-format was enabled in D16071401 we want to codemode the existing code so that users don't have to deal with formatter lint noise at diff-time. ```arc f --paths-cmd 'hg files -I "**/*.java"'``` drop-conflicts Reviewed By: cpojer Differential Revision: D16071725 fbshipit-source-id: fc6e3852e45742c109f0c5ac4065d64201c74204
This commit is contained in:
committed by
Facebook Github Bot
parent
61e95e5cbf
commit
6c0f73b322
@@ -1,22 +1,21 @@
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
|
||||
* directory of this source tree.
|
||||
*/
|
||||
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.AssetManager;
|
||||
|
||||
/**
|
||||
* An interface for classes that initialize JavaScript using {@link JSBundleLoader}
|
||||
*/
|
||||
/** An interface for classes that initialize JavaScript using {@link JSBundleLoader} */
|
||||
public interface JSBundleLoaderDelegate {
|
||||
|
||||
/**
|
||||
* Load a JS bundle from Android assets. See {@link JSBundleLoader#createAssetLoader(Context, String, boolean)}
|
||||
* Load a JS bundle from Android assets. See {@link JSBundleLoader#createAssetLoader(Context,
|
||||
* String, boolean)}
|
||||
*
|
||||
* @param assetManager
|
||||
* @param assetURL
|
||||
* @param loadSynchronously
|
||||
@@ -24,8 +23,9 @@ public interface JSBundleLoaderDelegate {
|
||||
void loadScriptFromAssets(AssetManager assetManager, String assetURL, boolean loadSynchronously);
|
||||
|
||||
/**
|
||||
* Load a JS bundle from the filesystem.
|
||||
* See {@link JSBundleLoader#createFileLoader(String)} and {@link JSBundleLoader#createCachedBundleFromNetworkLoader(String, String)}
|
||||
* Load a JS bundle from the filesystem. See {@link JSBundleLoader#createFileLoader(String)} and
|
||||
* {@link JSBundleLoader#createCachedBundleFromNetworkLoader(String, String)}
|
||||
*
|
||||
* @param fileName
|
||||
* @param sourceURL
|
||||
* @param loadSynchronously
|
||||
@@ -33,26 +33,23 @@ public interface JSBundleLoaderDelegate {
|
||||
void loadScriptFromFile(String fileName, String sourceURL, boolean loadSynchronously);
|
||||
|
||||
/**
|
||||
* Load a delta bundle from Metro.
|
||||
* See {@link JSBundleLoader#createDeltaFromNetworkLoader(String, NativeDeltaClient)}
|
||||
* Load a delta bundle from Metro. See {@link JSBundleLoader#createDeltaFromNetworkLoader(String,
|
||||
* NativeDeltaClient)}
|
||||
*
|
||||
* @param sourceURL
|
||||
* @param deltaClient
|
||||
* @param loadSynchronously
|
||||
*/
|
||||
void loadScriptFromDeltaBundle(
|
||||
String sourceURL,
|
||||
NativeDeltaClient deltaClient,
|
||||
boolean loadSynchronously);
|
||||
String sourceURL, NativeDeltaClient deltaClient, boolean loadSynchronously);
|
||||
|
||||
/**
|
||||
* This API is used in situations where the JS bundle is being executed not on
|
||||
* the device, but on a host machine. In that case, we must provide two source
|
||||
* URLs for the JS bundle: One to be used on the device, and one to be used on
|
||||
* the remote debugging machine.
|
||||
* This API is used in situations where the JS bundle is being executed not on the device, but on
|
||||
* a host machine. In that case, we must provide two source URLs for the JS bundle: One to be used
|
||||
* on the device, and one to be used on the remote debugging machine.
|
||||
*
|
||||
* @param deviceURL A source URL that is accessible from this device.
|
||||
* @param remoteURL A source URL that is accessible from the remote machine
|
||||
* executing the JS.
|
||||
* @param remoteURL A source URL that is accessible from the remote machine executing the JS.
|
||||
*/
|
||||
void setSourceURLs(String deviceURL, String remoteURL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user