From f8b2956437c23dd63463becc704b569bd8fcb19e Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 10 Apr 2025 17:58:01 -0700 Subject: [PATCH] Delete ChoreographerCompat Summary: Deleting ChoreographerCompat as its only method is deprecated and it's unused. Use Choreographer.FrameCallback instead changelog: [Android][Breaking] Deleting ChoreographerCompat, Use Choreographer.FrameCallback instead Reviewed By: alanleedev Differential Revision: D72817152 fbshipit-source-id: 08624dd07e916116381293cde57a0fdf5452a670 --- .../ReactAndroid/api/ReactAndroid.api | 8 -------- .../react/modules/core/ChoreographerCompat.kt | 16 ---------------- 2 files changed, 24 deletions(-) delete mode 100644 packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.kt diff --git a/packages/react-native/ReactAndroid/api/ReactAndroid.api b/packages/react-native/ReactAndroid/api/ReactAndroid.api index f80d99d839d..aa2d55a60aa 100644 --- a/packages/react-native/ReactAndroid/api/ReactAndroid.api +++ b/packages/react-native/ReactAndroid/api/ReactAndroid.api @@ -2704,14 +2704,6 @@ public abstract interface class com/facebook/react/modules/common/ModuleDataClea public abstract fun clearSensitiveData ()V } -public class com/facebook/react/modules/core/ChoreographerCompat { - public fun ()V -} - -public abstract class com/facebook/react/modules/core/ChoreographerCompat$FrameCallback : android/view/Choreographer$FrameCallback { - public fun ()V -} - public abstract interface class com/facebook/react/modules/core/DefaultHardwareBackBtnHandler { public abstract fun invokeDefaultOnBackPressed ()V } diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.kt deleted file mode 100644 index 0b24e15e8f1..00000000000 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/core/ChoreographerCompat.kt +++ /dev/null @@ -1,16 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.react.modules.core - -import android.view.Choreographer - -public open class ChoreographerCompat { - - @Deprecated("Use Choreographer.FrameCallback instead") - public abstract class FrameCallback : Choreographer.FrameCallback -}