What is the difference between Smack and aSmack?

后端 未结 4 1578
孤城傲影
孤城傲影 2021-02-04 09:15

I am not able to use Smack on Android whereas aSmack works perfectly? When compared the source code it looks somewhat similar, where does the difference comes from?

4条回答
  •  醉酒成梦
    2021-02-04 10:16

    Smack < 4.1 does not work on Android, mostly because of APIs missing on Android (e.g. most of the javax APIs). That is the reason the aSmack build environment was born. It is a way to modify Smack so that it can be used on Android.

    Besides many minor changes the biggest changes are

    1. Disabling XMPP SASL auth methods that are not supported on Android
    2. Using apache harmony for SASL instead of the javax API

    Make sure to read the README and and init the relevant code before doing any XMPP related actions.

    More information can be found @ https://github.com/Flowdalic/asmack/wiki/Modifications

提交回复
热议问题