From e00d43f93c28b24977a5406b895459507018a0ac Mon Sep 17 00:00:00 2001 From: Billy Brawner Date: Sat, 17 Aug 2019 12:55:25 -0500 Subject: [PATCH] Convert MarkdownApplication to Kotlin --- .../simplemarkdown/MarkdownApplication.java | 20 ------------------- .../simplemarkdown/MarkdownApplication.kt | 16 +++++++++++++++ 2 files changed, 16 insertions(+), 20 deletions(-) delete mode 100644 app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.java create mode 100644 app/src/main/java/com/wbrawner/simplemarkdown/MarkdownApplication.kt 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() + } +}