Skip to content

Android application context initialization built-inΒ #46

@N7ghtm4r3

Description

@N7ghtm4r3

Hi, can be the Android application context initialization built-in by default, because the method:

class MyApplication : Application() {
    companion object {
        lateinit var INSTANCE: MyApplication
    }

    override fun onCreate() {
        super.onCreate()
        INSTANCE = this
        AppContext.apply { set(applicationContext) }
    }
}

is a bit tricky to set up and a snippet that can be natively integrated by the library providing it ready to use without external code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions