Android 应用开发框架|核心库 Cangol-appcore

码农软件 · 软件分类 · 手机开发包 · 2019-05-04 21:41:37

软件介绍

Download Build Status codecov Join the chat at https://gitter.im/Cangol/Cangol-appcore

这是一个Android 应用核心库,将应用的常用功能模块化,以便提高开发效率。 详细文档

引用方式

Maven

<dependency>
     <groupId>mobi.cangol.mobile</groupId>
     <artifactId>appcore</artifactId>
     <version>1.0.4/version>
     <type>pom</type>
 </dependency>

Gradle

compile 'mobi.cangol.mobile:appcore:1.0.4@jar'

CoreApplication

    核心Application 提供整个库的初始化和一些方法, 详细文档

AppService

    应用服务:实现方式为依赖注入,这是整个框架的核心内容

    使用方式

//获取方式类似系统SystemService
ConfigService configService = (ConfigService) getAppService(AppService.CONFIG_SERVICE);
//可修改属性
ServiceProperty p=configService.getServiceProperty();
p.putString(ConfigService.APP_DIR, Constants.APP_DIR);
p.putString(ConfigService.SHARED_NAME, Constants.SHARED);

数据库ORM

  • 实现数据库的orm

  • 数据表的创建删除在无需SQL

  • 对数据对象的CRUD均无需SQL语句,并支持复杂条件租车查询。

日志Log

    封装并重写部分方法,是的日志输出更格式化,并提供可控制“开发”和”发布“模式的开关。 详细文档

数据解析

    利用注解和反射实现对XML和JSON对象化数据解析
轻量级解析库,无需引入fastjson或gson,比这些更轻量级,而且同样支持xml的解析。

安全模块

    提供三种方式的工具类

网络Http请求

    修正AsyncHttpClient的部分bug,优化请求参数配置,扩展超时自动重试机制,增加gzip的支持。并扩展:

WebService请求

    使用此类需要ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar 对Soap进行异步封装。详细文档

Utils工具类

本文地址:https://codercto.com/soft/d/5035.html

Tagging

Tagging

Gene Smith / New Riders / 2007-12-27 / GBP 28.99

Tagging is fast becoming one of the primary ways people organize and manage digital information. Tagging complements traditional organizational tools like folders and search on users desktops as well ......一起来看看 《Tagging》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具