File tree Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Expand file tree Collapse file tree 2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
2
2
apply plugin : ' com.android.library'
3
3
4
- def DEFAULT_COMPILE_SDK_VERSION = 28
5
- def DEFAULT_BUILD_TOOLS_VERSION = " 28.0.0"
6
- def DEFAULT_TARGET_SDK_VERSION = 28
4
+ String getExtOrDefault (String name ) {
5
+ if (rootProject. ext. has(name)) {
6
+ return rootProject. ext. get(name)
7
+ }
8
+ return project. properties[' InstabugReactNative_' + name]
9
+ }
7
10
8
11
android {
9
- compileSdkVersion rootProject . hasProperty (' compileSdkVersion' ) ? rootProject . compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10
- buildToolsVersion rootProject . hasProperty (' buildToolsVersion' ) ? rootProject . buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
12
+ compileSdkVersion getExtOrDefault (' compileSdkVersion' ). toInteger()
13
+ buildToolsVersion getExtOrDefault (' buildToolsVersion' )
11
14
12
15
defaultConfig {
13
- minSdkVersion 16
14
- targetSdkVersion rootProject . hasProperty (' targetSdkVersion' ) ? rootProject . targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
16
+ minSdkVersion getExtOrDefault( ' minSdkVersion ' ) . toInteger()
17
+ targetSdkVersion getExtOrDefault (' targetSdkVersion' ). toInteger()
15
18
versionCode 1
16
19
versionName " 1.0"
17
20
ndk {
Original file line number Diff line number Diff line change
1
+ InstabugReactNative_compileSdkVersion =30
2
+ InstabugReactNative_buildToolsVersion =' 30.0.2'
3
+ InstabugReactNative_targetSdkVersion =31
4
+ InstabugReactNative_minSdkVersion =16
You can’t perform that action at this time.
0 commit comments