Skip to content

Commit bf1cbd2

Browse files
mateoguzmanafacebook-github-bot
authored andcommitted
Migrate YogaConfigFactory to Kotlin (#1833)
Summary: Migrate com.facebook.yoga.YogaConfigFactory to Kotlin. Pull Request resolved: #1833 Test Plan: RN ```sh yarn android yarn test-android ``` Yoga ```sh ./gradlew :yoga:assembleDebug ``` Reviewed By: rshest Differential Revision: D79897762 Pulled By: cortinico fbshipit-source-id: 9457b307204f2066a02690f96a88fce6755f915e
1 parent 499a825 commit bf1cbd2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

java/com/facebook/yoga/YogaConfigFactory.java renamed to java/com/facebook/yoga/YogaConfigFactory.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
package com.facebook.yoga;
8+
package com.facebook.yoga
99

10-
public abstract class YogaConfigFactory {
11-
public static YogaConfig create() {
12-
return new YogaConfigJNIFinalizer();
13-
}
10+
public object YogaConfigFactory {
11+
@JvmStatic public fun create(): YogaConfig = YogaConfigJNIFinalizer()
1412
}

0 commit comments

Comments
 (0)