云信SDK升级
This commit is contained in:
@@ -176,7 +176,8 @@ def Lombok = "1.18.10"
|
|||||||
def useFlutterAar = Boolean.parseBoolean(with_flutter_aar)
|
def useFlutterAar = Boolean.parseBoolean(with_flutter_aar)
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api fileTree(dir: 'libs', include: ['*.jar'])
|
implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
|
||||||
|
implementation fileTree(dir: 'aliyun-libs', include: ['*.jar','*.aar'])
|
||||||
testImplementation 'junit:junit:4.13.1'
|
testImplementation 'junit:junit:4.13.1'
|
||||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
|
||||||
|
|
||||||
@@ -221,12 +222,6 @@ dependencies {
|
|||||||
annotationProcessor "org.projectlombok:lombok:${Lombok}"
|
annotationProcessor "org.projectlombok:lombok:${Lombok}"
|
||||||
implementation 'nl.dionsegijn:konfetti:1.1.2'
|
implementation 'nl.dionsegijn:konfetti:1.1.2'
|
||||||
|
|
||||||
//阿里云实名认证
|
|
||||||
api(name: 'rpsdk-4.14.3-open', ext: 'aar')
|
|
||||||
api(name: 'MiddleTierSDK-external-release-5.5.72-preInstall', ext: 'aar')
|
|
||||||
api(name: 'SecurityBodySDK-external-release-5.5.85-preInstall', ext: 'aar')
|
|
||||||
api(name: 'SecurityGuardSDK-external-release-5.5.75-preInstall', ext: 'aar')
|
|
||||||
|
|
||||||
//数字滚动效果
|
//数字滚动效果
|
||||||
implementation 'com.github.YvesCheung:RollingText:1.2.3'
|
implementation 'com.github.YvesCheung:RollingText:1.2.3'
|
||||||
// 引入原有第三方裁图源码,方便修改
|
// 引入原有第三方裁图源码,方便修改
|
||||||
@@ -245,21 +240,12 @@ dependencies {
|
|||||||
implementation 'io.github.yidun:quicklogin:3.1.5'
|
implementation 'io.github.yidun:quicklogin:3.1.5'
|
||||||
|
|
||||||
implementation 'com.github.fodroid:XRadioGroup:v1.5'
|
implementation 'com.github.fodroid:XRadioGroup:v1.5'
|
||||||
|
|
||||||
implementation files('libs/humesdk-1.0.0.aar')
|
|
||||||
|
|
||||||
implementation(name: 'SudMGP-v1.1.32.200', ext: 'aar')
|
|
||||||
|
|
||||||
// 魅族推送
|
|
||||||
implementation 'com.meizu.flyme.internet:push-internal:3.9.0@aar'
|
|
||||||
// vivo推送
|
|
||||||
implementation files("libs/vivo_pushsdk_v3.0.0.0_480.aar")
|
|
||||||
//魅族推送
|
|
||||||
implementation files('libs/msa_mdid_1.0.13.aar')
|
|
||||||
//华为推送
|
//华为推送
|
||||||
implementation 'com.huawei.hms:push:5.3.0.304'
|
implementation 'com.huawei.hms:push:6.5.0.300'
|
||||||
//oppo推送
|
//魅族推送
|
||||||
implementation files("libs/com.heytap.msp-push-2.1.0.aar")
|
implementation 'com.meizu.flyme.internet:push-internal:4.1.0'
|
||||||
|
//oppo推送需要
|
||||||
|
implementation 'commons-codec:commons-codec:1.6'
|
||||||
|
|
||||||
// xplan flutter module
|
// xplan flutter module
|
||||||
if (useFlutterAar) {
|
if (useFlutterAar) {
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
app/libs/push-3.0.0.aar
Normal file
BIN
app/libs/push-3.0.0.aar
Normal file
Binary file not shown.
BIN
app/libs/vivo_pushSDK_v3.0.0.4_484.aar
Normal file
BIN
app/libs/vivo_pushSDK_v3.0.0.4_484.aar
Normal file
Binary file not shown.
Binary file not shown.
@@ -2,7 +2,6 @@ package com.yizhuan.erban.ui.im.friend
|
|||||||
|
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
import androidx.fragment.app.viewModels
|
import androidx.fragment.app.viewModels
|
||||||
import com.bun.miitmdid.core.JLibrary.context
|
|
||||||
import com.yizhuan.erban.R
|
import com.yizhuan.erban.R
|
||||||
import com.yizhuan.erban.base.BaseFragment
|
import com.yizhuan.erban.base.BaseFragment
|
||||||
import com.yizhuan.erban.common.widget.dialog.DialogManager
|
import com.yizhuan.erban.common.widget.dialog.DialogManager
|
||||||
|
@@ -1,82 +0,0 @@
|
|||||||
package com.yizhuan.erban.ui.webview;
|
|
||||||
|
|
||||||
import android.os.Environment;
|
|
||||||
import android.util.Log;
|
|
||||||
|
|
||||||
import com.netease.nim.uikit.common.util.log.LogUtil;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileInputStream;
|
|
||||||
import java.io.IOException;
|
|
||||||
import java.io.InputStream;
|
|
||||||
|
|
||||||
import fi.iki.elonen.NanoHTTPD;
|
|
||||||
|
|
||||||
public class WebServer extends NanoHTTPD {
|
|
||||||
public static final String MIME_JAVASCRIPT = "text/javascript";
|
|
||||||
public static final String MIME_CSS = "text/css";
|
|
||||||
public static final String MIME_JPEG = "image/jpeg";
|
|
||||||
public static final String MIME_PNG = "image/png";
|
|
||||||
public static final String MIME_SVG = "image/svg+xml";
|
|
||||||
public static final String MIME_JSON = "application/json";
|
|
||||||
|
|
||||||
|
|
||||||
public WebServer() {
|
|
||||||
super(8080);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public Response serve(IHTTPSession session) {
|
|
||||||
|
|
||||||
String mime_type = NanoHTTPD.MIME_PLAINTEXT;
|
|
||||||
Method method = session.getMethod();
|
|
||||||
String uri = session.getUri();
|
|
||||||
System.out.println(method + " '" + uri + "' ");
|
|
||||||
InputStream descriptor = null;
|
|
||||||
|
|
||||||
if (method.toString().equalsIgnoreCase("GET")) {
|
|
||||||
String path;
|
|
||||||
if (uri.equals("/")) {
|
|
||||||
path = "/index.html";
|
|
||||||
} else {
|
|
||||||
path = uri;
|
|
||||||
try {
|
|
||||||
if (path.endsWith(".js")) {
|
|
||||||
mime_type = MIME_JAVASCRIPT;
|
|
||||||
} else if (path.endsWith(".css")) {
|
|
||||||
mime_type = MIME_CSS;
|
|
||||||
} else if (path.endsWith(".html")) {
|
|
||||||
mime_type = MIME_HTML;
|
|
||||||
} else if (path.endsWith(".jpeg")) {
|
|
||||||
mime_type = MIME_JPEG;
|
|
||||||
} else if (path.endsWith(".png")) {
|
|
||||||
mime_type = MIME_PNG;
|
|
||||||
} else if (path.endsWith(".jpg")) {
|
|
||||||
mime_type = MIME_JPEG;
|
|
||||||
} else if (path.endsWith(".svg")) {
|
|
||||||
mime_type = MIME_SVG;
|
|
||||||
} else if (path.endsWith(".json")) {
|
|
||||||
mime_type = MIME_JSON;
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
String sub = path.substring(path.indexOf("feidao") + 7);
|
|
||||||
// LogUtil.e("path:" + path);
|
|
||||||
// LogUtil.e("sub:" + sub);
|
|
||||||
try {
|
|
||||||
File file = new File(Environment.getExternalStorageDirectory() + "/feidao/" + sub);
|
|
||||||
descriptor = new FileInputStream(file);
|
|
||||||
} catch (IOException ioe) {
|
|
||||||
Log.w("Httpd", ioe.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
return newFixedLengthResponse(Response.Status.OK, mime_type, descriptor, descriptor.available());
|
|
||||||
} catch (IOException e) {
|
|
||||||
return null;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -47,7 +47,7 @@ def overscroll_android = "1.0.4"
|
|||||||
def base_recyclerview_helper = "2.9.49-androidx"
|
def base_recyclerview_helper = "2.9.49-androidx"
|
||||||
def ShortcutBadger = "1.1.17"
|
def ShortcutBadger = "1.1.17"
|
||||||
def GlideTransformationsVersion = "3.0.1"
|
def GlideTransformationsVersion = "3.0.1"
|
||||||
def NimNetVersion = "8.11.5"
|
def NimNetVersion = "8.9.103"
|
||||||
def glideVersion = "4.11.0"
|
def glideVersion = "4.11.0"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
Reference in New Issue
Block a user