mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Enable Kotlin build in OSS (#33160)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/33160 Enables Kotlin build in RNAndroid, while adjusting the package structure to help with path/package inconsistency. Moves `react/uimanager/interfaces` files into `react/uimanager` to make sure package name matches with file location and updates Buck configuration to still include it as a separate target. Changelog: [Android][Changed] - Moved `com/react/facebook/uimanager/interfaces` files into `com/react/facebook/uimanager` to enable Kotlin build Reviewed By: cortinico Differential Revision: D34381179 fbshipit-source-id: 252588d9c7f62b8019bdfcce66197628d63e63a1
This commit is contained in:
1 parent
733f228506
commit
b1a779392d
10 files changed
+33
-24
No files matched your search
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
*
|
||||
* 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.uimanager;
|
||||
|
||||
public class FloatUtil {
|
||||
|
||||
private static final float EPSILON = .00001f;
|
||||
|
||||
public static boolean floatsEqual(float f1, float f2) {
|
||||
if (Float.isNaN(f1) || Float.isNaN(f2)) {
|
||||
return Float.isNaN(f1) && Float.isNaN(f2);
|
||||
}
|
||||
return Math.abs(f2 - f1) < EPSILON;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user