Skip to content

Commit 1087c5c

Browse files
author
rulongzhang
committed
[Android] update version to release release-10.8.13052
1 parent 3375aa1 commit 1087c5c

File tree

2 files changed

+28
-9
lines changed

2 files changed

+28
-9
lines changed

Android/build.gradle

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@ buildscript {
55
repositories {
66
google()
77
mavenCentral()
8-
// TUIOfflinePush : configure HMS Core SDK Maven address, delete it without the Huawei offline push function.
9-
maven { url 'https://developer.huawei.com/repo/' }
108
}
119
dependencies {
12-
classpath 'com.android.tools.build:gradle:3.5.3'
10+
classpath 'com.android.tools.build:gradle:3.5.4'
1311

14-
// TUIOfflinePush: Huawei, delete it without Huawei offline push function
15-
classpath 'com.huawei.agconnect:agcp:1.4.1.300'
1612

17-
// TUIOfflinePush : Google(FCM), delete it without Google offline push function
18-
classpath 'com.google.gms:google-services:4.3.10'
1913
}
2014
}
2115

@@ -26,8 +20,6 @@ allprojects {
2620
}
2721
google()
2822
mavenCentral()
29-
// TUIOfflinePush : delete it without the Huawei offline push function.
30-
maven { url 'https://developer.huawei.com/repo/' }
3123
}
3224
}
3325

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.tencent.liteav.basic;
2+
3+
import android.content.Context;
4+
import android.net.ConnectivityManager;
5+
import android.net.NetworkInfo;
6+
7+
public class Constants {
8+
public static final String URL_PUSH = "url_push"; // RTMP 推流地址
9+
public static final String URL_PLAY_FLV = "url_play_flv"; // FLV 播放地址
10+
public static final String POPULAR_RECOMMENDATION_BEAN_KEY = "popular_recommendation_bean_key";
11+
12+
public static final int APP_ID = 1500005830;
13+
14+
public static final int NOT_SELECTED = -1;
15+
16+
public static boolean isNetworkConnected(Context context) {
17+
if (context != null) {
18+
ConnectivityManager mConnectivityManager = (ConnectivityManager) context
19+
.getSystemService(Context.CONNECTIVITY_SERVICE);
20+
NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();
21+
if (mNetworkInfo != null) {
22+
return mNetworkInfo.isAvailable();
23+
}
24+
}
25+
return false;
26+
}
27+
}

0 commit comments

Comments
 (0)