Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jbarr21 opened this issue Feb 28, 2020 · 1 comment
Open

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

jbarr21 opened this issue Feb 28, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@jbarr21
Copy link
Contributor

jbarr21 commented Feb 28, 2020

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
    }
  }
}
@EmmanuelDav
Copy link

EmmanuelDav commented Jan 7, 2023

Hi @jbarr21 is this issue still open if so can you give tips on how to resolve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants