# EasyAndroid **Repository Path**: mazaiting/EasyAndroid ## Basic Information - **Project Name**: EasyAndroid - **Description**: 搭建Android的快速开发框架 - **Primary Language**: Kotlin - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 2 - **Created**: 2019-11-17 - **Last Updated**: 2023-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # EasyAndroid #### 介绍 搭建Android的快速开发框架 #### 软件架构 整体架构使用 MVP 模式, 开发语言为 Kotlin, RxJava2 + Retrofit2 + Okhttp3 网络请求 Dagger2 依赖注入, EventBus 事件通信协议, Material Design 设计风格 #### 开发工具 1. Android Studio 3.6.1 2. RE 文件管理器 #### Framework | Name | Version | Description | | ------------- |:-------------:| -----:| | [Dagger2](https://dagger.dev/) | 2.25.2 | 依赖注入框架 | | [EventBus](http://greenrobot.org/eventbus/) | 3.1.1 | 事件通信 | | [BaseRecyclerViewAdapterHelper](https://github.com/CymChad/BaseRecyclerViewAdapterHelper) | 2.9.34 | RecyclerView 工具 | | [Rxjava2](https://github.com/ReactiveX/RxJava) | 2.2.14 | 可观察序列组合异步和基于事件的程序 | | [Rxandroid](https://github.com/ReactiveX/RxAndroid) | 2.1.1 | Android 中绑定 RxJava2 | | [Retrofit](http://square.github.io/retrofit/) | 2.6.2 | 使用注解描述 HTTP | | [Okhttp3](http://square.github.io/okhttp/) | 4.2.1 | 高效的HTTP客户端 | | [PersistentCookieJar](https://github.com/franmontiel/PersistentCookieJar) | v1.0.1 | 持久化 Cookie | | [Crash](https://github.com/mazaiting/Crash) | 1.0.5 | 全局异常捕获工具 | | [Log](https://github.com/mazaiting/Log) | 1.0.0 | 日志打印工具 | | [Permission](https://github.com/mazaiting/permission_android) | 1.0.1 | Android 权限检测工具 | | [SharedPreferences](https://github.com/mazaiting/SharedPreferencesUtil) | 1.0.0 | SharedPreferences 工具类 | | [Glide](https://github.com/bumptech/glide) | 4.9.0 | 图片加载与缓存库 | | [Agentweb](https://github.com/Justson/AgentWeb) | 4.0.2 | WebView 框架 | | [AVLoadingIndicatorView](https://github.com/81813780/AVLoadingIndicatorView) | 2.1.3 | 加载动画 | | [Room](https://github.com/81813780/AVLoadingIndicatorView) | 2.1.3 | 加载动画 | | [akdt-common](https://gitee.com/mazaiting/EasyAndroid/tree/master/common) | 0.0.1 | Android 快速开发工具库 | #### Project Progress - 11 月 17 日: 项目初始化, 添加 widget 与 easy 模块 - 11 月 18 日: 完成 dagger 全局应用组件的注入,网络与 SharedPreferences 的注入 - 11 月 19 日: 完成 Activity 的 MVP 使用 - 11 月 20 日: 集成 common 模块 - 11 月 22 日: 移除 [Log](https://github.com/mazaiting/Log) 日志工具, 改用 akdt-common 模块, 添加 kotlin 协程 - 11 月 26 日: akdt-common 库添加 Context 扩展函数, 完成四大组件的简单使用 - 01 月 07 日: akdt-common 库增加 SharedPreferences 工具的封装, 协程添加主线程处理 - 04 月 01 日: akdt-common 库添加 SharedPreferences 加密工具的封装, 移除 room 协程库的依赖, 新增扩展函数唯一识别码的获取, 增加退出 APP 函数, 增加加密函数 MD5, SHA1, SHA256, 新增多个函数 safeLet 使用, 修复 log 日志 tag 为空时, 使用默认 LOG_TAG, 新增 Activity 扩展函数设置 App 字体缩放功能, 新增无权限和有权限拨打电话功能, 修复 Intent 中传入 null 时异常问题 #### Size of the picture - Dpi, resolution and icon size relationship | Name | Resolution | Boot Icon Size | |:-------------:|:-------------:|:-----:| | L DPI ( 120 DPI ) | 240*320px | 36 x 36 px | | M DPI (160 DPI ) | 320*480px | 48 x 48 px | | H DPI ( 240 DPI ) | 480*800px | 72 x 72 px | | XH DPI ( 320 DPI ) | 1280*720px | 96 x 96 px | | XXH DPI( 480 DPI ) | 1920*1080px | 144 x 144 px | | XXXH DPI( 640 DPI ) | 3840*2160px | 192 x 192 px | - PX to DP | Name | DPI | Proportion (based on mdpi 1) | Conversion relationship with px | |:-------------:|:-------------:|:----------:|:----------:| | lpdi | 120 DPI | 0.75 | 1 dp = 0.75 px | | mdpi | 160 DPI | 1 | 1 dp = 1 px | | hdpi | 240 DPI | 1.5 | 1 dp = 1.5 px | | xhdpi | 320 DPI | 2 | 1 dp = 2 px | | xxhdpi | 480 DPI | 3 | 1 dp = 3 px | | xxxhdpi | 640 DPI | 4 | 1 dp = 4 px | ## 版本信息 ### common v0.0.6 1. 增加 AES 解密 2. 日志本地加密及日志解密功能 ### common v0.0.5 1. 增加日志文件存储 2. 增加 RSA 加密 ### common v0.0.4 1. 添加 SharedPreferences 加密工具的封装 2. 移除 room 协程库的依赖 3. 新增扩展函数唯一识别码的获取, 增加退出 APP 函数 4. 增加加密函数 MD5, SHA1, SHA256 5. 新增多个参数 safeLet 使用, 6. 修复 log 日志 tag 为空时, 使用默认 LOG_TAG 7. 新增 Activity 扩展函数设置 App 字体缩放功能 8. 新增无权限和有权限拨打电话功能 9. 修复 Intent 中传入 null 时异常问题 ### common v0.0.3 1. 增加 SharedPreferences 的简化使用 2. 修改协程结果在主线程使用 ### common v0.0.2 1. 增加四大组件的简化使用与协程 ### common v0.0.1 1. 增加 Toast 与 Log 模块 #### Contribution 1. [简书地址](https://www.jianshu.com/u/5d2cb4bfeb15) 2. [码云地址](https://gitee.com/) 3. [邮箱](mailto:zaitingma@foxmail.com) 4. [新浪微博](http://blog.sina.com.cn/mazaiting)