Skip to content

Commit 2b630d5

Browse files
committed
Add README.md and update some file's comment etc
1 parent 853fd6a commit 2b630d5

File tree

14 files changed

+28
-150
lines changed

14 files changed

+28
-150
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Mqtt Android Service
2+
3+
[![](https://jitpack.io/v/shiyinghan/MqttAndroid.svg)](https://jitpack.io/#shiyinghan/MqttAndroid)
4+
5+
The Mqtt Android Service is an MQTT client library for developing applications on Android,based on Eclipse Paho Java MQTT Client.
6+
7+
## Using the Mqtt Android Client
8+
9+
**Step 1.** Add it in your root **build.gradle** at the end of repositories:
10+
11+
```groovy
12+
allprojects {
13+
repositories {
14+
...
15+
maven { url 'https://jitpack.io' }
16+
}
17+
}
18+
```
19+
20+
**Step 2.** Add the dependency:
21+
22+
```groovy
23+
dependencies {
24+
implementation 'com.github.shiyinghan:MqttAndroid:1.0.0'
25+
}
26+
```
27+

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,5 @@ dependencies {
7171
androidTestImplementation deps.espresso
7272

7373
implementation project(path: ':mqtt')
74+
// implementation 'com.github.shiyinghan:MqttAndroid:1.0.0'
7475
}

app/src/main/java/com/shiyinghan/mqttdemo/utils/NotifyUtil.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 1999, 2014 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqttdemo.utils;
142

153
import android.app.Notification;

mqtt/src/androidTest/java/com/shiyinghan/mqtt/android/AndroidServiceWithActionListenerTest.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2014 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqtt.android;
142

153
import java.util.concurrent.TimeUnit;

mqtt/src/androidTest/java/com/shiyinghan/mqtt/android/MqttV3Receiver.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2015, 2016 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqtt.android;
142

153
import java.io.PrintStream;

mqtt/src/androidTest/java/com/shiyinghan/mqtt/android/TestProperties.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2015, 2016 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqtt.android;
142

153
import android.content.Context;

mqtt/src/main/java/com/shiyinghan/mqtt/android/service/AlarmPingSender.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2014 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqtt.android.service;
142

153
import android.annotation.SuppressLint;

mqtt/src/main/java/com/shiyinghan/mqtt/android/service/DatabaseMessageStore.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 1999, 2014 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*
13-
* Contributors:
14-
* James Sutton - Removing SQL Injection vunerability (bug 467378)
15-
*/
161
package com.shiyinghan.mqtt.android.service;
172

183
import java.util.Iterator;

mqtt/src/main/java/com/shiyinghan/mqtt/android/service/MessageStore.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 1999, 2014 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqtt.android.service;
142

153
import java.util.Iterator;

mqtt/src/main/java/com/shiyinghan/mqtt/android/service/MqttConstants.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
/*******************************************************************************
2-
* Copyright (c) 1999, 2016 IBM Corp.
3-
*
4-
* All rights reserved. This program and the accompanying materials
5-
* are made available under the terms of the Eclipse Public License v1.0
6-
* and Eclipse Distribution License v1.0 which accompany this distribution.
7-
*
8-
* The Eclipse Public License is available at
9-
* http://www.eclipse.org/legal/epl-v10.html
10-
* and the Eclipse Distribution License is available at
11-
* http://www.eclipse.org/org/documents/edl-v10.php.
12-
*/
131
package com.shiyinghan.mqtt.android.service;
142

153
/**

0 commit comments

Comments
 (0)