|
@@ -114,6 +114,13 @@ class LoginActivity : BaseActivity<LoginViewModel, ActivityLoginBinding>() {
|
114
|
114
|
override fun initView() {
|
115
|
115
|
initFirstUse()
|
116
|
116
|
setSoftInput(mBinding.root)
|
|
117
|
+ val appVersionCode = SystemUtil.getAppVersionCode(this, packageName)
|
|
118
|
+ val appVersionName = SystemUtil.getAppVersionName(this, packageName)
|
|
119
|
+ mBinding.versionTv.text =if (com.xhkjedu.manageapp.BuildConfig.IS_DEBUG){
|
|
120
|
+ "版本 v${appVersionName} (Build ${appVersionCode})正式版"
|
|
121
|
+ }else{
|
|
122
|
+ "版本 v${appVersionName} (Build ${appVersionCode})测试版"
|
|
123
|
+ }
|
117
|
124
|
mBinding.loginBtn.setOnClickListener {
|
118
|
125
|
val rxPermissions = RxPermissions(this)
|
119
|
126
|
//有无权限都要登录
|