File tree 2 files changed +4
-4
lines changed
android/src/main/java/io/swan/rnbrowser/helpers
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 25
25
import android .text .TextUtils ;
26
26
import android .util .Log ;
27
27
28
+ import androidx .browser .customtabs .CustomTabsService ;
29
+
28
30
import java .util .ArrayList ;
29
31
import java .util .List ;
30
32
@@ -37,8 +39,6 @@ public class CustomTabsHelper {
37
39
static final String BETA_PACKAGE = "com.chrome.beta" ;
38
40
static final String DEV_PACKAGE = "com.chrome.dev" ;
39
41
static final String LOCAL_PACKAGE = "com.google.android.apps.chrome" ;
40
- private static final String ACTION_CUSTOM_TABS_CONNECTION =
41
- "android.support.customtabs.action.CustomTabsService" ;
42
42
43
43
private static String sPackageNameToUse ;
44
44
@@ -71,7 +71,7 @@ public static String getPackageNameToUse(Context context) {
71
71
List <String > packagesSupportingCustomTabs = new ArrayList <>();
72
72
for (ResolveInfo info : resolvedActivityList ) {
73
73
Intent serviceIntent = new Intent ();
74
- serviceIntent .setAction (ACTION_CUSTOM_TABS_CONNECTION );
74
+ serviceIntent .setAction (CustomTabsService . ACTION_CUSTOM_TABS_CONNECTION );
75
75
serviceIntent .setPackage (info .activityInfo .packageName );
76
76
if (pm .resolveService (serviceIntent , 0 ) != null ) {
77
77
packagesSupportingCustomTabs .add (info .activityInfo .packageName );
Original file line number Diff line number Diff line change 3
3
"version" : " 0.0.1" ,
4
4
"private" : true ,
5
5
"engines" : {
6
- "node" : " >=18 "
6
+ "node" : " ^22 "
7
7
},
8
8
"scripts" : {
9
9
"clean" : " rm -rf ./node_modules ./ios/Pods" ,
You can’t perform that action at this time.
0 commit comments