- 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 obtainFileLink
instances 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
@Nullable
to annotate possibly-null parameters. We use@ParametersAreNonnullByDefault
annotation 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
Config
constructors that requirePolicy
object. - Deprecation:
Config
constructors requiringreturnUrl
field are now deprecated. If you are relying onCloudServiceUtil
class, use newbuildBaseJson
method that acceptsreturnUrl
as a param. - Deprecation:
FileLink
constructor is deprecated and scheduled to be removed in future releases. Rely onClient
class to acquireFileLink
instances. - 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:
Progress
class to return stats on an in-progress upload/download. - Change:
FilestackClient.uploadAsync()
now returns aFlowable
that emits a stream ofProgress
objects. Monitor and act on an upload's ongoing progress by subscribing to theFlowable
with aConsumer
orFlowableSubscriber
.
- 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
StoreOptions
andUploadOptions
with generalizedStorageOptions
. - Fix: Don't remove all spaces from
Transform
task string. - New:
AvTransform
andAvTransformOptions
for audio/video conversions. - New: Add
FileLink.avTransform()
to get anAvTransform
for 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.ResponseBody
and the latter returns agson.JsonObject
for convenience. - Change:
FileLink.getContent()
returns anokhttp3.ResponseBody
instead of abyte[]
.
- New: Add
- FS-1087 Add file type conversions
- New:
FileTypeTask
forImageTransform
to convert between different image file types. - New:
NoMetadataOption
forImageTransform
to strip metadata from an image.
- New:
- FS-1330 Cleanup units tests
- FS-1099 Add Coveralls config
Initial release.