Florian Schmaus
f2e1d7ddd5
Add XmlEnvironment conscious ParserUtils.getXmlLang()
...
and unify parsing of common stanza attributes where this new method is
used.
2019-09-12 15:15:57 +02:00
Florian Schmaus
86c28e9d13
Use XmlEnvironment.EMPTY instead of null in PacketParserUtils
2019-09-12 15:15:57 +02:00
Florian Schmaus
9b186f2541
Add support for XEP-0328: JID Prep
...
Fixes SMACK-878.
2019-09-08 18:29:46 +02:00
Florian Schmaus
09e7368313
Delete unused IQ(String) constructor
2019-09-08 18:17:35 +02:00
Florian Schmaus
a6a1142255
Improve OX's PubkeyElement
...
there is no reason why we want to store the bytes of the base64
encoded string. Simply store the string itself.
Also add a convenience method to get the decoded bytes of the PubKey.
2019-09-07 23:27:36 +02:00
Florian Schmaus
34f1c2b79e
errorprone: Enable MethodCanBeStatic
2019-09-07 23:01:39 +02:00
Florian Schmaus
870d1a7238
build.gradle: Bump gradle-errorprone-plugin to 0.8.1
2019-09-07 23:00:16 +02:00
Florian Schmaus
65576cf3c2
Rework XML Element hierarchy and XmlStringBuilder
...
- Reduce the amount of types that are subtypes of NamedElement. See
javadoc of NamedElement for rationale.
- Work more with XmlEnvironment in XmlStringBuilder.
- Some minor changes to XmlStringBuilder API.
2019-09-07 18:17:08 +02:00
Florian Schmaus
e9bcdf3e6d
QueryArchiveTest: Call assertsEquals with the correct order of arguments
...
first expected, then actual.
2019-09-07 17:05:37 +02:00
Florian Schmaus
e8819d31dd
PagingTest: Call assertsEquals with the correct order of arguments
...
first expected, then actual.
2019-09-07 10:11:32 +02:00
Florian Schmaus
dd4df0a5ef
Improve how XmlStringBuilder handles enclosing XML environments
...
to avoid emitting unnecessary attributes like xmlns.
Also add a test for MediaElement that checks that <uri/> does not
carry a xmlns attribute.
2019-09-04 10:22:56 +02:00
Florian Schmaus
935465a11b
Remove duplicate code in XmlStringBuilder
2019-09-04 10:22:55 +02:00
Florian Schmaus
85ef149c83
Make XmlStringBuilder.prelude() protected
...
as the user should never be required to call it.
2019-09-04 10:22:55 +02:00
Florian Schmaus
a36e74832e
Merge pull request #344 from vanitasvitae/fixStanzaIDs
...
XEP-0359: Fix filtering of messages applicable to SIDs.
2019-09-02 13:18:27 +02:00
Florian Schmaus
ff8d1b8299
travis: Add javadocAll to 'script' gradle targets
...
to ensure that javadocAll works correctly. A nice side-effect, this
also ensures that the package-info.java symbolic links are still
correct and haven't been replaced by some IDE or editor with the
content of the link target.
2019-09-01 23:13:20 +02:00
Florian Schmaus
1a7e2c1510
javadocAll: Set source to sourceCompatibility to work around bug
...
in JDK 11. See https://bugs.openjdk.java.net/browse/JDK-8217177
2019-09-01 23:13:20 +02:00
Florian Schmaus
75625283ef
Make "duplicate" package-info.java files symbolic links
...
This is needed for javadocAll since otherwhise there will be
smack-core/src/main/java/org/jivesoftware/smack/package-info.java:21:
warning: a package-info.java file has already been seen for
package org.jivesoftware.smack
warnings.
2019-09-01 23:13:20 +02:00
Florian Schmaus
ac77c969ac
gradle: Use project(':foo') intead of project(path: ':foo') when possible
2019-09-01 23:13:20 +02:00
3d0e5716e7
Add documentation
2019-08-31 19:36:17 +02:00
4d298e39e3
XEP-0359: Fix appending origin-ids
2019-08-31 19:36:10 +02:00
Florian Schmaus
5b23b9a6ae
Merge pull request #342 from fenek/fix-http-file-upload-header
...
Remove trailing semicolon in the header used in HttpFileUploadManager
2019-08-30 19:46:15 +02:00
Florian Schmaus
1a3067c89b
Enable werror for javadoc and fix javadoc issues
2019-08-30 12:08:30 +02:00
Florian Schmaus
4249c1a845
Improve PepManager.publish()
...
by using PubSubManager.tryToPublishAndPossibleAutoCreate().
This also swaps the parameters of the method.
Thanks to Guus der Kinderen for suggesting this.
2019-08-28 22:59:30 +02:00
Piotr Nosek
563dad08e8
Remove trailing semicolon in the header used in HttpFileUploadManager
2019-08-28 17:53:04 +02:00
Florian Schmaus
851bd3c5dd
Add IllegalArgumentException to parsing exceptions
...
As it is thrown by many Element constructors.
2019-08-27 09:01:12 +02:00
Florian Schmaus
944dd71976
Merge pull request #341 from vanitasvitae/prekeyid
...
OMEMO: Allow prekey ID 0
2019-08-24 13:12:21 +02:00
a160358d5d
OMEMO: Allow prekey ID 0
2019-08-24 12:22:38 +02:00
Florian Schmaus
8f2eefaeb0
Fix whitespace errors in AbstractXMPPConnection
2019-08-22 15:28:54 +02:00
Florian Schmaus
9f0420be4f
Merge pull request #339 from bjalon/patch-5
...
Update muc.md
2019-08-22 15:16:58 +02:00
Florian Schmaus
afcc0935ef
Merge pull request #336 from bjalon/patch-4
...
Update gettingstarted.md
2019-08-22 15:16:48 +02:00
Florian Schmaus
9dc24c2b11
Merge pull request #335 from bjalon/patch-3
...
Update processing.md
2019-08-22 15:16:37 +02:00
Florian Schmaus
d71ea55edc
Merge pull request #334 from bjalon/patch-2
...
Update providers.md
2019-08-22 15:16:17 +02:00
Florian Schmaus
bf0c69c93e
Merge pull request #333 from adiaholic/docFix
...
DocFix in `NodeInformationProvider`
2019-08-22 15:16:00 +02:00
Florian Schmaus
c6b75d8bcc
Merge pull request #308 from adiaholic/SMACK-718
...
Prevent extremely long reply timeouts from being set.
2019-08-22 14:54:15 +02:00
Florian Schmaus
f863bd222c
Merge branch '4.3'
2019-08-22 11:52:41 +02:00
Florian Schmaus
d40b16b5a7
Fix log message format in Roster: s/{}/{0}/
...
The MessageFormat used by the JUL Logger requires integers between the
curly brackets (unlike SLF4J).
2019-08-22 10:55:33 +02:00
Florian Schmaus
01e0ae230b
Deprecate setHostAddressByNameOrIp() and move logic into setHost()
...
in ConnectionConfiguration.Builder.
2019-08-22 10:55:33 +02:00
Florian Schmaus
9923268391
Remove LOCK in OmemoManager and use Manager instance instead
2019-08-06 12:48:31 +02:00
Florian Schmaus
d7b7abc7eb
Delete XML whitespace before feeding the Base64 decoder
2019-08-06 12:48:31 +02:00
Florian Schmaus
1bc8a22b28
Add StringUtils.deleteXmlWhitespace(String)
2019-08-05 22:20:21 +02:00
Benjamin JALON
1893fa7474
Update muc.md
2019-08-05 12:57:48 +02:00
3a0356488d
Add OmemoClient repl class
2019-08-05 11:11:38 +02:00
e6ac568f32
Change license of smack-repl to GPLv3
2019-08-05 09:33:16 +02:00
Florian Schmaus
1bce378e6d
smack-omemo*: Do not swallow IOException deep within the library
...
Those exception are caused by I/O operations in the OmemoStore, which
is now declaring that it throws those (since it is not uncommon for
I/O operations to cause IOExceptions). After all, this is nicely
demonstrated as this change is caused by switching with this commit to
the Android API 19 compatible methods in FileBasedOmemoStore, which
throw.
The library can not decide what to do in case of those exceptions,
hence it is sensible to expose them to the user.
2019-08-05 09:31:48 +02:00
Florian Schmaus
699905a1de
Use HttpURLConnection.setFixedLengthStreamingMode(long)
...
now that we are on Android 19.
2019-08-04 23:04:00 +02:00
Florian Schmaus
ca7529c192
Use Integer.compare(int, int) now that we are on Android 19
2019-08-04 23:03:42 +02:00
adiaholic
144e99c020
DocFix in NodeInformationProvider
2019-08-04 19:39:55 +05:30
Benjamin JALON
f7a699af8a
Update gettingstarted.md
2019-08-04 14:35:04 +02:00
Florian Schmaus
3e74d11b45
Disable MucMemoryLeakTest
...
Although it it not that unreliable, it causes false negatives once in
a while. This is because the standard Java SE API does not provide a
way to force a *full* garbage collection run, we need to resort to
unreliable hacks to trigger one.
The test itself is still useful to diagnose or refute alleged memory
leaks.
This commit also move the test from JUnit 4 to Junit 5.
2019-08-03 22:25:21 +02:00
Florian Schmaus
efb206f7bd
Use Locale.getDefault() to initialize the language
2019-08-03 22:20:05 +02:00