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.1k stars 110 forks source link

Proguard warning #29

Open dnes100 opened 6 years ago

dnes100 commented 6 years ago

I couldn't build with release mode (./gradlew assembleRelease) due to proguard warning:

Warning: com.evernote.android.job.v24.JobProxy24: can't find referenced method 'android.app.job.JobInfo ...
...
Warning: there were 2 unresolved references to library class members.
         You probably need to update the library versions.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.

Solved it by adding: -dontwarn com.evernote.android.job.** to proguard rules. Actual fix might be upgrading dependency to latest evernote android job library?