Skip to content

Commit 5697d92

Browse files
TheRogue76facebook-github-bot
authored andcommitted
fix(Android) - remove some unused imports in canvas utils (#47132)
Summary: Was working on something, saw that CanvasUtils has some unused imports. Figured i'd send a PR to clean up. ## Changelog: [INTERNAL] [FIXED] - Cleanup CanvasUtils imports Pull Request resolved: #47132 Test Plan: Ran yarn test: <img width="513" alt="Screenshot 2024-10-19 at 22 54 13" src="https://github.com/user-attachments/assets/6ca86852-cab5-425a-b71c-785c7d1ea95e"> Also tried running ./gradlew test, but it appears it is not having fun with my Node version (18.20.3), so `createBundleHermesReleaseJsAndAssets` randomly fails, to be investigated why: <img width="1515" alt="Screenshot 2024-10-19 at 22 56 02" src="https://github.com/user-attachments/assets/f860cdc5-4f42-4d54-9497-7eaa028b6bc6"> Reviewed By: NickGerleman Differential Revision: D64663918 Pulled By: cortinico fbshipit-source-id: a681d6ee76dfcbc56889e76da6cf8ea11907bdf2
1 parent e7a3f47 commit 5697d92

File tree

1 file changed

+0
-5
lines changed
  • packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view

1 file changed

+0
-5
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ package com.facebook.react.views.view
1010
import android.annotation.SuppressLint
1111
import android.graphics.Canvas
1212
import android.os.Build
13-
import android.os.Build.VERSION
14-
import android.os.Build.VERSION.SDK_INT
15-
import android.os.Build.VERSION_CODES
16-
import android.os.Build.VERSION_CODES.P
17-
import android.os.Build.VERSION_CODES.Q
1813
import java.lang.reflect.InvocationTargetException
1914
import java.lang.reflect.Method
2015

0 commit comments

Comments
 (0)