diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java deleted file mode 100644 index 965c9e4..0000000 --- a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.wbrawner.simplemarkdown; - -import androidx.multidex.MultiDexApplication; - -public class MarkdownApplication extends MultiDexApplication { - - private AppComponent component; - - @Override - public void onCreate() { - super.onCreate(); - component = DaggerAppComponent.builder() - .context(this) - .build(); - } - - public AppComponent getComponent() { - return component; - } -} diff --git a/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt new file mode 100644 index 0000000..cbe0516 --- /dev/null +++ b/app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt @@ -0,0 +1,16 @@ +package com.wbrawner.simplemarkdown + +import android.app.Application + +class MarkdownApplication : Application() { + + lateinit var component: AppComponent + private set + + override fun onCreate() { + super.onCreate() + component = DaggerAppComponent.builder() + .context(this) + .build() + } +}