Please include a working example of Kitteh with Android Studio for Android apps! Thanks!
roboirc opened this issue ยท 16 comments
Hi! There is Android documentation: http://kicl.kitteh.org/en/latest/android/
If this doesn't help, feel free to comment on the issue with where / what failed.
(22:54:07) <@mbaxter> Can't log into GitHub for another day or two. Can someone comment on that saying the kicl version shown is outdated and that I should update it to latest?
(22:54:36) <@mbaxter> I'll add it to the before-release checker, as I forgot it had a version
Hi Zarthus
Thanks for your reply.
"Ensure minSdkVersion >= 24" <- is this mandatory?
I followed all the steps but my bot doesn't connect to IRC and show up there. Here is my code:
https://pastebin.com/DDtHHxSr
I followed everything from: http://kicl.kitteh.org/en/latest/android/
Still not working.
Please help! I am using Android Studio on Linux.
"Ensure minSdkVersion >= 24" <- is this mandatory?
yes.
Please post your stacktrace.
Hi here is my stack trace as taken from Verbose:
Let me know if you want any other stack trace details. If you want I can zip up the project and send it to you also to check out. Simple android studio project, nothing advanced.
Can you try switching your code to use port 6697? The error you get is netty telling you it's expecting a TLS handshake, but you are using a plain text port.
@bendem has hit the nail on the head.
For the sake of completeness:
TLS handshake
$ openssl s_client -connect irc.rizon.net:6697 CONNECTED(00000003) depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3 verify return:1 depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3 verify return:1 depth=0 CN = irc.rizon.net verify return:1 --- Certificate chain 0 s:CN = irc.rizon.net i:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3 1 s:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3 i:O = Digital Signature Trust Co., CN = DST Root CA X3 --- Server certificate -----BEGIN CERTIFICATE----- MIIGcDCCBVigAwIBAgISA+dyEb2gHczRqmp1G6uFG/aLMA0GCSqGSIb3DQEBCwUA MEoxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MSMwIQYDVQQD ExpMZXQncyBFbmNyeXB0IEF1dGhvcml0eSBYMzAeFw0xOTA2MDEyMDA0NDdaFw0x OTA4Mz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LmludC14 My5sZXRzZW5jcnlwdC5vcmcvMDUGA1UdEQQuMCyCDWlyYy5yaXpvbi5uZXSCG2ly Yy5zeGNpLm5ldC5jZXJ0LnJpem9uLm5ldDBMBgNVHSAERTBDMAgGBmeBDAECATA3 BgsrBgEEAYLfEwEBATAoMCYGCCsGAQUFBwIBFhpodHRwOi8vY3BzLmxldHNlbmNy eXB0Lm9yZzCCAQUGCisGAQQB1nkCBAIEgfYEgfMA8QB3AOJpS64m6OlACeiGG7Y7 g9Q+5/50iPukjyiTAZ3d8dv+AAABaxTb9WYAAAQDAEgwRgIhANEkwgvSIljFHG2f mNKJFIVXr6EvGjQFgwu6mNg54iyQAiEAmm78GY3XX0RFwWNaduDvq1uBcrsog2LA m1zYJHw9wuoAdgBj8tvN6DvMLM8LcoQnV2szpI1hd4+9daY4scdoVEvYjQAAAWsU 2/dNAAAEAwBHMEUCIQCSrw3mMhPkSqfXAQ9ozAYDTRshzsy8Tljs1RaF9JGxxwIg fUfpOBE6+QCthNCd6fgnBLn46G7z1nHeVIc6ffZOFdUwDQYJKoZIhvcNAQELBQAD ggEBAG7rRuY0Qsa2y/bzhfwaWD9VO6jidSADWVrZjF1ftOg0bRMvIlq77u8VS5oF TDXnIsPGCtDrimiVg5ojxUU8pqGng5RcIl4LuCp/VMWeqqSqmUVS4aJJ99htAnMr cNBFEEF7R2TkQDC8RzuRBaw234P8biAByhHk1EwNt9k+Gu3QThiDc+r/WO+szltz OZthCJ/xNUHQkFS9wK8IXeTrS9wVv9pchfFWMu5HHrTSCVP1ciMNkUbqv6cGviL2 P/+t8LvVJXVdHb4zfw4Rd4/N9JDiuzbmu6aRupWW0Vu5F4ZHJY4ewuBvBgPCChu6 YKSwu89RL6OFYAMpHtn9vBaHRlg= -----END CERTIFICATE----- subject=CN = irc.rizon.netissuer=C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
No client certificate CA names sent
Client Certificate Types: RSA sign, DSA sign, ECDSA sign
Requested Signature Algorithms: RSA+SHA512:DSA+SHA512:ECDSA+SHA512:RSA+SHA384:DSA+SHA384:ECDSA+SHA384:RSA+SHA256:DSA+SHA256:ECDSA+SHA256:RSA+SHA224:DSA+SHA224:ECDSA+SHA224:RSA+SHA1:DSA+SHA1:ECDSA+SHA1
Shared Requested Signature Algorithms: RSA+SHA512:DSA+SHA512:ECDSA+SHA512:RSA+SHA384:DSA+SHA384:ECDSA+SHA384:RSA+SHA256:DSA+SHA256:ECDSA+SHA256:RSA+SHA224:DSA+SHA224:ECDSA+SHA224:RSA+SHA1:DSA+SHA1:ECDSA+SHA1
Peer signing digest: SHA512
Peer signature type: RSA
Server Temp Key: ECDH, P-521, 521 bitsSSL handshake has read 3674 bytes and written 521 bytes
Verification: OKNew, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Server public key is 4096 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
Protocol : TLSv1.2
Cipher : ECDHE-RSA-AES256-GCM-SHA384
Session-ID:
Session-ID-ctx:
Master-Key: A8E33D2C70C0E1354FD73F9E5F7824A1A51AFD33FE491CE5E6278E65C9BCDD9BD690343138C4BBA68FE29B23481362E9
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1562441321
Timeout : 7200 (sec)
Verify return code: 0 (ok)
Extended master secret: no:irc.sxci.net NOTICE * :*** Looking up your hostname...
:irc.sxci.net NOTICE * :*** Checking Ident
:irc.sxci.net NOTICE * :*** Couldn't look up your hostname
:irc.sxci.net NOTICE * :*** No Ident response
"Ensure minSdkVersion >= 24" <- is this mandatory?
yes.
@Zarthus is correct (:open_mouth:) - to expand on this a bit more, 24 is the first version to support a bunch of Java 8 features we use.
What about 6667?
You need .secure(false)
to do this
Of course, we'd all rather you didn't
Gotcha thanks :)
But does that mean Kitteh doesn't support non ssl servers? What about 6667?
It means Kitteh uses secure defaults. If you don't specify the port at all, Kitteh will default to a secure connection on port 6697. That means in most cases, not specifying anything is the right call. :)
Ok.
Please leave this thread open for future in case I have more questions thanks :)
FWIW @roboirc you can chat to us if you have a few questions and would value discussion: https://webchat.esper.net/?channels=kitteh.org&nick=roboirc