1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-24 19:47:58 +01:00
Commit graph

2359 commits

Author SHA1 Message Date
Florian Schmaus
2241dae16a Remove some deprecated code 2014-02-20 16:04:20 +01:00
Florian Schmaus
352c362e90 Remove the dependency on javax.xml.transform
Not all platforms support this API (e.g. Android). Strip the
prettyPrint() method since it wasn't used anyway.

Also move XmlUtil in a more appropriate package.
2014-02-20 14:47:05 +01:00
Florian Schmaus
24b637876f Substitute MXParser with a call to XmlPullParserFactory
This makes Smack more portable, as there are platforms that support the
XmlPullParser interface, but not MXParser (e.g. Android).

Also enable checkstyle check that MXParser is not used.
2014-02-20 13:48:36 +01:00
Florian Schmaus
4db0b101c2 Raise jbosh version to 0.7.0 2014-02-20 13:11:10 +01:00
Florian Schmaus
b4d735e862 Cleanup of build.gradle
- Moved helper code at the end
- Add description to the POM
2014-02-19 23:26:56 +01:00
Florian Schmaus
1a94812660 Add BOSH subproject (SMACK-187) 2014-02-19 22:41:31 +01:00
Georg Lukas
fea2db2be7 SMACK-465: XMPPException using Java's wrapped Throwable 2014-02-19 10:42:39 +01:00
Florian Schmaus
602a8fc812 Activate the jingle subproject and move integration tests
The jingle subproject builds now. This doesn't change that the code is
outdated with regard to the specification and unmaintained for
years. But hopefully this is the first step to change that. :)

The integration tests have been moved into SourceSets of 'core' and
'extensions'.
2014-02-19 10:38:30 +01:00
Florian Schmaus
f7d3f559a2 Fix eclipse formatter settings: indentation.size=4 2014-02-18 23:15:38 +01:00
Florian Schmaus
7bd7b3d24c Improve packet send and result collecting API
Instead of repeating the same pattern, when sending an IQ get/set packet
and collecting the response

PacketFilter filter = new PacketIDFilter(request.getPacketID()),
PacketCollector collector = connection.createPacketCollector(filter);
connection.sendPacket(reg);
IQ result = (IQ)collector.nextResult(SmackConfiguration.getPacketReplyTimeout());
// Stop queuing results
collector.cancel();
if (result == null) {
    throw new XMPPException("No response from server.");
}
else if (result.getType() == IQ.Type.ERROR) {
    throw new XMPPException(result.getError());
}

the API got redesigned, so that the above code block can be replaced
with

Packet result = connection.createPacketCollectorAndSend(request).nextResultOrThrow();
2014-02-18 19:39:47 +01:00
Florian Schmaus
e6d5385129 Add more pom metadata 2014-02-18 10:51:24 +01:00
Florian Schmaus
312f2f7508 Move EntityCaps and Bookmarks API in correct package
Also move ProviderConfigTest into core, since it tests core
functionality, nothing provided by extensions. Found the reason the test
was failing since the gradle migration (provider entry test.providers),
and activated it again. \o/

New API design as of SMACK-545
2014-02-18 10:24:59 +01:00
Florian Schmaus
1f63ac31a5 Update README.md 2014-02-18 10:03:42 +01:00
Florian Schmaus
d069e1be64 Normalize newlines to '\n'
Change all \r\n into unix style newlines. Add missing newlines at the
end of a file and activate the newline checkstyle module, that enforces
'\n' as newline and a newline at the end of every file.
2014-02-17 23:58:40 +01:00
Florian Schmaus
1e57f1c659 Activate checkstyle and add missing license headers
Delete also all "All rights reserved" statements, as they are
unnecessary and conflict with checkstyle's header check. Delete unused
imports.
2014-02-17 20:09:55 +01:00
Florian Schmaus
2e11470aee Code cleanup: unused imports, values, blocks, etc. 2014-02-17 08:24:10 +01:00
Florian Schmaus
6dd64da930 Create new subproject 'legacy', move workgroup API into it 2014-02-17 08:24:10 +01:00
Florian Schmaus
202be35978 Add resource URLs to README.md 2014-02-16 15:22:47 +01:00
Florian Schmaus
207b060d78 Merge pull request #1 from SnakeDoc/master
Add basic markdown README
2014-02-16 11:08:59 +01:00
Florian Schmaus
3da34da5e7 Fix copy&paste error in intro.html 2014-02-15 22:36:52 +01:00
Jason Sipula
64b8cfe3dc added basic markdown readme 2014-02-15 13:36:42 -08:00
Florian Schmaus
38a3531ec6 Move privacy lists from core to extensions 2014-02-15 22:35:38 +01:00
Florian Schmaus
2ad517b6dd Add initializer tests and move classpath files
The initializer tests verify that every non-optional initializer, this
includes Providers, is loadable.

