diff --git a/MqttLibrary/build.gradle b/MqttLibrary/build.gradle index 84c53bf..cbf15a1 100644 --- a/MqttLibrary/build.gradle +++ b/MqttLibrary/build.gradle @@ -5,6 +5,8 @@ // gradle addCredentials --key sonatypePassword --value // gradle addCredentials --key sonatypeKeyPassword --value // +// You also need to have gpg installed for the signing process to work +// // From there, execute `./gradlew clean build publishReleasePublicationToMavenRepository` to build, sign, and upload all the artifacts. // The final step is to log in to https://oss.sonatype.org/#stagingRepositories to close and release the staging repo @@ -12,7 +14,7 @@ plugins { id 'com.android.library' id 'maven-publish' id 'signing' - id 'nu.studer.credentials' version '1.0.7' + id 'nu.studer.credentials' version '3.0' } group 'com.craxiom' @@ -171,5 +173,5 @@ signing { * @return The credential value if located. */ private String findCredentialValue(String value) { - return project.credentials."sonatype$value" + return project.credentials.forKey("sonatype$value") } diff --git a/README.md b/README.md index 1da3fd1..e1538b8 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ The MQTT Connection Library provides a simple connection UI as well as logic to It is important to note that the pieces provided in the library cannot stand on their own. Most classes are to be extended or implemented, as an "MQTT Connection" relies on a service that drives the logic using the connection. We will go over the correct way to wire everything together below. 1. Ensure that the correct version of the library is included in the consuming project's `build.gradle` file, under its dependencies:

``` - implementation 'com.craxiom:mqttlibrary:0.4.3' + implementation 'com.craxiom:mqttlibrary:0.4.4' ``` 2. Next, for the connection UI, the `fragment_mqtt_connection` is readily available under `res/layout`; however, `AConnectionFragment` must still be extended, or `DefaultConnectionFragment`.
Note: Users can extend the latter if they do not wish to add extra UI components. Otherwise, extend `AConnectionFragment`, which contains methods marked with "additional" in their names and must be overridden in the child class.
  a. Whichever fragment ends up being extended, it will require a binder parameter. This binder should extend the provided `AConnectionFragment#ServiceBinder` in order to be recognized. Likely, this binder will be located in the `IMqttService` implementation of the consuming project.