diff --git a/androidApp/src/main/AndroidManifest.xml b/androidApp/src/main/AndroidManifest.xml index a5ccd492d..747f575a9 100644 --- a/androidApp/src/main/AndroidManifest.xml +++ b/androidApp/src/main/AndroidManifest.xml @@ -30,7 +30,8 @@ android:theme="@style/Theme.Movies.Starting" android:icon="@mipmap/ic_launcher_red" android:roundIcon="@mipmap/ic_launcher_red" - android:enableOnBackInvokedCallback="true"> + android:enableOnBackInvokedCallback="true" + tools:ignore="UnusedAttribute"> + android:exported="true"> @@ -56,16 +56,24 @@ android:host="www.themoviedb.org" android:path="/movie" android:scheme="http" /> + + + + + + - + android:autoVerify="true" + tools:ignore="AppLinkUrlError"> + @@ -77,7 +85,8 @@ + android:autoVerify="true" + tools:ignore="AppLinkUrlError"> @@ -89,7 +98,8 @@ + android:autoVerify="true" + tools:ignore="AppLinkUrlError"> @@ -101,7 +111,8 @@ + android:autoVerify="true" + tools:ignore="AppLinkUrlError"> diff --git a/core/common/src/androidMain/kotlin/org/michaelbel/movies/common/biometric/impl/BiometricControllerImpl.kt b/core/common/src/androidMain/kotlin/org/michaelbel/movies/common/biometric/impl/BiometricControllerImpl.kt index 32f8575f6..64b56f8ce 100644 --- a/core/common/src/androidMain/kotlin/org/michaelbel/movies/common/biometric/impl/BiometricControllerImpl.kt +++ b/core/common/src/androidMain/kotlin/org/michaelbel/movies/common/biometric/impl/BiometricControllerImpl.kt @@ -7,9 +7,9 @@ import androidx.core.content.ContextCompat import androidx.fragment.app.FragmentActivity import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf +import org.michaelbel.movies.common.R import org.michaelbel.movies.common.biometric.BiometricController import org.michaelbel.movies.common.biometric.BiometricListener -import org.michaelbel.movies.common.R internal class BiometricControllerImpl( private val context: Context @@ -35,6 +35,7 @@ internal class BiometricControllerImpl( when (errorCode) { BiometricPrompt.ERROR_USER_CANCELED -> biometricListener.onCancel() BiometricPrompt.ERROR_NEGATIVE_BUTTON -> biometricListener.onCancel() + else -> Unit } } } diff --git a/core/platform-services/gms/src/androidMain/kotlin/org/michaelbel/movies/platform/impl/messaging/service/MoviesMessagingService.kt b/core/platform-services/gms/src/androidMain/kotlin/org/michaelbel/movies/platform/impl/messaging/service/MoviesMessagingService.kt index 523dfe9b2..1d08e7b00 100644 --- a/core/platform-services/gms/src/androidMain/kotlin/org/michaelbel/movies/platform/impl/messaging/service/MoviesMessagingService.kt +++ b/core/platform-services/gms/src/androidMain/kotlin/org/michaelbel/movies/platform/impl/messaging/service/MoviesMessagingService.kt @@ -13,6 +13,10 @@ internal class MoviesMessagingService: FirebaseMessagingService() { private val notificationClient: NotificationClient by inject() + override fun onNewToken(token: String) { + super.onNewToken(token) + } + override fun onMessageReceived(message: RemoteMessage) { notificationClient.send(message.mapToMoviesPush) } diff --git a/core/widget/src/androidMain/kotlin/org/michaelbel/movies/widget/ktx/AppWidgetProviderInfoKtx.kt b/core/widget/src/androidMain/kotlin/org/michaelbel/movies/widget/ktx/AppWidgetProviderInfoKtx.kt index 2225f47b0..e55550118 100644 --- a/core/widget/src/androidMain/kotlin/org/michaelbel/movies/widget/ktx/AppWidgetProviderInfoKtx.kt +++ b/core/widget/src/androidMain/kotlin/org/michaelbel/movies/widget/ktx/AppWidgetProviderInfoKtx.kt @@ -1,5 +1,8 @@ +@file:SuppressLint("NewApi") + package org.michaelbel.movies.widget.ktx +import android.annotation.SuppressLint import android.app.PendingIntent import android.appwidget.AppWidgetManager import android.appwidget.AppWidgetProviderInfo diff --git a/core/widget/src/androidMain/res/layout/widget_preview.xml b/core/widget/src/androidMain/res/layout/widget_preview.xml index a35559b40..ef433ecd5 100644 --- a/core/widget/src/androidMain/res/layout/widget_preview.xml +++ b/core/widget/src/androidMain/res/layout/widget_preview.xml @@ -1,6 +1,7 @@ + android:fontFamily="@font/open_sans_semibold" + tools:ignore="HardcodedText" /> + android:fontFamily="@font/open_sans_semibold" + tools:ignore="HardcodedText" /> + android:fontFamily="@font/open_sans_semibold" + tools:ignore="HardcodedText" /> + android:fontFamily="@font/open_sans_semibold" + tools:ignore="HardcodedText" /> \ No newline at end of file diff --git a/feature/debug-impl/src/androidMain/AndroidManifest.xml b/feature/debug-impl/src/androidMain/AndroidManifest.xml index c2678b488..117a5137e 100644 --- a/feature/debug-impl/src/androidMain/AndroidManifest.xml +++ b/feature/debug-impl/src/androidMain/AndroidManifest.xml @@ -7,8 +7,7 @@ + android:exported="true" /> diff --git a/feature/gallery-impl/src/androidMain/kotlin/org/michaelbel/movies/gallery/zoomable/ZoomState.kt b/feature/gallery-impl/src/androidMain/kotlin/org/michaelbel/movies/gallery/zoomable/ZoomState.kt index 21e229303..90282520a 100644 --- a/feature/gallery-impl/src/androidMain/kotlin/org/michaelbel/movies/gallery/zoomable/ZoomState.kt +++ b/feature/gallery-impl/src/androidMain/kotlin/org/michaelbel/movies/gallery/zoomable/ZoomState.kt @@ -16,7 +16,6 @@ package org.michaelbel.movies.gallery.zoomable -import android.util.Log import androidx.annotation.FloatRange import androidx.compose.animation.core.Animatable import androidx.compose.animation.core.AnimationSpec @@ -238,7 +237,6 @@ class ZoomState( position: Offset, animationSpec: AnimationSpec = spring(), ) = coroutineScope { - Log.e("2", "changeScale targetScale=$targetScale, position=$position, animationSpec=$animationSpec") val newScale = targetScale.coerceIn(1f, maxScale) val newOffset = calculateNewOffset(newScale, position, Offset.Zero) val newBounds = calculateNewBounds(newScale) diff --git a/feature/settings-impl/src/androidMain/kotlin/org/michaelbel/movies/settings/model/Features.android.kt b/feature/settings-impl/src/androidMain/kotlin/org/michaelbel/movies/settings/model/Features.android.kt index d883b8154..c2eb3ec2d 100644 --- a/feature/settings-impl/src/androidMain/kotlin/org/michaelbel/movies/settings/model/Features.android.kt +++ b/feature/settings-impl/src/androidMain/kotlin/org/michaelbel/movies/settings/model/Features.android.kt @@ -28,7 +28,7 @@ internal actual val isBiometricFeatureEnabled: Boolean get() = true internal actual val isWidgetFeatureEnabled: Boolean - get() = true + get() = Build.VERSION.SDK_INT >= 26 internal actual val isTileFeatureEnabled: Boolean get() = Build.VERSION.SDK_INT >= 33