Skip to content

Commit 6732da8

Browse files
committed
Migrate YogaConfig to Kotlin
1 parent 8bf7a34 commit 6732da8

2 files changed

Lines changed: 33 additions & 29 deletions

File tree

java/com/facebook/yoga/YogaConfig.java

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
package com.facebook.yoga
9+
10+
public abstract class YogaConfig {
11+
public abstract fun setExperimentalFeatureEnabled(
12+
feature: YogaExperimentalFeature,
13+
enabled: Boolean
14+
)
15+
16+
public abstract fun setUseWebDefaults(useWebDefaults: Boolean)
17+
18+
public abstract fun setPointScaleFactor(pixelsInPoint: Float)
19+
20+
public abstract fun setErrata(errata: YogaErrata)
21+
22+
public abstract fun getErrata(): YogaErrata
23+
24+
public abstract fun setLogger(logger: YogaLogger)
25+
26+
public abstract fun getLogger(): YogaLogger
27+
28+
protected abstract fun getNativePointer(): Long
29+
30+
public companion object {
31+
public var SPACING_TYPE: Int = 1
32+
}
33+
}

0 commit comments

Comments
 (0)