guardianproject / ChatSecureAndroid

This project has ended, but ChatSecure iOS continues. For Android, please use Conversations or Zom instead
https://chatsecure.org/blog/chatsecure-conversations-zom/
Apache License 2.0
1.07k stars 521 forks source link

unable to compile with current asmack master branch #81

Closed luzi82 closed 12 years ago

luzi82 commented 13 years ago

I have built asmack-jse.jar from latest guardianproject asmack master branch (06a2c8363e), but the jar does not work with current Gibberbot. Here is the compile error:

The method setCustomSSLContext(SSLContext) is undefined for the type ConnectionConfiguration    XmppConnection.java /Gibberbot/src/info/guardianproject/otr/app/im/plugin/xmpp  line 680    Java Problem

it seems that the function "ConnectionConfiguration.setCustomSSLContext" is missing.

n8fr8 commented 13 years ago

Try building asmack android. There are build targets

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

luzi82 reply@reply.github.com wrote:

I have built asmack-jse.jar from latest guardianproject asmack master branch (06a2c8363e), but the jar does not work with current Gibberbot. Here is the compile error:

The method setCustomSSLContext(SSLContext) is undefined for the type ConnectionConfiguration XmppConnection.java /Gibberbot/src/info/guardianproject/otr/app/im/plugin/xmpp line 680 Java Problem

it seems that the function "ConnectionConfiguration.setCustomSSLContext" is missing.

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81

luzi82 commented 13 years ago

Thanks to your help. I have compiled asmack-android-4.jar and put to Gibberbot, but still does not work. Moveover, there is no "setCustomSSLContext" in any file in asmack.

n8fr8 commented 13 years ago

Which version of Android sdk are you compiling against?

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

luzi82 reply@reply.github.com wrote:

Thanks to your help. I have compiled asmack-android-4.jar and put to Gibberbot, but still does not help. Moveover, there is no "setCustomSSLContext" in any file in asmack.

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81#issuecomment-2506200

luzi82 commented 13 years ago

I have updated to the latest. And use sdk 4, just as the target "compile-a4".

Would you please check if the github contains the latest src? Thanks. On Oct 25, 2011 1:11 AM, "n8fr8" < reply@reply.github.com> wrote:

Which version of Android sdk are you compiling against?

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

luzi82 reply@reply.github.com wrote:

Thanks to your help. I have compiled asmack-android-4.jar and put to Gibberbot, but still does not help. Moveover, there is no "setCustomSSLContext" in any file in asmack.

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81#issuecomment-2506200

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81#issuecomment-2506274

luzi82 commented 13 years ago

I mean the latest src of asmack.

n8fr8 commented 13 years ago

I can check tonight

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

luzi82 reply@reply.github.com wrote:

I have updated to the latest. And use sdk 4, just as the target "compile-a4".

Would you please check if the github contains the latest src? Thanks. On Oct 25, 2011 1:11 AM, "n8fr8" < reply@reply.github.com> wrote:

Which version of Android sdk are you compiling against?

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

luzi82 reply@reply.github.com wrote:

Thanks to your help. I have compiled asmack-android-4.jar and put to Gibberbot, but still does not help. Moveover, there is no "setCustomSSLContext" in any file in asmack.

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81#issuecomment-2506200

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81#issuecomment-2506274

Reply to this email directly or view it on GitHub: https://github.com/guardianproject/Gibberbot/issues/81#issuecomment-2506362

luzi82 commented 13 years ago

Thank you. I will wait for your reply. I need to recompile asmack to check the issue #75 or others.

luzi82 commented 13 years ago

How I compile asmack:

  1. Fork the guardianproject/asmack project to luzi82/asmack. The master (06a2c8363e) are the same.
  2. Obtain asmack from git@github.com:luzi82/asmack.git
  3. Create local.properties from "local.properties.example". Variables are configurated.
  4. Modify "patch/buddycloud/20-PubSubNode-getAllSubscriptions.patch" a bit, otherwise it will be compile error.
    • This step may not be necessary because the buddycloud builds will not be used, and the android builds will be still created.
  5. Run "build.bash". The following files are created:
    • build/asmack-android-4.jar
    • build/asmack-android-6.jar
    • build/asmack-android-7.jar
    • build/asmack-jse.jar
  6. Copy asmack-android-4.jar to Gibberbot.
  7. Compile Gibberbot project with eclipse. Error occur.
n8fr8 commented 13 years ago

After more digging, it looks like the setCustomSSLContext feature comes from here: https://github.com/rtreffer/smack/commit/19438d9dce9ac1ae466973487a65732c575b63f6

which means the version of Smack we are using is actually: https://github.com/rtreffer/smack

though in our version of build.bash that line is commented out: fetchall() {

gitfetch "git://github.com/rtreffer/smack.git" "smack"

fetch "http://svn.igniterealtime.org/svn/repos/smack/trunk" "smack" fetch "http://svn.apache.org/repos/asf/qpid/trunk/qpid/java/management/common/src/main/" "qpid" fetch "http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/auth/src/main/java/common/" "harmony" fetch "https://dnsjava.svn.sourceforge.net/svnroot/dnsjava/trunk" "dnsjava" fetch "https://kenai.com/svn/jbosh~main/trunk/jbosh/src/main/java" "jbosh" }

Hmm.

luzi82 commented 13 years ago

Thank you very much. I will try that later. (The change even does not show in http://www.igniterealtime.org/builds/smack/docs/latest/javadoc/org/jivesoftware/smack/ConnectionConfiguration.html , well. )

luzi82 commented 13 years ago

Please review this pull: https://github.com/guardianproject/asmack/pull/2

n8fr8 commented 12 years ago

The latest asmack is building just fine: https://github.com/guardianproject/asmack

NazarAbbas commented 9 years ago

The method setCustomSSLContext(SSLContext) is undefined for the type ConnectionConfiguration

n8fr8 commented 9 years ago

@NazarAbbas are you building against the asmack jar we include in ChatSecure, or did you try to build asmack yourself?

NazarAbbas commented 9 years ago

I am building against the asmack jar you include in ChatSecure.