Skip to content

Commit e097ed5

Browse files
committed
fix: Update build patch for react-native-background-upload
react-native-background-upload is not maintained. We already had a patch for react-native 0.72, but we are getting an error when uploading a file when targeting Android 34 : "One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts". Fix is done in android-upload-service gotev/android-upload-service#642 New patch is taken from Vydia/react-native-background-upload#347
1 parent cb2a08b commit e097ed5

File tree

2 files changed

+36
-44
lines changed

2 files changed

+36
-44
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
diff --git a/node_modules/react-native-background-upload/android/build.gradle b/node_modules/react-native-background-upload/android/build.gradle
2+
index fa6963f..7a3c908 100755
3+
--- a/node_modules/react-native-background-upload/android/build.gradle
4+
+++ b/node_modules/react-native-background-upload/android/build.gradle
5+
@@ -1,9 +1,9 @@
6+
buildscript {
7+
ext {
8+
- kotlinVersion = '1.6.0'
9+
- buildToolsVersion = '29.0.2'
10+
- compileSdkVersion = 29
11+
- targetSdkVersion = 29
12+
+ kotlinVersion = '1.8.21'
13+
+ buildToolsVersion = '34.0.8'
14+
+ compileSdkVersion = 34
15+
+ targetSdkVersion = 34
16+
minSdkVersion = 18
17+
}
18+
ext.detoxKotlinVersion = ext.kotlinVersion
19+
@@ -20,7 +20,7 @@ buildscript {
20+
21+
apply plugin: 'com.android.library'
22+
apply plugin: 'kotlin-android'
23+
-apply plugin: 'kotlin-android-extensions'
24+
+apply plugin: 'kotlin-parcelize'
25+
26+
def DEFAULT_COMPILE_SDK_VERSION = 28
27+
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.3"
28+
@@ -64,7 +64,7 @@ dependencies {
29+
30+
implementation "org.jetbrains.kotlin:$_kotlinStdlib:$_kotlinVersion"
31+
32+
- implementation 'net.gotev:uploadservice-okhttp:4.7.0'
33+
+ implementation 'net.gotev:uploadservice-okhttp:4.9.2'
34+
35+
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'
36+
}

patches/react-native-background-upload+6.6.0+002+build-rn-72.patch

Lines changed: 0 additions & 44 deletions
This file was deleted.

0 commit comments

Comments
 (0)