File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
src/main/java/com/vydia/RNUploader Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
2
ext {
3
- kotlinVersion = ' 1.3.41 '
3
+ kotlinVersion = ' 1.4.0 '
4
4
buildToolsVersion = ' 29.0.2'
5
5
compileSdkVersion = 29
6
6
targetSdkVersion = 29
@@ -26,13 +26,17 @@ def DEFAULT_COMPILE_SDK_VERSION = 28
26
26
def DEFAULT_BUILD_TOOLS_VERSION = " 28.0.3"
27
27
def DEFAULT_TARGET_SDK_VERSION = 28
28
28
29
+ def safeExtGet (prop , fallback ) {
30
+ rootProject. ext. has(prop) ? rootProject. ext. get(prop) : fallback
31
+ }
32
+
29
33
android {
30
- compileSdkVersion project . hasProperty (' compileSdkVersion' ) ? project . compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
31
- buildToolsVersion project . hasProperty (' buildToolsVersion' ) ? project . buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
34
+ compileSdkVersion safeExtGet (' compileSdkVersion' , DEFAULT_COMPILE_SDK_VERSION )
35
+ buildToolsVersion safeExtGet (' buildToolsVersion' , DEFAULT_BUILD_TOOLS_VERSION )
32
36
33
37
defaultConfig {
34
38
minSdkVersion 21
35
- targetSdkVersion project . hasProperty (' targetSdkVersion' ) ? project . targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
39
+ targetSdkVersion safeExtGet (' targetSdkVersion' , DEFAULT_TARGET_SDK_VERSION )
36
40
versionCode 1
37
41
versionName " 1.0"
38
42
ndk {
@@ -54,6 +58,8 @@ def _kotlinVersion = _ext.has('detoxKotlinVersion') ? _ext.detoxKotlinVersion :
54
58
def _kotlinStdlib = _ext. has(' detoxKotlinStdlib' ) ? _ext. detoxKotlinStdlib : ' kotlin-stdlib-jdk8'
55
59
56
60
dependencies {
61
+ implementation " androidx.core:core-ktx:1.0.1"
62
+
57
63
implementation ' com.facebook.react:react-native:+'
58
64
59
65
implementation " org.jetbrains.kotlin:$_kotlinStdlib :$_kotlinVersion "
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class NotificationActionsReceiver : BroadcastReceiver() {
21
21
}
22
22
23
23
if (NotificationActions ().ACTION_CANCEL_UPLOAD == intent.getStringExtra(NotificationActions ().PARAM_ACTION )) {
24
- onUserRequestedUploadCancellation(context!! , intent.getStringExtra(NotificationActions ().PARAM_UPLOAD_ID ))
24
+ onUserRequestedUploadCancellation(context!! , intent.getStringExtra(NotificationActions ().PARAM_UPLOAD_ID )!! )
25
25
}
26
26
}
27
27
You can’t perform that action at this time.
0 commit comments