From bd5aa40fa7730369af9cc745ed47ebdaf7c78dfd Mon Sep 17 00:00:00 2001 From: David Vacca <515103+mdvacca@users.noreply.github.com> Date: Tue, 26 Sep 2023 13:51:29 -0700 Subject: [PATCH] Remove support for Android API < 23 in ReactFragment (#39668) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39668 Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class ReactFragment chnagelog: [Android][Breaking] Remove support for Android API < 23 in ReactFragment Reviewed By: NickGerleman Differential Revision: D48545506 fbshipit-source-id: 70c4a2010db6f8d0d137e9e15f77d5119cdc2bbe --- .../src/main/java/com/facebook/react/ReactFragment.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java index f6c75784e85fa3..f3fbe055bf052d 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactFragment.java @@ -7,10 +7,8 @@ package com.facebook.react; -import android.annotation.TargetApi; import android.app.Activity; import android.content.Intent; -import android.os.Build; import android.os.Bundle; import android.view.KeyEvent; import android.view.LayoutInflater; @@ -161,13 +159,11 @@ public int checkPermission(String permission, int pid, int uid) { return getActivity().checkPermission(permission, pid, uid); } - @TargetApi(Build.VERSION_CODES.M) @Override public int checkSelfPermission(String permission) { return getActivity().checkSelfPermission(permission); } - @TargetApi(Build.VERSION_CODES.M) @Override public void requestPermissions( String[] permissions, int requestCode, PermissionListener listener) {