Creating files under META-INF is not considered best practice. Smack's
configuration and provider files reside now in classpath directory
qualified by Smack's package namespace.
2014-02-15 22:12:12 +01:00
Florian Schmaus
8d3814a8a7 New API design (SMACK-545) 2014-02-15 13:03:47 +01:00
Florian Schmaus
201152ef42 Migrate from Ant to Gradle (SMACK-265) 2014-02-14 18:46:33 +01:00
Florian Schmaus
235eca3a3d Change xml-not-well-formed to not-well-formed
Fixes SMACK-400
2014-02-10 14:10:36 +01:00
Florian Schmaus
acbf75a01b Remove <invalid-id> stream error (SMACK-401)
RFC 6120 removed the unnecessary and unused <invalid-id/> stream error.
2014-02-10 14:04:36 +01:00
Florian Schmaus
470868506f Add test-reports/ to gitignore 2014-02-10 14:01:06 +01:00
Florian Schmaus
7bba6b7f91 Fix typo in StreamInitiation.setSesssionID()
Fixes SMACK-427
2014-02-10 14:00:08 +01:00
Florian Schmaus
7ba3c3d43f Add namespace attribute to XHTML-IM body tags
Fixes SMACK-531
2014-02-10 13:51:12 +01:00
Florian Schmaus
4bc7ce052d Remove RCS header attributes 2014-02-10 12:33:41 +01:00
Florian Schmaus
93030c218c Remove ServerTrustManager
The implementation of ServerTrustManger contains a security
vulnerability, which could lead to unauthorized certificates being
erroneously trusted. SMACK-410
2014-02-10 12:07:39 +01:00
Florian Schmaus
5f5805cd1c Merge branch '3.4'
Conflicts:
	build/build.xml
2014-02-10 09:09:02 +01:00
Florian Schmaus
0cec5713d1 Smack 3.4.1 2014-02-09 14:11:22 +01:00
Florian Schmaus
fc26b83efd Use '-' as separator for $version.extra in build.xml 2014-02-08 13:21:55 +01:00
Florian Schmaus
9c61c6c945 Convert Connection references to weak references
If a Manager is strong referenced from a gc root, usually the instances
map, it should not hold itself a strong reference the connection in
order to avoid a cycle that prevents the Connection instance from being
gc'ed.

SMACK-383
2014-02-07 13:17:36 +01:00
Florian Schmaus
666f555733 Update eclipse project name 2014-02-07 12:40:48 +01:00
Florian Schmaus
4c8af8c17f Don't use manager's constructor in connectionCreated
This could cause duplicate managers. Use getInstanceFor()
instead. SMACK-403.
2014-02-07 12:15:04 +01:00
Florian Schmaus
89838f5843 Format build.xml's checkcode target
Whitespace fix only. No semantic changes
2014-02-06 18:19:27 +01:00
Florian Schmaus
f9d125127b Fix javadoc Java API link 2014-02-06 18:18:27 +01:00
Florian Schmaus
f021d7efb1 Cleanup of build.xml's release target
no.test wasn't used in that path anyways, so remove it. And
release-exists will always return true since the release.xml Ant script
is part of the repository.
2014-02-06 18:10:15 +01:00
rcollier
05ccada195 Updated version for post release
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/branches/smack_3_4_0@13893 b35dd754-fafc-0310-a699-88a17e54d16e
2014-02-06 17:45:48 +01:00
Florian Schmaus
52a8a835ee Generate unit test reports
So that these can be parsed by Bamboo
2014-02-06 17:39:52 +01:00
Florian Schmaus
f125077f34 Add file local variables to build.xml 2014-02-06 10:18:27 +01:00
Florian Schmaus
8ff5807586 Add git revision in build.xml output files 2014-02-06 10:17:40 +01:00
Florian Schmaus
c4edd1f27c Untabify build.xml
Only non-semantic whitespace fixes
2014-02-06 09:45:26 +01:00
Florian Schmaus
68a570b4fe Use WeakReference in MUC NodeInformationProvider
MultiUserChat's NodeInformationProvider must not hold a strong reference
to the Connection instance. Fixes SMACK-540.
2014-02-05 23:12:03 +01:00
Florian Schmaus
1df3841a41 Eclipse: Add build/resources to classpath
So that SmackConfiguration is able to load files from META-INF
2014-02-05 23:11:39 +01:00
Florian Schmaus
2cb3d5a0d4 Move 'new MXParser()' in try/catch block
aSmack replaces 'new MXParser()' with
'XmlPullParserFactory.newInstance().newPullParser()' which can throw a
XmlPullParserException. In order to build aSmack, we need to move the
'new MXParser()' within a try/catch block.
2014-02-04 09:57:01 +01:00
Lars Noschinski
c06b0a7720 Implement support for roster versioning
Roster versioning is defined in RFC 6121, section 2.2.6; the protocol
was originally described in XEP-0237.

Fixes SMACK-399
2014-02-04 09:57:01 +01:00