File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,24 @@ buildscript {
11
11
12
12
apply plugin : ' com.android.library'
13
13
14
+
15
+
16
+ def getExtValue (rootProject ,key ,defaultValue ) {
17
+ if (rootProject. hasProperty(' ext' )) {
18
+ if (rootProject. ext. has(key)) {
19
+ return rootProject. ext[key]
20
+ }
21
+ }
22
+ return defaultValue
23
+ }
24
+
14
25
android {
15
- compileSdkVersion rootProject. ext . compileSdkVersion
16
- buildToolsVersion rootProject. ext . buildToolsVersion
26
+ compileSdkVersion getExtValue( rootProject, ' compileSdkVersion' , 23 )
27
+ buildToolsVersion getExtValue( rootProject, ' buildToolsVersion ' , " 23.0.1 " )
17
28
18
29
defaultConfig {
19
- minSdkVersion rootProject. ext . minSdkVersion
20
- targetSdkVersion rootProject. ext . targetSdkVersion
30
+ minSdkVersion getExtValue( rootProject, ' minSdkVersion' , 16 )
31
+ targetSdkVersion getExtValue( rootProject, ' targetSdkVersion' , 22 )
21
32
versionCode 1
22
33
versionName " 1.0"
23
34
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-exception-handler" ,
3
- "version" : " 2.10.0 " ,
3
+ "version" : " 2.10.2 " ,
4
4
"description" : " A react native module that lets you to register a global error handler that can capture fatal/non fatal uncaught exceptions." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments