Releases: gotev/android-upload-service
android-upload-service-3.2.4
Fixed OkHttp version to 3.8.0 and updated build tools to 25.0.2
android-upload-service-3.2.3
See milestone 3.2.3 for details
android-upload-service-3.2.2
See milestone 3.2.2 for details
android-upload-service-3.2.1
See 3.2.1 milestone for changelog.
android-upload-service-3.2
See milestone 3.2 issues for details
android-upload-service-3.1
See 3.1 milestone issues for more details and commits after 3.0.3 release.
This release is an important upgrade for the library:
- Full support of OkHttp interceptors when using OkHttp stack
- Added
context
toUploadStatusDelegate
methods - Android Nougat (API 25) is supported
- Improved request cancellation
- Content URI (
content://
) supported (thanks to @stephentuso). You can set the content uri string instead of the absolute path to the file to upload - Fixed byte count in FTP upload
- Bugfixes
android-upload-service-3.0.3
See 3.0.3 milestone for changes.
android-upload-service-3.0.2
See 3.0.2 milestone for changes
android-upload-service-3.0.1
See 3.0.1 milestone for changes
android-upload-service-3.0
Improvements:
See milestone issues.
Migrating from 2.x to 3.0:
The public interface of UploadServiceBroadcastReceiver
has been changed, to make it easier to use. In particular:
onProgress
method has been changed from this:
public void onProgress(final String uploadId, final int progress)
and
public void onProgress(final String uploadId, final long uploadedBytes, final long totalBytes)
to this:
public void onProgress(final UploadInfo uploadInfo)
onError
method has been changed from this:
public void onError(final String uploadId, final Exception exception)
to this:
public void onError(final UploadInfo uploadInfo, final Exception exception)
onCompleted
method has been changed from this:
public void onCompleted(final String uploadId, final int serverResponseCode,
final byte[] serverResponseBody)
to this:
public void onCompleted(final UploadInfo uploadInfo, final ServerResponse serverResponse)
onCancelled
method has been changed from this:
public void onCancelled(final String uploadId)
to this:
public void onCancelled(final UploadInfo uploadInfo)
Refer to UploadInfo JavaDoc and ServerResponse JavaDoc to discover how to get the same information you had before.