-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android SDK #155
Comments
The docs description seems to be still mixing up some things between the v1 and v2 version. The Java SDK should be fine to be used with Android. |
Also this hackathon demo is outdated now and may not be able to be compiled anymore it shows that the v2 could be used with Android https://github.com/katmatt/summerhack-2019 |
Whoops, I accidentally already posted the question when still writing.. sorry about that. It might be helpful to add some integration docs though for Android defining the ProGuard / R8 rules required to run the project plus the minimum required Android version (and other helpful info?). Having a dedicated Android SDK as some point in the future like Swift / iOS has would be even better as that could take care of stuff like storing the access token(s) on device for a persistent sessions or handing of anonymous sessions which now seems to be something that has to be configured manually. |
Any update on proguard rules for android? Has anyone actually managed to use the sdk in android? I am getting errors:
|
No we didn't tested it yet and it's not planned at the moment. The errors reported coming from the AsyncHttpClient. You may want to use commercetools-okhttpl-client4 instead as OkHttp already publishes proguard rules. The other errors are coming from java money and moneta. You may have to try to keep the OSGI, javax and org.javamoney classes. Another option would be for testing purposes to disable the minify process as it had been done in the hackathon app: https://github.com/katmatt/summerhack-2019/blob/master/app/build.gradle#L23 |
The website currently states the Java SDK is currently not available due to the Java 8 dependency.
This now no longer seems to be true due to the Java 8 desugaring support
The current SDK seems to work correctly with Android though (using SDK 26+)
References:
https://developer.android.com/studio/write/java8-support
https://docs.commercetools.com/sdk/jvm-sdk#about-the-java-sdk
It might be helpful to add some integration docs though for Android defining the ProGuard / R8 rules required to run the project plus the minimum required Android version (and other helpful info?).
Having a dedicated Android SDK as some point in the future like Swift / iOS has would be even better as that could take care of stuff like storing the access token(s) on device for a persistent sessions or handing of anonymous sessions which now seems to be something that has to be configured manually.
The text was updated successfully, but these errors were encountered: