File tree 2 files changed +16
-9
lines changed
2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
+ def DEFAULT_COMPILE_SDK_VERSION = 26
4
+ def DEFAULT_BUILD_TOOLS_VERSION = " 26.0.2"
5
+ def DEFAULT_TARGET_SDK_VERSION = 26
6
+ def DEFAULT_SUPPORT_LIB_VERSION = " 26.1.0"
7
+
3
8
android {
4
- compileSdkVersion 26
5
- buildToolsVersion " 26.0.3 "
9
+ compileSdkVersion rootProject . hasProperty( ' compileSdkVersion ' ) ? rootProject . compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10
+ buildToolsVersion rootProject . hasProperty( ' buildToolsVersion ' ) ? rootProject . buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
6
11
7
12
defaultConfig {
8
13
minSdkVersion 16
9
- targetSdkVersion 26
14
+ targetSdkVersion rootProject . hasProperty( ' targetSdkVersion ' ) ? rootProject . targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
10
15
versionCode 1
11
16
versionName " 1.0"
12
17
}
@@ -19,8 +24,10 @@ android {
19
24
}
20
25
21
26
dependencies {
22
- compile fileTree(dir : ' libs' , include : [' *.jar' ])
23
- testCompile ' junit:junit:4.12'
24
- compile ' com.android.support:appcompat-v7:26.1.0'
25
- compile " com.facebook.react:react-native:+" // From node_modules
26
- }
27
+ def supportLibVersion = rootProject. hasProperty(' supportLibVersion' ) ? rootProject. supportLibVersion : DEFAULT_SUPPORT_LIB_VERSION
28
+
29
+ implementation fileTree(dir : ' libs' , include : [' *.jar' ])
30
+ testImplementation ' junit:junit:4.12'
31
+ implementation " com.android.support:appcompat-v7:$supportLibVersion "
32
+ compileOnly " com.facebook.react:react-native:+" // From node_modules
33
+ }
Original file line number Diff line number Diff line change 28
28
"url" : " https://github.com/crazycodeboy/react-native-splash-screen/issues"
29
29
},
30
30
"peerDependencies" : {
31
- "react-native" : " >=0.47 .0"
31
+ "react-native" : " >=0.57 .0"
32
32
},
33
33
"homepage" : " https://github.com/crazycodeboy/react-native-splash-screen#readme"
34
34
}
You can’t perform that action at this time.
0 commit comments