Cangol / Cangol-appcore

Android App快速开发框架

Home Page:http://blog.cangol.mobi/Cangol-appcore/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cangol-appcore

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

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

QQ Group: 515488807

引用方式

Maven

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

Gradle

compile 'mobi.cangol.mobile:appcore:1.1.49@aar'

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工具类

License

Copyright 2012 Cangol

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.

FOSSA Status

About

Android App快速开发框架

http://blog.cangol.mobi/Cangol-appcore/

License:Apache License 2.0


Languages

Language:Java 100.0%