MarcinMoskala / KtAcademyPortal

Multiplatform Kotlin application of KotlinAcademy
Apache License 2.0
444 stars 55 forks source link

Missing Some Files while Downloading #5

Closed pratikbutani closed 6 years ago

pratikbutani commented 6 years ago

I didn't found presenter package in this mobile package

I did't found following in FirebaseIdService.kt:

import org.kotlinacademy.data.FirebaseTokenType.Android
import org.kotlinacademy.presentation.notifications.RegisterNotificationTokenPresenter
import org.kotlinacademy.presentation.notifications.RegisterNotificationTokenView

Is there any solution?

MarcinMoskala commented 6 years ago

These files are in common-client:

https://github.com/MarcinMoskala/KotlinAcademyApp/blob/master/common-client/src/main/kotlin/org/kotlinacademy/presentation/notifications/RegisterNotificationTokenView.kt

I think that the reason why you have this error is that you don't use Kotlin version that supports multiplatform development (1.2). Here are steps how to set it:

selection_239

configure kotlin plugin updates_241

Check for updates and click ok. Then restart AS and it should work fine. Please, tell me if it helped.