- Upgrade to latest gradle build tools (3.0.0)
- Remove unused code, and debug cradle code
- Compile against latest Android (26)
- Using latest build tools (26.0.0)
- Use latest support library (26.1.0)
- Add google maven repo
- Use latest gradle version (4.1)
- Target latest version of Android in samples (26)
- Remove dependency on libs folder - unnecessary
- Remove release flavours for samples (never used)
The example and sample have to depend on the compile project dependency for now, until a new release is done that includes the manifest merging.
Signed-off-by: Blundell <paul@novoda.com>
In case no connection can be established, AlarmPingSender stop method will be called when it has not been started yet. `java.lang.NullPointerException: cancel() called with a null PendingIntent` will be thrown as the pending intent has not been setup yet.
* Making sure that the service is build as a full project
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Changing build to ensure that service is built first
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Moving Lib copy to after clean
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Resolving issue #15 by adding support for Motorola Phones
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Updating Readme
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Removing build badge
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Adding Subscribe calls with IMqttMessageListener
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Adding Travis-ci build badge to readme
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Making sure that the service is build as a full project
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Changing build to ensure that service is built first
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Moving Lib copy to after clean
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Resolving issue #15 by adding support for Motorola Phones
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Making sure that the service is build as a full project
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Changing build to ensure that service is built first
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Moving Lib copy to after clean
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Making sure that the service is build as a full project
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Changing build to ensure that service is built first
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
Enabling Automatic Reconnect for Android client
Also Adding Example code for a very basic pub sub app that uses
Automatic Reconnect and offline buffering as well as a good example.
Fixed Build on Hudson
Added Build config for travis-ci
Fixed SSL tests to work with new iot.eclipse.org Certificate
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Enabling Automatic Reconnect for Android client
Also Adding Example code for a very basic pub sub app that uses
Automatic Reconnect and offline buffering as well as a good example.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
* Tidying up example and Service code
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
I've set the SSL/TLS version to TLSv1. This is an immediate improvement over the very insecure SSLv1 that was previously allowed.
This should allow TLSv1 TLSV1.1 and TLSv1.2
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
Setting up callbacks after initiating the background ping can cause
a race condition, in which the operation completes before the callbacks
are set. In this case, onSuccess() or onFailure() will not run, and
the wakelock will never be released.
To prevent this, specify a IMqttActionListener when creating the token.
Change-Id: I25f898e9558d16b61e9102adcf76fe7f2335ea2f
Signed-off-by: Kevin Cernekee <cernekee@google.com>
Android Service Jar contained another JAR containing the classes.
This was a mistake in the build.gradle build script in the order
in which it was preparing the compiled classes into the artifact.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
The existing SQLite statements were constructed in such a way that the client ID could inject SQL into the statement.
I have modified them to be proper prepared statements thus allowing safe usage of ' in client IDs.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
Moved the Network info into a temproary variable.
Signed-off-by: James Sutton <james.sutton@uk.ibm.com>
Change-Id: Ia41a4f560a7cba345f704eebb47e623d013d9b7a