diff --git a/app/build.gradle b/app/build.gradle index ef51aed6f..fb97dbe9e 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,7 @@ apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' +apply plugin: 'kotlin-kapt' def keystorePropertiesFile = rootProject.file("keystore.properties") def keystoreProperties = new Properties() @@ -54,4 +55,8 @@ dependencies { implementation 'com.simplemobiletools:commons:5.3.15' implementation 'joda-time:joda-time:2.10.1' implementation 'androidx.multidex:multidex:2.0.0' + + kapt 'androidx.room:room-compiler:2.0.0' + implementation 'androidx.room:room-runtime:2.0.0' + annotationProcessor 'androidx.room:room-compiler:2.0.0' } diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 74bbb3709..b2a55bf39 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -52,9 +52,9 @@ class EventActivity : SimpleActivity() { private var mEventCalendarId = STORED_LOCALLY_ONLY private var wasActivityInitialized = false - lateinit private var mEventStartDateTime: DateTime - lateinit private var mEventEndDateTime: DateTime - lateinit private var mEvent: Event + private lateinit var mEventStartDateTime: DateTime + private lateinit var mEventEndDateTime: DateTime + private lateinit var mEvent: Event override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState)