Code Monkey home page Code Monkey logo

gank.io's Introduction

Gank.io

gank.io unofficial client - RxJava、Retrofit & MVP

  • iOS 版本的客户端请移步Gank.lu

icon

screen screen
screen screen

项目介绍:

「Gank.io」是干货集中营的非官方客户端之一,每天提供一张精选的妹纸图片,一个精选的休息视频,若干精选的Android,ios,web等相关的技术干货。主页采取了突出妹纸的卡片设计,点击图片可查看大图,点击卡片下的文字可进入每日干货,右下角的『fab』可进入纯干货页面,可根据分类浏览。

本项目完全开源,由Panl完成,是学习RxJava,Retrofit等优秀开源框架以及MVP设计模式的产物,项目借鉴了drakeet的开源项目Meizhi以及maoruibin的开源项目GankDaily,收获很多,感谢开源社区。由于水平有限,项目中难免有所纰漏,如果有问题请与我联系 [email protected]

数据来源: daimajia的干货集中营 http://gank.io/api

特别感谢:

License

/*
 *       
 * Copyright (C) 2015 Drakeet <[email protected]>
 * Copyright (C) 2015 GuDong <[email protected]>
 * Copyright (C) 2016 Panl <[email protected]>
 *
 * Meizhi is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Meizhi is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Meizhi.  If not, see <http://www.gnu.org/licenses/>.
 */

gank.io's People

Contributors

panl 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

gank.io's Issues

config.properties文件找不到

build.gradle第8行
properties.load(project.rootProject.file('config.properties').newDataInputStream())

config.properties文件找不到

友盟依赖的小小问题

#1 这里提到了部分问题。。。这个问题还好

但是有个umeng的问题。。我就很费解了。。用了Placeholders,然而漏了debug。。。

string那头把key是删掉了,为啥只删key?不把整个友盟依赖改掉。。。这样更省事吧?

不过,应该是没删干净吧?

或者这个是作者留个大家的考验?

连简单修改都不会,还看什么源码。。。

为什么获取的"福利"的json数据,who字段总是"LHF"

很奇怪,我用浏览器捕获json,who字段总是不同的
在app里打印出来,who字段总是"LHF"
而且有些时候who会为空,导致下列两行数据报空指针。

holder.tvWho.setText(meizi.who);
holder.tvAvatar.setText(meizi.who.substring(0, 1).toUpperCase());

WebActivity中存在泄露问题

复现步骤是这样的,进入MainActivity后点击Fab进入BatteryActivity,然后RecyclerView中的任意一个item进入WebActivity,按返回键返回,这时LogCat中会报这样的日志
1973-1973/com.smartalk.gank E/ActivityThread: Activity com.smartalk.gank.ui.activity.WebActivity has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@8899edf that was originally bound here
android.app.ServiceConnectionLeaked: Activity com.smartalk.gank.ui.activity.WebActivity has leaked ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@8899edf that was originally bound here
at android.app.LoadedApk$ServiceDispatcher.(LoadedApk.java:1072)
at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:966)
at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1776)
at android.app.ContextImpl.bindService(ContextImpl.java:1759)
at android.content.ContextWrapper.bindService(ContextWrapper.java:538)
at android.content.ContextWrapper.bindService(ContextWrapper.java:538)
at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient.doBindService(SelfBrailleClient.java:125)
at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient.access$1000(SelfBrailleClient.java:43)
at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$SelfBrailleHandler.handleRebindService(SelfBrailleClient.java:260)
at com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$SelfBrailleHandler.handleMessage(SelfBrailleClient.java:245)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)

我在项目中添加LeakCanary依赖,重复以上步骤时也会报存泄露的问题,个人猜测是使用WebView的问题,因为我之前对WebView了解的不多,网上也没有找到对这个log的详细说明和解决方案,请问该如何解决?谢谢!

写得真的不错

这一久正好在看MVP,看到Panl写的恍然大悟,而且特别取巧,比如在IBaseViewinit(). 使用泛型在BasePresenter去调用。虽然不直白,但是能够想到你写的想法。

项目拉下来不能构建。

缺少文件

Error:(8, 0) /Users/leoonly/Documents/Android/Gank.io/config.properties (No such file or directory)
Open File

Properties properties = new Properties()
properties.load(project.rootProject.file('config.properties').newDataInputStream())

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.