From af5f89828df608faf49d3c91594cc76829cdec42 Mon Sep 17 00:00:00 2001 From: Joe Masilotti Date: Thu, 10 Oct 2024 09:07:21 -0700 Subject: [PATCH 1/2] HotwireDestination -> HotwireDestinationDeepLink --- _source/android/04_native_screens.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_source/android/04_native_screens.md b/_source/android/04_native_screens.md index 1262613..f10fed5 100644 --- a/_source/android/04_native_screens.md +++ b/_source/android/04_native_screens.md @@ -30,10 +30,10 @@ First, create a URL path pattern and set its `uri` property. This path configura When a link is intercepted by Hotwire Native, it will go through its usual process of matching the link's URL path to all rules in the app's Path Configuration. When it matches the above rule, it will propose a `visit` and resolve the matching `HotwireDestination` whose `uri` matches `"hotwire://fragment/numbers"`. -Create a new fragment and provide a matching `HotwireDestination` annotation. +Create a new fragment and provide a matching `HotwireDestinationDeepLink` annotation. ```kotlin -@HotwireDestination(uri = "hotwire://fragment/numbers") +@HotwireDestinationDeepLink(uri = "hotwire://fragment/numbers") class NumbersFragment : HotwireFragment() { // ... } From 1226242955013e05f199e8976945d60ac9c3dcdb Mon Sep 17 00:00:00 2001 From: Joe Masilotti Date: Thu, 10 Oct 2024 10:06:22 -0700 Subject: [PATCH 2/2] WebFragment -> HotwireWebFragment --- _source/android/05_configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_source/android/05_configuration.md b/_source/android/05_configuration.md index 8cb1cc4..26eac5a 100644 --- a/_source/android/05_configuration.md +++ b/_source/android/05_configuration.md @@ -43,7 +43,7 @@ Hotwire.config.webViewDebuggingEnabled = BuildConfig.DEBUG Set the default fragment destination: ```kotlin -Hotwire.defaultFragmentDestination = WebFragment::class +Hotwire.defaultFragmentDestination = HotwireWebFragment::class ``` Register fragment destinations: