Skip to content

Commit

Permalink
Updated the gradle credential plugin and updated the README with the …
Browse files Browse the repository at this point in the history
…latest version
  • Loading branch information
christianrowlands committed Jun 13, 2022
1 parent 4feee3d commit 33d86f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions MqttLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
// gradle addCredentials --key sonatypePassword --value <password>
// gradle addCredentials --key sonatypeKeyPassword --value <password>
//
// 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

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'
Expand Down Expand Up @@ -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")
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:<br><br>
```
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`.<br>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 <i>must</i> be overridden in the child class.<br>
&ensp; 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.
Expand Down

0 comments on commit 33d86f6

Please sign in to comment.