Commit 4f3fa81f authored by 张释方's avatar 张释方

Merge branch 'dev_1.0.0' of http://gitlab.mints-id.com/android/android_street into branche_zsf

parents ff04eb7e 9c0bfa8f
...@@ -168,10 +168,7 @@ dependencies { ...@@ -168,10 +168,7 @@ dependencies {
implementation project(':shareSdkLib') implementation project(':shareSdkLib')
// 应用管理中心分包 // 应用管理中心分包
implementation(name: 'humesdk-1.0.0', ext: 'aar') implementation(name: 'humesdk-1.0.0', ext: 'aar')
// umeng
implementation 'com.umeng.umsdk:common:9.3.8'// 必选
implementation 'com.umeng.umsdk:asms:1.2.3'// 必选
implementation 'com.umeng.umsdk:apm:1.3.1'
// 穿山甲 GroMore // 穿山甲 GroMore
// mediation_ad_sdk // mediation_ad_sdk
implementation(name: 'mediation_ad_sdk_2.8.1.0', ext: 'aar') implementation(name: 'mediation_ad_sdk_2.8.1.0', ext: 'aar')
......
...@@ -78,19 +78,7 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() { ...@@ -78,19 +78,7 @@ class MainActivity : BaseActivity<ActivityMainBinding, MainViewModel>() {
} }
override fun onResume() {
super.onResume()
// 友盟
MobclickAgent.onResume(this)
}
override fun onPause() {
super.onPause()
// 友盟
MobclickAgent.onPause(this)
}
var oldTime: Long = 0 var oldTime: Long = 0
override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean { override fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean {
......
...@@ -160,14 +160,14 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE ...@@ -160,14 +160,14 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
currentLon = status?.target?.longitude?:0.0 currentLon = status?.target?.longitude?:0.0
mRecommendStopSearch?.requestRecommendStop( mRecommendStopSearch?.requestRecommendStop(
RecommendStopSearchOption().location( RecommendStopSearchOption().location(
center LatLng(currentLat,currentLat)
) )
) )
} }
}) })
mBaiduMap?.setOnMapLoadedCallback { mBaiduMap?.setOnMapLoadedCallback {
mRecommendStopSearch?.requestRecommendStop(RecommendStopSearchOption().location(center)) mRecommendStopSearch?.requestRecommendStop(RecommendStopSearchOption().location( LatLng(currentLat,currentLat)))
} }
//使地图缩放级别增大一级 //使地图缩放级别增大一级
binding.imageIn.setOnClickListener { binding.imageIn.setOnClickListener {
...@@ -183,7 +183,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE ...@@ -183,7 +183,6 @@ class HomeFragment : BaseFragment<FragmentHomeBinding, HomeViewModel>(), SensorE
} }
mRecommendStopSearch = RecommendStopSearch.newInstance() mRecommendStopSearch = RecommendStopSearch.newInstance()
mRecommendStopSearch?.setOnGetRecommendStopResultListener { result -> mRecommendStopSearch?.setOnGetRecommendStopResultListener { result ->
result
if (result != null) { if (result != null) {
addMarkerToMap(result.recommendStopInfoList) addMarkerToMap(result.recommendStopInfoList)
} }
......
...@@ -71,4 +71,9 @@ dependencies { ...@@ -71,4 +71,9 @@ dependencies {
//万能布局管理器VirtualLayout //万能布局管理器VirtualLayout
api 'com.alibaba.android:vlayout:1.0.9' api 'com.alibaba.android:vlayout:1.0.9'
// umeng
api 'com.umeng.umsdk:common:9.3.8'// 必选
api 'com.umeng.umsdk:asms:1.2.3'// 必选
api 'com.umeng.umsdk:apm:1.3.1'
} }
...@@ -19,6 +19,7 @@ import androidx.lifecycle.Observer; ...@@ -19,6 +19,7 @@ import androidx.lifecycle.Observer;
import com.fry.base.R; import com.fry.base.R;
import com.fry.base.ui.widget.ViewStatusLayout; import com.fry.base.ui.widget.ViewStatusLayout;
import com.umeng.analytics.MobclickAgent;
import me.goldze.mvvmhabit._enum.ViewStatus; import me.goldze.mvvmhabit._enum.ViewStatus;
import me.goldze.mvvmhabit.base.BaseViewModel; import me.goldze.mvvmhabit.base.BaseViewModel;
...@@ -199,10 +200,15 @@ public abstract class BaseActivity<V extends ViewDataBinding, VM extends BaseVie ...@@ -199,10 +200,15 @@ public abstract class BaseActivity<V extends ViewDataBinding, VM extends BaseVie
@Override @Override
protected void onResume() { protected void onResume() {
super.onResume(); super.onResume();
// 友盟
MobclickAgent.onResume(this);
} }
@Override @Override
protected void onPause() { protected void onPause() {
super.onPause(); super.onPause();
// 友盟
MobclickAgent.onPause(this);
} }
} }
...@@ -14,6 +14,7 @@ import androidx.lifecycle.Observer; ...@@ -14,6 +14,7 @@ import androidx.lifecycle.Observer;
import com.fry.base.R; import com.fry.base.R;
import com.fry.base.ui.widget.ViewStatusLayout; import com.fry.base.ui.widget.ViewStatusLayout;
import com.umeng.analytics.MobclickAgent;
import me.goldze.mvvmhabit._enum.ViewStatus; import me.goldze.mvvmhabit._enum.ViewStatus;
import me.goldze.mvvmhabit.base.BaseViewModel; import me.goldze.mvvmhabit.base.BaseViewModel;
...@@ -148,14 +149,16 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie ...@@ -148,14 +149,16 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie
public void onFirstUserVisible() { public void onFirstUserVisible() {
super.onFirstUserVisible(); super.onFirstUserVisible();
if(needStatistics()) { if(needStatistics()) {
MobclickAgent.onPageStart(getClass().getName());
} }
} }
@CallSuper @CallSuper
@Override @Override
public void onUserVisible() { public void onUserVisible() {
super.onUserVisible(); super.onUserVisible();
if(needStatistics()) { if(needStatistics()) {
MobclickAgent.onPageStart(getClass().getName());
} }
} }
...@@ -164,6 +167,7 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie ...@@ -164,6 +167,7 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie
public void onFirstUserInvisible() { public void onFirstUserInvisible() {
super.onFirstUserInvisible(); super.onFirstUserInvisible();
if(needStatistics()) { if(needStatistics()) {
MobclickAgent.onPageEnd(getClass().getName());
} }
} }
...@@ -172,6 +176,8 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie ...@@ -172,6 +176,8 @@ public abstract class BaseFragment<V extends ViewDataBinding, VM extends BaseVie
public void onUserInvisible() { public void onUserInvisible() {
super.onUserInvisible(); super.onUserInvisible();
if(needStatistics()) { if(needStatistics()) {
MobclickAgent.onPageEnd(getClass().getName());
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment