From 99491846a9efcacf1524a4ed9b0a890913334c77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Arlet?= <18646017+parlet@users.noreply.github.com> Date: Tue, 12 Dec 2023 11:15:46 +0100 Subject: [PATCH] fix: Fix RN 0.73 error "'hasConstants' overrides nothing" at CameraDevicesManager.kt (#2264) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Przemysław Arlet --- .../src/main/java/com/mrousavy/camera/CameraDevicesManager.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/package/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt b/package/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt index 4434ecea46..978d9889a6 100644 --- a/package/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt +++ b/package/android/src/main/java/com/mrousavy/camera/CameraDevicesManager.kt @@ -71,8 +71,6 @@ class CameraDevicesManager(private val reactContext: ReactApplicationContext) : eventEmitter.emit("CameraDevicesChanged", getDevicesJson()) } - override fun hasConstants(): Boolean = true - override fun getConstants(): MutableMap { val devices = getDevicesJson() val preferredDevice = if (devices.size() > 0) devices.getMap(0) else null