Compare commits

...

9 Commits

Author SHA1 Message Date
2e16e24805 feat: 修复storage_permission_intro字符串换行符丢失问题 2024-01-15 11:59:23 +08:00
9d69bbe33f feat: 恢复gitlab-ci.yml 2024-01-15 11:26:41 +08:00
070700d6ae feat: 恢复邮件包默认打大陆包 2024-01-15 11:18:57 +08:00
f9ac78c19f feat: 修复ToolsProvider缺失问题 2024-01-15 10:33:59 +08:00
13051db8be feat: Rebase onto 5.32.8 2024-01-15 10:33:56 +08:00
252cefe6ec feat: 港澳APP—客户端 https://jira.shanqu.cc/browse/GHZS-3815
1. 修复gitlab-ci.yml打包配置
2024-01-15 10:33:54 +08:00
7ef3d6f423 feat: 港澳APP—客户端 https://jira.shanqu.cc/browse/GHZS-3815
1. 修复gitlab-ci.yml打包配置
2024-01-15 10:33:53 +08:00
198f23fecf feat: 港澳APP—客户端 https://jira.shanqu.cc/browse/GHZS-3815
1. 新增 flavor 控制输出港澳APP
2. 更改港澳APP loghub 日志上报仓库
3. 更改港澳APP的接口 API 地址
4. 固定港澳APP loghub 的 logstore
5. 设置栏新增语言设置页面
6. 港澳APP去掉oaid的获取
7. 修改港澳台APP的applicationId
8. 实现strings.xml的简体转繁体翻译
9. 修改输出安装包为港澳台APP安装包(后续改回)
2024-01-15 10:33:38 +08:00
052ab39410 feat: 添加繁体中文支持 https://jira.shanqu.cc/browse/GHZS-3767
迁移设置页和我的页面硬编码
2024-01-15 10:32:21 +08:00
41 changed files with 1414 additions and 77 deletions

View File

