Skip to content

Releases: gotev/android-upload-service

4.2.0

25 Feb 18:13
Compare
Choose a tag to compare

Added onDismissed in UploadNotificationStatusConfig #489 (thank you @mvasquezb 🎉)

It's now possible to perform a custom PendingIntent when the user swipes out successful, error or cancelled notification or when a clear all is performed.

4.1.0

09 Feb 11:08
Compare
Choose a tag to compare

Implemented passing explicit LifecycleOwner in RequestObserver. Previously, the LifecycleOwner was got from the passed context.

4.0.0

15 Jan 06:35
edd778f
Compare
Choose a tag to compare

Complete Kotlin rewrite of the whole library, with many breaking changes from 3.x.

Full details: #450

android-upload-service-3.5.2

21 Mar 19:55
Compare
Choose a tag to compare

Changelog:

android-upload-service-3.5.0

20 Jan 17:01
Compare
Choose a tag to compare

Changelog:

  • Fixed continuous notification sound while uploading on API >= 26
  • Added support for AndroidX
  • Added support for Android 9.0 Pie
  • Min SDK is now 18 and target SDK is 28
  • Updated OkHttp to 3.12.1
  • Updated projects for Android Studio 3.3 and Gradle 4.10.1
  • Eased maintenance by aggregating all the configurations in manifest.gradle

android-upload-service-3.4.2

22 Feb 05:41
Compare
Choose a tag to compare

android-upload-service-3.4.1

19 Nov 17:50
Compare
Choose a tag to compare

Now using latest OkHttp 3.9.1. Refer to 3.4.1 milestone for details about bugfixes.

android-upload-service-3.4

16 Aug 21:24
Compare
Choose a tag to compare
  • Added support for Android O and notification channels. Min SDK is now 14. #299
  • Important security fixes to prevent man in the middle attacks from other applications! See #305 and #306. Thanks to Sergey Toshin for pointing them out

Breaking changes

Support library

To be able to support Android O, Upload Service uses the latest support libraries 26.0.0 so if you are using support libraries < 26 in your app, make sure to remove any com.android.support:support-v4:25.+ or lower in your gradle file, otherwise you will get a NoSuchMethodException at runtime.

Namespace

Setting NAMESPACE (as described in Setup) is now mandatory, to prevent misconfiguration which can lead to sensible data leakage fixed in #305 and #306. If you have not set the NAMESPACE, you will get this exception at runtime:

java.lang.RuntimeException: Unable to start service net.gotev.uploadservice.UploadService@32340b1 with Intent { act=net.gotev.uploadservice.action.upload cmp=net.gotev.uploadservicedemo/net.gotev.uploadservice.UploadService (has extras) }: java.lang.IllegalArgumentException: Hey dude, please set the namespace for your app by following the setup instructions: https://github.com/gotev/android-upload-service/wiki/Setup
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3556)
       at android.app.ActivityThread.-wrap20(Unknown Source:0)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1698)
       at android.os.Handler.dispatchMessage(Handler.java:105)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6541)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
    Caused by: java.lang.IllegalArgumentException: Hey dude, please set the namespace for your app by following the setup instructions: https://github.com/gotev/android-upload-service/wiki/Setup
       at net.gotev.uploadservice.UploadService.onStartCommand(UploadService.java:248)
       at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:3539)
       at android.app.ActivityThread.-wrap20(Unknown Source:0at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1698at android.os.Handler.dispatchMessage(Handler.java:105at android.os.Looper.loop(Looper.java:164at android.app.ActivityThread.main(ActivityThread.java:6541at java.lang.reflect.Method.invoke(Native Methodat com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767

android-upload-service-3.3.1

02 Aug 13:12
Compare
Choose a tag to compare

Minor release which solves #303

android-upload-service-3.3

30 Jul 09:56
Compare
Choose a tag to compare

This release:

  • enhances stability
  • reduces battery usage by auto shutting down the service after an idle time
  • reduces memory leaks
  • improves public API for delegates and broadcast receivers
  • introduces notitication action support
  • makes the notification configuration more complete and finely tuneable

Check milestone 3.3 issues for more details

If you are migrating from 3.2.x, these are the breaking changes:

  • UploadNotificationConfig has been completely redesigned, to allow more customization. See changes
  • delegates and broadcast receiver's onError method has an additional parameter serverResponse. See changes
  • The onCompleted callback gets called only if the server response code is >= 200 and < 400, so you have to handle both networking and server response errors in the onError method now. Previous to 3.3, you had to handle networking errors in onError and server response errors in onCompleted