Skip to content

Scopes in Kotlin don't appear in Scope List #192

@jbarr21

Description

@jbarr21

The motif gutter icon doesn't show up for Kotlin scopes and they do not appear in the scope list (even after a refresh.

Screen Shot 2020-02-27 at 8 21 12 PM

Library version: v0.0.3
IntelliJ version: 2018.3.5

Repro steps or stacktrace: didn't see any in the intellij logs. my Kotlin scope looks like a standard RIB:

package com.foo.home

import android.view.LayoutInflater
import android.view.ViewGroup
import com.foo.R
import motif.Scope
import org.checkerframework.checker.guieffect.qual.UIEffect

@Scope
interface HomeScope {

  fun router(): HomeRouter

  @motif.Objects
  abstract class Objects {

    abstract fun router(): HomeRouter

    abstract fun interactor(): HomeInteractor

    abstract fun presenter(view: HomeView): HomeInteractor.HomePresenter

    @UIEffect
    fun view(parentViewGroup: ViewGroup): HomeView {
      return LayoutInflater.from(parentViewGroup.context)
          .inflate(R.layout.foo__home_tab, parentViewGroup, false) as HomeView
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions