Skip to content

Commit

Permalink
Update NativeModule Specs
Browse files Browse the repository at this point in the history
Summary:
For some reason, these got out of sync again.

This diff modifies the Java Codegen to sort all the methods.
build-break
overriding_review_checks_triggers_an_audit_and_retroactive_review

Differential Revision:
D23363410

Oncall Short Name: fbandroid_sheriff
Ninja: master broken

fbshipit-source-id: 257d85f92017528e64ced31bc7be011acb333186
  • Loading branch information
RSNara authored and facebook-github-bot committed Aug 27, 2020
1 parent 5bc67b6 commit 5ffabca
Show file tree
Hide file tree
Showing 35 changed files with 219 additions and 219 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public NativeAccessibilityInfoSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void isTouchExplorationEnabled(Callback onSuccess);
public abstract void announceForAccessibility(String announcement);

@ReactMethod
public abstract void setAccessibilityFocus(double reactTag);
public abstract void isReduceMotionEnabled(Callback onSuccess);

@ReactMethod
public abstract void isReduceMotionEnabled(Callback onSuccess);
public abstract void isTouchExplorationEnabled(Callback onSuccess);

@ReactMethod
public abstract void announceForAccessibility(String announcement);
public abstract void setAccessibilityFocus(double reactTag);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ public NativeAccessibilityManagerSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void getCurrentReduceMotionState(Callback onSuccess, Callback onError);

@ReactMethod
public abstract void getCurrentReduceTransparencyState(Callback onSuccess, Callback onError);
public abstract void announceForAccessibility(String announcement);

@ReactMethod
public abstract void getCurrentBoldTextState(Callback onSuccess, Callback onError);
Expand All @@ -41,14 +38,17 @@ public NativeAccessibilityManagerSpec(ReactApplicationContext reactContext) {
public abstract void getCurrentInvertColorsState(Callback onSuccess, Callback onError);

@ReactMethod
public abstract void setAccessibilityFocus(double reactTag);
public abstract void getCurrentReduceMotionState(Callback onSuccess, Callback onError);

@ReactMethod
public abstract void getCurrentVoiceOverState(Callback onSuccess, Callback onError);
public abstract void getCurrentReduceTransparencyState(Callback onSuccess, Callback onError);

@ReactMethod
public abstract void announceForAccessibility(String announcement);
public abstract void getCurrentVoiceOverState(Callback onSuccess, Callback onError);

@ReactMethod
public abstract void setAccessibilityContentSizeMultipliers(ReadableMap JSMultipliers);

@ReactMethod
public abstract void setAccessibilityFocus(double reactTag);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,71 +26,71 @@ public NativeAnimatedModuleSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void connectAnimatedNodes(double parentTag, double childTag);
public abstract void addAnimatedEventToView(double viewTag, String eventName,
ReadableMap eventMapping);

@ReactMethod
public abstract void dropAnimatedNode(double tag);
public abstract void addListener(String eventName);

@ReactMethod
public abstract void stopAnimation(double animationId);
public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag);

@ReactMethod
public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag);
public abstract void connectAnimatedNodes(double parentTag, double childTag);

@ReactMethod
public abstract void removeListeners(double count);
public abstract void createAnimatedNode(double tag, ReadableMap config);

@ReactMethod
public abstract void flattenAnimatedNodeOffset(double nodeTag);
public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag);

@ReactMethod
public abstract void removeAnimatedEventFromView(double viewTag, String eventName,
double animatedNodeTag);
public abstract void disconnectAnimatedNodes(double parentTag, double childTag);

@ReactMethod
public abstract void disconnectAnimatedNodes(double parentTag, double childTag);
public abstract void dropAnimatedNode(double tag);

@ReactMethod
public abstract void extractAnimatedNodeOffset(double nodeTag);

@ReactMethod
public abstract void setAnimatedNodeValue(double nodeTag, double value);
public abstract void finishOperationBatch();

@ReactMethod
public abstract void startOperationBatch();
public abstract void flattenAnimatedNodeOffset(double nodeTag);

