jeziellago / flownav Goto Github PK
View Code? Open in Web Editor NEWAnnotation processor that provides better navigation on android multi-modules projects ๐ณ.
License: Apache License 2.0
Annotation processor that provides better navigation on android multi-modules projects ๐ณ.
License: Apache License 2.0
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:
In gradle.properties:
flownav.main.module=app_x_app
What am I missing?
Can I handle multiples flownav.main.module
with this library?
I've multiple applications modules in my scenario, it's a kind of white label application.
We're using https://github.com/Tulioh/SweetFactory to handle multi module navigation, it's working well but unhappy this processors is not incremental.
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
.
Hi, good job. I did not make decision about that is EntryMap generation cause to bugs when using "class.name" with obfuscation?
Add detekt for check code quality on CI.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.