@ -95,8 +95,10 @@ android {
buildConfigField "int", "ACTIVATE_REPORTING_RATIO", "${ACTIVATE_REPORTING_RATIO}"
// All third-party appid/appkey
buildConfigField "boolean", "IS_GAT_APP", "false"
buildConfigField "String", "API_HOST", "\"${API_HOST}\""
buildConfigField "String", "NEW_API_HOST", "\"${NEW_API_HOST}\""
buildConfigField "String", "LOG_HUB_PROJECT", "\"${LOG_HUB_PROJECT}\""
buildConfigField "String", "VAPI_HOST", "\"${VAPI_HOST}\""
buildConfigField "String", "WECHAT_APPID", "\"${WECHAT_APPID}\""
buildConfigField "String", "WECHAT_SECRET", "\"${WECHAT_SECRET}\""
@ -157,7 +159,7 @@ android {
}
}
flavorDimensions("env")
flavorDimensions("env", "region")
sourceSets {
publish {
@ -178,6 +180,12 @@ android {
sm {
java.srcDirs = ['src/main/java', 'src/sm/java']
}
gat {
java.srcDirs = ['src/main/java', 'src/gat/java']
}
cn {
java.srcDirs = ['src/main/java', 'src/cn/java']
}
}
productFlavors {
@ -257,6 +265,25 @@ android {
buildConfigField "String", "DEV_CSJ_APPID", "\"${CSJ_APPID}\""
buildConfigField "String", "CSJ_APPID", "\"${CSJ_APPID}\""
}
// 港澳台
gat {
dimension "region"
applicationId rootProject.ext.applicationIdGat
// 支持繁体
resConfigs "zh", "zh-rTW"
buildConfigField "boolean", "IS_GAT_APP", "true"
buildConfigField "String", "LOG_HUB_PROJECT", "\"${LOG_HUB_PROJECT_GAT}\""
buildConfigField "String", "API_HOST", "\"${API_HOST_GAT}\""
buildConfigField "String", "NEW_API_HOST", "\"${NEW_API_HOST_GAT}\""
}
cn {
dimension "region"
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title_install_external_game">從SD卡安裝</string>
<string name="text_install">安裝</string>
<string name="text_uninstall">卸載</string>
<string name="text_start">啟動</string>
</resources>

View File

@ -19,6 +19,7 @@ class BuildConfigImpl : IBuildConfigProvider {
override fun getExposureVersion(): String = BuildConfig.EXPOSURE_VERSION
override fun isDebug(): Boolean = BuildConfig.DEBUG
override fun isGATApp(): Boolean = BuildConfig.IS_GAT_APP
override fun getApiHost(): String = BuildConfig.API_HOST
@ -31,4 +32,5 @@ class BuildConfigImpl : IBuildConfigProvider {
override fun getVApiHost(): String = BuildConfig.VAPI_HOST
override fun getVDevApiHost(): String = BuildConfig.DEV_VAPI_HOST
override fun getLogProducerProject(): String = BuildConfig.LOG_HUB_PROJECT
}

View File

@ -259,6 +259,7 @@ public class LogUtils {
private static void uploadToReservation(JSONObject object) {
Context context = HaloApp.getInstance().getApplication();
try {
object.put(KEY_EVENT, "appointment");
object.put("version", PackageUtils.getGhVersionName());
object.put("channel", HaloApp.getInstance().getChannel());
object.put("dia", MetaUtil.getBase64EncodedAndroidId());

View File

@ -65,6 +65,7 @@ import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode
import splitties.views.dsl.core.endMargin
import java.lang.ref.WeakReference
import java.util.*
import java.util.concurrent.TimeUnit
import kotlin.math.abs
@ -141,10 +142,10 @@ class HaloPersonalFragment : BaseLazyFragment() {
if (DarkModeUtils.isFollowSystemDarkModeFromSp()) {
DialogHelper.showDialog(
context = requireContext(),
title = "提示",
content = "切换模式后,将暂时关闭深色模式跟随系统切换功能,您可以前往“我的光环-设置”再次开启。",
confirmText = "确定",
cancelText = "取消",
title = getString(R.string.hint),
content = getString(R.string.switch_theme_mode_dialog_content),
confirmText = getString(R.string.confirm),
cancelText = getString(R.string.cancel),
confirmClickCallback = {
NewFlatLogUtils.logHaloSelfNightModeOsDialog("确定")
DarkModeUtils.updateAppDarkModeStatusToSp(!mIsDarkModeOn)
@ -356,9 +357,9 @@ class HaloPersonalFragment : BaseLazyFragment() {
) { badgeEntities: List<BadgeEntity> ->
mStubBinding.personalBadgeIcon.setImageURI("")
if (badgeEntities.isEmpty()) {
mStubBinding.personalBadgeCountTv.text = "我的徽章"
mStubBinding.personalBadgeCountTv.text = getString(R.string.my_badge)
} else {
mStubBinding.personalBadgeCountTv.text = "${badgeEntities.size} 徽章"
mStubBinding.personalBadgeCountTv.text = getString(R.string.badge_count, badgeEntities.size)
for ((_, _, icon, name, _, wear, _, actions) in badgeEntities) {
if (wear) {
ImageUtils.display(
@ -404,9 +405,9 @@ class HaloPersonalFragment : BaseLazyFragment() {
}
mHaloPersonalViewModel.applyOrReceiveBadge(badge.id, {
if ("self" == badge.receive?.type) {
ToastUtils.showToast("领取成功")
ToastUtils.showToast(getString(R.string.ling_sucessfully_toast))
} else {
ToastUtils.showToast("申请成功")
ToastUtils.showToast(getString(R.string.apply_successfully_toast))
}
// 跳转到徽章详情
DirectUtils.directToBadgeDetail(
@ -416,9 +417,9 @@ class HaloPersonalFragment : BaseLazyFragment() {
)
}, {
if ("self" == badge.receive?.type) {
ToastUtils.showToast("领取失败")
ToastUtils.showToast(getString(R.string.ling_failed_toast))
} else {
ToastUtils.showToast("申请失败")
ToastUtils.showToast(getString(R.string.apply_failed_toast))
}
})
}
@ -504,7 +505,7 @@ class HaloPersonalFragment : BaseLazyFragment() {
} else {
DialogUtils.showSignDialog(
context,
"今天已签到,明天再来吧~",
getString(R.string.sign_dialog_content_3),
getString(R.string.sign_dialog_content, signEntity.serialSign),
getString(R.string.sign_dialog_content2, signEntity.experience),
getSignSkipText(signEntity.title)
@ -522,7 +523,7 @@ class HaloPersonalFragment : BaseLazyFragment() {
}
private fun getSignSkipText(text: String): String =
if (TextUtils.isEmpty(text)) "去首页看看" else text
if (TextUtils.isEmpty(text)) getString(R.string.go_to_home) else text
@SuppressLint("SetTextI18n")
private fun changeLoginState(isLogin: Boolean) {
@ -590,8 +591,8 @@ class HaloPersonalFragment : BaseLazyFragment() {
}
mStubBinding.userIdTv.textSize = 11F
mStubBinding.personalUserName.text = "立即登录"
mStubBinding.userIdTv.text = "解锁更多精彩内容"
mStubBinding.personalUserName.text = getString(R.string.login_immediately)
mStubBinding.userIdTv.text = getString(R.string.login_immediately_hint)
if (mStubBinding.loginMessageHint.visibility == View.VISIBLE) {
mStubBinding.loginMessageHint.visibility = View.GONE
@ -679,20 +680,24 @@ class HaloPersonalFragment : BaseLazyFragment() {
}
}
mStubBinding.feedbackItem.run {
titleTv.text = "帮助与反馈"
titleTv.text = getString(R.string.help_and_feedback)
iconIv.setImageResource(R.drawable.ic_personal_feedback)
root.setOnClickListener {
NewFlatLogUtils.logHaloSelfClick("其他功能", "帮助与反馈")
DirectUtils.directToHelpAndFeedback(requireContext())
}
// 港澳台APP不显示帮助与反馈
root.goneIf(EnvHelper.isGATApp)
}
mStubBinding.shareGhItem.run {
titleTv.text = "分享光环"
titleTv.text = getString(R.string.share_halo)
iconIv.setImageResource(R.drawable.ic_personal_share)
root.setOnClickListener {
NewFlatLogUtils.logHaloSelfClick("其他功能", "分享光环")
startActivity(ShareGhActivity.getIntent(requireContext()))
}
// 港澳台APP不显示分享光环
root.goneIf(EnvHelper.isGATApp)
}
mStubBinding.userProtocolItem.run {
titleTv.text = getString(R.string.setting_user_protocol)

View File

@ -50,6 +50,7 @@ import com.gh.gamecenter.common.image.EmptyDecoder;
import com.gh.gamecenter.common.tracker.Tracker;
import com.gh.gamecenter.common.utils.DarkModeUtils;
import com.gh.gamecenter.common.utils.DeviceUtils;
import com.gh.gamecenter.common.utils.EnvHelper;
import com.gh.gamecenter.common.utils.ExtensionsKt;
import com.gh.gamecenter.common.utils.ImageUtils;
import com.gh.gamecenter.common.utils.PackageFlavorHelper;
@ -297,11 +298,15 @@ public class HaloApp extends MultiDexApplication {
// 获取/更新 GID 和 读 SP 的操作不需要 delay
DataUtils.getGid();
OAIDHelper.INSTANCE.getOAID(this, s -> {
setOAID(s);
MetaUtil.INSTANCE.refreshMeta();
return null;
});
// https://jira.shanqu.cc/browse/GHZS-3765
// 港澳APP去掉oaid的获取
if (!EnvHelper.isGATApp()) {
OAIDHelper.INSTANCE.getOAID(this, s -> {
setOAID(s);
MetaUtil.INSTANCE.refreshMeta();
return null;
});
}
// 获取 settings 配置
ExtensionsKt.doOnMainProcessOnly(this, com.gh.common.constant.Config::getGhzsSettings);

View File

@ -0,0 +1,538 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">光環助手</string>
<!-- OkHttp MockWebServer 會影響 LeakCanary 的使用,這裏是一個 workaround -->
<!-- https://github.com/square/leakcanary/commit/9f932016d49c44250f8c8e4651a862ac537eb1e9 -->
<string name="leak_canary_test_class_name">assertk.Assert</string>
<string name="hundred_percent">100%</string>
<string name="dialog_nickname_title">修改昵稱</string>
<string name="dialog_nickname_input">請輸入昵稱</string>
<string name="dialog_nickname_cancel">取消</string>
<string name="dialog_nickname_confirm">保存</string>
<string name="string_description">我是字符串</string>
<string name="title_concerngame_mine">我關註的遊戲</string>
<string name="concern_game_favor">以下是已關註的遊戲</string>
<string name="download_startall">全部開始</string>
<string name="search_searching">搜索中...</string>
<string name="search_hot">熱門搜索</string>
<string name="search_hot_tag">熱門標簽</string>
<string name="search_history">歷史搜索</string>
<string name="news_concenrn_game_mine">我關註的遊戲</string>
<string name="news_search_input">請輸入搜索關鍵字</string>
<string name="news_search">搜索</string>
<string name="game_percentage">44.5%</string>
<string name="game_downloading_formattable">官方版 1.2MB/s(剩3分30秒)</string>
<string name="tap_to_reload">加載失敗,點擊重試</string>
<string name="news_info">新手攻略</string>
<string name="news_all">全部</string>
<string name="game_detail_concern">關註</string>
<string name="home_search">搜索遊戲</string>
<string name="libao_copy">復製</string>
<string name="libao_search_input">請輸入關鍵字</string>
<string name="libao_search">搜索</string>
<string name="loading_complete">加載完畢</string>
<string name="news_activity">活動</string>
<string name="game_empty_second">沒有找到符合條件的遊戲~</string>
<string name="game_empty_second_desc">換個條件篩選一下試試看吧</string>
<string name="my_game_comment_no_data_desc">趕緊發表一個評論吧~</string>
<string name="vote_btn">投票</string>
<string name="clean_scanning">正在掃描手機中的安裝包</string>
<string name="clean_scan_stop">停止掃描</string>
<string name="concern_recommend">熱門遊戲推薦</string>
<string name="download_game">遊戲下載</string>
<string name="download_tab_update">遊戲更新</string>
<string name="download_tab_installed">已安裝</string>
<string name="game_detail_dongtai">專區</string>
<string name="game_detail_cloud_archive">雲存檔</string>
<string name="game_detail_desc">詳情</string>
<string name="game_detail_comment">評價</string>
<string name="game_detail_bbs">論壇</string>
<string name="game_detail_search_input">請輸入搜索關鍵字</string>
<string name="game_detail_search">搜索</string>
<string name="libao_history">歷史禮包</string>
<string name="libao_newest">最新</string>
<string name="libao_concern">關註</string>
<string name="libao_chunhaoxiang">存號箱</string>
<string name="main_game">遊戲</string>
<string name="main_home">首頁</string>
<string name="main_personal">我的光環</string>
<string name="message_detail_comment_hint">說點什麽吧</string>
<string name="news_detail_send_comment">發表評論...</string>
<string name="select_from_media_library">從手機相冊中選擇</string>
<string name="setting_user_protocol">用戶協議</string>
<string name="setting_privacy_policy">隱私政策</string>
<string name="setting_info_list">個人信息收集清單</string>
<string name="setting_sdk_list">接入第三方SDK目錄</string>
<string name="setting_permission_and_usage">權限申請與使用情況說明</string>
<string name="setting_children_policy">兒童隱私保護聲明</string>
<string name="setting_cache_size_def">0.0M</string>
<string name="sharecard_qrcode_hint">長按二維碼查看詳情</string>
<string name="sharecard_from">分享自『光環助手』App</string>
<string name="vote_add">添加選項</string>
<string name="vote_web_comment">我要評論</string>
<string name="dialog_updating">正在為您更新,請耐心等待</string>
<string name="dialog_oversea_hint">%s下載地址:</string>
<string name="dialog_land_page_address_hint">%s下載地址:</string>
<string name="dialog_land_page_address_confirm">前往第三方網站下載遊戲</string>
<string name="dialog_hint_title">提示標題</string>
<string name="dialog_hint_content">提示內容</string>
<string name="dialog_hint_confirm">知道了</string>
<string name="loading_error_network">網絡錯誤,點擊重試!</string>
<string name="comment_empty">目前還沒有評論</string>
<string name="comment_nomore">沒有更多評論啦</string>
<string name="title_clean_apk">安裝包清理</string>
<string name="title_choose_apk">選擇安裝包</string>
<string name="title_comment_detail">查看對話</string>
<string name="title_crop_image">裁剪圖片</string>
<string name="title_kaifu">開服表</string>
<string name="title_message_detail">評論詳情</string>
<string name="title_select_portrait">選擇頭像</string>
<string name="title_settings">設置</string>
<string name="title_share_card">分享卡片</string>
<string name="title_share_card_pic">分享卡片</string>
<string name="title_share_gh">分享光環</string>
<string name="title_vote_formatable">%s - 求版本</string>
<string name="title_game_upload">遊戲上傳</string>
<string name="title_history_apk">歷史版本</string>
<string name="title_my_game_rating">我的遊戲評論</string>
<string name="news_zixun">資訊</string>
<string name="news_gonglve">攻略</string>
<string name="title_downloadmanager">下載管理</string>
<string name="title_userinfo">編輯資料</string>
<string name="clean_apk_deleteall">一鍵刪除(%1$d個釋放%2$s</string>
<string name="menu_text_save">保存</string>
<string-array name="weekdays">
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
<item></item>
</string-array>
<string name="nickname_hint">起一個難忘的名字吧</string>
<string name="title_select_region">選擇地區</string>
<string name="share">分享</string>
<string name="change_img">換圖</string>
<string name="userinfo_icon">頭像</string>
<string name="userinfo_nickname">昵稱</string>
<string name="userinfo_region">地區</string>
<string name="userinfo_gender">性別</string>
<string name="userinfo_edit_man"></string>
<string name="userinfo_edit_woman"></string>
<string name="userinfo_edit_contact_hint">輸入你的常用QQ或者郵箱</string>
<string name="userinfo_edit_contact_explain">聯系方式僅用於提交反饋時自動填寫相關信息,方便客服及時跟進和答復。</string>
<string name="userinfo_edit_id_card_name_hint">請輸真實姓名</string>
<string name="userinfo_edit_id_card_hint">請輸入18位真實身份證號碼</string>
<string name="userinfo_edit_id_card_explain">根據國家網信辦《移動互聯網應用程序信息服務管理規定》要求內容與社區類移動APP產品必須完善實名認證機製維護健康、有序的信息環境以及保障網絡安全。</string>
<string name="collection_toolkit">工具</string>
<string name="collection_article">帖子</string>
<string name="collection_info">資訊</string>
<string name="video">視頻</string>
<string name="game_collection">遊戲單</string>
<string name="article_gonglve_hint">原創</string>
<string name="web_newscomment_count">"查看評論(%d</string>
<string name="libaodetail_content">禮包內容</string>
<string name="libaodetail_rule">領取規則</string>
<string name="libaodetail_des">使用說明</string>
<string name="comment_failure_hint">評論加載失敗, 請檢查網絡設置</string>
<string name="cancel_concern">取消關註</string>
<string name="concern_cancel">取消關註</string>
<string name="concern_already_cancel">已取消關註</string>
<string name="cancel_concern_failure">取消關註失敗</string>
<string name="taoed_code">已淘號:<Data><![CDATA[<font color="#ffb13c">%1$s</font>]]></Data></string>
<string name="linged_code">已領取:<Data><![CDATA[<font color="#1383EB">%1$s</font>]]></Data></string>
<string name="linged_copy_dialog">禮包碼:<Data><![CDATA[<font color="#1383EB">%1$s</font>復製成功<br/>請盡快進入遊戲兌換]]></Data></string>
<string name="taoed_copy_dialog">禮包碼:<Data><![CDATA[<font color="#ffb13c">%1$s</font>復製成功<br/>淘號禮包不保證可用,請盡快進入遊戲嘗試兌換]]></Data></string>
<string name="libao_delete_dialog">禮包碼刪除之後<Data><![CDATA[<font color="#ff0000">不可恢復</font>,請確定您已經兌換過該禮包]]></Data></string>
<string name="ling_rules_dialog">請先<Data><![CDATA[<font color="#06D0A8">安裝《%1$s》 %2$s</font>]]></Data></string>
<string name="libao_install_hint"><Data><![CDATA[領取條件:<font color="#06D0A8">安裝《%1$s》</font>]]></Data></string>
<string name="libao_install_hint_platform"><Data><![CDATA[領取條件:<font color="#06D0A8">安裝《%1$s》%2$s</font>]]></Data></string>
<string name="delete_apk_hint"><Data><![CDATA[你選擇的安裝包中包含 <font color="#ff0000">未安裝</font> 的應用,確定刪除嗎?]]></Data></string>
<string name="clean_apk_count">找到%1$d個安裝包占用<Data><![CDATA[<font color="#ff4147">%2$s</font>空間]]></Data></string>
<string name="libao_detail">禮包詳情</string>
<string name="ghzs_id">5618b86e8ab49e17088b4575</string> <!--光環助手(遊戲)ID-->
<string name="clean_apk_version">版本V%1$s | %2$s</string>
<string name="regulation_link"><u>了解更多</u></string>
<string name="regulation_hint">小助手邀你共建良好的社區氛圍,請通過「光環助手禮儀測試」後發言。</string>
<string name="search_hint">請輸入關鍵字</string>
<string name="tools_suggestion_hint">需要什麽工具,點擊這裏反饋</string>
<string name="game_suggestion_hint">此遊戲有問題?點擊反饋</string>
<string name="comment_hot">熱門評論</string>
<string name="comment_new">最新評論</string>
<string name="download_all_push">全部暫停</string>
<string name="download_all_start">全部開始</string>
<string name="libao_coming">未開搶</string>
<string name="libao_ling">領取</string>
<string name="libao_tao">淘號</string>
<string name="libao_used_up">已領光</string>
<string name="libao_unshelve">已下架</string>
<string name="libao_repeat_ling">再領</string>
<string name="libao_repeat_tao">再淘</string>
<string name="libao_check">查看</string>
<string name="libao_activity_grant">activity_grant</string>
<string name="installed">已安裝</string>
<string name="installed_not">未安裝</string>
<string name="search_bottom_hint">找不到想要的遊戲?</string>
<string name="article_top">置頂</string>
<string name="article_hot">熱門</string>
<string name="vote_count">%1$d票</string>
<string name="menu_search">搜索</string>
<string name="concern_cancel_failure">取消失敗,請稍後再試</string>
<string name="third_party_sdk_title">光環助手接入第三方SDK目錄</string>
<string name="third_party_sdk_statement_url">https://resource.ghzs.com/page/third_party_sdk/index.html</string>
<string name="comment_rules_title">光環助手評論規則</string>
<string name="comment_rules_url">https://resource.ghzs.com/page/rule_page/comment_rules.html</string>
<string name="collection_cancel">取消收藏</string>
<string name="collection_cancel_failure">取消收藏失敗</string>
<string name="collection_success">收藏成功</string>
<string name="collection_failure">收藏失敗</string>
<string name="vote_post">提交中...</string>
<string name="vote_success">投票成功</string>
<string name="vote_empty_hint">請輸入名字</string>
<string name="save_pic">保存圖片</string>
<string name="title_gender_select">選擇性別</string>
<string name="title_nickname_change">修改昵稱</string>
<string name="title_contact">聯系方式</string>
<string name="nickname_empty_hint">昵稱不能為空</string>
<string name="gender_male"></string>
<string name="gender_female"></string>
<string name="apk_max_size_hint">安裝包不能大於%1$dGB請重新選擇</string>
<string name="collection_title">我的收藏</string>
<string name="comment_failed_toofrequent">別話癆哦~休息一會再來評論吧~</string>
<string name="comment_failed_userblocked">賬號異常,暫時無法發表內容</string>
<string name="comment_failed_illegal">評論內容可能包括敏感信息,請修改後再發表</string>
<string name="post_failure_hint">提交失敗,請檢查網絡設置</string>
<string name="comment_repty_hint">回復%1$s</string>
<string name="post_dialog_hint">正在提交</string>
<string name="vote_illegal_hint">包含違規內容,請修改後重試哦</string>
<string name="userinfo_region_empty">未選擇</string>
<string name="userinfo_gender_empty">未選擇</string>
<string name="userinfo_contact_empty">未填寫</string>
<string name="main_bbs">社區</string>
<string name="load_history_libao_hint">上拉查看歷史禮包</string>
<string name="game_collection_load_over_hint">創作不易,留言點贊一下 </string>
<string name="load_over_with_click_hint">到底了哦~點擊回到頂部</string>
<string name="invite">邀請</string>
<string name="ask_answer_count">%1$s 回答</string>
<string name="ask_vote_count">%1$s 贊同</string>
<string name="voted">已投票</string>
<string name="vote">投票</string>
<string name="title_libao">禮包中心</string>
<string name="invited">已邀請</string>
<string name="menu_share">分享</string>
<string name="menu_more">更多</string>
<string name="menu_collect">收藏</string>
<string name="menu_concern">關註</string>
<string name="answer_detail_title">光環助手 - 回答詳情</string>
<string name="invite_success">邀請成功</string>
<string name="my_forum">我的論壇</string>
<string name="concerned">已關註</string>
<string name="answer">回答</string>
<string name="answer_post">發布</string>
<string name="answer_placeholder">請撰寫回答...</string>
<string name="question_detail_invite">邀請回答</string>
<string name="answer_edit_title">撰寫回答</string>
<string name="answer_patch_title">修改回答</string>
<string name="ask_vote_hint">已經點贊了喲~</string>
<string name="ask_vote_limit_hint">不能重復點贊哦</string>
<string name="ask_share_invite_title">%1$s邀請你回答%2$s</string>
<string name="ask_share_answers_title">%1$s回答了%2$s(%3$d個贊同)</string>
<string name="share_ghzs_logo">https://and-static.ghzs.com/app-logo.png</string>
<string name="ask_share_default_summary">光環助手,快樂前行的遊戲問答社區</string>
<string name="discover_game_trends">遊戲動態</string>
<string name="info_center_title">資訊中心</string>
<string name="my_game_dynamics_no_data">這兒還沒有內容噢~</string>
<string name="my_game_dynamics_no_data_desc">關註幾個可能感興趣的遊戲吧</string>
<string name="post_img">圖片上傳中...</string>
<string name="share_invite_url">https://www.ghzs.com/question/%1$s?invite=%2$s</string>
<string name="share_questions_url">https://m.ghzs666.com/question/%1$s</string>
<string name="share_questions_url_dev">https://www.ghzs.com/question/%1$s</string>
<string name="share_answers_url">https://m.ghzs666.com/answer/%1$s</string>
<string name="share_answers_url_dev">https://www.ghzs.com/question/%1$s?answer=%2$s</string>
<string name="login_failure">登錄失敗</string>
<string name="questionsdetail_max_tag_hint">最多只能選擇5個標簽</string>
<string name="answer_edit_max_img_hint">至多上傳70張</string>
<string name="answer_edit_max_video_hint">至多上傳20個</string>
<string name="ask_search_questions">提問</string>
<string name="answer_beneath_length_limit">至少輸入6個字</string>
<string name="sign_title">簽到成功,獲得經驗:<Data><![CDATA[<font color="#1383EB">1</font>]]></Data></string>
<string name="sign_dialog_content">已連續簽到 <Data><![CDATA[<font color="#1383EB">%1$d</font> 天]]></Data></string>
<string name="sign_dialog_content2"><Data><![CDATA[累計經驗: <font color="#1383EB">%1$d</font>]]></Data></string>
<string name="copyright_footnote">著作權歸作者所有©光環助手</string>
<string name="kaifu_add_hint">操作說明:\n1.第1行是當前開服表上最新的開服信息僅供參考\n2.點擊第1行的內容會自動在下方表格填入對應的內容\n3.自動填入內容時時間保留當天名字會自動按數字加1\n4.填入前綴名和服務器名稱,提交後會自動合成名字,無需填寫 「| 」\n5.時間、前綴名、服務器名稱必須同時填寫,否則提交後不會新增開服</string>
<string name="media_image_hint">找不到圖片管理器</string>
<string name="userinfo_introduce">個性簽名</string>
<string name="introduce_hint">介紹下自己吧</string>
<string name="myself">自己</string>
<string name="upload_game_label">遊戲標簽<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_icon">遊戲圖標<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_pkg">安裝包<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_intro">遊戲簡介<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_pic">遊戲圖片<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="article_detail_empty_comment">還沒有人評論噢~</string>
<string name="article_detail_empty_comment_desc">說說你的看法吧</string>
<string name="share_community_article_url">https://m.ghzs666.com/bbs/thread-%1$s</string>
<string name="share_community_video_url">https://m.ghzs666.com/bbs/video-%1$s</string>
<string name="share_game_url">https://m.ghzs666.com/%1$s</string>
<string name="share_news_article_url">https://m.ghzs666.com/article/%1$s</string>
<string name="comment_hide_hint">該內容已被刪除</string>
<string name="personal_home_rating_command">%1$s 在 <Data><![CDATA[<font color="#1383EB">%2$s</font>]]></Data> 發表了評論</string>
<string name="upload_game_policy_url">https://resource.ghzs.com/page/game_rule/game_rule.html</string>
<string name="info_list_url">https://resource.ghzs.com/page/privacy_policies/Personal_information_collection_list.html</string>
<string name="sdk_list_url">https://resource.ghzs.com/page/privacy_policies/sdk_directory.html</string>
<string name="permission_and_usage_url">https://resource.ghzs.com/page/privacy_policies/Permission_Usage.html</string>
<string name="children_policy_url">https://resource.junrui66.com/page/privacy_policies/Child_privacy_statement_GA.html</string>
<string name="community_rule_title">問答版塊規則</string>
<string name="community_rule_url">https://resource.ghzs.com/page/section_rule/section_rule.html</string>
<string name="upload_protocol">我已閱讀並同意《視頻上傳服務準則》</string>
<string name="video_upload_exposure_hint">如何讓你的視頻獲得更多曝光? </string>
<string name="history_apk_hint">安裝之前,請先卸載手機中已有的較高版本</string>
<string name="upload_game_name_hint">遊戲<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_title_hint">標題<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_category_hint">分類<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_game_video_source_hint">視頻來源<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="upload_protocol_url"> https://resource.ghzs.com/page/video_rule/video_rule.html</string>
<string name="upload_protocol_title">視頻上傳服務準則</string>
<string name="video_upload_draft_dialog_content">草稿保存之後會關閉視頻上傳頁面!下次可在<Data><![CDATA[<font color="#151515"><b>視頻投稿-草稿箱</b></font>]]></Data>中繼續上傳</string>
<string name="invite_more_players">你還可以搜索邀請更多玩家</string>
<string name="badge_center">徽章中心</string>
<string name="receive_badge">領取徽章</string>
<string name="apply_badge">申請領取</string>
<string name="view_badge">前往查看</string>
<string name="recent_visit">最近來訪</string>
<string name="today_visit">今日來訪</string>
<string name="follow">關註</string>
<string name="fans">粉絲</string>
<string name="agree">贊同</string>
<string name="pass_regulation">祝賀!童鞋\n你已通過禮儀測試</string>
<string name="dialog_ok">好的</string>
<string name="empty"></string>
<string name="change_bg_tips">點擊更換背景</string>
<string name="seek_game">求遊戲</string>
<string name="seek_function">求功能</string>
<string name="dialog_shortcut_content1">已嘗試添加到桌面</string>
<string name="dialog_shortcut_content2">如桌面未出現圖標,請開啟桌面快捷方式權限</string>
<string name="report_reason_title">舉報原因</string>
<string name="report_reason_one">頭像、昵稱、背景圖、簽名含有違規信息</string>
<string name="report_reason_two">發布大量垃圾或廣告信息</string>
<string name="report_reason_three">辱罵、歧視、挑釁等不友善的內容</string>
<string name="report_reason_four">暴力、色情、政治等違法信息</string>
<string name="report_reason_other">其他原因</string>
<string name="report_reason_other_hint">請填寫其他舉報原因</string>
<string name="report_reason_other_title">其他舉報原因</string>
<string name="report_reason_other_negative">返回</string>
<string name="report_reason_other_positive">提交</string>
<string name="delivery_info">收貨信息</string>
<string name="address_info">實物獎品收貨地址</string>
<string name="prize_info">虛擬獎品領取方式</string>
<string name="withdraw_info">活動獎金領取方式</string>
<string name="fail_status">審核不通過</string>
<string name="content_pending_status">內容審核中</string>
<string name="follow_status">關註的人</string>
<string name="delete_game_comment">刪除遊戲評論後,評論下所有的回復都將被刪除</string>
<string name="delete_game_comment_reply">確定要刪除當前評論嗎?</string>
<string name="bbs_cert_complete">您已完成社區交流身份認證,該信息僅自己可見</string>
<string name="bbs_cert_real_name_complete">您已完成實名認證,無需再驗證</string>
<string name="bbs_cert_bind_phone_complete">您已綁定手機號,無需再驗證</string>
<string name="game_detail_cloud_archive_tip">使用存檔前請保證遊戲退出,避免存檔無法使用</string>
<string name="game_detail_cloud_archive_search_hint">請輸入存檔關鍵詞</string>
<string name="game_detail_cloud_archive_manage">我的存檔管理</string>
<string name="game_detail_cloud_archive_list_empty">沒有找到相關存檔~</string>
<string name="game_detail_cloud_archive_list_empty_desc">換個搜索詞試試看吧!</string>
<string name="cloud_archive">雲存檔</string>
<string name="speeder">變速器</string>
<string name="privacy_protect">隱私保護</string>
<string name="archive_download_fail">存檔下載失敗,請稍後再試~\n依然無效可反饋至客服</string>
<string name="archive_apply_fail">存檔讀取失敗,請稍後再試~\n依然無效可反饋至客服</string>
<string name="archive_apply">使用</string>
<string name="archive_download">下載</string>
<string name="archive_dialog_title">提示</string>
<string name="archive_vspace_dialog_content">該遊戲存檔僅支持暢玩助手啟動,請先下載暢玩助手並安裝遊戲</string>
<string name="archive_vspace_dialog_confirm">下載暢玩助手</string>
<string name="archive_download_dialog_content">該遊戲存檔僅支持暢玩助手啟動,請先安裝遊戲</string>
<string name="archive_download_dialog_confirm">安裝遊戲</string>
<string name="archive_apply_dialog_content">使用雲存檔後,將會覆蓋您暢玩助手內的相關遊戲進度,若您想保留自己的遊戲數據,請先上傳您當前的遊戲存檔後再使用</string>
<string name="realname_error_hint">您的實名認證未通過,請重新認證</string>
<string name="realname_success_badge_hint">您已完成實名認證,該信息僅自己可見</string>
<string name="realname_success_badge_hint_extra_adult">當前認証狀態:成年人</string>
<string name="realname_success_badge_hint_extra_underage">當前認証狀態:未成年</string>
<string name="realname_pending_badge_hint">實名信息認証中...</string>
<string name="realname_pending_badge_hint_extra">認証期間不影響您正常的遊戲體驗</string>
<string name="interested_game_footer_hint"><Data><![CDATA[<font color="#1383EB">設置偏好</font>]]></Data> ,讓推薦更懂你的心~</string>
<item name="download_item_type" type="id" />
<string-array name="rating_score_tip">
<item>無力吐槽</item>
<item>比較差</item>
<item>還算湊合</item>
<item>還不錯</item>
<item>完美,太棒了</item>
</string-array>
<string name="title_installed_game">將已安裝遊戲標記為玩過的遊戲</string>
<string name="dialog_reserve_title">你有<Data><![CDATA[<font color="#1383EB">%1$d</font>]]></Data>款預約的遊戲上線啦</string>
<string name="dialog_privacy_policy_content">歡迎您使用光環助手!\n在您使用光環助手之前請您認真閱讀《用戶協議》和《隱私政策》的全部內容以了解用戶權利義務和個人信息處理規則。主要內容向您說明如下\n1.為了正常地提供優質的產品服務,基於您的授權我們會獲取必要的個人信息,您有權拒絕或取消授權\n2.我們會采取合理的安全措施保護您的個人信息,防止數據被不當使用或未經授權的情況下被訪問、公開披露、使用、修改、損壞、丟失或泄漏。\n3.未經您同意,我們不會從第三方處獲取、共享或向其提供您的信息\n4.您可以查詢、更正、刪除您的個人信息,我們也提供賬戶註銷的渠道</string>
<string name="oversea_hint">此遊戲下載資源由第三方提供。若該資源侵犯了您的合法權益或違反了當地法規,請點擊頁面右上角-版權申訴,按指引發起申訴,我們會盡快聯系您並解決。</string>
<string name="rating_protection">遊戲停服更新維護中,為避免情緒化內容對遊戲評分帶來的影響,因此開啟停服保護功能。在停服保護狀態期間,所新增及修改發布的評分將不計入總分,所評分評論內容在展示上也會有文字提示告知其他玩家。\n\n感謝您的配合及諒解祝您遊戲愉快\n\n光環助手會持續關註產品建議及反饋如您在使用過程中有任何問題歡迎向我們反饋。</string>
<string name="teenager_mode_description">開啟青少年模式後,系統將自動關閉所有遊戲的下載功能,需要輸入密碼才能恢復使用\n\n開啟青少年模式需要先設置獨立密碼如忘記密碼可聯系客服申述重置\n\n青少年模式是光環助手響應國家政策為促進青少年健康成長的一種模式我們優先針對核心場景進行優化也將繼續致力於優化更多場景</string>
<string name="shortcut_title">添加桌面圖標</string>
<string name="shortcut_tips">檢測到光環助手未開啟創建圖標快捷方式,請前往系統設置開啟</string>
<string name="shortcut_positive">前往開啟</string>
<string name="shortcut_cancel">取消</string>
<string name="shortcut_create_success">桌面圖標創建成功~</string>
<string name="shortcut_create_failed">桌面圖標創建失敗</string>
<string name="shortcut_exist">桌面圖標已創建,無需重復!</string>
<string name="home_header_pulling">下拉刷新頁面</string>
<string name="home_header_release">松手刷新,繼續下拉有驚喜</string>
<string name="tag_img_url_id">tag_img_url_id</string>
<string name="libao_ling_time_infinitely">長期有效</string>
<string name="article_detail_more_top_title">置頂</string>
<string name="article_detail_more_delete_title">刪除</string>
<string name="article_detail_more_hide_title">隱藏</string>
<string name="article_detail_more_edit_activity_tag_title">修改活動標簽</string>
<string name="article_detail_more_select_title">加精選</string>
<string name="article_detail_more_unselect_title">取消精選</string>
<string name="article_detail_more_edit_title">修改</string>
<string name="article_detail_more_complaint_title">投訴</string>
<string name="article_detail_more_cancel_top_title">取消置頂</string>
<string name="article_detail_more_apply_select_title">申請加精</string>
<string name="article_detail_cancel_top_dialog_title">提示</string>
<string name="article_detail_cancel_top_dialog_hint">是否確認取消置頂此帖子</string>
<string name="article_detail_cancel_top_dialog_cancel">我再想想</string>
<string name="article_detail_cancel_top_dialog_confirm">取消置頂</string>
<string name="article_detail_cancel_top_success_toast">取消置頂成功</string>
<string name="article_detail_top_category_dialog_submit">提交</string>
<string name="article_detail_top_category_dialog_title">請選擇置頂類型</string>
<string name="article_detail_top_success_toast">置頂成功</string>
<string name="unsupported_browser_install_hint">此遊戲不支持瀏覽器安裝,已切換為助手安裝</string>
<string name="update_all_has_land_page_address_dialog_title">提示</string>
<string name="update_all_has_land_page_address_dialog_content">部分遊戲下載資源由第三方提供,此類遊戲無法自動更新,請手動點擊遊戲【更新】按鈕前往第三方網址更新遊戲</string>
<string name="update_all_has_land_page_address_dialog_confirm">我知道了</string>
<string name="miui_open_adb_hint">請查看關閉教程,先開啟開發者模式</string>
<string name="article_detail_content_forum_name">%1$s論壇</string>
<string name="article_detail_content_edit_time">發布於%1$s</string>
<string name="article_detail_comment_list_tab_title">評論 %1$d</string>
<string name="article_detail_related_content_vote_and_comment">點贊 %1$d · 評論 %2$d</string>
<string name="qgame_title">QQ小遊戲</string>
<string name="archive_limit_title">存檔數量已達上限</string>
<string name="archive_limit_description">請選擇替換覆蓋的存檔</string>
<string name="servers_calendar_subscribe">加入訂閱</string>
<string name="servers_calendar_subscribe_hint_1">訂閱開服表,訂閱後助你獲得一手新服信息</string>
<string name="servers_calendar_subscribe_hint_2">通知時間:8:00、12:00、18:00</string>
<string name="servers_calendar_more_dialog_title">操作</string>
<string name="servers_calendar_dialog_unsubscribe_title">取消訂閱</string>
<string name="servers_calendar_dialog_unsubscribe_hint">不再接收開服消息</string>
<string name="servers_calendar_more_dialog_cancel_title">取消</string>
<string name="servers_calendar_subscription_dialog_wechat_content">遊戲髮佈新服信息時,您將在消息中心收到通知。爲了避免錯過通知,建議您開啟微信公衆號提醒</string>
<string name="servers_calendar_subscription_dialog_content">遊戲髮佈新服信息時,您將在消息中心和微信公衆號收到通知,不會錯過任何開服的消息</string>
<string name="servers_calendar_subscription_dialog_title">遊戲訂閱成功</string>
<string name="servers_calendar_subscription_dialog_confirm">我知道了</string>
<string name="servers_calendar_remind_time_setting_dialog_title">設置提醒時間</string>
<string name="servers_calendar_subscribed_game_management">訂閱遊戲管理</string>
<string name="servers_calendar_list_tab">開服表</string>
<string name="servers_calendar_remind_list_tab">開服提醒</string>
<string name="servers_calendar_subscription_title">開服訂閱</string>
<string name="servers_calendar_subscribed_game_title">遊戲訂閱</string>
<string name="servers_calendar_time_setting_dialog_title">設置時間</string>
<string name="servers_calendar_time_setting_dialog_cancel">取消</string>
<string name="servers_calendar_time_setting_dialog_confirm">確認</string>
<string name="servers_detail_no_data_hint">當前日期暫無開服信息</string>
<string name="servers_detail_no_data_content">遊戲髮佈當天新服時提醒</string>
<string name="servers_detail_app_remind_title">APP髮送提醒信息</string>
<string name="servers_detail_wechat_remind_title">微信髮送提醒信息</string>
<string name="servers_detail_add_remind">添加提醒</string>
<string name="servers_detail_cancel_remind">取消提醒</string>
<string name="servers_detail_remind_title">提醒詳情</string>
<string name="servers_detail_server_title">區服名稱</string>
<string name="servers_calendar_list_server_count">+%1$d</string>
<string name="servers_calendar_list_date_today">今天</string>
<string name="servers_calendar_list_date_tomorrow">明天</string>
<string name="servers_calendar_remind_status_todo">待提醒</string>
<string name="servers_calendar_remind_status_coming">即將開服</string>
<string name="servers_calendar_remind_status_opened">已開服</string>
<string name="servers_calendar_remind_status_has_new">有新服</string>
<string name="servers_calendar_remind_status_expired">已過期</string>
<string name="servers_calendar_remind_list_server_name">%1$s %2$s</string>
<string name="servers_subscribed_game_subscribed">已訂閱</string>
<string name="servers_subscribed_game_unsubscribe_dialog_title">取消訂閱</string>
<string name="servers_subscribed_game_unsubscribe_dialog_content">確定取消訂閱嗎</string>
<string name="servers_subscribed_game_unsubscribe_dialog_confirm">確定</string>
<string name="servers_subscribed_game_unsubscribe_dialog_cancel">取消</string>
<string name="servers_calendar_remind_time_out_of_date">您添加的提醒時間已過期!</string>
<string name="servers_calendar_no_remind_checked_hint">至少勾選一種提醒方式</string>
<string name="servers_calendar_time_out_of_date">區服已開服,不能設置提醒</string>
<string name="network_error_hint">網絡異常,請檢查手機網絡狀態</string>
<string name="share_halo">分享光環</string>
<string name="go_to_home">去首頁看看</string>
<string name="sign_dialog_content_3">今天已簽到,明天再來吧~</string>
<string name="ling_failed_toast">領取失敗</string>
<string name="apply_failed_toast">申請失敗</string>
<string name="ling_sucessfully_toast">領取成功</string>
<string name="apply_successfully_toast">申請成功</string>
<string name="my_badge">我的徽章</string>
<string name="badge_count">%1$d 徽章</string>
<string name="switch_theme_mode_dialog_content">切換模式後,將暫時關閉深色模式跟隨系統切換功能,您可以前往「我的光環-設置」再次開啟。</string>
<string name="login_immediately">立即登錄</string>
<string name="login_immediately_hint">解鎖更多精彩內容</string>
<string name="help_and_feedback">幫助與反饋</string>
<string name="direct_to_external_browser_failed_toast">打開外部瀏覽器失敗,已復製鏈接到粘貼板,請自行打開鏈接</string>
</resources>

View File

@ -472,6 +472,19 @@
<string name="article_detail_comment_list_tab_title">评论 %1$d</string>
<string name="article_detail_related_content_vote_and_comment">点赞 %1$d · 评论 %2$d</string>
<string name="qgame_title">QQ小游戏</string>
<string name="share_halo">分享光环</string>
<string name="go_to_home">去首页看看</string>
<string name="sign_dialog_content_3">今天已签到,明天再来吧~</string>
<string name="ling_failed_toast">领取失败</string>
<string name="apply_failed_toast">申请失败</string>
<string name="ling_sucessfully_toast">领取成功</string>
<string name="apply_successfully_toast">申请成功</string>
<string name="my_badge">我的徽章</string>
<string name="badge_count">%1$d 徽章</string>
<string name="switch_theme_mode_dialog_content">切换模式后,将暂时关闭深色模式跟随系统切换功能,您可以前往“我的光环-设置”再次开启。</string>
<string name="login_immediately">立即登录</string>
<string name="login_immediately_hint">解锁更多精彩内容</string>
<string name="help_and_feedback">帮助与反馈</string>
<string name="archive_limit_title">存档数量已达上限</string>
<string name="archive_limit_description">请选择替换覆盖的存档</string>
<string name="servers_calendar_subscribe">加入订阅</string>

View File

@ -10,6 +10,7 @@ ext {
versionCode = 999
versionName = "5.32.9"
applicationId = "com.gh.gamecenter"
applicationIdGat = "com.gh.gamecenter.intl"
// AndroidX
core = "1.3.2"
@ -140,4 +141,6 @@ ext {
qGameVersion = "1.57.14"
qGameAdVersion = "4.520.1390"
blankjUtilCodex = "1.30.4"
}

View File

@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">幫助與反饋模塊</string>
<string name="suggest_content_hint">請詳細描述你遇到的問題\\n↓↓你還可以上傳截圖</string>
<string name="suggest_select_game">指定遊戲</string>
<string name="suggest_post">提交</string>
<string name="suggest_leave_contact">QQ、郵箱或手機</string>
<string name="suggest_select_hint">歡迎暢所欲言,光環助手會努力變得更好</string>
<string name="suggest_type_normal">普通反饋</string>
<string name="suggest_type_function">功能收錄</string>
<string name="suggest_function_hint">遊戲加速、單機功能訂製收錄</string>
<string name="suggest_type_crash">發生閃退</string>
<string name="suggest_hint_crash">遊戲/助手自動退出或重啟,點擊這裏反饋</string>
<string name="suggest_type_cwzs_question">暢玩問題</string>
<string name="suggest_hint_cwzs_question">暢玩遊戲發生例如閃退等問題,點擊這裏反饋</string>
<string name="suggest_type_game">遊戲問題</string>
<string name="suggest_hint_game">玩遊戲過程中遇到的問題</string>
<string name="suggest_type_collect">收錄更新</string>
<string name="suggest_hint_collect">遊戲版本太低、沒有想要的遊戲,點擊這裏提交</string>
<string name="suggest_type_post">帖子投稿</string>
<string name="suggest_type_copyright">版權申訴</string>
<string name="suggest_hint_post">原創或轉發,我們都歡迎</string>
<string name="suggest_hint_copyright">如果您有版權方面的問題,請點擊這裏提交申訴</string>
<string name="suggest_contact">光環助手官方交流Q群</string>
<string name="suggest_contact_qq">367541038</string>
<string name="dialog_feedback_doing">正在反饋...</string>
<string-array name="suggest_function_type">
<item>加速跳過</item>
<item>單機功能</item>
<item>替換素材</item>
</string-array>
<string name="suggestion_problem_type">問題類型<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_problem_des">問題描述<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_function">功能需求<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_select_game">選擇遊戲<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_copyright_identity">版權方身份<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_copyright_credentials">版權方證件<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_copyright_credentials_pic">證件正反面照片<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_copyright_company_pic">公司或組織證件照片<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_copyright_app_name">侵權的應用<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_copyright_app_screenshots">侵權應用截圖<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="suggestion_contact">聯系方式<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
</resources>

View File

@ -0,0 +1,3 @@
<resources>
<string name="app_name" translatable="false">PKG</string>
</resources>

View File

@ -0,0 +1,9 @@
<resources>
<string name="app_name" translatable="false">realname-window</string>
<string name="real_name_title" translatable="false">遊戲健康提示</string>
<string name="back_game" translatable="false">退出遊戲</string>
<string name="real_name_content" translatable="false">你當前為未成年賬號已被納入防沈迷系統。根據國家相關規定網絡遊戲僅可在周五、周六、周日和法定節假日每日20時至21時向未成年人提供60分鐘網絡遊戲服務。當前時間段無法遊玩請合理安排時間</string>
<string name="input_content" translatable="false">根據《國家新聞出版署關於防止未成年人沈迷網絡遊戲工作的通知》,需完成實名認證後才能開始網絡遊戲</string>
<string name="tip_content" translatable="false">光環快速認證成功,正在開始遊戲~</string>
<string name="real_name_content_play" translatable="false">你當前為未成年賬號已被納入防沈迷系統。根據國家相關規定網絡遊戲僅可在周五、周六、周日和法定節假日每日20時至21時向未成年人提供60分鐘網絡遊戲服務。當前時間段可進行遊玩請合理安排時間</string>
</resources>

View File

@ -1,9 +1,9 @@
<resources>
<string name="app_name" translatable="false">realname-window</string>
<string name="real_name_title" translatable="false">游戏健康提示</string>
<string name="back_game" translatable="false">退出游戏</string>
<string name="real_name_content" translatable="false">你当前为未成年账号已被纳入防沉迷系统。根据国家相关规定网络游戏仅可在周五、周六、周日和法定节假日每日20时至21时向未成年人提供60分钟网络游戏服务。当前时间段无法游玩请合理安排时间</string>
<string name="input_content" translatable="false">根据《国家新闻出版署关于防止未成年人沉迷网络游戏工作的通知》,需完成实名认证后才能开始网络游戏</string>
<string name="tip_content" translatable="false">光环快速认证成功,正在开始游戏~</string>
<string name="real_name_content_play" translatable="false">你当前为未成年账号已被纳入防沉迷系统。根据国家相关规定网络游戏仅可在周五、周六、周日和法定节假日每日20时至21时向未成年人提供60分钟网络游戏服务。当前时间段可进行游玩请合理安排时间</string>
<string name="app_name">realname-window</string>
<string name="real_name_title">游戏健康提示</string>
<string name="back_game">退出游戏</string>
<string name="real_name_content">你当前为未成年账号已被纳入防沉迷系统。根据国家相关规定网络游戏仅可在周五、周六、周日和法定节假日每日20时至21时向未成年人提供60分钟网络游戏服务。当前时间段无法游玩请合理安排时间</string>
<string name="input_content">根据《国家新闻出版署关于防止未成年人沉迷网络游戏工作的通知》,需完成实名认证后才能开始网络游戏</string>
<string name="tip_content">光环快速认证成功,正在开始游戏~</string>
<string name="real_name_content_play">你当前为未成年账号已被纳入防沉迷系统。根据国家相关规定网络游戏仅可在周五、周六、周日和法定节假日每日20时至21时向未成年人提供60分钟网络游戏服务。当前时间段可进行游玩请合理安排时间</string>
</resources>

View File

@ -0,0 +1,3 @@
<resources>
<string name="app_name" translatable="false">VPN</string>
</resources>

View File

@ -1,3 +1,3 @@
<resources>
<string name="app_name" translatable="false">VPN</string>
<string name="app_name">VPN</string>
</resources>

View File

@ -51,6 +51,8 @@ QUICK_LOGIN_APPID=300012035775
QUICK_LOGIN_APPKEY=002BAABA2C078342DA33BEAB0A4C6A25
DEV_QUICK_LOGIN_APPID=300012281661
DEV_QUICK_LOGIN_APPKEY=1BFAB6E349F1D69CC06ABAD9D7A43FB8
LOG_HUB_PROJECT=ghzs
LOG_HUB_PROJECT_GAT=ghzs-global
DEV_CSJ_APPID=5410486
CSJ_APPID=5429125
@ -58,8 +60,10 @@ CSJ_APPID=5429125
# hosts
DEV_API_HOST=https\://dev-and-api.ghzs.com/v5d5d0/
API_HOST=https\://and-api.ghzs.com/v5d5d0/
API_HOST_GAT=https\://and-api.junrui66.com/v5d5d0/
NEW_DEV_API_HOST=https\://dev-app-api.ghzs.com/
NEW_API_HOST=https\://app-api.ghzs.com/
NEW_API_HOST_GAT=https\://app-api.junrui66.com/
DEV_VAPI_HOST=https://dev-app-api.796697.com
VAPI_HOST=https://app-api.796697.com

View File

@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 Zhihu Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<resources>
<string name="album_name_all">全部</string>
<string name="button_preview">預覽</string>
<string name="button_apply_default">使用</string>
<string name="button_apply">使用(%1$d)</string>
<string name="button_back">返回</string>
<string name="photo_grid_capture">拍一張</string>
<string name="empty_text">還沒有圖片或視頻</string>
<string name="button_ok">我知道了</string>
<string name="error_over_count_default">您已經達到最大選擇數量</string>
<string name="error_over_count">一次最多選擇%1$d張圖片</string>
<string name="error_over_count_video">一次最多選擇%1$d個視頻</string>
<string name="error_under_quality">圖片質量太低</string>
<string name="error_over_quality">圖片質量太高</string>
<string name="error_file_type">不支援的文件類型</string>
<string name="error_type_conflict">不能同時選擇圖片和視頻</string>
<string name="error_no_video_activity">沒有支持視頻預覽的應用</string>
<string name="error_over_original_size">"該照片大於 %1$d M無法上傳將取消勾選原圖"</string>
<string name="error_over_original_count">"有 %1$d 張照片大於 %2$d M\n無法上傳將取消勾選原圖"</string>
<string name="button_original">原圖</string>
<string name="button_sure_default">確定</string>
<string name="button_sure">確定(%1$d)</string>
</resources>

View File

@ -92,6 +92,7 @@ dependencies {
api "io.github.sinaweibosdk:core:${weiboSDK}"
api "com.lg:skeleton:${skeleton}"
api "com.google.android:flexbox:${flexbox}"
api "com.blankj:utilcodex:${blankjUtilCodex}"
debugApi "com.squareup.okhttp3:okhttp-tls:${okHttpForDebug}"
debugApi "com.squareup.okio:okio:2.2.2"

View File

@ -40,6 +40,7 @@ import com.alibaba.android.arouter.core.LogisticsCenter;
import com.alibaba.android.arouter.exception.NoRouteFoundException;
import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.launcher.ARouter;
import com.blankj.utilcode.util.LanguageUtils;
import com.facebook.drawee.view.SimpleDraweeView;
import com.gh.gamecenter.common.BuildConfig;
import com.gh.gamecenter.common.R;
@ -82,6 +83,7 @@ import org.json.JSONObject;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import io.sentry.Breadcrumb;
import io.sentry.Sentry;
@ -800,4 +802,16 @@ public abstract class BaseActivity extends BaseAppCompatActivity implements Easy
transaction.hide(fragment);
}
}
@Override
protected void attachBaseContext(Context newBase) {
if (EnvHelper.isGATApp()) {
if (!LanguageUtils.isAppliedLanguage()) {// 默认使用繁体中文
LanguageUtils.applyLanguage(Locale.TRADITIONAL_CHINESE, false);
}
super.attachBaseContext(LanguageUtils.attachBaseContext(newBase));
} else {
super.attachBaseContext(newBase);
}
}
}

View File

@ -20,6 +20,7 @@ import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.recyclerview.widget.RecyclerView;
import com.blankj.utilcode.util.LanguageUtils;
import com.gh.gamecenter.common.BuildConfig;
import com.gh.gamecenter.common.R;
import com.gh.gamecenter.common.callback.OnListClickListener;
@ -41,6 +42,7 @@ import org.greenrobot.eventbus.ThreadMode;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;

View File

@ -5,6 +5,7 @@ import com.aliyun.sls.android.producer.LogProducerClient
import com.aliyun.sls.android.producer.LogProducerConfig
import com.aliyun.sls.android.producer.LogProducerResult
import com.gh.gamecenter.common.HaloApp
import com.gh.gamecenter.common.utils.EnvHelper
import com.gh.gamecenter.common.utils.PackageFlavorHelper
import com.gh.gamecenter.core.AppExecutor
import com.lightgame.utils.Utils
@ -17,7 +18,6 @@ object LoghubHelper {
private const val ACCESS_KEY_ID = "LTAIV3i0sNc4TPK1"
private const val ACCESS_KEY_SECRET = "8dKtTPeE5WYA6ZCeuIBcIVp7eB0ir4"
private const val ENDPOINT = "cn-qingdao.log.aliyuncs.com"
private const val PROJECT = "ghzs"
private val mClientMaps by lazy { hashMapOf<String, LogProducerClient>() }
@ -34,17 +34,21 @@ object LoghubHelper {
}
private fun getClient(logStore: String): LogProducerClient? {
if (!mClientMaps.containsKey(logStore)) {
mClientMaps[logStore] = createClient(logStore)
// https://jira.shanqu.cc/browse/GHZS-3815?focusedCommentId=50027&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-50027
//
val transformedLogStore = if (EnvHelper.isGATApp) "event" else logStore
if (!mClientMaps.containsKey(transformedLogStore)) {
mClientMaps[transformedLogStore] = createClient(transformedLogStore)
}
return mClientMaps[logStore]
return mClientMaps[transformedLogStore]
}
private fun createClient(logStore: String): LogProducerClient {
val config = LogProducerConfig(
HaloApp.getInstance().applicationContext,
ENDPOINT,
PROJECT,
EnvHelper.logProducerProject,
logStore,
ACCESS_KEY_ID,
ACCESS_KEY_SECRET

View File

@ -14,6 +14,26 @@ object EnvHelper {
SPUtils.getBoolean(Constants.SP_IS_DEV_ENV, false)
}
@JvmStatic
val isGATApp: Boolean by lazy {
val buildConfig = ARouter
.getInstance()
.build(RouteConsts.provider.buildConfig)
.navigation() as? IBuildConfigProvider
buildConfig?.isGATApp() ?: false
}
private const val DEFAULT_LOG_PRODUCER_PROJECT = "ghzs"
@JvmStatic
val logProducerProject: String by lazy {
val buildConfig = ARouter
.getInstance()
.build(RouteConsts.provider.buildConfig)
.navigation() as? IBuildConfigProvider
buildConfig?.getLogProducerProject() ?: DEFAULT_LOG_PRODUCER_PROJECT
}
@JvmStatic
fun getHost(): String {
val buildConfig =
@ -58,5 +78,4 @@ object EnvHelper {
}
}
}
}

View File

@ -0,0 +1,92 @@
<resources>
<string name="app_name">module_common</string>
<string name="cancel">取消</string>
<string name="confirm">確定</string>
<string name="never_remind">不再提醒</string>
<string name="know">我知道了</string>
<string name="no_memory_cache">不需要內存緩存</string>
<string name="highResImageTag">highResImage</string>
<string name="cancel_concern_dialog">取消關註遊戲後,您將無法及時收到遊戲的攻略、資訊等最新動態提醒。</string>
<string name="setting_checking_update">檢查更新中...</string>
<item name="tag_show_animated_image" type="id" />
<string name="share_skip">分享跳轉中...</string>
<string name="share_success_hint">分享成功</string>
<string name="share_cancel_hint">分享已取消</string>
<string name="share_fail_hint">分享失敗</string>
<string name="share_no_wechat_hint">分享失敗,請安裝微信</string>
<string name="share_to">分享到</string>
<string name="share_wechat">微信好友</string>
<string name="share_wechat_moments">朋友圈</string>
<string name="share_qq">QQ好友</string>
<string name="share_qq_zone">QQ空間</string>
<string name="share_weibo">微博</string>
<string name="install_failure_hint">解析包出錯(可能被誤刪了),請重新下載</string>
<string name="gh_website_url_100">https://www.ghzs.com?source=appshare100</string>
<string name="gh_website_url_300">https://www.ghzs.com?source=appshare300</string>
<string name="gh_icon_url">https://and-static.ghzs.com/app-logo.png</string>
<string name="background_id">background_id</string>
<string name="text_color_id">text_color_id</string>
<string name="text_color_hint_id">text_color_hint_id</string>
<string name="src_id">src_id</string>
<string name="drawable_left_id">drawable_left_id</string>
<string name="drawable_top_id">drawable_top_id</string>
<string name="drawable_right_id">drawable_right_id</string>
<string name="drawable_bottom_id">drawable_bottom_id</string>
<string name="tag_game_name_id">tag_game_name_id</string>
<string name="view_business_name">view對應的業務名稱</string>
<string name="view_bounded_object">view綁定的對象</string>
<string name="disclaimer_title">用戶協議與免責聲明</string>
<string name="disclaimer_url">http://api.ghzs666.com/v2d6/disclaimer</string>
<string name="privacy_policy_title">隱私政策</string>
<string name="privacy_policy_url">https://resource.junrui66.com/page/privacy_policies/privacy_policies_GA.html</string>
<string name="icp">備案查詢入口</string>
<string name="icp_url">https://beian.miit.gov.cn/</string>
<string name="icp_serial_number">粵ICP備17080876號-5A</string>
<string name="icp_serial_numb_desc">APP備案號粵ICP備17080876號-5A</string>
<string name="loading">加載中...</string>
<string name="loading_more_hint">上拉加載</string>
<string name="loading_failed_retry">加載失敗,點擊重試</string>
<string name="load_over_hint">沒有更多了</string>
<string name="loading_network_error">網絡開小差啦~</string>
<string name="loading_tap_to_retry">點擊任意地方重試</string>
<string name="game_empty">這兒還沒有內容噢~</string>
<string name="game_no_data">這裏還沒有遊戲~</string>
<string name="game_no_data_desc">看來你還沒找到喜歡的遊戲~</string>
<string name="game_empty_desc_content">你可能是第一個發現這個地方的人</string>
<string name="reset_load">重試</string>
<string name="loading_network_error_desc">檢測網絡設置或是點擊按鈕重試</string>
<string name="content_delete_hint">頁面不見了~</string>
<string name="content_delete_toast">內容可能已被刪除</string>
<string name="comment_failed_unable">內容可能已被刪除</string>
<string name="attempt_tips_1">該遊戲暫時僅提供試玩版本。試玩版資源來自第三方網站可能存在bug或兼容性問題。敬請留意後續相關消息。</string>
<string name="attempt_tips_2">該遊戲暫時僅提供試玩版本。試玩版可能存在bug或兼容性問題。敬請留意後續相關消息。</string>
<string name="pic_max_hint">圖片不能大於%1$dMB請重新選擇</string>
<string name="title_suggest_game">請選出你要指定的遊戲</string>
<string name="copyright_title">版權保護申訴指引</string>
<string name="copyright_rules_url">https://resource.ghzs.com/page/copyright_guide/copyright_guide.html</string>
<string name="suggestion_game_name">遊戲名字<Data><![CDATA[<font color="#ff4147">*</font>]]></Data></string>
<string name="is_dark_mode_on_id">is_dark_mode_on_id</string>
<string name="unsupported_feature_dialog_title">提示</string>
<string name="unsupported_feature_dialog_hint">當前版本不支持該功能,\n建議您升級到最新版本體驗哦</string>
<string name="unsupported_feature_dialog_confirm_text">體驗升級</string>
<string name="unspported_feature_dialog_cancel_text">取消</string>
<string name="miui_optimization_warning_dialog_title">溫馨提示</string>
<string name="miui_optimization_warning_dialog_content">安裝該遊戲需要關閉MIUI優化否則將無法解壓安裝\n註意MIUI優化關閉後可能會導致手機系統不穩定以及無法使用MIUI提供的服務。你可以在遊戲安裝完成後重新開啟</string>
<string name="miui_optimizaition_warning_dialog_confirm">立即關閉</string>
<string name="miui_optimizaition_warning_dialog_cancel">以後再說</string>
<string name="miui_optimizaition_warning_dialog_hint"><![CDATA[查看MIUI優化關閉教程>]]></string>
<string name="search_input">請輸入文字...</string>
<string name="search_search">搜索</string>
<string name="storage_permission_intro">1. 遊戲下載功能XAPK與APKS文件下載\n2. 圖片上傳功能(頭像、主頁背景、帖子、遊戲單)\n3. 視頻上傳功能(視頻流、帖子)\n4. 圖片保存功能\n5. 遊戲投稿功能</string>
</resources>

View File

@ -11,6 +11,8 @@ interface IBuildConfigProvider : IProvider {
fun isDebug(): Boolean
fun isGATApp(): Boolean
fun getApiHost(): String
fun getDevApiHost(): String
@ -22,4 +24,6 @@ interface IBuildConfigProvider : IProvider {
fun getVApiHost(): String
fun getVDevApiHost(): String
fun getLogProducerProject(): String
}

View File

@ -0,0 +1,9 @@
<resources>
<string name="app_name">module_core</string>
<string name="confirm">確定</string>
<string name="hint">提示</string>
<string name="opened">已開啟</string>
<string name="confirm_and_close">確定關閉</string>
<string name="not_close_yet">暫不關閉</string>
<string name="wechat_not_install_toast">請檢查是否安裝微信客戶端</string>
</resources>

View File

@ -1,4 +1,9 @@
<resources>
<string name="app_name">module_core</string>
<string name="confirm">确定</string>
<string name="hint">提示</string>
<string name="opened">已开启</string>
<string name="confirm_and_close">确定关闭</string>
<string name="not_close_yet">暂不关闭</string>
<string name="wechat_not_install_toast">请检查是否安装微信客户端</string>
</resources>

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="download">下載</string>
<string name="downloading">下載中</string>
<string name="pluggable">插件化</string>
<string name="install">安裝</string>
<string name="installing">安裝中</string>
<string name="resume">繼續</string>
<string name="pause">暫停</string>
<string name="launch">啟動</string>
<string name="update">更新</string>
<string name="updating">更新中</string>
<string name="waiting">等待中</string>
<string name="open">打開</string>
<string name="attempt">試玩</string>
<string name="smooth">暢玩</string>
<string name="expand">展開</string>
<string name="unzipping">解壓中</string>
<string name="check">查看</string>
<string name="off_shelve">下架</string>
<string name="quick_play">秒玩</string>
<string name="none">暫無</string>
<string name="start_playing">開始玩</string>
<string name="browser_install_install">瀏覽器解壓安裝</string>
<string name="login_hint">請先登錄</string>
<string name="concern">關註</string>
<string name="concern_success">關註成功</string>
<string name="concern_failure">關註失敗</string>
<string name="libao_finish">已結束</string>
<string name="libao_linged">已領取</string>
<string name="libao_taoed">已淘號</string>
<string name="loading_failed_hint">加載失敗,請檢查網絡狀態</string>
<string name="pending_status">審核中...請耐心等待</string>
<string name="download_local">本地下載</string>
<string name="update_local">本地更新</string>
<string name="install_local">本地安裝</string>
<string name="launch_local">本地啟動</string>
<string name="update_v">開始更新</string>
<string name="download_v">開始暢玩</string>
<string name="launch_v">啟動暢玩</string>
</resources>

View File

@ -33,6 +33,7 @@ import com.gh.gamecenter.common.constant.EntranceConsts;
import com.gh.gamecenter.common.constant.RouteConsts;
import com.gh.gamecenter.common.eventbus.EBReuse;
import com.gh.gamecenter.common.retrofit.ApiResponse;
import com.gh.gamecenter.common.utils.EnvHelper;
import com.gh.gamecenter.common.utils.ExtensionsKt;
import com.gh.gamecenter.common.utils.SensorsBridge;
import com.gh.gamecenter.common.view.DrawableView;
@ -176,6 +177,11 @@ public class LoginFragment
ExtensionsKt.showKeyBoard(mBinding.loginPhoneEt);
}
// 港澳台APP不显示第三方登录
if (EnvHelper.isGATApp()) {
mBinding.loginBottom.setVisibility(View.GONE);
}
mBinding.loginPassEt.addTextChangedListener(new LoginTextWatcher(mBinding.loginPassEt));
mBinding.loginPhoneEt.addTextChangedListener(new LoginTextWatcher(mBinding.loginPhoneEt));

View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">module_login</string>
<string name="ghzs_name">光環助手</string>
<string name="login_failure_hint">登錄異常,請稍後重試</string>
<string name="login_failure_hint_code">登錄異常(%1$d),請稍後重試</string>
<string name="login_success">登錄成功</string>
<string name="logging">登錄中...</string>
<string name="input_phone_hint">請輸入手機號碼</string>
<string name="input_captcha_hint">請輸入驗證碼</string>
<string name="login_get_captcha">獲取驗證碼</string>
<string name="input_invite_code_hint">輸入邀請碼(選填)</string>
<string name="login_phone_prefix">+86</string>
<string name="login">登錄</string>
<string name="dialog_quick_login_policy_content">進入下一步前,請先閱讀並同意光環助手的<Data><![CDATA[<font color="#1383EB">《用戶協議》</font>、<font color="#1383EB">《隱私政策》</font>、<font color="#1383EB">%1$s</font>]]></Data></string>
<string name="dialog_login_policy_content">進入下一步前,請先閱讀並同意光環助手的<Data><![CDATA[<font color="#1383EB">《用戶協議》</font>、<font color="#1383EB">《隱私政策》</font>]]></Data></string>
</resources>

View File

@ -0,0 +1,14 @@
<resources>
<string name="app_name">消息中心模塊</string>
<string name="title_message_center">消息中心</string>
<string name="copy_id"><u>復製ID</u></string>
<string name="kefu_default_name">光環客服</string>
<string name="request_failure_normal_hint">網絡錯誤</string>
<string name="menu_concern">關註</string>
<string name="menu_clean_unread">一鍵已讀</string>
<string name="discover_game_trends">遊戲動態</string>
<string name="concern_recommend">熱門遊戲推薦</string>
<string name="my_game_dynamics_no_data">這兒還沒有內容噢~</string>
<string name="my_game_dynamics_no_data_desc">關註幾個可能感興趣的遊戲吧</string>
</resources>

View File

@ -30,6 +30,11 @@
<activity
android:name=".view.security.BindPhoneActivity"
android:screenOrientation="portrait" />
<activity
android:name=".view.LanguageSettingActivity"
android:screenOrientation="portrait" />
</application>
</manifest>

View File

@ -0,0 +1,33 @@
package com.gh.gamecenter.setting.view
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.gh.gamecenter.common.base.activity.ToolBarActivity
import com.gh.gamecenter.common.utils.updateStatusBarColor
import com.gh.gamecenter.setting.R
class LanguageSettingActivity : ToolBarActivity() {
companion object {
@JvmStatic
fun getIntent(context: Context): Intent {
return getTargetIntent(
context,
LanguageSettingActivity::class.java,
LanguageSettingFragment::class.java,
)
}
}
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setNavigationTitle(R.string.language)
updateStatusBarColor(R.color.background_white, R.color.background_white)
}
override fun onDarkModeChanged() {
super.onDarkModeChanged()
updateStatusBarColor(R.color.background_white, R.color.background_white)
}
}

View File

@ -0,0 +1,46 @@
package com.gh.gamecenter.setting.view
import android.os.Bundle
import android.view.View
import com.blankj.utilcode.util.LanguageUtils
import com.gh.gamecenter.common.base.fragment.ToolbarFragment
import com.gh.gamecenter.common.view.DrawableView
import com.gh.gamecenter.setting.databinding.FragmentLanguageSettingBinding
import java.util.*
class LanguageSettingFragment : ToolbarFragment() {
private lateinit var viewBinding: FragmentLanguageSettingBinding
override fun getLayoutId(): Int = 0
override fun getInflatedLayout(): View = FragmentLanguageSettingBinding
.inflate(layoutInflater)
.apply { viewBinding = this }.root
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
viewBinding.icSimplifiedChinese.isChecked = LanguageUtils.isAppliedLanguage(Locale.SIMPLIFIED_CHINESE)
viewBinding.icSimplifiedChinese.setImageDrawable(DrawableView.getCheckSelectorDrawable(requireContext()))
viewBinding.rlSimplifiedChinese.setOnClickListener {
if (!viewBinding.icSimplifiedChinese.isChecked) {
viewBinding.icTraditionalChinese.isChecked = false
viewBinding.icSimplifiedChinese.isChecked = true
LanguageUtils.applyLanguage(Locale.SIMPLIFIED_CHINESE)
}
}
viewBinding.icTraditionalChinese.isChecked = LanguageUtils.isAppliedLanguage(Locale.TRADITIONAL_CHINESE)
viewBinding.icTraditionalChinese.setImageDrawable(DrawableView.getCheckSelectorDrawable(requireContext()))
viewBinding.rlTraditionalChinese.setOnClickListener {
if (!viewBinding.icTraditionalChinese.isChecked) {
viewBinding.icTraditionalChinese.isChecked = true
viewBinding.icSimplifiedChinese.isChecked = false
LanguageUtils.applyLanguage(Locale.TRADITIONAL_CHINESE)
}
}
}
}

View File

@ -19,6 +19,7 @@ import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModelProvider
import com.alibaba.android.arouter.launcher.ARouter
import com.blankj.utilcode.util.LanguageUtils
import com.gh.gamecenter.common.BuildConfig
import com.gh.gamecenter.common.base.activity.BaseActivity
import com.gh.gamecenter.common.base.fragment.ToolbarFragment
@ -56,6 +57,7 @@ import io.reactivex.disposables.Disposable
import io.reactivex.schedulers.Schedulers
import org.greenrobot.eventbus.EventBus
import java.io.File
import java.util.*
class SettingsFragment : ToolbarFragment() {
@ -114,7 +116,7 @@ class SettingsFragment : ToolbarFragment() {
mBinding.settingCvFix.visibility = View.VISIBLE
mBinding.settingCvFix.setOnClickListener {
Config.fixHideFunction()
toast("修复成功")
toast(getString(R.string.fix_successfully_toast))
EventBus.getDefault().post(EBReuse("Refresh"))
val mainActivity =
ARouter.getInstance().build(RouteConsts.provider.mainActivity).navigation() as? IMainProvider
@ -161,7 +163,8 @@ class SettingsFragment : ToolbarFragment() {
if (UserManager.getInstance().isLoggedIn) {
val json = SPUtils.getString(Constants.SP_WECHAT_CONFIG)
val notice = GsonUtils.fromJson(json, WechatConfigEntity::class.java)?.notice
mBinding.wechatRemindItem.textMoreTv.text = if (notice == true) "已开启" else "已关闭"
mBinding.wechatRemindItem.textMoreTv.text =
if (notice == true) getString(R.string.opened) else getString(R.string.closed)
} else {
mBinding.wechatRemindItem.textMoreTv.text = ""
}
@ -231,6 +234,17 @@ class SettingsFragment : ToolbarFragment() {
startActivity(VideoSettingActivity.getIntent(requireContext(), "设置"))
}
}
mBinding.languageItem.run {
titleTv.text = getString(R.string.language)
textMoreTv.visibility = View.VISIBLE
// 港澳台APP显示语言设置
root.visibility = if (EnvHelper.isGATApp) View.VISIBLE else View.GONE
root.setOnClickListener {
startActivity(LanguageSettingActivity.getIntent(requireContext()))
}
}
mBinding.gameDownloadItem.run {
titleTv.text = getString(R.string.setting_game_download)
textMoreTv.visibility = View.VISIBLE
@ -267,10 +281,11 @@ class SettingsFragment : ToolbarFragment() {
.navigation() as? IUsageStatsHelperProvider
if (usageStatsHelper?.checkForPermission() == true) {
DialogHelper.showDialog(
requireContext(), "提示",
"关闭后将无法统计游戏时长,确定要关闭吗?",
"确定关闭",
"暂不关闭",
requireContext(),
getString(R.string.hint),
getString(R.string.close_game_time_statistics_dialog_content),
getString(R.string.confirm_and_close),
getString(R.string.not_close_yet),
{
usageStatsHelper.skipToUsageStats(
requireContext(),
@ -363,12 +378,16 @@ class SettingsFragment : ToolbarFragment() {
titleTv.text = getString(R.string.setting_clear_cache)
contentTv.visibility = View.VISIBLE
root.setOnClickListener {
DialogHelper.showCenterWarningDialog(requireContext(), "清除缓存", "确定要清除缓存吗?",
DialogHelper.showCenterWarningDialog(
requireContext(),
getString(R.string.clear_cache_dialog_title),
getString(R.string.clear_cache_dialog_content),
object : EmptyCallback {
override fun onCallback() {
val dialogUtils = ARouter.getInstance().build(RouteConsts.provider.dialogUtils)
.navigation() as? IDialogUtilsProvider
loadingDialog = dialogUtils?.showWaitDialog(requireContext(), "清除缓存中...")
loadingDialog = dialogUtils?.showWaitDialog(requireContext(),
getString(R.string.clearing_cache))
val historyHelper = ARouter.getInstance().build(RouteConsts.provider.historyHelper)
.navigation() as? IHistoryHelperProvider
historyHelper?.emptyDatabase()
@ -379,17 +398,17 @@ class SettingsFragment : ToolbarFragment() {
})
}
if (PackageFlavorHelper.IS_TEST_FLAVOR) {
titleTv.text = getString(R.string.setting_clear_cache) + "(长按可清除gid)"
titleTv.text = getString(R.string.setting_clear_cache) + getString(R.string.long_click_to_clear_gid)
root.setOnLongClickListener {
GidHelper.getInstance().clearSavedGid()
Utils.toast(context, "gid已清除")
Utils.toast(context, getString(R.string.gid_cleared_toast))
return@setOnLongClickListener true
}
}
}
mBinding.networkDiagnosisItem.run {
titleTv.text = "网络诊断"
titleTv.text = getString(R.string.network_diagnostics)
root.setOnClickListener {
startActivity(Intent(requireContext(), NetworkDiagnosisActivity::class.java))
}
@ -404,7 +423,7 @@ class SettingsFragment : ToolbarFragment() {
R.string.logout_dialog_confirm.toResString(),
R.string.cancel.toResString(),
{
loadingDialog = dialogUtils?.showWaitDialog(requireContext(), "退出登录中...")
loadingDialog = dialogUtils?.showWaitDialog(requireContext(), getString(R.string.logging_out))
LoginUtils.logout {
UserRepository.getInstance().logout()
if (loadingDialog != null) loadingDialog!!.dismiss()
@ -463,7 +482,7 @@ class SettingsFragment : ToolbarFragment() {
}
channelContainer.addView(
TextView(context).apply {
text = "推荐渠道:"
text = context.getString(R.string.recommend_channel)
}
)
val channelList = listOf("GH_REFRESH", "GH_TEST3")
@ -487,8 +506,8 @@ class SettingsFragment : ToolbarFragment() {
layout.addView(channelContainer)
val inputDialog: AlertDialog.Builder = AlertDialog.Builder(requireActivity())
inputDialog.setTitle("请输入渠道:").setView(layout)
inputDialog.setPositiveButton("确定") { _, _ ->
inputDialog.setTitle(getString(R.string.please_input_channel)).setView(layout)
inputDialog.setPositiveButton(getString(R.string.confirm)) { _, _ ->
val context = this.context ?: return@setPositiveButton
val flavorChannel = SPUtils.getString(Constants.SP_TEST_FLAVOR_CHANNEL)
if (!TextUtils.isEmpty(editText.text) && editText.text.toString() != flavorChannel) {
@ -528,7 +547,7 @@ class SettingsFragment : ToolbarFragment() {
loadingDialog!!.dismiss()
}
mViewModel.getCacheSize()
Utils.toast(context, "缓存清除成功")
Utils.toast(context, getString(R.string.clear_cache_successfully_toast))
}
override fun onError(e: Throwable) {}
@ -569,9 +588,9 @@ class SettingsFragment : ToolbarFragment() {
.navigation() as? IBrowserInstallHelperProvider
if (browserInstallHelper?.isUseBrowserToInstallEnabled() == true) {
if (browserInstallHelper.shouldUseBrowserToInstall()) {
mBinding.installMethodItem.textMoreTv.text = "浏览器安装"
mBinding.installMethodItem.textMoreTv.text = getString(R.string.browser_install)
} else {
mBinding.installMethodItem.textMoreTv.text = "助手安装"
mBinding.installMethodItem.textMoreTv.text = getString(R.string.assistant_install)
}
mBinding.installMethodContainer.visibility = View.VISIBLE
mBinding.installMethodItem.root.setOnClickListener {
@ -582,6 +601,16 @@ class SettingsFragment : ToolbarFragment() {
browserInstallHelper.logSwitchInstallSettingEvent()
}
}
if (EnvHelper.isGATApp) {
mBinding.languageItem.run {
textMoreTv.text = if (LanguageUtils.isAppliedLanguage(Locale.TRADITIONAL_CHINESE)) {
getString(R.string.traditional_chinese)
} else {
getString(R.string.simplified_chinese)
}
}
}
}
override fun onStop() {

View File

@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/rl_simplified_chinese"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginTop="8dp"
android:background="@color/background_white">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/simplified_chinese"
android:layout_centerVertical="true"
android:layout_marginLeft="16dp"
android:layout_marginStart="16dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@id/ic_simplified_chinese"
android:layout_toStartOf="@id/ic_simplified_chinese"
android:textColor="@color/text_title"
android:textSize="@dimen/primary_text_size" />
<com.lightgame.view.CheckableImageView
android:id="@+id/ic_simplified_chinese"
android:layout_width="24dp"
android:layout_height="24dp"
android:padding="4dp"
android:layout_marginEnd="12dp"
android:layout_marginRight="12dp"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/rl_traditional_chinese"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/background_white">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/traditional_chinese"
android:layout_centerVertical="true"
android:layout_marginLeft="16dp"
android:layout_marginStart="16dp"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@id/ic_traditional_chinese"
android:layout_toStartOf="@id/ic_traditional_chinese"
android:textColor="@color/text_title"
android:textSize="@dimen/primary_text_size" />
<com.lightgame.view.CheckableImageView
android:id="@+id/ic_traditional_chinese"
android:layout_width="24dp"
android:layout_height="24dp"
android:padding="4dp"
android:layout_marginEnd="12dp"
android:layout_marginRight="12dp"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"
android:layout_alignParentRight="true" />
</RelativeLayout>
</LinearLayout>

View File

@ -53,6 +53,14 @@
<include layout="@layout/piece_setting_divider" />
<include
android:id="@+id/languageItem"
android:layout_width="match_parent"
android:layout_height="wrap_content"
layout="@layout/layout_setting_item" />
<include layout="@layout/piece_setting_divider" />
<include
android:id="@+id/gameDownloadItem"
android:layout_width="match_parent"

View File

@ -0,0 +1,84 @@
<resources>
<string name="app_name">設置</string>
<string name="personal_update_hint">新版本</string>
<string name="setting_security">賬號與安全</string>
<string name="setting_system_dark_mode">深色模式跟隨系統切換</string>
<string name="setting_video">視頻播放</string>
<string name="setting_game_download">遊戲下載</string>
<string name="setting_fix">一鍵修復</string>
<string name="setting_install_auto">下載完成自動安裝遊戲</string>
<string name="setting_favorite_auto">安裝完成自動關註遊戲</string>
<string name="setting_install_method">切換安裝方式</string>
<string name="setting_wechat_remind">微信提醒</string>
<string name="setting_traffic_download">非Wi-Fi環境下載遊戲提醒</string>
<string name="setting_usage_stats">統計遊戲時長</string>
<string name="setting_notification_authority">通知權限</string>
<string name="setting_notification_authority_hint">開啟後你可以及時收到重要通知</string>
<string name="setting_personal_recommend">個性化推薦</string>
<string name="setting_personal_recommend_hint">開啟功能後,您在本應用的使用信息(如下載信息),將用於個性化內容推薦,以提升您在本應用的體驗</string>
<string name="setting_download_path_des">…/gh-files</string>
<string name="setting_pic_path_des">…/pictures/ghzhushou</string>
<string name="setting_download_path">遊戲下載目錄</string>
<string name="setting_pic_path">圖片保存目錄</string>
<string name="setting_clear_cache">清除緩存</string>
<string name="setting_cache_size_def">0.0M</string>
<string name="setting_about">關於我們</string>
<string name="setting_about_channel">關於我們(長按可更改渠道號)</string>
<string name="setting_clean_package">安裝包清理</string>
<string name="setting_game_submission">遊戲投稿</string>
<string name="title_settings">設置</string>
<string name="register_way_key">註冊方式</string>
<string name="security_tips">還有其他問題?</string>
<string name="security_contact">聯系客服</string>
<string name="account_security_center">賬戶安全中心</string>
<string name="all_network_auto_play">任何網絡下都自動播放</string>
<string name="only_wifi_auto_play">僅WIFI條件下自動播放</string>
<string name="close_auto_play">關閉自動播放</string>
<string name="setting_mute">默認靜音播放視頻</string>
<string name="setting_mute_hint">開啟後以上位置的視頻均默認靜音播放</string>
<string name="toast_upload_latest">已是最新版本</string>
<string name="title_about">關於</string>
<string name="copyright_hint">Copyright %1$s GHZhuShou Team All Rights Reserved.</string>
<string name="gh_douyin_url">https://v.douyin.com/C9UHr6/</string>
<string name="about_version_update">版本更新</string>
<string name="post_suggest">提交反饋</string>
<string name="bind_phone_skip">跳過</string>
<string name="bind_phone_key">綁定手機</string>
<string name="bind_phone_title1">綁定手機號</string>
<string name="bind_phone_title2">更換手機號</string>
<string name="bind_phone_desc">綁定手機後手機號將用於光環助手活動獎勵領取、安全驗證等用途</string>
<string name="bind_phone_next">下一步</string>
<string name="bind_phone_finish">完成</string>
<string name="bind_phone_conflict_text">手機號綁定沖突</string>
<string name="bind_phone_conflict_guide">遇到沖突如何換綁</string>
<string name="bind_phone_conflict_guide_content1">1、請先退出當前號【我的光環--設置--退出賬號】</string>
<string name="bind_phone_conflict_guide_content2">2、再重新登錄沖突號在【我的光環--賬戶安全】\n或【我的光環--設置--賬戶安全】更換手機號</string>
<string name="bind_phone_conflict_guide_content3">3、沖突號成功更換新手機號後再退出沖突號\n並重新登錄當前號進行綁定</string>
<string name="bind_phone_conflict_item_current_text">當前號</string>
<string name="bind_phone_conflict_item_conflict_text">沖突號</string>
<string name="bind_phone_conflict_change">換個手機號試試</string>
<string name="bind_phone_conflict_cancel">取消綁定</string>
<string name="change_phone_text">更換手機號</string>
<string name="change_phone_same">新手機號與當前手機號相同,暫不支持本\n次綁定</string>
<string name="logout_dialog_title">退出登錄</string>
<string name="logout_dialog_content">退出賬號即會回到遊客狀態,很多功能將無法使用(例如評論、客服消息),確定退出嗎?</string>
<string name="logout_dialog_confirm">確定退出</string>
<string name="browser_install">瀏覽器安裝</string>
<string name="assistant_install">助手安裝</string>
<string name="clear_cache_successfully_toast">緩存清除成功</string>
<string name="please_input_channel">請輸入渠道:</string>
<string name="recommend_channel">推薦渠道:</string>
<string name="long_click_to_clear_gid">(長按可清除gid)</string>
<string name="gid_cleared_toast">gid已清除</string>
<string name="logging_out">退出登錄中...</string>
<string name="fix_successfully_toast">修復成功</string>
<string name="closed">已關閉</string>
<string name="close_game_time_statistics_dialog_content">關閉後將無法統計遊戲時長,確定要關閉嗎?</string>
<string name="clear_cache_dialog_title">清除緩存</string>
<string name="clear_cache_dialog_content">確定要清除緩存嗎?</string>
<string name="clearing_cache">清除緩存中...</string>
<string name="network_diagnostics">網絡診斷</string>
<string name="language">語言</string>
<string name="simplified_chinese">簡體中文</string>
<string name="traditional_chinese">繁體中文</string>
</resources>

View File

@ -63,4 +63,22 @@
<string name="logout_dialog_title">退出登录</string>
<string name="logout_dialog_content">退出账号即会回到游客状态,很多功能将无法使用(例如评论、客服消息),确定退出吗?</string>
<string name="logout_dialog_confirm">确定退出</string>
<string name="browser_install">浏览器安装</string>
<string name="assistant_install">助手安装</string>
<string name="clear_cache_successfully_toast">缓存清除成功</string>
<string name="please_input_channel">请输入渠道:</string>
<string name="recommend_channel">推荐渠道:</string>
<string name="long_click_to_clear_gid">(长按可清除gid)</string>
<string name="gid_cleared_toast">gid已清除</string>
<string name="logging_out">退出登录中...</string>
<string name="fix_successfully_toast">修复成功</string>
<string name="closed">已关闭</string>
<string name="close_game_time_statistics_dialog_content">关闭后将无法统计游戏时长,确定要关闭吗?</string>
<string name="clear_cache_dialog_title">清除缓存</string>
<string name="clear_cache_dialog_content">确定要清除缓存吗?</string>
<string name="clearing_cache">清除缓存中...</string>
<string name="network_diagnostics">网络诊断</string>
<string name="language">语言</string>
<string name="simplified_chinese">简体中文</string>
<string name="traditional_chinese">繁体中文</string>
</resources>

View File

@ -0,0 +1,68 @@
<resources>
<string name="app_name">Compose設置</string>
<string name="personal_update_hint">新版本</string>
<string name="setting_security">賬號與安全</string>
<string name="setting_system_dark_mode">深色模式跟隨系統切換</string>
<string name="setting_video">視頻播放</string>
<string name="setting_game_download">遊戲下載</string>
<string name="setting_fix">一鍵修復</string>
<string name="setting_install_auto">下載完成自動安裝遊戲</string>
<string name="setting_favorite_auto">安裝完成自動關註遊戲</string>
<string name="setting_install_method">切換安裝方式</string>
<string name="setting_wechat_remind">微信提醒</string>
<string name="setting_traffic_download">非Wi-Fi環境下載遊戲提醒</string>
<string name="setting_usage_stats">統計遊戲時長</string>
<string name="setting_notification_authority">通知權限</string>
<string name="setting_notification_authority_hint">開啟後你可以及時收到重要通知</string>
<string name="setting_personal_recommend">個性化推薦</string>
<string name="setting_personal_recommend_hint">開啟功能後,您在本應用的使用信息(如下載信息),將用於個性化內容推薦,以提升您在本應用的體驗</string>
<string name="setting_download_path_des">…/gh-files</string>
<string name="setting_pic_path_des">…/pictures/ghzhushou</string>
<string name="setting_download_path">遊戲下載目錄</string>
<string name="setting_pic_path">圖片保存目錄</string>
<string name="setting_clear_cache">清除緩存</string>
<string name="setting_network_diagnosis">網絡診斷</string>
<string name="setting_cache_size_def">0.0M</string>
<string name="setting_about">關於我們</string>
<string name="setting_about_channel">關於我們(長按可更改渠道號)</string>
<string name="setting_clean_package">安裝包清理</string>
<string name="setting_game_submission">遊戲投稿</string>
<string name="title_settings">設置</string>
<string name="register_way_key">註冊方式</string>
<string name="security_tips">還有其他問題?</string>
<string name="security_contact">聯系客服</string>
<string name="account_security_center">賬戶安全中心</string>
<string name="all_network_auto_play">任何網絡下都自動播放</string>
<string name="only_wifi_auto_play">僅WIFI條件下自動播放</string>
<string name="close_auto_play">關閉自動播放</string>
<string name="setting_mute">默認靜音播放視頻</string>
<string name="setting_mute_hint">開啟後以上位置的視頻均默認靜音播放</string>
<string name="toast_upload_latest">已是最新版本</string>
<string name="title_about">關於</string>
<string name="copyright_hint">Copyright %1$s GHZhuShou Team All Rights Reserved.</string>
<string name="gh_douyin_url">https://v.douyin.com/C9UHr6/</string>
<string name="about_version_update">版本更新</string>
<string name="post_suggest">提交反饋</string>
<string name="bind_phone_skip">跳過</string>
<string name="bind_phone_key">綁定手機</string>
<string name="bind_phone_title1">綁定手機號</string>
<string name="bind_phone_title2">更換手機號</string>
<string name="bind_phone_desc">綁定手機後手機號將用於光環助手活動獎勵領取、安全驗證等用途</string>
<string name="bind_phone_next">下一步</string>
<string name="bind_phone_finish">完成</string>
<string name="bind_phone_conflict_text">手機號綁定沖突</string>
<string name="bind_phone_conflict_guide">遇到沖突如何換綁</string>
<string name="bind_phone_conflict_guide_content1">1、請先退出當前號【我的光環--設置--退出賬號】</string>
<string name="bind_phone_conflict_guide_content2">2、再重新登錄沖突號在【我的光環--賬戶安全】\n或【我的光環--設置--賬戶安全】更換手機號</string>
<string name="bind_phone_conflict_guide_content3">3、沖突號成功更換新手機號後再退出沖突號\n並重新登錄當前號進行綁定</string>
<string name="bind_phone_conflict_item_current_text">當前號</string>
<string name="bind_phone_conflict_item_conflict_text">沖突號</string>
<string name="bind_phone_conflict_change">換個手機號試試</string>
<string name="bind_phone_conflict_cancel">取消綁定</string>
<string name="change_phone_text">更換手機號</string>
<string name="change_phone_same">新手機號與當前手機號相同,暫不支持本\n次綁定</string>
<string name="change_phone_same_ok">我知道了</string>
<string name="logout_dialog_title">退出登錄</string>
<string name="logout_dialog_content">退出賬號即會回到遊客狀態,很多功能將無法使用(例如評論、客服消息),確定退出嗎?</string>
<string name="logout_dialog_confirm">確定退出</string>
</resources>

View File

@ -24,35 +24,54 @@ fi
./gradlew --stop
./gradlew clean
while getopts "tkg" arg
BUILD_VARIANT_ENV=publish
BUILD_VARIANT_REGION=cn
BUILD_APK_CHANNEL_NAME=标准正式包
BUILD_WITH_INIT_GRADLE=true
# 添加 -t 指定编译环境可选值t: 头条 k: 快手 g: 广点通
# 添加 -r 指定区域,可选值: cn: 中国大陆 gat: 港澳台
while getopts "t:r:" arg
do
case ${arg} in
t)
./gradlew aTR -I init.gradle
mkdir -p release-app/${versionName}_${versionCode}
cp -R app/build/outputs/apk/tea/release/app-tea-release.apk release-app/${versionName}_${versionCode}/光环助手_${versionName}_${versionCode}_头条推广正式包_${git_sha}_${build_time}.apk
exit
case $OPTARG in
t)
BUILD_VARIANT_ENV=tea
BUILD_APK_CHANNEL_NAME=头条推广正式包
;;
k)
BUILD_VARIANT_ENV=kuaishou
BUILD_APK_CHANNEL_NAME=快手推广正式包
;;
g)
sed -i '/android:name="android.permission.READ_PHONE_STATE"/{n;s/tools:node="remove" \/>/\/>/;}' app/src/main/AndroidManifest.xml
BUILD_WITH_INIT_GRADLE=false
BUILD_VARIANT_ENV=gdt
BUILD_APK_CHANNEL_NAME=广点通推广正式包
;;
esac
;;
k)
./gradlew aKR -I init.gradle
mkdir -p release-app/${versionName}_${versionCode}
cp -R app/build/outputs/apk/kuaishou/release/app-kuaishou-release.apk release-app/${versionName}_${versionCode}/光环助手_${versionName}_${versionCode}_快手推广正式包_${git_sha}_${build_time}.apk
exit
;;
g)
sed -i '/android:name="android.permission.READ_PHONE_STATE"/{n;s/tools:node="remove" \/>/\/>/;}' app/src/main/AndroidManifest.xml
./gradlew aGR
mkdir -p release-app/${versionName}_${versionCode}
cp -R app/build/outputs/apk/gdt/release/app-gdt-release.apk release-app/${versionName}_${versionCode}/光环助手_${versionName}_${versionCode}_广点通推广正式包_${git_sha}_${build_time}.apk
exit
r)
case $OPTARG in
gat) BUILD_VARIANT_REGION=gat
;;
*) BUILD_VARIANT_REGION=cn
;;
esac
;;
esac
done
# 不存在指令时打普通包
./gradlew aPR -I init.gradle
if [ $BUILD_WITH_INIT_GRADLE == false ]; then
./gradlew assemble${BUILD_VARIANT_ENV}${BUILD_VARIANT_REGION^}Release
else
./gradlew assemble${BUILD_VARIANT_ENV}${BUILD_VARIANT_REGION^}Release -I init.gradle
fi
mkdir -p release-app/${versionName}_${versionCode}
cp -R app/build/outputs/apk/publish/release/app-publish-release.apk release-app/${versionName}_${versionCode}/光环助手_${versionName}_${versionCode}_标准正式包_${git_sha}_${build_time}.apk
cp -R app/build/outputs/apk/${BUILD_VARIANT_ENV}${BUILD_VARIANT_REGION^}/release/app-${BUILD_VARIANT_ENV}-${BUILD_VARIANT_REGION}-release.apk release-app/${versionName}_${versionCode}/光环助手_${versionName}_${versionCode}_${BUILD_APK_CHANNEL_NAME}_${git_sha}_${build_time}.apk
# 重置 app build.gradle
git checkout app/build.gradle

View File

@ -22,14 +22,28 @@ sed -i 's/buildConfigField "long", "BUILD_TIME", "0"/buildConfigField "long", "B
# 生成git log文本
git log --pretty=format:'%s' --max-count=20 --no-merges > app/src/main/assets/gitlog.txt
BUILD_VARIANT_REGION=cn
# 添加 -c 代表启用 compose setting 模块
while getopts "c" arg
# 添加 -r 指定区域,可选值: cn: 中国大陆 gat: 港澳台
while getopts "cr:" arg
do
sed -i '260 a implementation(project(\x27:module_setting_compose\x27)) { exclude group: \x27androidx.swiperefreshlayout\x27 }' app/build.gradle
case ${arg} in
c)
sed -i '260 a implementation(project(\x27:module_setting_compose\x27)) { exclude group: \x27androidx.swiperefreshlayout\x27 }' app/build.gradle
;;
r)
case $OPTARG in
gat) BUILD_VARIANT_REGION=gat
;;
*) BUILD_VARIANT_REGION=cn
;;
esac
esac
done
./gradlew rIR -I ${post_init_script}
mv app/build/outputs/apk/internal/release/app-internal-release.apk app/build/tmp/${version}-${versionCode}-test-${build_time}.apk
./gradlew resguardInternal${BUILD_VARIANT_REGION^}Release -I ${post_init_script}
mv app/build/outputs/apk/internal${BUILD_VARIANT_REGION^}/release/app-internal-${BUILD_VARIANT_REGION}-release.apk app/build/tmp/${version}-${versionCode}-test-${build_time}.apk
git checkout app/build.gradle
git checkout module_common/build.gradle