boredream / designrescollection Goto Github PK
View Code? Open in Web Editor NEW一个项目搞定全部主流框架 A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
一个项目搞定全部主流框架 A collection of samples to discuss and showcase different architectural tools and patterns for Android apps.
最近也在将公司原项目重构成MVP模式,以便于单元测试,但是发现很难做到 Presenter 没有Android相关代码,比如获取string,或者原先遗留方法中会调用到Android相关代码,再或者项目中有些变量直接存在了Application中。
还有页面销毁时,Presenter 如何做数据恢复。
以上两点有什么好的建议吗?
在LoginFragment.java文件中,只看到了presenter的定义(private LoginContract.Presenter presenter;),并没有发现这个接口的实例,然而就直接调用了 presenter.login(username, password);这个,我有点不明白,但是我发现了在LoginActivity.java中有实例化这个接口new LoginPresenter(loginFragment, HttpRequest.getInstance());,是因为这样传给LoginFragment的吗?求解释 @boredream
Contract误写成了Contact,让我一开始看得一脸懵逼
okhttp3.internal.Platform log
信息: <-- HTTP FAILED: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
做单元测试presenter rx+retrofit2就报上面错误,ps:手机正常运行没问题
我找了好久的知识,要么都是rxjava1的,要么rxjava2没有你的那么详细!如果你的代码升级rxjava2,请问如何写!非常感谢!或者你能告诉我你的联系方式吗,我想单独请教那些单元测试rxjava1如何替换rxjava2
我的qq254191389
注册过程中收不到验证短信,无法注册
相关代码在哪个位置啊。。
谢谢啦
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.