From 269f95b55bc05dc5288addba917b1630cef91a29 Mon Sep 17 00:00:00 2001
From: PeratX <1215714524@qq.com>
Date: Sun, 7 Oct 2018 14:20:53 +0800
Subject: [PATCH] Added Privacy Policy. Release 1.12.1
---
app/build.gradle | 10 +++++-----
.../daedalus/fragment/GlobalConfigFragment.java | 5 +++++
app/src/main/res/values-zh-rCN/strings.xml | 1 +
app/src/main/res/values-zh-rTW/strings.xml | 1 +
app/src/main/res/values/strings.xml | 1 +
app/src/main/res/xml/perf_settings.xml | 3 +++
build.gradle | 2 +-
7 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/app/build.gradle b/app/build.gradle
index ac82510..077f968 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -10,8 +10,8 @@ android {
applicationId "org.itxtech.daedalus"
minSdkVersion 15
targetSdkVersion 27
- versionCode 16
- versionName "1.12.0"
+ versionCode 17
+ versionName "1.12.1"
buildConfigField "String", "BUILD_TIME", "\"${System.currentTimeMillis()}\""
buildConfigField "String", "GIT_COMMIT", "\"${gitCommit}\""
@@ -47,11 +47,11 @@ dependencies {
//DNS
implementation 'org.pcap4j:pcap4j-core:1.7.3'
implementation 'org.pcap4j:pcap4j-packetfactory-static:1.7.3'
- implementation 'org.minidns:minidns-client:0.3.0'
+ implementation 'org.minidns:minidns-client:0.3.2'
implementation 'com.google.code.gson:gson:2.8.5'
- implementation 'com.squareup.okhttp3:okhttp:3.10.0'
+ implementation 'com.squareup.okhttp3:okhttp:3.11.0'
//Analytics
- implementation 'com.google.firebase:firebase-core:16.0.3'
+ implementation 'com.google.firebase:firebase-core:16.0.4'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.5'
}
diff --git a/app/src/main/java/org/itxtech/daedalus/fragment/GlobalConfigFragment.java b/app/src/main/java/org/itxtech/daedalus/fragment/GlobalConfigFragment.java
index bfea391..30414a5 100644
--- a/app/src/main/java/org/itxtech/daedalus/fragment/GlobalConfigFragment.java
+++ b/app/src/main/java/org/itxtech/daedalus/fragment/GlobalConfigFragment.java
@@ -105,6 +105,11 @@ public class GlobalConfigFragment extends PreferenceFragment {
return false;
});
+ findPreference("settings_privacy_policy").setOnPreferenceClickListener(preference -> {
+ Daedalus.openUri("https://github.com/iTXTech/Daedalus/wiki/Privacy-Policy");
+ return false;
+ });
+
updateAdvancedOptions(advanced.isChecked());
}
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 6a5f9b6..40252b4 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -52,6 +52,7 @@
显示通知
检查更新
前往 GitHub 发布页面。
+ 隐私政策
统计 DNS 查询次数
提交反馈
前往 GitHub 提交 Bug 反馈。
diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml
index 2a571b4..45c0d1b 100644
--- a/app/src/main/res/values-zh-rTW/strings.xml
+++ b/app/src/main/res/values-zh-rTW/strings.xml
@@ -52,6 +52,7 @@
顯示通知
檢查更新
造訪 GitHub 發行頁面。
+ 隱私政策
統計 DNS 查詢次數
回報 Bug
前往 GitHub 送出 Bug 回饋。
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 66a0e05..9956207 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -51,6 +51,7 @@
Show Notification
Check Update
Visit GitHub Releases Page.
+ Privacy Policy
Count DNS Query Times
Report a Bug
Submit an Issue on GitHub Issues Page.
diff --git a/app/src/main/res/xml/perf_settings.xml b/app/src/main/res/xml/perf_settings.xml
index 478d383..0e1a1f2 100644
--- a/app/src/main/res/xml/perf_settings.xml
+++ b/app/src/main/res/xml/perf_settings.xml
@@ -88,6 +88,9 @@
+