Kotlin从入门到放弃Kotlin官方文档Kotlin

Kotlin编写的DiyCode Android第三方客户端

2017-08-23  本文已影响220人  _番茄沙司

前不久得知Jake Wharton大神加入了Google,负责Kotlin这块业务的发展,我就知道是时候上车了。

WechatIMG30.jpeg

DiyCode是一个比较冷门的极客社区,它的后台Api是开放的。于是万事具备东风也有了那就做咯。

用了一周的业余时间,完成了目前的0.1版本,大概内容如下。

软件截图


点击查看大图

功能





关于缺失功能

大部分缺失功能是因为时间问题,后期都能加上。

发布主题这个功能我想了很久暂时还是不加为好。第一,在手机上大量编写Markdown文本体验不加。第二,这个功能会降低发水贴的成本,降低网站文章的质量。感兴趣的同学可以后期自己加上。

特点

本工程用Kotlin编写完成,没有一个Java文件(如果发现有java文件可提醒我,我会将其改成kotlin文件)。如果想要学习Kotlin,这也是个不错的Demo。

源码及使用

本工程源码分三个模块dcappdclib,ak47,其中dclib提供简洁的api为上层提供支持,dcapp为UI模块,ak47为extension function扩展库。

模块地址

dclib:https://github.com/ZhangQinglian/dclib
dcapp:https://github.com/ZhangQinglian/dcapp
ak47:https://github.com/ZhangQinglian/ak47

编译

需要使用Android Studio 3.0及以上版本

client_id=0*****4c
client_secret=a78ca******************************23e2f8

OK,此时项目已经可以成功编译了

APK下载

点击下载

扫码下载

最后

感谢DiyCode提供Api,此举乃大义。

发现bug可递交至对应仓库的Issues,对代码有问题可以邮件我 zqlxtt@live.com

Licese

Copyright 2017 zhangqinglian

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.
上一篇下一篇

猜你喜欢

热点阅读