diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 54de1d6..1b31d69 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -15,7 +15,6 @@ android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:networkSecurityConfig="@xml/network_security_config" - android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="true" android:theme="@style/Theme.WhoNeedHelp" android:usesCleartextTraffic="${usesCleartextTraffic}"> diff --git a/android/app/src/main/java/org/whoneedhelp/mobile/MainActivity.java b/android/app/src/main/java/org/whoneedhelp/mobile/MainActivity.java index b34c4e2..bd89ba0 100644 --- a/android/app/src/main/java/org/whoneedhelp/mobile/MainActivity.java +++ b/android/app/src/main/java/org/whoneedhelp/mobile/MainActivity.java @@ -119,7 +119,9 @@ public final class MainActivity extends ComponentActivity { settings.setAllowContentAccess(false); settings.setMixedContentMode(WebSettings.MIXED_CONTENT_NEVER_ALLOW); settings.setMediaPlaybackRequiresUserGesture(true); - settings.setUserAgentString(settings.getUserAgentString() + " WhoNeedHelpAndroid/0.1"); + settings.setUserAgentString( + settings.getUserAgentString() + " WhoNeedHelpAndroid/" + BuildConfig.VERSION_NAME + ); CookieManager cookieManager = CookieManager.getInstance(); cookieManager.setAcceptCookie(true); diff --git a/android/app/src/main/java/org/whoneedhelp/mobile/WhoNeedHelpMessagingService.java b/android/app/src/main/java/org/whoneedhelp/mobile/WhoNeedHelpMessagingService.java index 8cd5582..8cfb133 100644 --- a/android/app/src/main/java/org/whoneedhelp/mobile/WhoNeedHelpMessagingService.java +++ b/android/app/src/main/java/org/whoneedhelp/mobile/WhoNeedHelpMessagingService.java @@ -1,5 +1,6 @@ package org.whoneedhelp.mobile; +import android.annotation.SuppressLint; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; @@ -15,6 +16,8 @@ import com.google.firebase.messaging.RemoteMessage; import java.util.Map; +// The current Firebase Installation ID API invokes onRegistered; onNewToken is deprecated. +@SuppressLint("MissingFirebaseInstanceTokenRefresh") public final class WhoNeedHelpMessagingService extends FirebaseMessagingService { private static final String CHANNEL_ID = "who_need_help_updates"; diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml index a8a8fa5..36a6959 100644 --- a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -1,5 +1,8 @@ - + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png index fac8c4b..f34cdb6 100644 Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png index 675b20d..d84d3fb 100644 Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png index 09a234f..44e7ad3 100644 Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png index 40d7e93..231e19c 100644 Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png index 8a590c5..91fa98d 100644 Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