League-of-Legends-XMPP-Chat-Library icon indicating copy to clipboard operation
League-of-Legends-XMPP-Chat-Library copied to clipboard

Android support

Open SeaRoth opened this issue 10 years ago • 6 comments

How would you suggest getting this to work on Android?

I tried but Android can't process some Javax files (e.g. QName.class)

SeaRoth avatar Oct 08 '14 04:10 SeaRoth

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?

TheHolyWaffle avatar Oct 08 '14 12:10 TheHolyWaffle

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.

SeaRoth avatar Oct 12 '14 00:10 SeaRoth

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>

TheHolyWaffle avatar Oct 12 '14 17:10 TheHolyWaffle

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.

SeaRoth avatar Oct 12 '14 18:10 SeaRoth

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.

TheHolyWaffle avatar Oct 12 '14 21:10 TheHolyWaffle

I have no intention on adding support for it. If any of you guys wants to do this, go ahead.

TheHolyWaffle avatar Nov 08 '14 16:11 TheHolyWaffle