提交 d59536f4 编写于 作者: J jackjintai

modify:

1、完善国际化文案
上级 afb90b01
......@@ -10,7 +10,7 @@ ext {
localRepoURL : "/Users/didi/project/dokit_repo"
]
android = [compileSdkVersion : 29,
suppotrSdkVersion : "27.1.1",
suppotrSdkVersion : "28.0.0",
applicationId : "com.didichuxing.doraemondemo",
minSdkVersion : 16,
targetSdkVersion : 29,
......
......@@ -80,7 +80,7 @@ dependencies {
compileOnly rootProject.ext.dependencies["tencent_location"]
//百度地图定位
compileOnly files('libs/BaiduLBS_Android.jar')
compileOnly files('libs/okhttp-2.1.0.jar')
implementation files('libs/okhttp-2.1.0.jar')
}
......
......@@ -112,7 +112,7 @@ public class NetWorkMockFragment extends BaseFragment {
}
});
if (TextUtils.isEmpty(projectId)) {
ToastUtils.showLong("请先到www.dokit.cn申请projectId,并参考接入手册");
ToastUtils.showLong(DokitUtil.getString(R.string.dk_data_mock_plugin_toast));
return;
}
mEditText = findViewById(R.id.edittext);
......@@ -487,7 +487,7 @@ public class NetWorkMockFragment extends BaseFragment {
*/
private void initMenus(List<MockInterceptTitleBean> mockInterceptTitleBeans) {
final List<String> groups = new ArrayList<>();
groups.add("接口分组");
groups.add(DokitUtil.getString(R.string.dk_data_mock_group));
for (MockInterceptTitleBean mockInterceptTitleBean : mockInterceptTitleBeans) {
MockInterceptApiBean mockInterceptApiBean = mockInterceptTitleBean.getSubItem(0);
if (!groups.contains(mockInterceptApiBean.getGroup())) {
......@@ -508,10 +508,10 @@ public class NetWorkMockFragment extends BaseFragment {
//保存删选状态
if (mSelectedTableIndex == BOTTOM_TAB_INDEX_0) {
mInterceptFilterBean.setGroupIndex(position);
mStrInterceptGroup = groups.get(position).equals("接口分组") ? "" : groups.get(position);
mStrInterceptGroup = groups.get(position).equals(DokitUtil.getString(R.string.dk_data_mock_group)) ? "" : groups.get(position);
} else if (mSelectedTableIndex == BOTTOM_TAB_INDEX_1) {
mTemplateFilterBean.setGroupIndex(position);
mStrTemplateGroup = groups.get(position).equals("接口分组") ? "" : groups.get(position);
mStrTemplateGroup = groups.get(position).equals(DokitUtil.getString(R.string.dk_data_mock_group)) ? "" : groups.get(position);
}
filterAndNotifyData();
......
......@@ -293,4 +293,5 @@
<string name="dk_kit_net_monitor_white_host_tip">Whitelist (Block all by default. If you add a whitelist, only network requests in the whitelist will be blocked, and the whitelist rule will take effect when the current page is closed. Example of whitelist host: m.baidu.com)</string>
<string name="dk_kit_net_monitor_white_host_edit_tip">Please enter whitelist host</string>
<string name="dk_kit_net_monitor_white_host_edit_toast">Please enter host first</string>
<string name="dk_data_mock_plugin_toast">Please go to https://www.dokit.cn to apply for projectId first, and refer to the use center for access</string>
</resources>
......@@ -289,4 +289,6 @@
<string name="dk_log_btn_to_bottom">滚至底部</string>
<string name="dk_kit_net_monitor_white_host_tip">白名单(默认全部拦截,如有添加白名单则只会拦截白名单中的网络请求,同时白名单规则在关闭当前页面时生效。白名单host示例:m.baidu.com)</string>
<string name="dk_kit_net_monitor_white_host_edit_tip">请输入白名单host</string>
<string name="dk_kit_net_monitor_white_host_edit_toast">请先输入host</string>
<string name="dk_data_mock_plugin_toast">请先到https://www.dokit.cn申请projectId,并参考使用中心进行接入</string>
</resources>
......@@ -290,4 +290,5 @@
<string name="dk_kit_net_monitor_white_host_tip">白名单(默认全部拦截,如有添加白名单则只会拦截白名单中的网络请求,同时白名单规则在关闭当前页面时生效。白名单host示例:m.baidu.com)</string>
<string name="dk_kit_net_monitor_white_host_edit_tip">请输入白名单host</string>
<string name="dk_kit_net_monitor_white_host_edit_toast">请先输入host</string>
<string name="dk_data_mock_plugin_toast">请先到https://www.dokit.cn申请projectId,并参考使用中心进行接入</string>
</resources>
\ No newline at end of file
......@@ -283,6 +283,7 @@
<string name="dk_data_mock_switch_all">全部</string>
<string name="dk_data_mock_switch_opened">打开</string>
<string name="dk_data_mock_switch_closed">关闭</string>
<string name="dk_data_mock_plugin_toast">请先到https://www.dokit.cn申请projectId,并参考使用中心进行接入</string>
<!--健康体检页面-->
<string name="dk_health_upload_successed">上传数据成功</string>
......
......@@ -13,3 +13,4 @@ org.gradle.jvmargs=-Xmx4096m
org.gradle.parallel=true
android.enableD8=true
android.debug.obsoleteApi=true
android.injected.testOnly=false
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册