jamesisaac / react-native-background-task

Periodic background tasks for React Native apps, cross-platform (iOS and Android), which run even when the app is closed.
MIT License
1.11k stars 110 forks source link

android gradle compile error #89

Open rafael2412 opened 2 years ago

rafael2412 commented 2 years ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-background-task@0.2.1 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-background-task/android/build.gradle b/node_modules/react-native-background-task/android/build.gradle
index 35c3988..cc5194c 100644
--- a/node_modules/react-native-background-task/android/build.gradle
+++ b/node_modules/react-native-background-task/android/build.gradle
@@ -30,6 +30,6 @@ repositories {
 }

 dependencies {
-    compile 'com.facebook.react:react-native:+'
-    compile 'com.evernote:android-job:1.1.11'
+    implementation 'com.facebook.react:react-native:+'
+    implementation 'com.evernote:android-job:1.1.11'
 }
\ No newline at end of file

This issue body was partially generated by patch-package.