Skip to content
forked from afkT/DevUtils

🔥 (持续更新, 目前含100+工具类) DevUtils 是一个 Android 工具库, 主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。 该项目尽可能的便于开发人员,快捷、快速开发安全可靠的项目,以及内置部分常用的资源文件,如 color.xml、(toast) layout.xml 等

License

Notifications You must be signed in to change notification settings

yangkf1985/DevUtils

 
 

Repository files navigation

Cocoapods GitHub license Cocoapods API Cocoapods

About (持续更新,目前含100+工具类)

DevUtils 是一个 Android 工具库,主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用

该项目尽可能的便于开发人员,快捷、高效开发安全可靠的项目,以及内置部分常用的资源文件,如 color.xml、toast_layout.xml 等

module

Gradle

Step 1. Add the JitPack repository to your build file

allprojects {
	repositories {
		maven { url 'https://jitpack.io' }
	}
}

Step 2. Add the dependency

dependencies {
	// 因为内含 res 文件, 使用 aar 方式调用
	implementation 'com.github.afkT:DevUtils:1.7.6@aar'
}

Documentation

Use

只需要在 Application 中调用 DevUtils.init() 进行初始化就行

DevUtils.openLog() 是打开内部工具类 日志输出 DevLogger,线上(release)版本则不调用此句

/**
 * detail: 全局Application
 * @author Ttt
 */
public class BaseApplication extends Application {

    // 日志 TAG
    private final String LOG_TAG = BaseApplication.class.getSimpleName();

    @Override
    public void onCreate() {
        super.onCreate();

        // 初始化工具类
        DevUtils.init(this.getApplicationContext());
        // = 初始化日志配置 =
        // 设置默认Logger配置
        LogConfig logConfig = new LogConfig();
        logConfig.logLevel = LogLevel.DEBUG;
        logConfig.tag = LOG_TAG;
        logConfig.sortLog = true; // 美化日志, 边框包围
        DevLogger.init(logConfig);
        // 打开 lib 内部日志 - 线上环境, 不调用方法就行
        DevUtils.openLog();
        DevUtils.openDebug();
    }
}

Other

😏 JavaDoc API Generate 该工具类(DevUtils) API 文档, 是通过 JavaDoc 项目读取 class 信息生成, 并且进行代码、注释间距规范检测, 生成效果示范 DevUtils - API

DevQuickUtils 是一个 基于 DevUtils 二次封装的快捷开发实现库,封装多数逻辑判断代码,内含 Http、ImageLoader、Log 等兼容 Engine 框架,封装 Activity、Fragment、Bean 基类以及 ReqInfoAssist(请求信息辅助类)、PageInfoAssist(分页辅助类)、MultiSelectListAssist、MultiSelectMapAssist(多选辅助类) 等,便于开发人员,基于 DevUtilsDevQuickUtils 快速熟练开发 Android 项目

DevQuickUtils - app module 基于 (DevUtilsDevQuickUtils) 库基础上实现常见功能、UI效果等,并持续增加比较火的框架使用、二次封装等,以及部分架构设计思路、使用等综合示范项目

Thanks

感谢以下开源项目的作者,本项目中有些功能受你们项目灵感的启发,有些功能也用到你们的代码完成

License

Copyright 2018 afkT

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.

About

🔥 (持续更新, 目前含100+工具类) DevUtils 是一个 Android 工具库, 主要根据不同功能模块,封装快捷使用的工具类及 API 方法调用。 该项目尽可能的便于开发人员,快捷、快速开发安全可靠的项目,以及内置部分常用的资源文件,如 color.xml、(toast) layout.xml 等

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%