League-of-Legends-XMPP-Chat-Library
League-of-Legends-XMPP-Chat-Library copied to clipboard
Android support
How would you suggest getting this to work on Android?
I tried but Android can't process some Javax files (e.g. QName.class)
I'm pretty unfamiliar with android. Are some packages just not installed in android? Is it perhaps the scope tag that is needed?
eg.:
<dependency>
<groupId>com.google.android</groupId>
<artifactId>android</artifactId>
<version>2.3.3</version>
<scope>provided</scope>
</dependency>
Do you know which dependency is causing the problems?
I got it to compile! I'm just getting this error now when logging into my account:
Failed to connect to "chat.na1.lol.riotgames.com". Retrying in 20 seconds.
Gonna do some debugging to see if I can get a clearer error.
Smack has android support. Try adding the following dependency:
<dependency>
<groupId>org.igniterealtime.smack</groupId>
<artifactId>smack-android</artifactId>
<version>4.1.0-alpha3</version>
</dependency>
I added the above dependency to the pom.xml and then compiled, same error (Failed ... chat.na1.lol....),
I also tried removing the other dependencies related to Smack and received the same error.
I also added the first dependency you suggested with Android.
Will continue trying new tactics.
This document explains the necessary dependencies for an android project: https://github.com/igniterealtime/Smack/wiki/Smack-4.1-Readme-and-Upgrade-Guide#projects-that-target-android Try using these and exclude dependencies that are not listed in there but are in my project through the exclude tag.
I have no intention on adding support for it. If any of you guys wants to do this, go ahead.