change the callerlogger
This commit is contained in:
@@ -2,8 +2,8 @@ package com.mogo.eagle.core.function.chat.facade.aop
|
||||
|
||||
import android.os.Looper
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.eagle.core.data.deva.scene.SceneConstant.Companion.M_CHAT
|
||||
import com.mogo.eagle.core.function.call.logger.CallerLogger
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_CHAT
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger
|
||||
import org.aspectj.lang.ProceedingJoinPoint
|
||||
import org.aspectj.lang.reflect.CodeSignature
|
||||
import org.aspectj.lang.reflect.MethodSignature
|
||||
|
||||
@@ -4,14 +4,11 @@ import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.os.Handler
|
||||
import android.text.TextUtils
|
||||
import android.util.Log
|
||||
import com.gme.TMG.ITMGContext
|
||||
import com.gme.av.sdk.AVError
|
||||
import com.gme.av.sig.AuthBuffer
|
||||
import com.mogo.commons.debug.DebugConfig
|
||||
import com.mogo.eagle.core.function.api.chat.biz.ChatConsts
|
||||
import com.mogo.eagle.core.function.chat.facade.utils.log
|
||||
import com.mogo.eagle.core.utilcode.util.BuildConfig
|
||||
import com.mogo.eagle.core.utilcode.util.Utils
|
||||
import java.lang.ref.WeakReference
|
||||
import java.util.concurrent.atomic.AtomicBoolean
|
||||
@@ -30,7 +27,7 @@ internal object GMEApi {
|
||||
}
|
||||
|
||||
private val Intent.result: Int
|
||||
get() = getIntExtra("result" , -1)
|
||||
get() = getIntExtra("result", -1)
|
||||
|
||||
private val Intent.errorInfo: String
|
||||
get() = getStringExtra("error_info") ?: ""
|
||||
@@ -46,7 +43,7 @@ internal object GMEApi {
|
||||
private var ctx: WeakReference<Context>? = null
|
||||
|
||||
private val tmgCtx by lazy {
|
||||
ITMGContext.GetInstance(ctx?.get()?: Utils.getApp())
|
||||
ITMGContext.GetInstance(ctx?.get() ?: Utils.getApp())
|
||||
}
|
||||
|
||||
private val delegate = object : ITMGContext.ITMGDelegate() {
|
||||
@@ -79,7 +76,7 @@ internal object GMEApi {
|
||||
log(ChatConsts.TAG, "成员进房====$it===ownId:$openId")
|
||||
it.toInt() > 99999
|
||||
}.toTypedArray()
|
||||
if (filtered.isEmpty()) {
|
||||
if (filtered.isEmpty()) {
|
||||
log(ChatConsts.TAG, "成员为空,无操作")
|
||||
return
|
||||
}
|
||||
@@ -95,11 +92,11 @@ internal object GMEApi {
|
||||
}
|
||||
|
||||
fun enableAudio() {
|
||||
Log.d(ChatConsts.TAG, "-- enable audio --- 1 ---")
|
||||
log(ChatConsts.TAG, "-- enable audio --- 1 ---")
|
||||
if (!hasInit.get()) {
|
||||
return
|
||||
}
|
||||
Log.d(ChatConsts.TAG, "-- enable audio --- 2 ---")
|
||||
log(ChatConsts.TAG, "-- enable audio --- 2 ---")
|
||||
val audioCtrl = tmgCtx.GetAudioCtrl()
|
||||
//开启麦克
|
||||
audioCtrl?.EnableMic(true)
|
||||
@@ -112,11 +109,11 @@ internal object GMEApi {
|
||||
}
|
||||
|
||||
fun disableAudio() {
|
||||
Log.d(ChatConsts.TAG, "-- disable audio --- 1 ---")
|
||||
log(ChatConsts.TAG, "-- disable audio --- 1 ---")
|
||||
if (!hasInit.get()) {
|
||||
return
|
||||
}
|
||||
Log.d(ChatConsts.TAG, "-- disable audio --- 2 ---")
|
||||
log(ChatConsts.TAG, "-- disable audio --- 2 ---")
|
||||
val audioCtrl = tmgCtx.GetAudioCtrl()
|
||||
audioCtrl?.EnableSpeaker(false)
|
||||
//开启麦克
|
||||
@@ -190,7 +187,7 @@ internal object GMEApi {
|
||||
return
|
||||
}
|
||||
if (mute) {
|
||||
tmgCtx.GetAudioCtrl()?.SetMicVolume(0)
|
||||
tmgCtx.GetAudioCtrl()?.SetMicVolume(0)
|
||||
} else {
|
||||
tmgCtx.GetAudioCtrl()?.SetMicVolume(100)
|
||||
}
|
||||
@@ -199,17 +196,17 @@ internal object GMEApi {
|
||||
|
||||
sealed class GmeState {
|
||||
|
||||
class InitSuccess(val openId: String): GmeState()
|
||||
class InitSuccess(val openId: String) : GmeState()
|
||||
|
||||
class InitFail(val code: Int): GmeState()
|
||||
class InitFail(val code: Int) : GmeState()
|
||||
|
||||
object EnterRoomSuccess: GmeState()
|
||||
object EnterRoomSuccess : GmeState()
|
||||
|
||||
class EnterRoomFail(val code: Int, val msg: String): GmeState()
|
||||
class EnterRoomFail(val code: Int, val msg: String) : GmeState()
|
||||
|
||||
class UserChangeInRoom(val isEnter: Boolean, val left: Array<String>): GmeState()
|
||||
class UserChangeInRoom(val isEnter: Boolean, val left: Array<String>) : GmeState()
|
||||
|
||||
object ExitRoomSuccess: GmeState()
|
||||
object ExitRoomSuccess : GmeState()
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user