Skip to content

Commit 5f9689a

Browse files
NickGerlemanfacebook-github-bot
authored andcommitted
Fixup Enum Generator
Summary: facebook/yoga#1116 adds a new enum. The enum generator is out of date with copyright header, and some codemods, but it also looks like there were manual changes, types added, etc since generation. I fixed up the script to incorporate generating the changes folks made manually, and also added an enum that was previously only added manually to the C ABI. Changelog: [General][Fixed] - Fixup Yoga Enum Generator Reviewed By: yungsters Differential Revision: D39922252 fbshipit-source-id: b678fa9a43a896873d8c434745bdaf3f16fd991f
1 parent 6cd3884 commit 5f9689a

19 files changed

+102
-54
lines changed

ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaAlign {

ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaDimension {

ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaDirection {

ReactAndroid/src/main/java/com/facebook/yoga/YogaDisplay.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaDisplay {

ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaEdge {

ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaExperimentalFeature {

ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaFlexDirection {

ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaJustify {
@@ -32,8 +34,7 @@ public static YogaJustify fromInt(int value) {
3234
case 2: return FLEX_END;
3335
case 3: return SPACE_BETWEEN;
3436
case 4: return SPACE_AROUND;
35-
case 5:
36-
return SPACE_EVENLY;
37+
case 5: return SPACE_EVENLY;
3738
default: throw new IllegalArgumentException("Unknown enum value: " + value);
3839
}
3940
}

ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
import com.facebook.proguard.annotations.DoNotStrip;

ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java

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

8+
// @generated by enums.py
9+
810
package com.facebook.yoga;
911

1012
public enum YogaMeasureMode {

0 commit comments

Comments
 (0)