diff --git a/app/build.gradle b/app/build.gradle
index ba4e425..9cf5fd1 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -4,13 +4,13 @@ android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
defaultConfig {
- applicationId "org.eu.exodus_privacy.exodusprivacy"
minSdkVersion 17
targetSdkVersion 30
versionCode 10
versionName "2.1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
+ flavorDimensions "default"
buildTypes {
release {
minifyEnabled false
@@ -20,6 +20,31 @@ android {
}
}
}
+
+ lintOptions {
+ disable 'MissingTranslation'
+ checkReleaseBuilds false
+ abortOnError false
+ }
+
+ productFlavors {
+ exodus {
+ applicationId "org.eu.exodus_privacy.exodusprivacy"
+ }
+ amal {
+ applicationId "app.fedilab.amal"
+ }
+ }
+
+ sourceSets {
+ exodus {
+ res.srcDirs = ['src/main/res', 'src/exodus/res']
+ }
+ amal {
+ res.srcDirs = ['src/main/res', 'src/amal/res']
+ }
+
+ }
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
diff --git a/app/src/amal/ic_launcher-playstore.png b/app/src/amal/ic_launcher-playstore.png
new file mode 100644
index 0000000..ea1ad65
Binary files /dev/null and b/app/src/amal/ic_launcher-playstore.png differ
diff --git a/app/src/amal/res/drawable/ic_launcher_foreground.xml b/app/src/amal/res/drawable/ic_launcher_foreground.xml
new file mode 100644
index 0000000..b0f3e44
--- /dev/null
+++ b/app/src/amal/res/drawable/ic_launcher_foreground.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/src/amal/res/drawable/ic_logo.xml b/app/src/amal/res/drawable/ic_logo.xml
new file mode 100644
index 0000000..1927d8d
--- /dev/null
+++ b/app/src/amal/res/drawable/ic_logo.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
diff --git a/app/src/amal/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/amal/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..ac94b34
--- /dev/null
+++ b/app/src/amal/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/amal/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/amal/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..ac94b34
--- /dev/null
+++ b/app/src/amal/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/amal/res/mipmap-hdpi/ic_launcher.png b/app/src/amal/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..3e1a02f
Binary files /dev/null and b/app/src/amal/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/app/src/amal/res/mipmap-hdpi/ic_launcher_round.png b/app/src/amal/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..293f58c
Binary files /dev/null and b/app/src/amal/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/app/src/amal/res/mipmap-mdpi/ic_launcher.png b/app/src/amal/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..323e874
Binary files /dev/null and b/app/src/amal/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/app/src/amal/res/mipmap-mdpi/ic_launcher_round.png b/app/src/amal/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..9f806b7
Binary files /dev/null and b/app/src/amal/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/app/src/amal/res/mipmap-xhdpi/ic_launcher.png b/app/src/amal/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..dc4adef
Binary files /dev/null and b/app/src/amal/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/app/src/amal/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/amal/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..4bab087
Binary files /dev/null and b/app/src/amal/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/app/src/amal/res/mipmap-xxhdpi/ic_launcher.png b/app/src/amal/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..27b340e
Binary files /dev/null and b/app/src/amal/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/app/src/amal/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/amal/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..f3e7a2a
Binary files /dev/null and b/app/src/amal/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/app/src/amal/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/amal/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..1219495
Binary files /dev/null and b/app/src/amal/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/app/src/amal/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/amal/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..4a798f7
Binary files /dev/null and b/app/src/amal/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/app/src/amal/res/values/colors.xml b/app/src/amal/res/values/colors.xml
new file mode 100644
index 0000000..afd9fd2
--- /dev/null
+++ b/app/src/amal/res/values/colors.xml
@@ -0,0 +1,21 @@
+
+
+ #005e8b
+ #3d2b43
+ #007bff
+
+ #6fc384
+ #e46772
+ #ffdb66
+
+ #17a2b8
+ #ffc70f
+ #ff8c00
+ #e61718
+
+ #684971
+ #343A40
+ #6C757D
+ #FFFFFF
+ #E83E8C
+
diff --git a/app/src/amal/res/values/exodus.xml b/app/src/amal/res/values/exodus.xml
new file mode 100644
index 0000000..1238531
--- /dev/null
+++ b/app/src/amal/res/values/exodus.xml
@@ -0,0 +1,6 @@
+
+
+ 9c6106a229bc5f34b5802e5861bcb87d1626617d
+ AMAL
+ AMAL
+
\ No newline at end of file
diff --git a/app/src/amal/res/values/ic_launcher_background.xml b/app/src/amal/res/values/ic_launcher_background.xml
new file mode 100644
index 0000000..c5d5899
--- /dev/null
+++ b/app/src/amal/res/values/ic_launcher_background.xml
@@ -0,0 +1,4 @@
+
+
+ #FFFFFF
+
\ No newline at end of file
diff --git a/app/src/amal/res/values/strings.xml b/app/src/amal/res/values/strings.xml
new file mode 100644
index 0000000..a6b3dae
--- /dev/null
+++ b/app/src/amal/res/values/strings.xml
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/app/src/main/res/drawable/ic_logo_purple.xml b/app/src/exodus/res/drawable/ic_logo.xml
similarity index 70%
rename from app/src/main/res/drawable/ic_logo_purple.xml
rename to app/src/exodus/res/drawable/ic_logo.xml
index 58fcb9a..b1322a8 100644
--- a/app/src/main/res/drawable/ic_logo_purple.xml
+++ b/app/src/exodus/res/drawable/ic_logo.xml
@@ -1,10 +1,21 @@
-
-
+
-
+
+ android:strokeWidth="0.03275258"
+ android:strokeAlpha="1"
+ android:strokeColor="#00000000"
+ android:strokeLineCap="butt"
+ android:strokeLineJoin="miter" />
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/app/src/exodus/res/mipmap-anydpi-v26/ic_launcher.xml
similarity index 100%
rename from app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
rename to app/src/exodus/res/mipmap-anydpi-v26/ic_launcher.xml
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_background.xml b/app/src/exodus/res/mipmap-anydpi-v26/ic_launcher_background.xml
similarity index 100%
rename from app/src/main/res/mipmap-anydpi-v26/ic_launcher_background.xml
rename to app/src/exodus/res/mipmap-anydpi-v26/ic_launcher_background.xml
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_foreground.xml b/app/src/exodus/res/mipmap-anydpi-v26/ic_launcher_foreground.xml
similarity index 100%
rename from app/src/main/res/mipmap-anydpi-v26/ic_launcher_foreground.xml
rename to app/src/exodus/res/mipmap-anydpi-v26/ic_launcher_foreground.xml
diff --git a/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/app/src/exodus/res/mipmap-anydpi-v26/ic_launcher_round.xml
similarity index 100%
rename from app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
rename to app/src/exodus/res/mipmap-anydpi-v26/ic_launcher_round.xml
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/exodus/res/mipmap-hdpi/ic_launcher.png
similarity index 100%
rename from app/src/main/res/mipmap-hdpi/ic_launcher.png
rename to app/src/exodus/res/mipmap-hdpi/ic_launcher.png
diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/app/src/exodus/res/mipmap-hdpi/ic_launcher_round.png
similarity index 100%
rename from app/src/main/res/mipmap-hdpi/ic_launcher_round.png
rename to app/src/exodus/res/mipmap-hdpi/ic_launcher_round.png
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/exodus/res/mipmap-mdpi/ic_launcher.png
similarity index 100%
rename from app/src/main/res/mipmap-mdpi/ic_launcher.png
rename to app/src/exodus/res/mipmap-mdpi/ic_launcher.png
diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/app/src/exodus/res/mipmap-mdpi/ic_launcher_round.png
similarity index 100%
rename from app/src/main/res/mipmap-mdpi/ic_launcher_round.png
rename to app/src/exodus/res/mipmap-mdpi/ic_launcher_round.png
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/exodus/res/mipmap-xhdpi/ic_launcher.png
similarity index 100%
rename from app/src/main/res/mipmap-xhdpi/ic_launcher.png
rename to app/src/exodus/res/mipmap-xhdpi/ic_launcher.png
diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/app/src/exodus/res/mipmap-xhdpi/ic_launcher_round.png
similarity index 100%
rename from app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
rename to app/src/exodus/res/mipmap-xhdpi/ic_launcher_round.png
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/exodus/res/mipmap-xxhdpi/ic_launcher.png
similarity index 100%
rename from app/src/main/res/mipmap-xxhdpi/ic_launcher.png
rename to app/src/exodus/res/mipmap-xxhdpi/ic_launcher.png
diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/app/src/exodus/res/mipmap-xxhdpi/ic_launcher_round.png
similarity index 100%
rename from app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
rename to app/src/exodus/res/mipmap-xxhdpi/ic_launcher_round.png
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/exodus/res/mipmap-xxxhdpi/ic_launcher.png
similarity index 100%
rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
rename to app/src/exodus/res/mipmap-xxxhdpi/ic_launcher.png
diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/app/src/exodus/res/mipmap-xxxhdpi/ic_launcher_round.png
similarity index 100%
rename from app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
rename to app/src/exodus/res/mipmap-xxxhdpi/ic_launcher_round.png
diff --git a/app/src/main/res/values/colors.xml b/app/src/exodus/res/values/colors.xml
similarity index 100%
rename from app/src/main/res/values/colors.xml
rename to app/src/exodus/res/values/colors.xml
diff --git a/app/src/main/res/values/exodus.xml b/app/src/exodus/res/values/exodus.xml
similarity index 100%
rename from app/src/main/res/values/exodus.xml
rename to app/src/exodus/res/values/exodus.xml
diff --git a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/HomeFragment.java b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/HomeFragment.java
index 83154ad..25abeb7 100644
--- a/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/HomeFragment.java
+++ b/app/src/main/java/org/eu/exodus_privacy/exodusprivacy/fragments/HomeFragment.java
@@ -204,8 +204,10 @@ public class HomeFragment extends Fragment implements ComputeAppListTask.Listene
if (!apps.isEmpty()) {
if (startupRefresh) {
Calendar cal = Calendar.getInstance();
- cal.setTime(Utils.stringToDate(getContext(), last_refresh));
- cal.add(Calendar.DAY_OF_YEAR, 1);
+ if (last_refresh != null) {
+ cal.setTime(Utils.stringToDate(getContext(), last_refresh));
+ cal.add(Calendar.DAY_OF_YEAR, 1);
+ }
Date refreshAfter = cal.getTime();
Date currentDate = new Date();
if (last_refresh != null && !refreshInProgress && currentDate.after(refreshAfter)) {
diff --git a/app/src/main/res/layout/home.xml b/app/src/main/res/layout/home.xml
index 0bc7f0b..3ae7294 100644
--- a/app/src/main/res/layout/home.xml
+++ b/app/src/main/res/layout/home.xml
@@ -63,7 +63,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
- android:src="@drawable/ic_logo_purple"
+ android:src="@drawable/ic_logo"
android:layout_width="200dp"
android:layout_height="200dp" />