# LibManager **Repository Path**: juneor/LibManager ## Basic Information - **Project Name**: LibManager - **Description**: Android IOT开发框架Http网络请求、Gson、蓝牙连接、适配器、NFC、ButterKnife注解实例化组件以及注解实现点击响应事件、 Android手机与硬件设备之间通过蓝牙通信的协议解析(编码 ——> 字符串或者十进制数字转换为十六进制码流 、解码 ——> 十六进 制转换为字符串或者十进制数字 )、异步与并发、常用工具类。 - **Primary Language**: Android - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-07-28 - **Last Updated**: 2024-11-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LibManager #### License ``` The MIT License (MIT) Copyright (c) 2018 juner.li Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` #### 项目介绍 Android IOT开发框架Http网络请求、Gson、蓝牙连接、适配器、NFC、ButterKnife注解实例化组件以及注解实现点击响应事件、 Android手机与硬件设备之间通过蓝牙通信的协议解析(编码 ——> 字符串或者十进制数字转换为十六进制码流 、解码 ——> 十六进 制转换为字符串或者十进制数字 )、异步与并发、常用工具类。 #### 软件架构 将业务逻辑公共的部分抽离、封装,简化操作,使开发更便捷、高效、健壮。 项目结构介绍: #### 设计原则 轻量、专注、简化、只需要关注使用步骤与结果,不需要关注具体实现。 #### 安装教程 一、将项目引用到的库全部导入LibraryManager项目 1. File——>New——>Import Module 2. File——>Project Structure——>app——>dependencies——> + ——> 选择lib 二、将LibraryManager项目添加到需要引用的项目并进行配置 #### 使用说明 - [x] 1.HttpLite - [x] 2.GsonLite - [ ] 3.BluetoothLite - [ ] 4.ProtocolLite - [x] 5.AdapterLite - [x] 6.ButterKnife - [ ] 7.DialogLite - [ ] 8.AsyncLite - [x] 9.TitleLite - [x] 10.PreferencesLite ##### 1、定义接口 - [x] 10.SharedPreferencesLite - [x] 11.常用工具类 - [x] ①ActivityUtils Activity工具类 - [x] ②ByteUtils 字节工具类 - [x] ③CacheUtils 缓存清除工具类 - [x] ④DeviceUtils - [x] ⑤HTMLUtils - [x] ⑥ImageUtils - [x] ⑦InstallUtils - [x] ⑧MD5Utils - [x] ⑨NetworkUtils - [x] ⑩SecUtil - [x] ⑪StringUtils - [x] ⑫TextColorUtils - [x] ⑬TimestampUtils - [x] ⑭UploadImgUtils - [x] ⑮VersionUtils - [x] ⑯ViewFindUtils #### Android studio中多个项目引用同一个library解决方案 1.单独建立一个android项目,为了方便阅读,这里取名叫LibraryManager. 2.把项目所需要引入第三方的library和公司的公共library库引入到LibraryManager。这个和普通的引入第三方library没什么区别. 3.打开HBSCustomerProject项目的settings.gradle文件,添加如下代码 ```gradle include':LibraryManager'  //引入LibraryManager项目 project(':LibraryManager').projectDir=newFile('../LibraryManager')  //最关键的代码, newFile中是LibraryManager项目的路径。 include':LibraryManager:hbslibrary'  //公司的公共库 include':LibraryManager:pullrefreshview-master' //第三方的下拉刷新库   ``` 4.打开HBSCustomerProject项目的app/build.gradle文件,在dependencies代码块中添加如下代码 ```gradle dependencies{ .............. compile project(':LibraryManager:hbslibrary') compile project(':LibraryManager:pullrefreshview-master') } ``` #### 参与贡献 1. Create 本项目 2. 新建 master 分支 3. 提交代码 4. 新建 Pull Request #### 参考文献 1.[https://github.com/litesuits/android-lite-orm] 2.[https://github.com/google/gson]