Add the Cloudflare mirror and bump version

Signed-off-by: Tavi <tavi@divested.dev>
This commit is contained in:
Tavi 2024-05-17 09:15:22 -04:00
parent b4b1e1a5ff
commit 8d9314ef97
No known key found for this signature in database
GPG key ID: E599F62ECBAEAF2E
11 changed files with 28 additions and 5 deletions

10
.idea/deploymentTargetSelector.xml generated Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetSelector">
<selectionStates>
<SelectionState runConfigName="app">
<option name="selectionMode" value="DROPDOWN" />
</SelectionState>
</selectionStates>
</component>
</project>

View file

@ -6,8 +6,8 @@ android {
applicationId "us.spotco.malwarescanner" applicationId "us.spotco.malwarescanner"
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 32 targetSdkVersion 32
versionCode 309 versionCode 310
versionName "3.09" versionName "3.10"
resConfigs 'en', 'af', 'cs', 'de', 'el', 'es', 'fi', 'fr', 'gl', 'it', 'pl', 'pt', 'pt-rBR', 'ru', 'tr', 'zh-rCN' resConfigs 'en', 'af', 'cs', 'de', 'el', 'es', 'fi', 'fr', 'gl', 'it', 'pl', 'pt', 'pt-rBR', 'ru', 'tr', 'zh-rCN'
} }
buildTypes { buildTypes {

View file

@ -196,10 +196,14 @@ public class MainActivity extends Activity {
} }
prefs.edit().putString("DATABASE_SERVER", newServer).apply(); prefs.edit().putString("DATABASE_SERVER", newServer).apply();
}); });
builderServerOverride.setNegativeButton(getString(R.string.lblReset), (dialog, which) -> { builderServerOverride.setNegativeButton(getString(R.string.lblResetPrimary), (dialog, which) -> {
prefs.edit().putString("DATABASE_SERVER", Utils.DATABASE_URL_DEFAULT).apply(); prefs.edit().putString("DATABASE_SERVER", Utils.DATABASE_URL_DEFAULT).apply();
dialog.cancel(); dialog.cancel();
}); });
builderServerOverride.setNeutralButton(getString(R.string.lblResetCloudflare), (dialog, which) -> {
prefs.edit().putString("DATABASE_SERVER", Utils.DATABASE_URL_CLOUDFLARE).apply();
dialog.cancel();
});
builderServerOverride.show(); builderServerOverride.show();
} }
break; break;

View file

@ -45,6 +45,7 @@ class Utils {
public final static int MAX_SCAN_SIZE = (1000 * 1000) * 500; //500MB public final static int MAX_SCAN_SIZE = (1000 * 1000) * 500; //500MB
public final static int MAX_SCAN_SIZE_REALTIME = (1000 * 1000) * 250; //250MB public final static int MAX_SCAN_SIZE_REALTIME = (1000 * 1000) * 250; //250MB
public final static String DATABASE_URL_DEFAULT = "https://divested.dev/MalwareScannerSignatures/"; public final static String DATABASE_URL_DEFAULT = "https://divested.dev/MalwareScannerSignatures/";
public final static String DATABASE_URL_CLOUDFLARE = "https://eeyo.re/MalwareScannerSignatures/";
public final static String SIGNING_KEY_DEFAULT = "BADFCABDDBF5B694"; public final static String SIGNING_KEY_DEFAULT = "BADFCABDDBF5B694";
public static final AtomicInteger FILES_SCANNED = new AtomicInteger(); public static final AtomicInteger FILES_SCANNED = new AtomicInteger();

View file

@ -76,4 +76,6 @@
<string name="confirm_update_summary">You appear to be on a metered connection. Are you sure you want to update the databases?\nIt may download up to %s megabytes of data.</string> <string name="confirm_update_summary">You appear to be on a metered connection. Are you sure you want to update the databases?\nIt may download up to %s megabytes of data.</string>
<string name="lblUpdateRunning">Skipping action, an update is running!</string> <string name="lblUpdateRunning">Skipping action, an update is running!</string>
<string name="lblWroteTestFiles">Wrote test files!</string> <string name="lblWroteTestFiles">Wrote test files!</string>
<string name="lblResetPrimary">Primary Servers</string>
<string name="lblResetCloudflare">Cloudflare Mirror</string>
</resources> </resources>

View file

@ -1,4 +1,4 @@
* Added Galician translations from @ghose * Added Galician translations from @ghose
* Added Brazilian Portuguese from @lucasmz * Added Brazilian Portuguese translations from @lucasmz
* Updated German translations from @thereisnoanderson * Updated German translations from @thereisnoanderson
* Updated Italian translations from Tommaso Fonda * Updated Italian translations from Tommaso Fonda

View file

@ -0,0 +1,6 @@
* The database override option now has a choice for primary servers or a Cloudflare mirror
* Updated/merged Brazilian translations from @lucasmz
* Updated Russian fastlane translations from @t1011
* Updated Russian fastlane translations from @yurtpage
* Fastlane feature graphic banners are now translated thanks to @eloitor and @lucasmz
* Repo READMEs have received translated F-Droid badges from @eloitor

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB