From ef97cb941c72ac89c1c1790db708966b3d8bbdd9 Mon Sep 17 00:00:00 2001 From: TJ Dahunsi Date: Sat, 6 May 2023 11:01:31 +0100 Subject: [PATCH] Route notification deep link through for you screen --- app/src/main/AndroidManifest.xml | 6 +- .../repository/OfflineFirstNewsRepository.kt | 4 +- .../core/notifications/NoOpNotifier.kt | 2 +- .../core/notifications/Notifier.kt | 2 +- ...ystemNotifier.kt => SystemTrayNotifier.kt} | 109 ++++++++++-------- .../testing/notifications/TestNotifier.kt | 2 +- .../feature/foryou/ForYouScreenTest.kt | 14 +++ .../feature/foryou/ForYouScreen.kt | 47 +++++++- .../feature/foryou/ForYouViewModel.kt | 40 +++++++ .../foryou/navigation/ForYouNavigation.kt | 16 ++- .../feature/foryou/ForYouViewModelTest.kt | 33 ++++++ 11 files changed, 217 insertions(+), 58 deletions(-) rename core/notifications/src/main/java/com/google/samples/apps/nowinandroid/core/notifications/{AndroidSystemNotifier.kt => SystemTrayNotifier.kt} (61%) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 99c233910..0b0482c13 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,9 +42,13 @@ android:exported="true"> - + + +