Skip to content

Commit

Permalink
Convert ReactFeatureFlags to Kotlin (#47260)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #47260

Convert ReactFeatureFlags to Kotlin

changeLog: [Android][Changed] Migrate ReactFeatureFlags to Kotlin

Reviewed By: shwanton, javache

Differential Revision: D65070217

fbshipit-source-id: 8939326c1e1e7cd634347a58123ad8c0795c309e
  • Loading branch information
mdvacca authored and facebook-github-bot committed Oct 29, 2024
1 parent 03797dd commit 4076dbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -2025,9 +2025,9 @@ public final class com/facebook/react/common/network/OkHttpCallUtil {
public static final fun cancelTag (Lokhttp3/OkHttpClient;Ljava/lang/Object;)V
}

public class com/facebook/react/config/ReactFeatureFlags {
public final class com/facebook/react/config/ReactFeatureFlags {
public static final field INSTANCE Lcom/facebook/react/config/ReactFeatureFlags;
public static field dispatchPointerEvents Z
public fun <init> ()V
}

public final class com/facebook/react/defaults/DefaultComponentsRegistry {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,20 @@
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.config;
package com.facebook.react.config

import com.facebook.infer.annotation.Nullsafe;
import com.facebook.proguard.annotations.DoNotStripAny;
import com.facebook.proguard.annotations.DoNotStripAny
import kotlin.jvm.JvmField

/**
* Hi there, traveller! This configuration class is not meant to be used by end-users of RN. It
* contains mainly flags for features that are either under active development and not ready for
* public consumption, or for use in experiments.
*
* <p>These values are safe defaults and should not require manual changes.
* These values are safe defaults and should not require manual changes.
*/
@Nullsafe(Nullsafe.Mode.LOCAL)
@Deprecated(since = "Use com.facebook.react.internal.featureflags.ReactNativeFeatureFlags instead.")
@Deprecated("Use com.facebook.react.internal.featureflags.ReactNativeFeatureFlags instead.")
@DoNotStripAny
public class ReactFeatureFlags {

public static boolean dispatchPointerEvents = false;
public object ReactFeatureFlags {
@JvmField public var dispatchPointerEvents: Boolean = false
}

0 comments on commit 4076dbf

Please # to comment.