Commit 56fb3b39 authored by fengruiyu's avatar fengruiyu

修改versioncode 参数加上小时

parent 7aff8d4b
......@@ -46,9 +46,10 @@ class AboutusActivity : BaseActivity<ActivityAboutusBinding, AboutusViewModel>()
tvAboutasPolicy.setOnClickListener(this)
iv_app.setOnLongClickListener {
ToastUtils.showLong("自有渠道:" + CommonUtils.getAppMetaData(
AppApplication.getContext(), "CHANNEL_NAME"
) + "\n 头条渠道:" + HumeSDK.getChannel(AppApplication.getContext()))
ToastUtils.showLong("自有渠道:${CommonUtils.getAppMetaData(
AppApplication.getContext(), "CHANNEL_NAME"
) } \n 头条渠道:${HumeSDK.getChannel(AppApplication.getContext())
} \n versioncode :${DeviceInfo.instance.versionCode}")
true
}
}
......
static def buildVersionCode() {
def date = new Date()
def formattedDate = date.format('yyyyMMdd')
def formattedDate = date.format('yyyyMMddHH')
return formattedDate.toInteger()
}
......
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