File tree 2 files changed +29
-10
lines changed
2 files changed +29
-10
lines changed Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
+ def _ext = rootProject. ext
4
+
5
+ def _reactNativeVersion = _ext. has(' reactNative' ) ? _ext. reactNative : ' +'
6
+ def _compileSdkVersion = _ext. has(' compileSdkVersion' ) ? _ext. compileSdkVersion : 27
7
+ def _buildToolsVersion = _ext. has(' buildToolsVersion' ) ? _ext. buildToolsVersion : ' 27.0.3'
8
+ def _minSdkVersion = _ext. has(' minSdkVersion' ) ? _ext. minSdkVersion : 16
9
+ def _targetSdkVersion = _ext. has(' targetSdkVersion' ) ? _ext. targetSdkVersion : 27
10
+
3
11
android {
4
- compileSdkVersion 23
5
- buildToolsVersion " 25.0.2 "
12
+ compileSdkVersion _compileSdkVersion
13
+ buildToolsVersion _buildToolsVersion
6
14
7
15
defaultConfig {
8
- minSdkVersion 16
9
- targetSdkVersion 23
16
+ minSdkVersion _minSdkVersion
17
+ targetSdkVersion _targetSdkVersion
18
+ versionCode 1
19
+ versionName " 1.0"
10
20
}
11
21
}
12
22
13
23
dependencies {
14
- provided ' com.facebook.react:react-native:+'
24
+ // noinspection GradleDynamicVersion
25
+ provided " com.facebook.react:react-native:${ _reactNativeVersion} "
15
26
compile ' com.google.android.exoplayer:exoplayer:r2.4.0'
16
27
compile(' com.google.android.exoplayer:extension-okhttp:r2.4.0' ) {
17
28
exclude group : ' com.squareup.okhttp3' , module : ' okhttp'
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
3
+ def _ext = rootProject. ext
4
+
5
+ def _reactNativeVersion = _ext. has(' reactNative' ) ? _ext. reactNative : ' +'
6
+ def _compileSdkVersion = _ext. has(' compileSdkVersion' ) ? _ext. compileSdkVersion : 27
7
+ def _buildToolsVersion = _ext. has(' buildToolsVersion' ) ? _ext. buildToolsVersion : ' 27.0.3'
8
+ def _minSdkVersion = _ext. has(' minSdkVersion' ) ? _ext. minSdkVersion : 16
9
+ def _targetSdkVersion = _ext. has(' targetSdkVersion' ) ? _ext. targetSdkVersion : 27
10
+
3
11
android {
4
- compileSdkVersion 25
5
- buildToolsVersion " 25.0.2 "
12
+ compileSdkVersion _compileSdkVersion
13
+ buildToolsVersion _buildToolsVersion
6
14
7
15
defaultConfig {
8
- minSdkVersion 16
9
- targetSdkVersion 25
16
+ minSdkVersion _minSdkVersion
17
+ targetSdkVersion _targetSdkVersion
10
18
versionCode 1
11
19
versionName " 1.0"
12
20
ndk {
@@ -17,6 +25,6 @@ android {
17
25
18
26
dependencies {
19
27
// noinspection GradleDynamicVersion
20
- provided ' com.facebook.react:react-native:+ '
28
+ provided " com.facebook.react:react-native:${ _reactNativeVersion } "
21
29
compile ' com.yqritc:android-scalablevideoview:1.0.4'
22
30
}
You can’t perform that action at this time.
0 commit comments