uber/motif

Scopes in Kotlin don't appear in Scope List

開放

#192 建立於 2020年2月28日

 (1 則留言) (1 個反應) (0 位負責人)Kotlin (46 個分叉)github user discovery
good first issue

倉庫指標

星標
 (538 顆星)
PR 合併指標
 (平均合併 3天 21小時) (30 天內合併 2 個 PR)

描述

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

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
    }
  }
}

貢獻者指南