Sha256: f7b38c400400d0fb97ba27f67ad54e44b64e194d9e6e9c4e5d288810f6a1e10c
Contents?: true
Size: 1.63 KB
Versions: 2
Compression:
Stored size: 1.63 KB
Contents
package <%= package_name %>.main import androidx.appcompat.app.AppCompatActivity import androidx.fragment.app.Fragment import dev.hotwire.strada.Bridge import dev.hotwire.turbo.config.TurboPathConfiguration import <%= package_name %>.features.native.NumbersFragment import <%= package_name %>.features.web.WebBottomSheetFragment import <%= package_name %>.features.web.WebFragment import <%= package_name %>.features.web.WebHomeFragment import <%= package_name %>.features.web.WebModalFragment import <%= package_name %>.util.CURRENT_URL import dev.hotwire.turbo.session.TurboSessionNavHostFragment import <%= package_name %>.util.customUserAgent import kotlin.reflect.KClass @Suppress("unused") class MainSessionNavHostFragment : TurboSessionNavHostFragment() { override val sessionName = "main" override val startLocation = CURRENT_URL override val registeredActivities: List<KClass<out AppCompatActivity>> get() = listOf() override val registeredFragments: List<KClass<out Fragment>> get() = listOf( WebFragment::class, WebHomeFragment::class, WebModalFragment::class, WebBottomSheetFragment::class, NumbersFragment::class ) override val pathConfigurationLocation: TurboPathConfiguration.Location get() = TurboPathConfiguration.Location(assetFilePath = "json/configuration.json") override fun onSessionCreated() { super.onSessionCreated() session.webView.settings.userAgentString = session.webView.customUserAgent // Initialize Strada bridge with new WebView instance Bridge.initialize(session.webView) } }
Version data entries
2 entries across 2 versions & 1 rubygems