diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 84193153a7..040203ff68 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,6 +72,7 @@ android_build: only: - dev - release + - feat/GHZSCY-6578 # 代码检查 sonarqube_analysis: @@ -156,4 +157,5 @@ oss-upload&send-email: - /usr/local/bin/python /ci-android-mail-jira-comment.py only: - dev - - release \ No newline at end of file + - release + - feat/GHZSCY-6578 \ No newline at end of file diff --git a/module_setting/src/main/java/com/gh/gamecenter/setting/view/AboutFragment.kt b/module_setting/src/main/java/com/gh/gamecenter/setting/view/AboutFragment.kt index 83e6491fac..b9cf892fdd 100644 --- a/module_setting/src/main/java/com/gh/gamecenter/setting/view/AboutFragment.kt +++ b/module_setting/src/main/java/com/gh/gamecenter/setting/view/AboutFragment.kt @@ -62,16 +62,14 @@ class AboutFragment : ToolbarFragment() { ARouter.getInstance().build(RouteConsts.provider.updateManager).navigation() as? IUpdateManagerProvider updateManager?.checkUpdate(requireActivity(), true) // 检查更新 - if (PackageFlavorHelper.IS_TEST_FLAVOR) { - var clickCount = 0 - mBinding.aboutGhIcon.setOnClickListener { - if (clickCount == 5) { - mBinding.aboutGhIcon.setOnClickListener(null) - mBinding.deviceContent.visibility = View.VISIBLE - mBinding.deviceContent.text.toString().copyTextAndToast("复制成功!") - } else { - clickCount++ - } + var clickCount = 0 + mBinding.aboutGhIcon.setOnClickListener { + if (clickCount == 5) { + mBinding.aboutGhIcon.setOnClickListener(null) + mBinding.deviceContent.visibility = View.VISIBLE + mBinding.deviceContent.text.toString().copyTextAndToast("复制成功!") + } else { + clickCount++ } } diff --git a/module_setting_compose/src/main/java/com/gh/gamecenter/setting/compose/activity/ComposeAboutActivity.kt b/module_setting_compose/src/main/java/com/gh/gamecenter/setting/compose/activity/ComposeAboutActivity.kt index 8ace13d79b..efe166a0a5 100644 --- a/module_setting_compose/src/main/java/com/gh/gamecenter/setting/compose/activity/ComposeAboutActivity.kt +++ b/module_setting_compose/src/main/java/com/gh/gamecenter/setting/compose/activity/ComposeAboutActivity.kt @@ -131,6 +131,7 @@ class ComposeAboutActivity : ComposeBaseActivity() { } }, onPress = { + if (deviceContent.isNotEmpty()) return@detectTapGestures if (clickCount == 5) { val sb = StringBuilder() val meta = MetaUtil.getMeta()