From 767b97c4dae609e71ed4beaa2698a941e37aedd8 Mon Sep 17 00:00:00 2001 From: hurali97 Date: Thu, 8 Jun 2023 01:15:43 -0700 Subject: [PATCH] refactor: re-write clipboard module test to kotlin (#37726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Migrates the **ClipboardModuleTest** Java class to Kotlin. It also changes the import for **ClipboardManager** from `android.text.ClipboardManager` to `android.content.ClipboardManager`. Since the import from `android.text` is deprecated and in the [ClipboardManager.java](https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/clipboard/ClipboardModule.java) the import refers to `android.content`, so it's safe to update the import in test file as well. It's a sub-task of the umbrella issue [here](https://github.com/facebook/react-native/issues/37708) ## Changelog: [INTERNAL] [CHANGED] ClipboardModuleTest class migrated from Java to Kotlin