Closed RichMBateman closed 2 years ago
Hi RichMBateman There are multiple answers here:
var transfromation = Transformation<Transformation<*>>().radius(50).crop("scale")
Transformation transformation = new Transformation().radius(50).crop("scale");
I am closing the issue, if you need further assistant please re-open it
Bug report for Cloudinary Android SDK
I'm using the Cloudinary Android SDK in a Kotlin Android application. When I try to create a Transformation() object, I cannot because of compile-time error "Not enough information to infer type variable T". I see that Transformation is a parameterized type, but I cannot figure out how to instantiate one in Kotlin.
@SuppressWarnings({"rawtypes", "unchecked"}) public class Transformation implements Serializable {
Issue Type (Can be multiple)
[ ] Build - Can’t install or import the SDK [ ] Performance - Performance issues [x] Behaviour - Functions aren’t working as expected (Such as generate URL) [ ] Documentation - Inconsistency between the docs and behaviour [ ] Other (Specify)
Build System
[ ] Maven [x] Gradle [ ] Other (Specify)
Is the issue reproducible only on a specific device?
[x] No [ ] Yes (specify model + Android version + vendor build number, if applicable)
Versions and Libraries (fill in the version numbers)
Cloudinary Android SDK version 1.30.0 Android version 30 (Please provide exact sdk level) Kotlin version (if applicable) - 1.6.10 JVM (of the dev environment) - 0.0.0 Maven - 0.0.0 / N/A Gradle - 0.0.0 / N/A