Smack icon indicating copy to clipboard operation
Smack copied to clipboard

DRAFT/WIP: Serverless Messaging v2 (XEP-174)

Open Flowdalic opened this issue 11 years ago • 8 comments

Flowdalic avatar Dec 03 '14 09:12 Flowdalic

What's required to get this completed and integrated into the main branch?

daveismith avatar Apr 23 '16 20:04 daveismith

Hello. My search for an XMPP library which supports XEP-174 brought me here. I see that this is the second PR, and that this issue is quite old in your JIRA (https://issues.igniterealtime.org/browse/SMACK-262?jql=text%20~%20%22smack-262%22). I am assuming any code for this issue is probably out of date with respect to the current Smack baseline? Is there any work in-progress for this issue, or a plan to get it done? Once I familiarize myself with Smack and development within it, I would be willing to take a look into what needs to happen to get it working. At the very least, is there a path for me to get a build of Smack containing support for XEP-174, even if it is not merged to master?

adrian-maggio avatar Jul 29 '20 02:07 adrian-maggio

Ok, I realized that I needed to clone Flowdalic's git repo (https://github.com/Flowdalic/Smack.git) in order to get the "serverless" branch. However, there is a file name conflict, having to do with case, since I am on Windows, on the master branch:

warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'smack-core/src/main/java/org/jivesoftware/smack/provider/IQProvider.java'
  'smack-core/src/main/java/org/jivesoftware/smack/provider/IqProvider.java'

Is Smack development on Windows not supported?

adrian-maggio avatar Jul 29 '20 03:07 adrian-maggio

I had to clone the repo on a linux box, checkout the serverless branch, and then bring it back to Windows. Running gradle clean build fails and complains about ANDROID_HOME not being set. Is an Android SDK being present a requirement to build Smack, even if I do not intend to target Android?

adrian-maggio avatar Jul 29 '20 03:07 adrian-maggio

I installed Android Studio, including the API 8 SDK that the Smack build requested, but I still cannot build:

* Where:
Build file 'C:\devel\working\Flowdalic\Smack\smack-android\build.gradle' line: 19

* What went wrong:
A problem occurred evaluating project ':smack-android'.
> Could not set unknown property 'bootClasspath' for task ':smack-android:compileJava' property 'options' of type org.gradle.api.tasks.compile.CompileOptions.

After moving the two android projects temporarily out of the Smack directory, I get this error while building:

* Where:
Build file 'C:\devel\working\Flowdalic\Smack\smack-java7\build.gradle' line: 5

* What went wrong:
A problem occurred evaluating project ':smack-java7'.
> Plugin with id 'osgi' not found.

Can I get some help building Smack? I am on Windows 10, with OpenJDK 11, using the Git Bash command line.

adrian-maggio avatar Jul 29 '20 04:07 adrian-maggio

@adrian-maggio

Is Smack development on Windows not supported?

It is highly recommended to use Linux for development purposes.

adiaholic avatar Jul 29 '20 07:07 adiaholic

What version of gradle are you using? You should use gradle 6.2 or so. As @adiaholic said, a linux environment is highly recommended for development :)

vanitasvitae avatar Jul 29 '20 07:07 vanitasvitae

Support for Serverless Messaging (XEP-0174) would need to use SmackReactor those days. That would require some effort.

@adrian-maggio Please don't abuse PR comments for not-directly related discussion around the PR. Use the smack forum instead.

Flowdalic avatar Jul 29 '20 08:07 Flowdalic