From d3b6a370491799e68c59e59e68f10a40422e89ce Mon Sep 17 00:00:00 2001 From: Fox2Code Date: Fri, 1 Apr 2022 19:37:02 +0200 Subject: [PATCH 1/5] 0.4.1 Release --- app/.gitignore | 1 + app/build.gradle | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/.gitignore b/app/.gitignore index d242433..8bf1c22 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1,4 +1,5 @@ /build +/default /release /mapping.txt /.vscode \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index cb71ef2..0d83360 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -10,8 +10,8 @@ android { applicationId "com.fox2code.mmm" minSdk 21 targetSdk 32 - versionCode 35 - versionName "0.4.0" + versionCode 36 + versionName "0.4.1" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } From 5a21c6407464ee199dd1a9d790c63c95e5d86952 Mon Sep 17 00:00:00 2001 From: Fox2Code Date: Fri, 1 Apr 2022 22:02:00 +0200 Subject: [PATCH 2/5] Add distributionSha256Sum because F-Droid bot want it. --- gradle/wrapper/gradle-wrapper.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 84d1f85..78e8b07 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,3 +3,4 @@ distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists +distributionSha256Sum=9afb3ca688fc12c761a0e9e4321e4d24e977a4a8916c8a768b1fe05ddb4d6b66 From e4313e20818fef834d9c2d524e6b0572f2dc1f1d Mon Sep 17 00:00:00 2001 From: Gilbert Gilb's Date: Sat, 2 Apr 2022 12:43:30 +0200 Subject: [PATCH 3/5] Disable Androidacy repo by default in F-Droid build flavor. See https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10830#note_898237184 --- app/build.gradle | 15 ++++++++++++++- .../main/java/com/fox2code/mmm/repo/RepoData.java | 9 +++++++-- .../fox2code/mmm/settings/SettingsActivity.java | 4 +++- app/src/main/res/xml/repo_preferences.xml | 2 -- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 0d83360..eb18570 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -34,6 +34,11 @@ android { "default" { dimension "type" buildConfigField "boolean", "ENABLE_AUTO_UPDATER", "true" + buildConfigField( + "java.util.List", + "DISABLED_REPOS", + "java.util.Arrays.asList()", + ) } fdroid { @@ -44,6 +49,14 @@ android { // forbids downloading blobs from third-party websites (and F-Droid APK isn't signed // with our keys, so the APK wouldn't install anyways). buildConfigField "boolean", "ENABLE_AUTO_UPDATER", "false" + + // Repo with ads or tracking feature are disabled by default for the + // F-Droid flavor. + buildConfigField( + "java.util.List", + "DISABLED_REPOS", + "java.util.Arrays.asList(\"androidacy_repo\")", + ) } } @@ -100,4 +113,4 @@ dependencies { testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' -} \ No newline at end of file +} diff --git a/app/src/main/java/com/fox2code/mmm/repo/RepoData.java b/app/src/main/java/com/fox2code/mmm/repo/RepoData.java index fdffeba..8bb50a7 100644 --- a/app/src/main/java/com/fox2code/mmm/repo/RepoData.java +++ b/app/src/main/java/com/fox2code/mmm/repo/RepoData.java @@ -2,6 +2,7 @@ package com.fox2code.mmm.repo; import android.content.SharedPreferences; +import com.fox2code.mmm.BuildConfig; import com.fox2code.mmm.MainApplication; import com.fox2code.mmm.R; import com.fox2code.mmm.manager.ModuleInfo; @@ -42,7 +43,7 @@ public class RepoData { this.moduleHashMap = new HashMap<>(); this.name = this.url; // Set url as default name this.enabled = MainApplication.getSharedPreferences() - .getBoolean("pref_" + this.id + "_enabled", true); + .getBoolean("pref_" + this.id + "_enabled", this.isEnabledByDefault(this.id)); if (!this.cacheRoot.isDirectory()) { this.cacheRoot.mkdirs(); } else { @@ -134,6 +135,10 @@ public class RepoData { return newModules; } + protected boolean isEnabledByDefault(String id) { + return !BuildConfig.DISABLED_REPOS.contains(id); + } + public void storeMetadata(RepoModule repoModule,byte[] data) throws IOException { Files.write(new File(this.cacheRoot, repoModule.id + ".prop"), data); } @@ -176,6 +181,6 @@ public class RepoData { public void updateEnabledState() { this.enabled = MainApplication.getSharedPreferences() - .getBoolean("pref_" + this.id + "_enabled", true); + .getBoolean("pref_" + this.id + "_enabled", this.isEnabledByDefault(this.id)); } } diff --git a/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java b/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java index 101f7d5..eb25c21 100644 --- a/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java +++ b/app/src/main/java/com/fox2code/mmm/settings/SettingsActivity.java @@ -10,6 +10,7 @@ import androidx.fragment.app.FragmentTransaction; import androidx.preference.ListPreference; import androidx.preference.Preference; import androidx.preference.PreferenceFragmentCompat; +import androidx.preference.TwoStatePreference; import com.fox2code.mmm.AppUpdateManager; import com.fox2code.mmm.BuildConfig; @@ -203,6 +204,7 @@ public class SettingsActivity extends CompatActivity { preference.setTitle(R.string.repo_disabled); preference.setEnabled(false); } else { + ((TwoStatePreference)preference).setChecked(repoData.isEnabled()); preference.setTitle(repoData.isEnabled() ? R.string.repo_enabled : R.string.repo_disabled); preference.setOnPreferenceChangeListener((p, newValue) -> { @@ -252,4 +254,4 @@ public class SettingsActivity extends CompatActivity { } } } -} \ No newline at end of file +} diff --git a/app/src/main/res/xml/repo_preferences.xml b/app/src/main/res/xml/repo_preferences.xml index 9907630..cd89c81 100644 --- a/app/src/main/res/xml/repo_preferences.xml +++ b/app/src/main/res/xml/repo_preferences.xml @@ -4,7 +4,6 @@ app:key="pref_magisk_alt_repo" app:title="@string/loading"> Date: Sat, 2 Apr 2022 12:44:27 +0200 Subject: [PATCH 4/5] Add disclaimer about Androidacy using ads and trackers. See https://gitlab.com/fdroid/fdroiddata/-/merge_requests/10830#note_898354128 --- app/src/main/res/values-fr/strings.xml | 1 + app/src/main/res/values/strings.xml | 3 ++- app/src/main/res/xml/repo_preferences.xml | 8 +++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 052bd58..721da3d 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -93,4 +93,5 @@ Activer l\’effet de flou Dépôt activé Dépôt désactivé + Le dépôt Androidacy utilise des publicités et des pisteurs. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 590a0b3..93046bf 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -93,4 +93,5 @@ Enable blur Repo enabled Repo disabled - \ No newline at end of file + Androidacy repo uses ads and trackers. + diff --git a/app/src/main/res/xml/repo_preferences.xml b/app/src/main/res/xml/repo_preferences.xml index cd89c81..9bed0d6 100644 --- a/app/src/main/res/xml/repo_preferences.xml +++ b/app/src/main/res/xml/repo_preferences.xml @@ -48,6 +48,12 @@ app:key="pref_androidacy_repo_submit" app:icon="@drawable/ic_baseline_upload_file_24" app:title="@string/submit_modules" - app:singleLineTitle="false" /> + app:singleLineTitle="false" /> + From b4704881376cb3e48b56b5c0bd9b7235eee923c3 Mon Sep 17 00:00:00 2001 From: Daviteusz Date: Sat, 2 Apr 2022 13:27:41 +0200 Subject: [PATCH 5/5] Add Polish language --- app/src/main/res/values-pl/arrays.xml | 7 ++ app/src/main/res/values-pl/strings.xml | 96 ++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100644 app/src/main/res/values-pl/arrays.xml create mode 100644 app/src/main/res/values-pl/strings.xml diff --git a/app/src/main/res/values-pl/arrays.xml b/app/src/main/res/values-pl/arrays.xml new file mode 100644 index 0000000..433db94 --- /dev/null +++ b/app/src/main/res/values-pl/arrays.xml @@ -0,0 +1,7 @@ + + + Zgodny z systemem + Ciemny + Jasny + + diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml new file mode 100644 index 0000000..b027b12 --- /dev/null +++ b/app/src/main/res/values-pl/strings.xml @@ -0,0 +1,96 @@ + + Fox - Menedżer modułów Magisk + Moduły Magisk + Nie udało się uzyskać dostępu do Root lub Magisk + Wczytywanie… + Aktualizowalne + Zainstalowane + Repozytorium online + Aplikacja jest w trybie blokady + Nie udało się pobrać pliku. + Uruchomienie modułów trwało zbyt długo, rozważ wyłączenie niektórych modułów + Nie udało się nawiązać połączenia z Internetem + SettingsActivity + Dostępna nowa wersja aplikacji + Aktualizuj + Nie znaleziono opisu. + Pobierz moduł + Zainstaluj moduł + Aktualizuj moduł + Dziennik zmian + Strona WWW + Wsparcie + Wspomóż nas + Prześlij moduł + Wymaga Androida 6.0+ + + + Ostatnia aktualizacja: + Repozytorium: + autorstwa + Pliki do pobrania: + Gwiazdki: + + + + Zarządzaj repozytoriami + Tryb blokady + Tryb blokady uniemożliwia menedżerowi wykonywanie działań na modułach + Ustawienia + Informacje + Pokaż licencje + Licencje + Pokaż niekompatybilne moduły + Pokaż moduły, które są niekompatybilne z urządzeniem na podstawie ich metadanych + Magisk jest nieaktualny! + Repozytoria + Repozytorium, w którym znajdują się moduły Magisk + Alternatywa dla Magisk-Modules-Repo z mniejszymi ograniczeniami. + Usunąć pliki modułu? + Zatrzymaj pliki + Usuń pliki + Nie udało się usunąć plików modułu + Motyw + Tryb motywu + ID modułu: + Zainstaluj moduł z pamięci + Wybrany moduł jest w nieprawidłowym formacie + Instalacja lokalna + Kod źródłowy + Wbudowany moduł Magisk + Moduł wbudowany Substratum + Wymuś terminal w trybie ciemnym + Bieżący selektor plików nie umożliwił dostępu do pliku. + Zdalna instalacja + Bieżący selektor plików zwrócił niestandardową odpowiedź. + Użyj polecenia instalacji modułu magisk + + Podczas testów powodowało to problemy z narzędziem do diagnozowania błędów instalacji modułów, + dlatego ukryłem tę opcję za trybem deweloperskim, włącz ją na własne ryzyko! + + Tryb programisty włączony + Wymuś język angielski + Wyłącz filtr modułu niskiej jakości + + Niektóre moduły nie deklarują poprawnie swoich metadanych, powodując zakłócenia wizualne, + i/lub wskazują na niską jakość modułu, wyłączaj na własne ryzyko! + + DNS over HTTPS + + W niektórych przypadkach może naprawić problemy z połączeniami. + (Nie dotyczy WebView) + + Wyłącz rozszerzenia + + Wyłącz rozszerzenia Fox\'a. Uniemożliwi to modułom używanie + rozszerzeń terminala. Przydatne, gdy moduł nadużywa rozszerzeń Fox\'a. + + Zawijanie tekstu + + Zawijaj tekst do nowego wiersza zamiast umieszczać + cały tekst w tym samym wierszu podczas instalowania modułu + + Włącz rozmycie + Repozytorium włączone + Repozytorium wyłączone +