1、声网jar + 下载so开发 1
This commit is contained in:
@@ -32,7 +32,6 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
@@ -51,8 +50,6 @@ dependencies {
|
||||
println('链接包,使用本地声网Jar + 下载SO')
|
||||
api files('../libs/agora-rtc-sdk.jar')
|
||||
}
|
||||
api files('../libs/agora-rtc-sdk.jar')
|
||||
|
||||
api project(path: ':FaceUnity')
|
||||
api project(path: ':common')
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ import com.yunbao.common.utils.L;
|
||||
import com.yunbao.common.utils.StringUtil;
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.List;
|
||||
|
||||
import io.agora.rtc2.ChannelMediaOptions;
|
||||
@@ -113,6 +114,13 @@ public class SWAuManager extends BaseCacheManager {
|
||||
config.mContext = mContext;
|
||||
config.mAppId = CommonAppConfig.getSwAppId();
|
||||
config.mEventHandler = mRtcEventHandler;
|
||||
|
||||
if(CommonAppConfig.IS_GOOGLE_PLAY == 0){
|
||||
//链接包,声网加载下载的 So文件
|
||||
File file = new File(mContext.getApplicationInfo().dataDir, com.yunbao.common.Constants.DOWNLOAD_SO);
|
||||
config.mNativeLibPath = file.getAbsolutePath();
|
||||
}
|
||||
|
||||
// 创建并初始化 RtcEngine
|
||||
mRtcEngine = (RtcEngineEx) RtcEngineEx.create(config);
|
||||
} catch (Exception e) {
|
||||
|
||||
Reference in New Issue
Block a user