lukaspili / mortar-flow-dagger2-demo Goto Github PK
View Code? Open in Web Editor NEWAndroid demo application with Mortar / Flow / Dagger2. Up to date with latest versions.
License: MIT License
Android demo application with Mortar / Flow / Dagger2. Up to date with latest versions.
License: MIT License
The way used to name scopes will create awfull issues (hard to understand/debug) :
You shouldn't use the class name for scopes like this :
@OverRide
public Context setUpContext(Path path, Context parentContext) {
MortarScope scope = screenScoper.getScreenScope(parentContext, path.getClass().getName(), path);
return new TearDownContext(parentContext, scope);
}
It took me 1 week to understand that this was causing all the problems I had in my app.
See there :
square/mortar#163
This is related to
square/mortar#149
And a fix was suggested upstream there :
square/mortar#161
Since Flow 1.0.0-alpha changed API significantly this great and helpful demo looks slightly outdated
Hi Lukas,
First of all, thanks for the outstanding job that you have been doing !
I have a question, I've checked out this example and I'm trying to login using FB login.
The problem is, inside my view I have a button callback that must call
'LoginManager.getInstance().logInWithReadPermissions(activity, permissions);'
How can I accomplish this ?
Thanks for your time !
This code looks very clean! Is there a way to start a subflow inside the main flow? For example, when detect there is permission issue, start a "login" flow to sign in/sign up. Also, is there any example/suggestion to integrate navigation draw and toolbar into this?
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.