Skip to content

AndroidFrok/AndroidProject-Kotlin

 
 

Repository files navigation

安卓技术中台 Kotlin 版

fork编者 注

  1. 文本显示直接用 SmartTextView 方便处理null等值的过滤
  2. 物联网应用如果是横屏直接在land文件夹放xml
  3. 物联网应用在首次安装,主界面里就应该申请到所有权限,避免后面无人值守 无法操作。

分支简述

0 .getactivity 推荐指数 ☆ 仅供与原仓库贡献用 ,主要由原作者LTS
1.api19-gradle7 推荐指数☆ 兼容低版本(api19+)安卓+低版本AndroidStudio。适用于暂时不想升级到gradle8的情况使用 ,不再更新 ,
2.api19-g8 测试分支 推荐指数☆ LTS 推荐使用 基于分支1 api19+
3.master 推荐指数☆☆☆☆☆ LTS 推荐使用 基于分支1 api19+ ,Gradle8+,只兼容低版本安卓,不兼容低版本AndroidStudio
4.iot 测试分支 工控屏专用分支,android api等级尽量低 ,减少工作量
5.applib 仅供无需兼容API21以下用 ; 推荐指数☆ 基于分支0 api21+

用过的好用的东西

1- 带有全屏的视频播放器 https://github.com/CarGuo/GSYVideoPlayer 'com.github.xiaoyanger0825: NiceVieoPlayer:v2.2'

2- DialogX ,com.blankj:utilcode ,eventbus ,io.github.youth5201314: banner ,https://bugly.qq.com/docs/user-guide/instruction-manual-android/?v=20190418140644 , timber , in.xiandan:count-down-timer ,图片视频混合轮播 https://github.com/AndroidFrok/XBanner,

3- // 动画解析库:https://github.com/airbnb/lottie-android // 动画资源:https://lottiefiles.comhttps://icons8.com/animated-icons https://www.iconfont.cn/lotties/index?spm=a313x.home_index.i1.4.58a33a8144qZSU

目录结构

  • app\src\main
    • java\com\hjq\demo
      • action 应用全局的布局状态、标题栏、吐司 意图封装
      • aop 一些方便的注解
      • app activity/fragment/adapter/ 的父类
      • http 网络请求:接口目录、图片缓存、拦截器、服务端答复数据的实体类
      • manager 存放一些静态实例的管理类
      • other 乱七八糟
      • ui / widget 与应用的整体功能没有强关联的 act、适配器、对话框等UI组件,通用的组件
      • wxapi 微信开放平台专用
    • res 通用的使用规则 没有基于Android官方变更
  • build.gradle 工程级 gradle配置
  • common.gradle 存放所有模块都可用的依赖、统一控制的 安卓版本 minSdkVersion compileSdkVersion targetSdkVersion
  • configs.gradle 存放编译后生效的一些常量,基本没改动过
  • maven.gradle AGP、各种依赖下载地址的镜像地址
  • settings.gradle 模块的声明
  • gradle.propertites 除了存放官方的默认的配置,我还把证书信息放到这里面了 ;
  • CPU 基于轮子哥框架 新加的一个主模块,用于存放应用的功能代码 ,可直接调用 app 中的各种组件,子模块们可通过阿里的Arouter跳转回CPU;
    说明:application的生效 改到了CPU的清单文件,权限列表放在原位置(app的清单文件中),

原作者注

License

Copyright 2018 Huang JinQun

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.

About

Android 技术中台 Kotlin 版本,但愿人长久,搬砖不再有

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 92.4%
  • Java 7.6%