Commit 58361b9f by konghaorui

修改路由调用方式,发布版本

parent 6018d79e
...@@ -168,7 +168,7 @@ dependencies { ...@@ -168,7 +168,7 @@ dependencies {
// } // }
api project(':m-user') api project(':m-user')
implementation project(':ydl-platform') implementation project(':ydl-platform')
// implementation project(':ydl-webview') implementation project(':ydl-webview')
implementation rootProject.ext.dependencies["retrofit-url-manager"] implementation rootProject.ext.dependencies["retrofit-url-manager"]
kapt 'com.alibaba:arouter-compiler:1.2.2' kapt 'com.alibaba:arouter-compiler:1.2.2'
} }
......
...@@ -63,8 +63,8 @@ dependencies { ...@@ -63,8 +63,8 @@ dependencies {
// api project(":ydl-platform") // api project(":ydl-platform")
compileOnly 'com.ydl:m-user-api:0.0.4' compileOnly 'com.ydl:m-user-api:0.0.4'
api 'com.ydl:ydl-webview:0.0.5@aar' api 'com.ydl:ydl-webview:0.0.7@aar'
api('com.ydl:ydl-platform:0.0.7@aar') { api('com.ydl:ydl-platform:0.0.8@aar') {
transitive = true transitive = true
} }
} }
...@@ -8,7 +8,7 @@ modular { ...@@ -8,7 +8,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-consultant-module-xlzx" artifactId = "m-consultant-module-xlzx"
// 上报的业务模块 aar 包的版本号 // 上报的业务模块 aar 包的版本号
version = "0.0.1" version = "0.0.3"
} }
ydl{ ydl{
...@@ -16,7 +16,7 @@ modular { ...@@ -16,7 +16,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-consultant-module-ydl" artifactId = "m-consultant-module-ydl"
// 上报的业务模块 aar 包的版本号 // 上报的业务模块 aar 包的版本号
version = "0.0.1" version = "0.0.3"
} }
} }
......
package com.ydl.other;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
//import com.yidianling.user.UserService;
/**
* Created by haorui on 2019-09-01 .
* Des:
*/
@Route(path = "/other/MainActivity")
public class MainActivity extends AppCompatActivity {
// @Autowired//(name = "/user/UserService")
// UserService mUserService;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
ARouter.getInstance().inject(this);
// setContentView(R.layout.other_activity_main);
//mUserService=ARouter.getInstance().navigation(UserService.class);
// findViewById(R.id.btHello).setOnClickListener(new View.OnClickListener() {
// @Override
// public void onClick(View v) {
// Toast.makeText(MainActivity.this, "Hello:" + mUserService.getUser().getName(), Toast.LENGTH_SHORT).show();
// }
// });
}
}
package com.ydl.other;
/**
* Created by haorui on 2019-09-01 .
* Des:
*/
public class Other {
String name;
int id;
}
...@@ -32,7 +32,7 @@ import com.yidianling.consultant.bean.HotSearchPopularDoctorBean ...@@ -32,7 +32,7 @@ import com.yidianling.consultant.bean.HotSearchPopularDoctorBean
import com.yidianling.consultant.contract.IHotSearchContract import com.yidianling.consultant.contract.IHotSearchContract
import com.yidianling.consultant.presenter.HotSearchPresenterImpl import com.yidianling.consultant.presenter.HotSearchPresenterImpl
import kotlinx.android.synthetic.main.activity_hot_search.* import kotlinx.android.synthetic.main.activity_hot_search.*
import kotlinx.android.synthetic.main.item_hot_search.view.* import kotlinx.android.synthetic.main.item_expert_hot_search.view.*
@Route(path = "/consult/hot_search") @Route(path = "/consult/hot_search")
class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchContract.Presenter>(), IHotSearchContract.View { class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchContract.Presenter>(), IHotSearchContract.View {
...@@ -155,7 +155,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchCont ...@@ -155,7 +155,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchCont
llHotSearch.visibility = View.VISIBLE llHotSearch.visibility = View.VISIBLE
flHotSearch.removeAllViews() flHotSearch.removeAllViews()
for (index in keywordData.indices) { for (index in keywordData.indices) {
val view = LayoutInflater.from(this).inflate(R.layout.item_hot_search, flHotSearch, false) val view = LayoutInflater.from(this).inflate(R.layout.item_expert_hot_search, flHotSearch, false)
view.tvHotSearch.text = keywordData[index].keyword view.tvHotSearch.text = keywordData[index].keyword
view.setOnClickListener { view.setOnClickListener {
etSearch.setText(keywordData[index].keyword) etSearch.setText(keywordData[index].keyword)
...@@ -175,7 +175,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchCont ...@@ -175,7 +175,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchCont
expertWidth = 0 expertWidth = 0
flHotExpert.removeAllViews() flHotExpert.removeAllViews()
for (index in hotSearchExpert.indices) { for (index in hotSearchExpert.indices) {
val view = LayoutInflater.from(this).inflate(R.layout.item_hot_search, flHotSearch, false) val view = LayoutInflater.from(this).inflate(R.layout.item_expert_hot_search, flHotSearch, false)
view.tvHotSearch.text = hotSearchExpert[index].name view.tvHotSearch.text = hotSearchExpert[index].name
if (!TextUtils.isEmpty(hotSearchExpert[index].name)) { if (!TextUtils.isEmpty(hotSearchExpert[index].name)) {
expertWidth += getTextContentWidth(view.findViewById(R.id.tvHotSearch), if (hotSearchExpert[index].name!!.length > 7) hotSearchExpert[index].name!!.substring(0, 8) else hotSearchExpert[index].name!!) + dp42 expertWidth += getTextContentWidth(view.findViewById(R.id.tvHotSearch), if (hotSearchExpert[index].name!!.length > 7) hotSearchExpert[index].name!!.substring(0, 8) else hotSearchExpert[index].name!!) + dp42
...@@ -231,7 +231,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchCont ...@@ -231,7 +231,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View,IHotSearchCont
if (historyList.size > 0) { if (historyList.size > 0) {
for (historyStr in historyList.reversed()) { for (historyStr in historyList.reversed()) {
val view = LayoutInflater.from(this).inflate(R.layout.item_hot_search, flHotSearch, false) val view = LayoutInflater.from(this).inflate(R.layout.item_expert_hot_search, flHotSearch, false)
view.tvHotSearch.text = historyStr view.tvHotSearch.text = historyStr
historyCurrentWidth += getTextContentWidth(view.findViewById(R.id.tvHotSearch), historyCurrentWidth += getTextContentWidth(view.findViewById(R.id.tvHotSearch),
if (historyStr.length > 7) historyStr.substring(0, 8) else historyStr) + RxImageTool.dp2px(50f) if (historyStr.length > 7) historyStr.substring(0, 8) else historyStr) + RxImageTool.dp2px(50f)
......
...@@ -14,8 +14,8 @@ import com.ydl.webview.NewH5Activity ...@@ -14,8 +14,8 @@ import com.ydl.webview.NewH5Activity
import com.ydl.ydl_image.config.SimpleImageOpConfiger import com.ydl.ydl_image.config.SimpleImageOpConfiger
import com.ydl.ydl_router.manager.YDLRouterManager import com.ydl.ydl_router.manager.YDLRouterManager
import com.ydl.ydlcommon.base.config.HttpConfig import com.ydl.ydlcommon.base.config.HttpConfig
import com.ydl.ydlcommon.modular.ModularServiceManager
import com.ydl.ydlcommon.router.IYDLRouterConstant import com.ydl.ydlcommon.router.IYDLRouterConstant
import com.ydl.ydlcommon.router.YdlCommonRouterManager
import com.ydl.ydlcommon.utils.BuryPointUtils import com.ydl.ydlcommon.utils.BuryPointUtils
import com.ydl.ydlcommon.utils.URLUtils import com.ydl.ydlcommon.utils.URLUtils
import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils import com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
...@@ -27,7 +27,6 @@ import com.yidianling.consultant.R ...@@ -27,7 +27,6 @@ import com.yidianling.consultant.R
import com.yidianling.consultant.constants.ConsultBIConstants import com.yidianling.consultant.constants.ConsultBIConstants
import com.yidianling.consultant.model.bean.DoctorServiceItem import com.yidianling.consultant.model.bean.DoctorServiceItem
import com.yidianling.consultant.router.ConsultantIn import com.yidianling.consultant.router.ConsultantIn
import com.yidianling.user.api.service.IUserService
import kotlinx.android.synthetic.main.expert_search_feedbackrate.view.* import kotlinx.android.synthetic.main.expert_search_feedbackrate.view.*
import kotlinx.android.synthetic.main.expert_search_item_view.view.* import kotlinx.android.synthetic.main.expert_search_item_view.view.*
import kotlinx.android.synthetic.main.expert_search_products_item.view.* import kotlinx.android.synthetic.main.expert_search_products_item.view.*
...@@ -330,7 +329,7 @@ class ExpertSearchAdapter(private val context: Context, private val expertSearch ...@@ -330,7 +329,7 @@ class ExpertSearchAdapter(private val context: Context, private val expertSearch
itemView.tvChat.setOnClickListener { itemView.tvChat.setOnClickListener {
if (adapterPosition != RecyclerView.NO_POSITION) { if (adapterPosition != RecyclerView.NO_POSITION) {
//判断是否已登录 //判断是否已登录
if(!ModularServiceManager.provide(IUserService::class.java).isLogin()){ if(!YdlCommonRouterManager.getYdlCommonRoute().isLogin()){
YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN) YDLRouterManager.router(IYDLRouterConstant.ROUTER_MINE_LOGIN)
return@setOnClickListener return@setOnClickListener
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginEnd="8dp" android:layout_marginEnd="8dp"
android:layout_marginBottom="6dp" android:layout_marginBottom="6dp"
android:background="@drawable/hot_search_bg" android:background="@drawable/expert_hot_search_bg"
android:ellipsize="end" android:ellipsize="end"
android:gravity="center" android:gravity="center"
android:maxEms="9" android:maxEms="9"
......
...@@ -70,8 +70,8 @@ dependencies { ...@@ -70,8 +70,8 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-script-runtime:1.3.41" implementation "org.jetbrains.kotlin:kotlin-script-runtime:1.3.41"
compileOnly 'com.ydl:m-user-api:0.0.4' compileOnly 'com.ydl:m-user-api:0.0.4'
api'com.ydl:router:1.0.0-SNAPSHOT@aar' api'com.ydl:router:1.0.0-SNAPSHOT@aar'
api 'com.ydl:ydl-webview:0.0.5@aar' api 'com.ydl:ydl-webview:0.0.7@aar'
api('com.ydl:ydl-platform:0.0.7@aar') { api('com.ydl:ydl-platform:0.0.8@aar') {
transitive = true transitive = true
} }
// api project(':ydl-webview') // api project(':ydl-webview')
......
...@@ -8,7 +8,7 @@ modular { ...@@ -8,7 +8,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-user-module-xlzx" artifactId = "m-user-module-xlzx"
// 上报的业务模块 aar 包的版本号 // 上报的业务模块 aar 包的版本号
version = "0.0.8" version = "0.0.12"
} }
ydl{ ydl{
...@@ -16,7 +16,7 @@ modular { ...@@ -16,7 +16,7 @@ modular {
groupId = "com.ydl" groupId = "com.ydl"
artifactId = "m-user-module-ydl" artifactId = "m-user-module-ydl"
// 上报的业务模块 aar 包的版本号 // 上报的业务模块 aar 包的版本号
version = "0.0.8" version = "0.0.12"
} }
} }
......
...@@ -8,37 +8,48 @@ ...@@ -8,37 +8,48 @@
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.CountryListActivity" android:name=".ui.CountryListActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.InputPhoneActivity" android:name=".ui.InputPhoneActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.SmsLoginActivity" android:name=".ui.SmsLoginActivity"
android:label="验证码" android:label="验证码"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.GetIdentifyingCodeActivity" android:name=".ui.GetIdentifyingCodeActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.FillInfoActivity" android:name=".ui.FillInfoActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".safePrivate.CheckPasswordActivity" android:name=".safePrivate.CheckPasswordActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".safePrivate.FingerPrintCheckActivity" android:name=".safePrivate.FingerPrintCheckActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".safePrivate.HandUnlockCheckActivity" android:name=".safePrivate.HandUnlockCheckActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".safePrivate.PrivacyActivity" android:name=".safePrivate.PrivacyActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".safePrivate.SetFingerPrintActivity" android:name=".safePrivate.SetFingerPrintActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".safePrivate.SetHandUnLockActivity" android:name=".safePrivate.SetHandUnLockActivity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
...@@ -52,6 +63,7 @@ ...@@ -52,6 +63,7 @@
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.login.H5Activity" android:name=".ui.login.H5Activity"
android:theme="@style/platform_NoTitleTheme"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<activity <activity
android:name=".ui.AliAuthDemoActivity" android:name=".ui.AliAuthDemoActivity"
...@@ -67,9 +79,9 @@ ...@@ -67,9 +79,9 @@
android:configChanges="orientation|keyboardHidden|screenSize" android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTask" android:launchMode="singleTask"
android:screenOrientation="portrait" /> android:screenOrientation="portrait" />
<meta-data <!--<meta-data-->
android:name="com.yidianling.user.base.UserGlobalConfig" <!--android:name="com.yidianling.user.base.UserGlobalConfig"-->
android:value="ModuleConfig"/> <!--android:value="ModuleConfig"/>-->
<activity <activity
android:name=".wxapi.WXEntryActivity" android:name=".wxapi.WXEntryActivity"
android:exported="true" android:exported="true"
......
package com.yidianling.user.modular_service
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.alibaba.android.arouter.facade.template.IProvider
import com.yidianling.user.api.bean.UserResponseBean
import com.yidianling.user.api.bean.UserSettingBean
/**
* author : Zhangwenchao
* e-mail : zhangwch@yidianling.com
* time : 2018/04/13
*/
interface IUserInfoService : IProvider {
// 是否已登录
fun isLogin(): Boolean
fun isFirstLogin(): Boolean
fun setFirstLogin(first: Boolean)
fun isSafePrivacyClicked(): Boolean
fun putSafePrivacyClicked(clicked: Boolean)
fun setUserResponse(userInfo: UserResponseBean?)
fun getUserInfo(): UserResponseBean.UserInfo?
fun getUserResponse() : UserResponseBean?
fun getUserSetting(): UserSettingBean?
fun isBindPhone(): Boolean
fun putUnlockCheckSuccessTime(time: Long)
fun getChatTeamHisShow(): Boolean
fun setChatTeamHisShowed(showed : Boolean)
// 跳转到隐私界面的 Activity
fun privacyIntent(activity: Activity): Intent
fun loginWayIntent(context: Context): Intent
fun inputPhoneIntent(activity: Activity, smsAction: String): Intent
fun safeTipViewGone(): Boolean
fun setTrendsSafeTip(status: Boolean)
fun errorAgainTime(): Long
fun isFirstStart(): Boolean
fun updateUserInfoSp(userInfo: UserResponseBean.UserInfo?)
fun updateUserSetingSp(userSetting: UserSettingBean?)
fun clearUserInfo()
}
\ No newline at end of file
...@@ -9,6 +9,7 @@ import com.ydl.ydlcommon.base.BaseApp ...@@ -9,6 +9,7 @@ import com.ydl.ydlcommon.base.BaseApp
import com.yidianling.common.tools.RxAppTool import com.yidianling.common.tools.RxAppTool
import com.yidianling.user.api.bean.UserResponseBean import com.yidianling.user.api.bean.UserResponseBean
import com.yidianling.user.api.bean.UserSettingBean import com.yidianling.user.api.bean.UserSettingBean
import com.yidianling.user.api.service.IUserService
import com.yidianling.user.modular_service.utils.UserServiceHelper import com.yidianling.user.modular_service.utils.UserServiceHelper
import com.yidianling.user.route.UserIn import com.yidianling.user.route.UserIn
import com.yidianling.user.safePrivate.FingerPrintUtil import com.yidianling.user.safePrivate.FingerPrintUtil
...@@ -22,7 +23,7 @@ import com.yidianling.user.ui.login.RegisterAndLoginActivity ...@@ -22,7 +23,7 @@ import com.yidianling.user.ui.login.RegisterAndLoginActivity
* time : 2018/04/13 * time : 2018/04/13
*/ */
@Route(path = "/user/UserService") @Route(path = "/user/UserService")
public class UserServiceImp : IUserInfoService { public class UserServiceImp : IUserService {
constructor() constructor()
......
...@@ -10,6 +10,7 @@ import com.yidianling.router.user.IUserRouter ...@@ -10,6 +10,7 @@ import com.yidianling.router.user.IUserRouter
import com.yidianling.router.user.UserResponse import com.yidianling.router.user.UserResponse
import com.yidianling.router.user.UserSetting import com.yidianling.router.user.UserSetting
import com.yidianling.user.UserHelper import com.yidianling.user.UserHelper
import com.yidianling.user.modular_service.utils.UserServiceHelper
import com.yidianling.user.safePrivate.FingerPrintUtil import com.yidianling.user.safePrivate.FingerPrintUtil
import com.yidianling.user.safePrivate.PrivacyActivity import com.yidianling.user.safePrivate.PrivacyActivity
import com.yidianling.user.ui.InputPhoneActivity import com.yidianling.user.ui.InputPhoneActivity
......
...@@ -13,15 +13,12 @@ import com.yidianling.user.R ...@@ -13,15 +13,12 @@ import com.yidianling.user.R
import com.yidianling.user.UserHelper import com.yidianling.user.UserHelper
import com.yidianling.user.route.UserIn import com.yidianling.user.route.UserIn
import com.yidianling.user.ui.login.RegisterAndLoginActivity import com.yidianling.user.ui.login.RegisterAndLoginActivity
import de.greenrobot.event.EventBus
/** /**
* 登录验证指纹 * 登录验证指纹
*/ */
class FingerPrintCheckActivity : BaseActivity(), View.OnClickListener { class FingerPrintCheckActivity : BaseActivity(), View.OnClickListener {
override fun initDataAndEvent() { override fun initDataAndEvent() {
EventBus.getDefault().register(this)
isFromBackground = intent.getBooleanExtra("isFromBackground", false) isFromBackground = intent.getBooleanExtra("isFromBackground", false)
init() init()
...@@ -48,7 +45,6 @@ class FingerPrintCheckActivity : BaseActivity(), View.OnClickListener { ...@@ -48,7 +45,6 @@ class FingerPrintCheckActivity : BaseActivity(), View.OnClickListener {
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
EventBus.getDefault().unregister(this)
} }
fun init() { fun init() {
......
...@@ -15,7 +15,6 @@ import com.yidianling.user.R ...@@ -15,7 +15,6 @@ import com.yidianling.user.R
import com.yidianling.user.UserHelper import com.yidianling.user.UserHelper
import com.yidianling.user.route.UserIn import com.yidianling.user.route.UserIn
import com.yidianling.user.ui.login.RegisterAndLoginActivity import com.yidianling.user.ui.login.RegisterAndLoginActivity
import de.greenrobot.event.EventBus
/** /**
* 手势解锁验证界面(也可验证指纹) * 手势解锁验证界面(也可验证指纹)
...@@ -30,8 +29,6 @@ class HandUnlockCheckActivity : BaseActivity(), android.view.View.OnClickListene ...@@ -30,8 +29,6 @@ class HandUnlockCheckActivity : BaseActivity(), android.view.View.OnClickListene
} }
override fun initDataAndEvent() { override fun initDataAndEvent() {
EventBus.getDefault().register(this)
isFromBackground = intent.getBooleanExtra("isFromBackground", false) isFromBackground = intent.getBooleanExtra("isFromBackground", false)
tipTxt = findViewById<TextView>(R.id.text_tip) tipTxt = findViewById<TextView>(R.id.text_tip)
...@@ -86,7 +83,6 @@ class HandUnlockCheckActivity : BaseActivity(), android.view.View.OnClickListene ...@@ -86,7 +83,6 @@ class HandUnlockCheckActivity : BaseActivity(), android.view.View.OnClickListene
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
EventBus.getDefault().unregister(this)
} }
//检查是否开启指纹或手势密码 //检查是否开启指纹或手势密码
......
...@@ -11,6 +11,7 @@ import android.widget.ImageView; ...@@ -11,6 +11,7 @@ import android.widget.ImageView;
import android.widget.ListView; import android.widget.ListView;
import android.widget.TextView; import android.widget.TextView;
import com.ydl.ydlcommon.base.BaseActivity; import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.ydl.ydlcommon.data.http.RxUtils; import com.ydl.ydlcommon.data.http.RxUtils;
import com.ydl.ydlcommon.data.http.ThrowableConsumer; import com.ydl.ydlcommon.data.http.ThrowableConsumer;
import com.ydl.ydlcommon.utils.StatusBarUtils; import com.ydl.ydlcommon.utils.StatusBarUtils;
...@@ -43,6 +44,12 @@ public class CountryListActivity extends BaseActivity { ...@@ -43,6 +44,12 @@ public class CountryListActivity extends BaseActivity {
protected int layoutResId() { protected int layoutResId() {
return R.layout.activity_country_list; return R.layout.activity_country_list;
} }
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true,true);
}
@Override @Override
protected void initDataAndEvent() { protected void initDataAndEvent() {
......
...@@ -23,6 +23,7 @@ import com.tbruyelle.rxpermissions2.RxPermissions; ...@@ -23,6 +23,7 @@ import com.tbruyelle.rxpermissions2.RxPermissions;
import com.ydl.webview.RefreshWebEvent; import com.ydl.webview.RefreshWebEvent;
import com.ydl.ydl_image.module.GlideApp; import com.ydl.ydl_image.module.GlideApp;
import com.ydl.ydlcommon.base.BaseActivity; import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.ydl.ydlcommon.data.http.RxUtils; import com.ydl.ydlcommon.data.http.RxUtils;
import com.ydl.ydlcommon.data.http.ThrowableConsumer; import com.ydl.ydlcommon.data.http.ThrowableConsumer;
import com.ydl.ydlcommon.utils.ActivityManager; import com.ydl.ydlcommon.utils.ActivityManager;
...@@ -96,6 +97,12 @@ public class FillInfoActivity extends BaseActivity implements View.OnClickListen ...@@ -96,6 +97,12 @@ public class FillInfoActivity extends BaseActivity implements View.OnClickListen
return R.layout.activity_fill_info; return R.layout.activity_fill_info;
} }
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true,true);
}
@Override @Override
protected void initDataAndEvent() { protected void initDataAndEvent() {
tb_title = findViewById(R.id.tb_title); tb_title = findViewById(R.id.tb_title);
......
...@@ -9,6 +9,7 @@ import android.widget.LinearLayout; ...@@ -9,6 +9,7 @@ import android.widget.LinearLayout;
import android.widget.TextView; import android.widget.TextView;
import com.ydl.webview.RefreshWebEvent; import com.ydl.webview.RefreshWebEvent;
import com.ydl.ydlcommon.base.BaseActivity; import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.ydl.ydlcommon.data.http.EncryptUtils; import com.ydl.ydlcommon.data.http.EncryptUtils;
import com.ydl.ydlcommon.data.http.RxUtils; import com.ydl.ydlcommon.data.http.RxUtils;
import com.ydl.ydlcommon.data.http.ThrowableConsumer; import com.ydl.ydlcommon.data.http.ThrowableConsumer;
...@@ -81,6 +82,12 @@ public class GetIdentifyingCodeActivity extends BaseActivity implements View.OnC ...@@ -81,6 +82,12 @@ public class GetIdentifyingCodeActivity extends BaseActivity implements View.OnC
return R.layout.activity_get_identifying_code; return R.layout.activity_get_identifying_code;
} }
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true,true);
}
@Override @Override
protected void initDataAndEvent() { protected void initDataAndEvent() {
tb_title = findViewById(R.id.tb_title); tb_title = findViewById(R.id.tb_title);
......
...@@ -13,6 +13,7 @@ import com.ydl.webview.H5Params; ...@@ -13,6 +13,7 @@ import com.ydl.webview.H5Params;
import com.ydl.webview.NewH5Activity; import com.ydl.webview.NewH5Activity;
import com.ydl.ydlcommon.base.BaseActivity; import com.ydl.ydlcommon.base.BaseActivity;
import com.ydl.ydlcommon.base.config.YDLConstants; import com.ydl.ydlcommon.base.config.YDLConstants;
import com.ydl.ydlcommon.bean.StatusBarOptions;
import com.ydl.ydlcommon.data.http.RxUtils; import com.ydl.ydlcommon.data.http.RxUtils;
import com.ydl.ydlcommon.data.http.ThrowableConsumer; import com.ydl.ydlcommon.data.http.ThrowableConsumer;
import com.ydl.ydlcommon.router.YdlCommonOut; import com.ydl.ydlcommon.router.YdlCommonOut;
...@@ -94,6 +95,12 @@ public class InputPhoneActivity extends BaseActivity implements View.OnClickList ...@@ -94,6 +95,12 @@ public class InputPhoneActivity extends BaseActivity implements View.OnClickList
activity.startActivity(intent); activity.startActivity(intent);
} }
@NotNull
@Override
public StatusBarOptions getStatusViewOptions() {
return new StatusBarOptions(true,true);
}
@Override @Override
protected int layoutResId() { protected int layoutResId() {
return R.layout.activity_input_phone; return R.layout.activity_input_phone;
......
...@@ -6,6 +6,7 @@ import android.text.TextUtils ...@@ -6,6 +6,7 @@ import android.text.TextUtils
import android.util.Log import android.util.Log
import android.view.View import android.view.View
import com.ydl.ydlcommon.base.BaseActivity import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.bean.StatusBarOptions
import com.ydl.ydlcommon.data.http.RxUtils import com.ydl.ydlcommon.data.http.RxUtils
import com.ydl.ydlcommon.data.http.ThrowableConsumer import com.ydl.ydlcommon.data.http.ThrowableConsumer
import com.ydl.ydlcommon.router.YdlCommonOut import com.ydl.ydlcommon.router.YdlCommonOut
...@@ -18,7 +19,6 @@ import com.yidianling.router.im.IMLoginInfo ...@@ -18,7 +19,6 @@ import com.yidianling.router.im.IMLoginInfo
import com.yidianling.router.im.IMRequestCallback import com.yidianling.router.im.IMRequestCallback
import com.yidianling.router.user.UserResponse import com.yidianling.router.user.UserResponse
import com.yidianling.user.LoginUtils import com.yidianling.user.LoginUtils
import com.yidianling.user.R
import com.yidianling.user.UserConstants import com.yidianling.user.UserConstants
import com.yidianling.user.constants.UserBIConstants import com.yidianling.user.constants.UserBIConstants
import com.yidianling.user.http.UserHttp import com.yidianling.user.http.UserHttp
...@@ -37,6 +37,8 @@ import io.reactivex.schedulers.Schedulers ...@@ -37,6 +37,8 @@ import io.reactivex.schedulers.Schedulers
import kotlinx.android.synthetic.main.activity_get_identifying_code.* import kotlinx.android.synthetic.main.activity_get_identifying_code.*
import java.util.concurrent.TimeUnit import java.util.concurrent.TimeUnit
/** /**
* 短信快捷登录界面 * 短信快捷登录界面
* author : Zhangwenchao * author : Zhangwenchao
...@@ -67,7 +69,7 @@ class SmsLoginActivity : BaseActivity() { ...@@ -67,7 +69,7 @@ class SmsLoginActivity : BaseActivity() {
override fun layoutResId(): Int { override fun layoutResId(): Int {
return R.layout.activity_get_identifying_code return com.yidianling.user.R.layout.activity_get_identifying_code
} }
override fun initDataAndEvent() { override fun initDataAndEvent() {
...@@ -78,6 +80,10 @@ class SmsLoginActivity : BaseActivity() { ...@@ -78,6 +80,10 @@ class SmsLoginActivity : BaseActivity() {
requestVCode() requestVCode()
} }
override fun getStatusViewOptions(): StatusBarOptions {
return StatusBarOptions(isAddStatusView = true, statusBarDarkMode = true)
}
override fun onDestroy() { override fun onDestroy() {
super.onDestroy() super.onDestroy()
unsubscribe(timerSub) unsubscribe(timerSub)
......
...@@ -14,7 +14,7 @@ import android.text.method.LinkMovementMethod ...@@ -14,7 +14,7 @@ import android.text.method.LinkMovementMethod
import android.text.style.ClickableSpan import android.text.style.ClickableSpan
import android.view.View import android.view.View
import com.ydl.ydlcommon.base.BaseActivity import com.ydl.ydlcommon.base.BaseActivity
import com.ydl.ydlcommon.modular.ModularServiceManager import com.ydl.ydlcommon.router.YdlCommonRouterManager
import com.yidianling.common.tools.LogUtil import com.yidianling.common.tools.LogUtil
import com.yidianling.user.LoginUtils import com.yidianling.user.LoginUtils
import com.yidianling.user.R import com.yidianling.user.R
...@@ -111,7 +111,7 @@ class PrivacyDialog : Dialog { ...@@ -111,7 +111,7 @@ class PrivacyDialog : Dialog {
if (UserHelper.getUserInfo() != null && !TextUtils.isEmpty(UserHelper.getUserInfo()!!.uid)) { if (UserHelper.getUserInfo() != null && !TextUtils.isEmpty(UserHelper.getUserInfo()!!.uid)) {
uid = UserHelper.getUserInfo()!!.uid!! uid = UserHelper.getUserInfo()!!.uid!!
} else { } else {
val loginBean = ModularServiceManager.getPlatformUserService()?.getUser() val loginBean = YdlCommonRouterManager.getYdlCommonRoute().getUserInfo()
if (loginBean != null) { if (loginBean != null) {
uid = loginBean.userId uid = loginBean.userId
} }
......
...@@ -2,8 +2,6 @@ package com.ydl.ydlcommon.utils; ...@@ -2,8 +2,6 @@ package com.ydl.ydlcommon.utils;
import android.content.Context; import android.content.Context;
import android.util.Log; import android.util.Log;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.umeng.analytics.MobclickAgent; import com.umeng.analytics.MobclickAgent;
import com.umeng.analytics.dplus.UMADplus; import com.umeng.analytics.dplus.UMADplus;
import com.ydl.ydl_router.provider.YDLRouterBurryPointProvider; import com.ydl.ydl_router.provider.YDLRouterBurryPointProvider;
...@@ -14,7 +12,7 @@ import java.util.HashMap; ...@@ -14,7 +12,7 @@ import java.util.HashMap;
/** /**
* Created by Wi1ls on 2016/11/11; * Created by Wi1ls on 2016/11/11;
*/ */
@Route(path = "/burry/point") //@Route(path = "/burry/point")
public class UMEventUtils implements YDLRouterBurryPointProvider{ public class UMEventUtils implements YDLRouterBurryPointProvider{
public static final String test = "aaa"; public static final String test = "aaa";
//登录注册首页_登录注册确认点击 //登录注册首页_登录注册确认点击
......
...@@ -52,9 +52,10 @@ dependencies { ...@@ -52,9 +52,10 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
kapt 'com.alibaba:arouter-compiler:1.2.2' kapt 'com.alibaba:arouter-compiler:1.2.2'
api 'com.ydl:m-user-api:0.0.4' api 'com.ydl:m-user-api:0.0.4'
api('com.ydl:ydl-platform:0.0.7@aar') { api('com.ydl:ydl-platform:0.0.8@aar') {
transitive = true transitive = true
} }
api'com.ydl:router:1.0.0-SNAPSHOT@aar'
// api project(':ydl-platform') // api project(':ydl-platform')
} }
IS_PUBLISH=true IS_PUBLISH=true
VERSION_NAME=0.0.5 VERSION_NAME=0.0.7
\ No newline at end of file \ No newline at end of file
...@@ -538,7 +538,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -538,7 +538,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
wv_content.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);//滚动条风格,为0指滚动条不占用空间,直接覆盖在网页上 wv_content.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);//滚动条风格,为0指滚动条不占用空间,直接覆盖在网页上
tb_title.setImageListener(v -> { tb_title.setImageListener(v -> {
if (h5Params.isSplash()) { if (h5Params.isSplash()) {
WebModularServiceUtils.Companion.startMain(); WebModularServiceUtils.Companion.startMain(NewH5Activity.this);
finish(); finish();
} else { } else {
...@@ -738,7 +738,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -738,7 +738,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
tb_title.setmLeftText(""); tb_title.setmLeftText("");
tb_title.setImageListener(v -> { tb_title.setImageListener(v -> {
if (h5Params.getShowUrlTitle()) { if (h5Params.getShowUrlTitle()) {
WebModularServiceUtils.Companion.startMain(); WebModularServiceUtils.Companion.startMain(NewH5Activity.this);
finish(); finish();
} else { } else {
finish(); finish();
...@@ -1021,7 +1021,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1021,7 +1021,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
setTitle(wv_content.getTitle()); setTitle(wv_content.getTitle());
tb_title.setImageListener(v -> { tb_title.setImageListener(v -> {
if (h5Params.isSplash()) { if (h5Params.isSplash()) {
WebModularServiceUtils.Companion.startMain(); WebModularServiceUtils.Companion.startMain(NewH5Activity.this);
finish(); finish();
} else { } else {
finish(); finish();
...@@ -1029,7 +1029,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1029,7 +1029,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
}); });
} else { } else {
if (h5Params.isSplash()) { if (h5Params.isSplash()) {
WebModularServiceUtils.Companion.startMain(); WebModularServiceUtils.Companion.startMain(NewH5Activity.this);
finish(); finish();
} else { } else {
if (startType == 1) { if (startType == 1) {
...@@ -1094,7 +1094,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1094,7 +1094,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
NewH5Activity.start(this, new H5Params(successPage, "")); NewH5Activity.start(this, new H5Params(successPage, ""));
} }
if (h5Params.isSplash()) { if (h5Params.isSplash()) {
WebModularServiceUtils.Companion.startMain(); WebModularServiceUtils.Companion.startMain(NewH5Activity.this);
finish(); finish();
} else { } else {
finish(); finish();
...@@ -1206,7 +1206,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler { ...@@ -1206,7 +1206,7 @@ public class NewH5Activity extends BaseActivity implements PtrHandler {
dialog.setCallBack(type -> { dialog.setCallBack(type -> {
if (1 == type) { if (1 == type) {
if (!WebModularServiceUtils.Companion.getUserService().isLogin()) { if (!WebModularServiceUtils.Companion.getUserRouter().isLogin()) {
isToTrend = true; isToTrend = true;
ARouter.getInstance().build("/user/login").navigation(); ARouter.getInstance().build("/user/login").navigation();
} else { } else {
......
...@@ -44,7 +44,7 @@ class SafeTipView : LinearLayout { ...@@ -44,7 +44,7 @@ class SafeTipView : LinearLayout {
.duration(400) .duration(400)
.onEnd { visibility = View.GONE } .onEnd { visibility = View.GONE }
.playOn(this@SafeTipView) .playOn(this@SafeTipView)
WebModularServiceUtils.getUserService().setTrendsSafeTip(true) WebModularServiceUtils.getUserRouter().setTrendsSafeTip(true)
when (location) { when (location) {
"msgList" -> { "msgList" -> {
UMEventUtils.msgListPrivacyClose(context) UMEventUtils.msgListPrivacyClose(context)
...@@ -58,7 +58,7 @@ class SafeTipView : LinearLayout { ...@@ -58,7 +58,7 @@ class SafeTipView : LinearLayout {
} }
} }
tvTip.setOnClickListener { tvTip.setOnClickListener {
WebModularServiceUtils.getUserService().privacyIntent(context as Activity) WebModularServiceUtils.getUserRouter().privacyIntent(context as Activity)
when (location) { when (location) {
"msgList" -> { "msgList" -> {
UMEventUtils.msgListPrivacyAlert(context) UMEventUtils.msgListPrivacyAlert(context)
...@@ -74,7 +74,7 @@ class SafeTipView : LinearLayout { ...@@ -74,7 +74,7 @@ class SafeTipView : LinearLayout {
} }
fun updateVisibility() { fun updateVisibility() {
if (WebModularServiceUtils.getUserService().safeTipViewGone()) { if (WebModularServiceUtils.getUserRouter().safeTipViewGone()) {
this.visibility = View.GONE this.visibility = View.GONE
} else { } else {
this.visibility = View.VISIBLE this.visibility = View.VISIBLE
......
package com.ydl.webview package com.ydl.webview
import android.content.Intent import android.app.Activity
import com.alibaba.android.arouter.launcher.ARouter
import com.ydl.ydlcommon.modular.ModularServiceManager import com.ydl.ydlcommon.modular.ModularServiceManager
import com.ydl.ydlcommon.router.YdlCommonRouterManager
import com.yidianling.router.RouterManager
import com.yidianling.router.user.IUserRouter
import com.yidianling.user.api.service.IUserService import com.yidianling.user.api.service.IUserService
/** /**
...@@ -11,6 +13,10 @@ import com.yidianling.user.api.service.IUserService ...@@ -11,6 +13,10 @@ import com.yidianling.user.api.service.IUserService
*/ */
class WebModularServiceUtils { class WebModularServiceUtils {
companion object { companion object {
fun getUserRouter(): IUserRouter {
return RouterManager.getUserRouter()!!
}
fun getUserService(): IUserService { fun getUserService(): IUserService {
return ModularServiceManager.provide(IUserService::class.java) return ModularServiceManager.provide(IUserService::class.java)
} }
...@@ -19,10 +25,11 @@ class WebModularServiceUtils { ...@@ -19,10 +25,11 @@ class WebModularServiceUtils {
return ModularServiceManager.provide(IWebService::class.java) return ModularServiceManager.provide(IWebService::class.java)
} }
fun startMain(){ fun startMain(activity: Activity){
ARouter.getInstance().build("/main/main") YdlCommonRouterManager.getYdlCommonRoute().startMain(activity,false)
.withFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) // ARouter.getInstance().build("/main/main")
.navigation() // .withFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
// .navigation()
} }
} }
} }
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