File tree Expand file tree Collapse file tree 3 files changed +12
-10
lines changed
src/main/java/com/github/droibit/android/reactnative/customtabs Expand file tree Collapse file tree 3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : " com.android.library"
2
2
3
3
android {
4
- compileSdkVersion 23
5
- buildToolsVersion " 23 .0.3 "
4
+ compileSdkVersion 25
5
+ buildToolsVersion " 25 .0.1 "
6
6
7
7
defaultConfig {
8
8
minSdkVersion 16
@@ -14,7 +14,10 @@ android {
14
14
15
15
dependencies {
16
16
compile " com.facebook.react:react-native:+" // From node_modules
17
- compile ' com.github.droibit.customtabslauncher:launcher:1.0.4'
17
+ compile ' com.android.support:customtabs:25.0.1'
18
+ compile (' com.github.droibit.customtabslauncher:launcher:1.0.8' ) {
19
+ exclude module : ' customtabs'
20
+ }
18
21
19
22
testCompile ' junit:junit:4.12'
20
23
}
Original file line number Diff line number Diff line change 6
6
import android .os .Bundle ;
7
7
import android .provider .Browser ;
8
8
import android .support .customtabs .CustomTabsIntent ;
9
+ import android .text .TextUtils ;
9
10
10
11
import com .droibit .android .customtabs .launcher .CustomTabsLauncher ;
11
12
import com .facebook .react .bridge .JSApplicationIllegalArgumentException ;
26
27
27
28
/**
28
29
* CustomTabs module.
29
- *
30
- * @author kumagai
31
30
*/
32
31
public class CustomTabsModule extends ReactContextBaseJavaModule {
33
32
@@ -89,7 +88,7 @@ public Map<String, Object> getConstants() {
89
88
*/
90
89
@ ReactMethod
91
90
public void openURL (String url , ReadableMap option , Promise promise ) {
92
- if (url == null || url . equals ( "" )) {
91
+ if (TextUtils . isEmpty ( url )) {
93
92
promise .reject (new JSApplicationIllegalArgumentException ("Invalid URL: " + url ));
94
93
return ;
95
94
}
Original file line number Diff line number Diff line change @@ -77,13 +77,13 @@ def enableSeparateBuildPerCPUArchitecture = false
77
77
def enableProguardInReleaseBuilds = false
78
78
79
79
android {
80
- compileSdkVersion 23
81
- buildToolsVersion " 23 .0.3 "
80
+ compileSdkVersion 25
81
+ buildToolsVersion " 25 .0.1 "
82
82
83
83
defaultConfig {
84
84
applicationId " com.github.droibit.android.reactnative.customtabs.example"
85
85
minSdkVersion 16
86
- targetSdkVersion 22
86
+ targetSdkVersion 23
87
87
versionCode 1
88
88
versionName " 1.0"
89
89
ndk {
@@ -122,7 +122,7 @@ android {
122
122
dependencies {
123
123
compile fileTree(dir : " libs" , include : [" *.jar" ])
124
124
compile project(' :react-native-custom-tabs' )
125
- compile " com.android.support:appcompat-v7:23.3.0 "
125
+ compile " com.android.support:appcompat-v7:25.0.1 "
126
126
compile " com.facebook.react:react-native:+" // From node_modules
127
127
}
128
128
You can’t perform that action at this time.
0 commit comments