Sha256: 69f3f39aede2f9dfbb9085444aa739da2ecc9271475423b57dc91b20a45be63a
Contents?: true
Size: 1.33 KB
Versions: 7
Compression:
Stored size: 1.33 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.WebFragment import <%= package_name %>.features.web.WebHomeFragment import <%= package_name %>.features.web.WebModalFragment import dev.hotwire.turbo.session.TurboSessionNavHostFragment import <%= package_name %>.util.customUserAgent import kotlin.reflect.KClass abstract class BaseSessionNavHostFragment : TurboSessionNavHostFragment() { override val registeredActivities: List<KClass<out AppCompatActivity>> get() = listOf() override val registeredFragments: List<KClass<out Fragment>> get() = listOf(WebFragment::class, WebHomeFragment::class, WebModalFragment::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
7 entries across 7 versions & 1 rubygems