Skip to content
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

Adding sdk-jvm to android gradle #34

Closed
omartaha1003 opened this issue Dec 19, 2020 · 4 comments · Fixed by #45
Closed

Adding sdk-jvm to android gradle #34

omartaha1003 opened this issue Dec 19, 2020 · 4 comments · Fixed by #45
Assignees
Labels
bug Something isn't working

Comments

@omartaha1003
Copy link

omartaha1003 commented Dec 19, 2020

I'm trying to use kuzzle in my android application using sdk-jvm in gradle file, and the app will not build after adding it, you can check the log using this Link

Steps to Reproduce

1- add the maven url in project gradle file in repositories as following:
maven {
url "http://dl.bintray.com/kuzzle/maven"
}

2- add the sdk-jvm under dependencies in module app gradle file as following:
implementation 'io.kuzzle:sdk-jvm:1.0.1'

3- Sync dependecies and the rebuild the app

@Yoann-Abbes Yoann-Abbes added the bug Something isn't working label Dec 28, 2020
@ameenoz
Copy link

ameenoz commented Feb 20, 2021

Hello @Yoann-Abbes , is this bug scheduled to be solved any time soon??

@Yoann-Abbes
Copy link
Contributor

Hi @ameenoz
We are currently resolving the problem by releasing a thin jar (without dependencies)
It will be released and documented very soon
You can visit the pull request here: #45

@Yoann-Abbes
Copy link
Contributor

Yoann-Abbes commented Mar 11, 2021

Hi @omartaha1003 @ameenoz

A jar without dependencies (a thin jar) has been released, which resolves the duplicates dependencies issue in a Android/Kotlin environment
We also documented a workaround if you still want to use the jar with the dependencies bundled (the fat jar).

You can find the new 1.2.0 version with the jars here https://bintray.com/kuzzle/maven/sdk-jvm
And the updated Getting Started here https://docs.kuzzle.io/sdk/jvm/1/getting-started/kotlin/

If you use the fat jar you can still use implementation 'io.kuzzle:sdk-jvm:1.2.0'

Otherwise, if you want to use the thin jar use implementation 'io.kuzzle:sdk-jvm:1.2.0-without-dependencies' as described on Bintray
If you use the thin jar, you will have to add others dependencies as described in the README
I close the issue

@omartaha1003
Copy link
Author

Hello @Yoann-Abbes ,
I've been told that sdk-jvm would work on android api23(Java 7), but still this sdk is using classes from java 8 which makes the app crashes. The crash happens when I call the method kuzzle.connect(), which is using the class "CompletableFuture" inside "io.kuzzle.sdk.protocol.WebSocket".
When will we be able to use it on java 7 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants