Sha256: 47e1419119af657266546252c523ab22fac1b98808fce7f5d86d8b9ef77a39fd
Contents?: true
Size: 782 Bytes
Versions: 9
Compression:
Stored size: 782 Bytes
Contents
package <%= package_name %>.main import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import dev.hotwire.strada.KotlinXJsonConverter import dev.hotwire.strada.Strada import dev.hotwire.turbo.activities.TurboActivity import dev.hotwire.turbo.delegates.TurboActivityDelegate import <%= package_name %>.R class MainActivity : AppCompatActivity(), TurboActivity { override lateinit var delegate: TurboActivityDelegate override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) delegate = TurboActivityDelegate(this, R.id.main_nav_host) configApp() } private fun configApp() { Strada.config.jsonConverter = KotlinXJsonConverter() } }
Version data entries
9 entries across 9 versions & 1 rubygems