Skip to content
Discussion options

You must be logged in to vote

Thanks to @MichalSznajder, code of demo application and the Hotwire native for Rails developers book , I managed to create a working code:

  1. I had to create MyApplication.kt file with following code:
package com.myaap

import android.app.Application
import dev.hotwire.core.config.Hotwire
import dev.hotwire.navigation.config.defaultFragmentDestination
import dev.hotwire.navigation.config.registerFragmentDestinations

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        configureApp()
    }

    private fun configureApp(){
        // CustomWebFragment manages HTTPAuth connection to sandbox
        Hotwire.defaultFragmentDestination = CustomWeb…

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
8 replies
@MichalSznajder
Comment options

@janpeterka
Comment options

@janpeterka
Comment options

@janpeterka
Comment options

@janpeterka
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by janpeterka
Comment options

You must be logged in to vote
2 replies
@MichalSznajder
Comment options

@janpeterka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants