[6.4.4][apm] 注释掉apm相关逻辑
This commit is contained in:
@@ -9,7 +9,7 @@ import com.mogo.commons.debug.DebugConfig;
|
||||
import com.mogo.eagle.core.data.app.AppConfigInfo;
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig;
|
||||
import com.mogo.eagle.core.data.deva.bindingcar.CarInfo;
|
||||
import com.mogo.eagle.core.function.api.devatools.apm.IApmEnvProvider;
|
||||
//import com.mogo.eagle.core.function.api.devatools.apm.IApmEnvProvider;
|
||||
import com.mogo.eagle.core.function.call.devatools.CallerDevaToolsManager;
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils;
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
|
||||
@@ -51,37 +51,37 @@ public class ApmCrashReportProvider implements ITestCrashReportProvider {
|
||||
|
||||
@Override
|
||||
public void init(Context context) {
|
||||
Observable.defer(() -> {
|
||||
IApmEnvProvider provider = CallerDevaToolsManager.INSTANCE.apmEnvProvider();
|
||||
boolean isDebug = DebugConfig.isDebug();
|
||||
if (provider != null) {
|
||||
Boolean enabled = provider.isDebugEnabled();
|
||||
if (enabled != null) {
|
||||
isDebug = enabled;
|
||||
}
|
||||
}
|
||||
return Observable.just(isDebug);
|
||||
})
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe();
|
||||
|
||||
// Observable.defer(() -> {
|
||||
// IApmEnvProvider provider = CallerDevaToolsManager.INSTANCE.apmEnvProvider();
|
||||
// boolean isDebug = DebugConfig.isDebug();
|
||||
// if (provider != null) {
|
||||
// Boolean enabled = provider.isDebugEnabled();
|
||||
// if (enabled != null) {
|
||||
// isDebug = enabled;
|
||||
// }
|
||||
// }
|
||||
// return Observable.just(isDebug);
|
||||
// })
|
||||
// .subscribeOn(Schedulers.io())
|
||||
// .observeOn(AndroidSchedulers.mainThread())
|
||||
// .subscribe();
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean uploadVlog(long startTime, long endTime) {
|
||||
AtomicBoolean result = new AtomicBoolean(false);
|
||||
CountDownLatch latch = new CountDownLatch(1);
|
||||
try {
|
||||
latch.await();
|
||||
} catch (InterruptedException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
return result.get();
|
||||
}
|
||||
// @Override
|
||||
// public boolean uploadVlog(long startTime, long endTime) {
|
||||
// AtomicBoolean result = new AtomicBoolean(false);
|
||||
// CountDownLatch latch = new CountDownLatch(1);
|
||||
// try {
|
||||
// latch.await();
|
||||
// } catch (InterruptedException e) {
|
||||
// throw new RuntimeException(e);
|
||||
// }
|
||||
// return result.get();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
@@ -14,5 +14,5 @@ interface ITestCrashReportProvider : IProvider {
|
||||
* @param startTime 开始时间
|
||||
* @param endTime 结束时间
|
||||
*/
|
||||
fun uploadVlog(startTime: Long, endTime: Long): Boolean
|
||||
// fun uploadVlog(startTime: Long, endTime: Long): Boolean
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user