13

快速上手系列--Android应用开发模板

 4 years ago
source link: http://mp.weixin.qq.com/s?__biz=Mzg2NjA3NDIyMA%3D%3D&%3Bmid=2247483751&%3Bidx=1&%3Bsn=1859354674ead88963f3b00499850a61
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Android空壳模板工程,快速搭建(集成了XUI、XUtil、XAOP、XPage、XUpdate、XHttp2、友盟统计和walle多渠道打包)

效果预览

iEVZbiU.gif

项目地址

https://github.com/xuexiangjys/TemplateAppProject

项目集成介绍

本项目是项目androidx项目。精选了X系列最实用的几个库,可大大提高开发的效率。

  • XUI 一个简洁而优雅的Android原生UI框架,解放你的双手!

  • XUtil 一个方便实用的Android工具类库!

  • XAOP 一个轻量级的AOP(Android)应用框架。囊括了最实用的AOP应用。

  • XPage 一个非常方便的fragment页面框架。

  • XUpdate 一个轻量级、高可用性的Android版本更新框架。

  • XHttp2 一个功能强悍的网络请求库,使用RxJava2 + Retrofit2 + OKHttp组合进行封装。

除此之外,还集成了其他优秀的第三方库:

  • butterknife 控件依赖注入框架: https://github.com/JakeWharton/butterknife

  • AndroidAutoSize 优秀的屏幕适配方案: https://github.com/JessYanCoding/AndroidAutoSize

  • leakcanary 内存泄漏检测 https://github.com/square/leakcanary

视频教程

视频源链接地址: https://www.bilibili.com/video/av92348545

使用方式

1.克隆项目

2.修改项目名(文件夹名),并删除目录下的.git文件夹(隐藏文件)

3.使用AS打开项目,然后修改 包名applicationIdapp_name

  • 修改包名

vmmYzmu.png!webyaqAryF.png!web

  • 修改applicationId

AJnEJjA.png!web

  • 修改app_name

3IFnuuq.png!web

项目打包

1.修改工程根目录的 gradle.properties 中的 isNeedPackage=true

2.添加并配置keystore,在 versions.gradle 中修改 app_release 相关参数。

3.如果考虑使用友盟统计的话,在 local.properties 中设置应用的友盟ID: APP_ID_UMENG

4.使用 ./gradlew clean assembleReleaseChannels 进行多渠道打包。

更多资源

1.简化版Android空壳模板工程: https://github.com/xuexiangjys/TemplateSimpleProject

2.X-Library系列Android应用框架详解

3.Flutter空壳模板工程: https://github.com/xuexiangjys/flutter_template

微信公众号

更多资讯内容,欢迎扫描关注我的个人微信公众号!

3AfmyqA.jpg!web


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK