Skip to content

Commit

Permalink
调整mqtt代码
Browse files Browse the repository at this point in the history
  • Loading branch information
puy1017 committed Apr 11, 2022
1 parent 018fdef commit 1a2ebe0
Show file tree
Hide file tree
Showing 187 changed files with 15,267 additions and 13 deletions.
12 changes: 0 additions & 12 deletions puymvpjava/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,8 @@ dependencies {
api rootProject.ext.dependencies["swipebacklayout"]
api rootProject.ext.dependencies["fragmentation"]
api rootProject.ext.dependencies["facebookrebound"]
api files('libs/commons-codec-1.11.jar')

// implementation(name: 'umeng-asms-armeabi-v1.1.3', ext: 'aar')
// implementation(name: 'umeng-crash-armeabi-v0.0.4', ext: 'aar')
api 'com.umeng.umsdk:common:9.4.7'

// api files('libs/utdid4all-1.5.2-proguard.jar')
// api files('libs/umeng-share-core-6.9.4.jar')
// api files('libs/umeng-share-QQ-simplify-6.9.4.jar')
// api files('libs/umeng-share-sina-simplify-6.9.4.jar')
// api files('libs/umeng-share-wechat-simplify-6.9.4.jar')
// api files('libs/umeng-shareboard-widget-6.9.4.jar')
// api files('libs/umeng-sharetool-6.9.4.jar')

implementation files('libs/org.eclipse.paho.client.mqttv3-1.2.2.jar')
}
repositories {
Expand Down
Binary file removed puymvpjava/libs/commons-codec-1.11.jar
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.android.puy.puymvpjava.mqttv3;


import org.apache.commons.codec.binary.Base64;
import com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.binary.Base64;

import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public interface BinaryDecoder extends Decoder {
byte[] decode(byte[] var1) throws DecoderException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public interface BinaryEncoder extends Encoder {
byte[] encode(byte[] var1) throws EncoderException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public class CharEncoding {
public static final String ISO_8859_1 = "ISO-8859-1";
public static final String US_ASCII = "US-ASCII";
public static final String UTF_16 = "UTF-16";
public static final String UTF_16BE = "UTF-16BE";
public static final String UTF_16LE = "UTF-16LE";
public static final String UTF_8 = "UTF-8";

public CharEncoding() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

import java.nio.charset.Charset;

public class Charsets {
public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
public static final Charset US_ASCII = Charset.forName("US-ASCII");
public static final Charset UTF_16 = Charset.forName("UTF-16");
public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
public static final Charset UTF_8 = Charset.forName("UTF-8");

public Charsets() {
}

public static Charset toCharset(Charset charset) {
return charset == null ? Charset.defaultCharset() : charset;
}

public static Charset toCharset(String charset) {
return charset == null ? Charset.defaultCharset() : Charset.forName(charset);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public interface Decoder {
Object decode(Object var1) throws DecoderException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public class DecoderException extends Exception {
private static final long serialVersionUID = 1L;

public DecoderException() {
}

public DecoderException(String message) {
super(message);
}

public DecoderException(String message, Throwable cause) {
super(message, cause);
}

public DecoderException(Throwable cause) {
super(cause);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public interface Encoder {
Object encode(Object var1) throws EncoderException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public class EncoderException extends Exception {
private static final long serialVersionUID = 1L;

public EncoderException() {
}

public EncoderException(String message) {
super(message);
}

public EncoderException(String message, Throwable cause) {
super(message, cause);
}

public EncoderException(Throwable cause) {
super(cause);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public interface StringDecoder extends Decoder {
String decode(String var1) throws DecoderException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

public interface StringEncoder extends Encoder {
String encode(String var1) throws EncoderException;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.android.puy.puymvpjava.mqttv3.org.apache.commons.codec.base;

import java.util.Comparator;

public class StringEncoderComparator implements Comparator {
private final StringEncoder stringEncoder;

/** @deprecated */
@Deprecated
public StringEncoderComparator() {
this.stringEncoder = null;
}

public StringEncoderComparator(StringEncoder stringEncoder) {
this.stringEncoder = stringEncoder;
}

public int compare(Object o1, Object o2) {
boolean var3 = false;

int compareCode;
try {
Comparable<Comparable<?>> s1 = (Comparable)this.stringEncoder.encode(o1);
Comparable<?> s2 = (Comparable)this.stringEncoder.encode(o2);
compareCode = s1.compareTo(s2);
} catch (EncoderException var6) {
compareCode = 0;
}

return compareCode;
}
}
Loading

0 comments on commit 1a2ebe0

Please sign in to comment.