eagle 接入字节apm性能监控

This commit is contained in:
lianglihui
2021-09-30 10:18:35 +08:00
parent 1dfb1344a4
commit 93503c342b
3 changed files with 10 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ public class CheckActivity extends AppCompatActivity {
private static final String TAG = "CheckActivity";
private static RecyclerView mRecyclerView;
private static CheckResultData sCheckResultData;
private static Context mContext;
// private static Context mContext;
private static NetworkStatusUtil.NetWorkStatus sNetWorkStatus;
private ImageView mImageView;
//车模
@@ -85,7 +85,7 @@ public class CheckActivity extends AppCompatActivity {
protected void onStart() {
super.onStart();
animation();
loadDetail(mContext, null);
loadDetail(this.getApplicationContext(), null);
}
/**
* 列表View初始化
@@ -99,7 +99,7 @@ public class CheckActivity extends AppCompatActivity {
scanTopImageView = findViewById(R.id.scan_car_top_image);
tipsImageView = findViewById(R.id.scan_car_tips);
mProgressBar = findViewById(R.id.check_progress);
mContext = mImageView.getContext();
// mContext = mImageView.getContext();
mImageView.setOnClickListener(v -> {
finish();
});
@@ -109,7 +109,7 @@ public class CheckActivity extends AppCompatActivity {
new CheckLinearLayout(this, CheckLinearLayout.VERTICAL, false);
mRecyclerView.addItemDecoration(new SpacesItemDecoration((int) getResources().getDimension(R.dimen.check_item_space_vr)));
mRecyclerView.setLayoutManager(linearLayoutManager);
mCheckAdapter = new CheckAdapter(mContext, sCheckResultData);
mCheckAdapter = new CheckAdapter(this, sCheckResultData);
mRecyclerView.setAdapter(mCheckAdapter);
}
@@ -118,20 +118,20 @@ public class CheckActivity extends AppCompatActivity {
*/
public static void checkMonitor(Context context, ICheckResultCallBack checkResultCallBack) {
Log.d(TAG, "checkMonitor");
mContext = context;
loadDetail(mContext, checkResultCallBack);
// mContext = context;
loadDetail(context.getApplicationContext(), checkResultCallBack);
}
//网络请求,获取自车检测结果(工控机上报云端)
public static void loadDetail(Context context, ICheckResultCallBack checkResultCallBack) {
mContext = context;
// mContext = context;
final Map<String, Object> params = ParamsBuilder.of(false)
.append("sn", MoGoAiCloudClientConfig.getInstance().getSn())
.build();
CheckApiServiceFactory.getDataApiService(context).loadMonitorDetail(params)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new SubscribeImpl<CheckResultData>(RequestOptions.create(mContext)) {
.subscribe(new SubscribeImpl<CheckResultData>(RequestOptions.create(context)) {
@Override
public void onSuccess(CheckResultData o) {
super.onSuccess(o);

View File

@@ -85,6 +85,7 @@ public class SmallMapProvider implements IMogoSmallMapProvider, IMogoStatusChang
Log.d(TAG, "准备show fragment");
mActivity.getSupportFragmentManager().beginTransaction().show(mSmallMapFragment).commitAllowingStateLoss();
} catch (Exception e) {
Log.d(TAG, "add fragment 失败 ======"+e.getMessage());
e.printStackTrace();
}
}

View File

@@ -166,7 +166,7 @@ MOGO_TRAFFICLIVE_VERSION=1.1.46
# 定位服务
MOGO_LOCATION_VERSION=1.1.46
# 自研地图
MAP_SDK_VERSION=1.0.1-vr-1.0.9
MAP_SDK_VERSION=1.0.1-vr-1.1.2
#################架构升级新的版本号
MOGO_CORE_FUNCTION_HMI_VERSION=1.0.0
## 产品库必备配置产品库自动对versionCode和versionName版本进行升级