GithubHelp home page GithubHelp logo

jeziellago / flownav Goto Github PK

View Code? Open in Web Editor NEW
135.0 9.0 13.0 317 KB

Annotation processor that provides better navigation on android multi-modules projects ๐Ÿ›ณ.

License: Apache License 2.0

Kotlin 100.00%
navigation navigation-component annotation-processor android kotlin fragments

flownav's Introduction

GitHub Streak

flownav's People

Contributors

alexsoaresdesiqueira avatar jeziellago avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flownav's Issues

lateinit property entryMap has not been initialized

java.lang.RuntimeException: Unable to create application br.X.X.App: kotlin.UninitializedPropertyAccessException: lateinit property entryMap has not been initialized
[...]
Caused by: kotlin.UninitializedPropertyAccessException: lateinit property entryMap has not been initialized

My modules:

  • app_x_app: contains application class annotated with @FlowNavMain and started with FlowNavApp.start(getEntryMap()) in onCreate method. Use kapt processor and implementation of annotation.

  • app_x_login: contains login activity annotated with @EntryFlowNav(NavigationKeys.FEATURE_LOGIN). Use kapt processor and implementation of annotation.

  • router: contains a extension function to open login activity. Use kapt processor, implementation of annotation and router implementation (as 'api') .

fun BaseActivity.openLoginWithoutHistory() {
    start(
        FEATURE_LOGIN,
        listOf(
            Intent.FLAG_ACTIVITY_NO_ANIMATION,
            Intent.FLAG_ACTIVITY_NEW_TASK,
            Intent.FLAG_ACTIVITY_CLEAR_TASK
        )
    )
}

The big vision is:

  • app_x_app
    • app_x_login
    • router

In gradle.properties:

flownav.main.module=app_x_app

What am I missing?

Wrong paths with multi-application modules

I've two application modules, app_a_app and app_b_app. And feature modules like app_a_payment and app_b_payment. These specific modules inherit from an common scope module like payment.

In specific feature modules (by app), always the activity have the same name and the same EntryFlowNav like PayersActivity.

So my module router do the maginc (with this cool library) calling the right path. Like start(FEATURE_X) inside a extension function like openFeatureX().

When I'm running the app, the entrymap generated by library it's mixing paths from feature modules from other application module.

E.g.:

[1] br.com.app_a.ScreenCool
[2] br.com.app_b.ScreenCool

I'm seeing references/paths in wrong application, causing ActivityNotFoundException.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.