- Added support JDK 21
- Updated build.gradle dependencies as per the latest Java changes.
- Added mavencentral and replaced with JCenter(Deprecated) in build.gradle.
- Updated existing JUnit test cases to be compatible with the latest JDK.
- Updated existing kotlin test cases to be compatible with the latest changes.
- Added new plugins and dependencies in build.gradle file.
- New: Use
Client#fileLink(String)to obtainFileLinkinstances from handle. - Change: The SDK no longer depends on Retrofit library. Proguard rules have been updated to include this change.
- Fix: Support for TLS 1.2 on old Android devices has been enabled. This should not interfere with newer devices. If you encounter any kind of network issues, please report it.
- New: Filestack Java SDK now uses
@Nullableto annotate possibly-null parameters. We use@ParametersAreNonnullByDefaultannotation to treat all other parameters as non-null. - Change: The SDK no longer depends on Guava library. Proguard rules have been updated to include this change.
- Fix: Improved Proguard rules for Policy class.
- Fix: Removed Kotlin dependency from main jar archive
- New: Proguard rules are now included inside of META-INF dir for R8 users.
- New: More convenient
Configconstructors that requirePolicyobject. - Deprecation:
Configconstructors requiringreturnUrlfield are now deprecated. If you are relying onCloudServiceUtilclass, use newbuildBaseJsonmethod that acceptsreturnUrlas a param. - Deprecation:
FileLinkconstructor is deprecated and scheduled to be removed in future releases. Rely onClientclass to acquireFileLinkinstances. - Change: prevent access to some internal classes
- fix: improve progress events and upload rate calculation
- fix: storage options ignored for cloud API, malformed request body
- fix: s3 signature match error, now sending all headers from uploads api
- feat: client supports uploading InputStream objects
- fix: uploads will use a default file name and mime type if none is provided
- No major changes
- Change: CloudItem implements Serializable
- FS-2024 and FS-2128 Refactoring for Android
- Change: Major changes to constructors for all public classes.
- Change: All objects now use static networking objects, can no longer customize.
- Change: Security is no longer a class, just policy and signature strings.
- Change: Config object stores common values for Client, FileLink and transform classes.
- FS-1808, FS-1809, and FS-1811 Add cloud integrations
- New: Cloud integrations. Use the client to view and store items from cloud providers.
- Change: Error handling. Dropped more specific classes for basic HttpException and IOException.
- FS-1674 Add upload progress
- New:
Progressclass to return stats on an in-progress upload/download. - Change:
FilestackClient.uploadAsync()now returns aFlowablethat emits a stream ofProgressobjects. Monitor and act on an upload's ongoing progress by subscribing to theFlowablewith aConsumerorFlowableSubscriber.
- New:
- FS-1554 Add integration tests
- Change: Must pass content type in to
FilestackClient.upload(), no longer guesses based on extension or file content.
- Change: Must pass content type in to
- FS-1086 Add audio/video conversions
- Change: Replace
StoreOptionsandUploadOptionswith generalizedStorageOptions. - Fix: Don't remove all spaces from
Transformtask string. - New:
AvTransformandAvTransformOptionsfor audio/video conversions. - New: Add
FileLink.avTransform()to get anAvTransformfor the file.
- Change: Replace
- FS-1137 Add image tagging and SFW check
- New: Add
FileLink.imageTags()to return aMap<String, Integer>of possible content tags. - New: Add
FileLink.imageSfw()to check if an image file is "safe for work". - New: Add
Transform.getContent()andTransform.getContentJson()to get transform content without having to save the file. The former returns a rawokhttp3.ResponseBodyand the latter returns agson.JsonObjectfor convenience. - Change:
FileLink.getContent()returns anokhttp3.ResponseBodyinstead of abyte[].
- New: Add
- FS-1087 Add file type conversions
- New:
FileTypeTaskforImageTransformto convert between different image file types. - New:
NoMetadataOptionforImageTransformto strip metadata from an image.
- New:
- FS-1330 Cleanup units tests
- FS-1099 Add Coveralls config
Initial release.