Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions Android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ buildscript {
repositories {
google()
mavenCentral()
// TUIOfflinePush : configure HMS Core SDK Maven address, delete it without the Huawei offline push function.
maven { url 'https://developer.huawei.com/repo/' }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.3'
classpath 'com.android.tools.build:gradle:3.5.4'

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

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

Expand All @@ -26,8 +20,6 @@ allprojects {
}
google()
mavenCentral()
// TUIOfflinePush : delete it without the Huawei offline push function.
maven { url 'https://developer.huawei.com/repo/' }
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.tencent.liteav.basic;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class Constants {
public static final String URL_PUSH = "url_push"; // RTMP 推流地址
public static final String URL_PLAY_FLV = "url_play_flv"; // FLV 播放地址
public static final String POPULAR_RECOMMENDATION_BEAN_KEY = "popular_recommendation_bean_key";

public static final int APP_ID = 1500005830;

public static final int NOT_SELECTED = -1;

public static boolean isNetworkConnected(Context context) {
if (context != null) {
ConnectivityManager mConnectivityManager = (ConnectivityManager) context
.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();
if (mNetworkInfo != null) {
return mNetworkInfo.isAvailable();
}
}
return false;
}
}