@ReactMethod
public abstract void setAnimatedNodeOffset(double nodeTag, double offset);
public abstract void getValue(double tag, Callback saveValueCallback);

@ReactMethod
public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config,
Callback endCallback);
public abstract void removeAnimatedEventFromView(double viewTag, String eventName,
double animatedNodeTag);

@ReactMethod
public abstract void restoreDefaultValues(double nodeTag);
public abstract void removeListeners(double count);

@ReactMethod
public abstract void getValue(double tag, Callback saveValueCallback);
public abstract void restoreDefaultValues(double nodeTag);

@ReactMethod
public abstract void stopListeningToAnimatedNodeValue(double tag);
public abstract void setAnimatedNodeOffset(double nodeTag, double offset);

@ReactMethod
public abstract void addAnimatedEventToView(double viewTag, String eventName,
ReadableMap eventMapping);
public abstract void setAnimatedNodeValue(double nodeTag, double value);

@ReactMethod
public abstract void createAnimatedNode(double tag, ReadableMap config);
public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config,
Callback endCallback);

@ReactMethod
public abstract void finishOperationBatch();
public abstract void startListeningToAnimatedNodeValue(double tag);

@ReactMethod
public abstract void startListeningToAnimatedNodeValue(double tag);
public abstract void startOperationBatch();

@ReactMethod
public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag);
public abstract void stopAnimation(double animationId);

@ReactMethod
public abstract void addListener(String eventName);
public abstract void stopListeningToAnimatedNodeValue(double tag);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,71 +26,71 @@ public NativeAnimatedTurboModuleSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void connectAnimatedNodes(double parentTag, double childTag);
public abstract void addAnimatedEventToView(double viewTag, String eventName,
ReadableMap eventMapping);

@ReactMethod
public abstract void dropAnimatedNode(double tag);
public abstract void addListener(String eventName);

@ReactMethod
public abstract void stopAnimation(double animationId);
public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag);

@ReactMethod
public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag);
public abstract void connectAnimatedNodes(double parentTag, double childTag);

@ReactMethod
public abstract void removeListeners(double count);
public abstract void createAnimatedNode(double tag, ReadableMap config);

@ReactMethod
public abstract void flattenAnimatedNodeOffset(double nodeTag);
public abstract void disconnectAnimatedNodeFromView(double nodeTag, double viewTag);

@ReactMethod
public abstract void removeAnimatedEventFromView(double viewTag, String eventName,
double animatedNodeTag);
public abstract void disconnectAnimatedNodes(double parentTag, double childTag);

@ReactMethod
public abstract void disconnectAnimatedNodes(double parentTag, double childTag);
public abstract void dropAnimatedNode(double tag);

@ReactMethod
public abstract void extractAnimatedNodeOffset(double nodeTag);

@ReactMethod
public abstract void setAnimatedNodeValue(double nodeTag, double value);
public abstract void finishOperationBatch();

@ReactMethod
public abstract void startOperationBatch();
public abstract void flattenAnimatedNodeOffset(double nodeTag);

@ReactMethod
public abstract void setAnimatedNodeOffset(double nodeTag, double offset);
public abstract void getValue(double tag, Callback saveValueCallback);

@ReactMethod
public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config,
Callback endCallback);
public abstract void removeAnimatedEventFromView(double viewTag, String eventName,
double animatedNodeTag);

@ReactMethod
public abstract void restoreDefaultValues(double nodeTag);
public abstract void removeListeners(double count);

@ReactMethod
public abstract void getValue(double tag, Callback saveValueCallback);
public abstract void restoreDefaultValues(double nodeTag);

@ReactMethod
public abstract void stopListeningToAnimatedNodeValue(double tag);
public abstract void setAnimatedNodeOffset(double nodeTag, double offset);

@ReactMethod
public abstract void addAnimatedEventToView(double viewTag, String eventName,
ReadableMap eventMapping);
public abstract void setAnimatedNodeValue(double nodeTag, double value);

