Adding @CountEnum to simple enums in xplat/js

Summary: Using The Count to transform enums to ints in production builds: https://our.intern.facebook.com/intern/wiki/Android-java-transforms/the-count/

Reviewed By: achen1

Differential Revision: D9614432

fbshipit-source-id: 1b1a197ad8f4962712d6006ab07b3beb3eaf2432
This commit is contained in:
Emily Janzer
2018-09-04 18:18:05 -07:00
committed by Facebook Github Bot
parent 01d5eff425
commit 06bf7b1f00
24 changed files with 52 additions and 0 deletions
@@ -7,6 +7,8 @@
package com.facebook.react.common;
import com.facebook.thecount.api.CountEnum;
/**
* Lifecycle state for an Activity. The state right after pause and right before resume are the
* basically the same so this enum is in terms of the forward lifecycle progression (onResume, etc).
@@ -18,6 +20,7 @@ package com.facebook.react.common;
* STARTED,
* RESUMED
*/
@CountEnum
public enum LifecycleState {
BEFORE_CREATE,
BEFORE_RESUME,