这是一个Android 应用核心库,将应用的常用功能模块化,以便提高开发效率。 详细文档
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:[email protected]'
核心Application 提供整个库的初始化和一些方法, 详细文档
应用服务:实现方式为依赖注入,这是整个框架的核心内容
使用方式
//获取方式类似系统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);
封装并重写部分方法,是的日志输出更格式化,并提供可控制“开发”和”发布“模式的开关。 详细文档
利用注解和反射实现对XML和JSON对象化数据解析
轻量级解析库,无需引入fastjson或gson,比这些更轻量级,而且同样支持xml的解析。
提供三种方式的工具类
修正AsyncHttpClient的部分bug,优化请求参数配置,扩展超时自动重试机制,增加gzip的支持。并扩展:
使用此类需要ksoap2-android-assembly-3.0.0-jar-with-dependencies.jar 对Soap进行异步封装。详细文档
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.