@ReactMethod
public abstract void createAnimatedNode(double tag, ReadableMap config);
public abstract void startAnimatingNode(double animationId, double nodeTag, ReadableMap config,
Callback endCallback);

@ReactMethod
public abstract void finishOperationBatch();
public abstract void startListeningToAnimatedNodeValue(double tag);

@ReactMethod
public abstract void startListeningToAnimatedNodeValue(double tag);
public abstract void startOperationBatch();

@ReactMethod
public abstract void connectAnimatedNodeToView(double nodeTag, double viewTag);
public abstract void stopAnimation(double animationId);

@ReactMethod
public abstract void addListener(String eventName);
public abstract void stopListeningToAnimatedNodeValue(double tag);
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public NativeAppStateSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void removeListeners(double count);
public abstract void addListener(String eventName);

@ReactMethod
public abstract void getCurrentAppState(Callback success, Callback error);

@ReactMethod
public abstract void addListener(String eventName);
public abstract void removeListeners(double count);

protected abstract Map<String, Object> getTypedExportedConstants();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ public NativeAppearanceSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void removeListeners(double count);
public abstract void addListener(String eventName);

@ReactMethod(
isBlockingSynchronousMethod = true
)
public abstract @Nullable String getColorScheme();

@ReactMethod
public abstract void addListener(String eventName);
public abstract void removeListeners(double count);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,20 @@ public NativeAsyncStorageSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void multiSet(ReadableArray kvPairs, Callback callback);
public abstract void clear(Callback callback);

@ReactMethod
public abstract void multiGet(ReadableArray keys, Callback callback);
public abstract void getAllKeys(Callback callback);

@ReactMethod
public abstract void getAllKeys(Callback callback);
public abstract void multiGet(ReadableArray keys, Callback callback);

@ReactMethod
public abstract void multiMerge(ReadableArray kvPairs, Callback callback);

@ReactMethod
public abstract void clear(Callback callback);
public abstract void multiRemove(ReadableArray keys, Callback callback);

@ReactMethod
public abstract void multiRemove(ReadableArray keys, Callback callback);
public abstract void multiSet(ReadableArray kvPairs, Callback callback);
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ public NativeBlobModuleSpec(ReactApplicationContext reactContext) {
super(reactContext);
}

@ReactMethod
public abstract void sendOverSocket(ReadableMap blob, double socketID);

@ReactMethod
public abstract void addNetworkingHandler();

Expand All @@ -49,6 +46,9 @@ public NativeBlobModuleSpec(ReactApplicationContext reactContext) {
@ReactMethod
public abstract void removeWebSocketHandler(double id);

@ReactMethod
public abstract void sendOverSocket(ReadableMap blob, double socketID);

protected abstract Map<String, Object> getTypedExportedConstants();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public NativeBugReportingSpec(ReactApplicationContext reactContext) {
super(reactContext);
}

@ReactMethod
public abstract void startReportAProblemFlow();

@ReactMethod
public abstract void setCategoryID(String categoryID);

@ReactMethod
public abstract void setExtraData(ReadableMap extraData, ReadableMap extraFiles);

@ReactMethod
public abstract void startReportAProblemFlow();
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public NativeClipboardSpec(ReactApplicationContext reactContext) {
}

@ReactMethod
public abstract void setString(String content);
public abstract void getString(Promise promise);

@ReactMethod
public abstract void getString(Promise promise);
public abstract void setString(String content);
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ public NativeDevMenuSpec(ReactApplicationContext reactContext) {
super(reactContext);
}

@ReactMethod
public abstract void debugRemotely(boolean enableDebug);

@ReactMethod
public abstract void reload();

@ReactMethod
public abstract void debugRemotely(boolean enableDebug);
public abstract void setHotLoadingEnabled(boolean enabled);

@ReactMethod
public abstract void setProfilingEnabled(boolean enabled);

@ReactMethod
public abstract void show();

@ReactMethod
public abstract void setHotLoadingEnabled(boolean enabled);
}
Loading

0 comments on commit 5ffabca

Please sign in to comment.