Commit 101ca21f by onuma

#46276 URLをgradle.propetiesに移動

parent 9bae5bf9
......@@ -64,6 +64,9 @@ public class ABVEnvironment {
public boolean operationGroupMasterClearFlg;
// プライバシーポリシーURL
public String privacyPolicyUrl;
////////////////////////////// 定数 //////////////////////////////////
private static final String ServerTimeKey = "ABook";
......
......@@ -56,6 +56,9 @@ android {
resValue("integer", "push_message", "${push_message}")
resValue("integer", "check_app_update", "${check_app_update}")
resValue("integer", "not_delete_all_contents", "${not_delete_all_contents}")
// privacy policy
resValue("string", "privacy_policy_url", "${privacy_policy_url}")
}
sourceSets {
main {
......
......@@ -139,6 +139,9 @@ public class Initializer {
}
env.aspectType = getAspectType();
// privacy policy url
env.privacyPolicyUrl = s(R.string.privacy_policy_url);
env.setInitialized(true);
// Helperクラス初期化
......
......@@ -256,7 +256,7 @@ public class ABookSettingFragment extends PreferenceFragment {
privacyPolicy.setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() {
@Override
public boolean onPreferenceClick(Preference preference) {
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://www.agentec.jp/privacy/"));
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(getString(R.string.privacy_policy_url)));
startActivity(browserIntent);
return true;
}
......
......@@ -38,8 +38,8 @@ app_versioncode=1
# abvEnvironments.xml
#cms server
acms_address=https://check130.abook.bz/acms
download_server_address=https://check130.abook.bz/acms
acms_address=https://check130.agentec.jp/acms
download_server_address=https://check130.agentec.jp/acms
#syncview server
websocket_server_http_url=https://check130.agentec.jp/v1
......@@ -132,4 +132,7 @@ isStoreProduct=false
#1.2.302 Edition
#CHECK = 5
#EXFRAME = 6
edition_type=5
\ No newline at end of file
edition_type=5
#プライバシーポリシーURL
privacy_policy_url=https://www.agentec.jp/privacy/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment