Giter Site home page Giter Site logo

idaily's Introduction

DAILY

DAILY是一个非官方的基于MVVM架构的知乎日报APP。所有内容均来自网络,仅供学习使用。

Get it on Google Play

项目结构

  • android data binding来实现MVVM。
  • dagger2来完成依赖注入。
  • retrofit2+rxjava实现restful的http请求。

第三方类库

  • retrofit2
  • dagger2
  • butterknife
  • rxjava+rxandroid
  • LoganSquare
  • glide
  • android data binding
  • android support design

截图

License

Copyright 2015 Eric Liu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

idaily's People

Contributors

liuguangqiang 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  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

idaily's Issues

为何我这里跑不起来呢

Error:Execution failed for task ':app:compileDailyDebugJavaWithJavac'.

java.lang.NoSuchMethodError: com.google.common.collect.FluentIterable.append(Ljava/lang/Iterable;)Lcom/google/common/collect/FluentIterable;

关于这个项目的一些想法

首先感谢作者提供这个demo.以下是个人在学习过程中的感受。

  1. 这确实是个demo,简单的demo。
  2. 作者用了一堆当前最流行的框架和架构,但是也只是用了。项目的结构依然不够清晰,Dagger2的使用,并没有体现出dagger的优势,许多该用的地方貌似没有用到dagger。感觉作者其实对于整体项目是没有一个清晰架构的。只是在写demo时拼起来的。mvvm也没有看到我理解的mvvm的样子。
    如果能够完善了,就太好了。可惜个人能力不足。无法贡献。。
    个人之见,说错的地方,表示歉意。

Missing a class

com.liuguangqiang.idaily.di.components.DaggerMainComponent
Please update your project,thanks!

class miss

can not found "com.liuguangqiang.idaily.di.components.DaggerMainComponent"

Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1

Error:Execution failed for task ':app:transformClassesWithDexForDailyDebug'.

com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_51\bin\java.exe'' finished with non-zero exit value 1

StoryActivity存在内存泄漏

在学习您的这个app的时候发现了StoryActivity存在内存泄漏
LeakCanary打印信息
04-16 18:03:40.729 15263-16120/com.liuguangqiang.idaily D/LeakCanary: In com.liuguangqiang.idaily:1.0.0:1.
04-16 18:03:40.729 15263-16120/com.liuguangqiang.idaily D/LeakCanary: * com.liuguangqiang.idaily.ui.act.StoryActivity has leaked:
04-16 18:03:40.729 15263-16120/com.liuguangqiang.idaily D/LeakCanary: * GC ROOT com.android.org.chromium.android_webview.AwPasswordHandler.mAwContents
04-16 18:03:40.729 15263-16120/com.liuguangqiang.idaily D/LeakCanary: * references com.android.org.chromium.android_webview.AwContents.mContainerView
04-16 18:03:40.729 15263-16120/com.liuguangqiang.idaily D/LeakCanary: * references com.liuguangqiang.idaily.ui.widget.MyWebView.mContext

解决方法,在StoryActivity的onPause和onDestroy中分别调用WebView的onPause和onDestroy

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.