android 基础框架依赖库

简介: AndroidBaseModuleandroid base module project 基础的Android开发依赖包,独立出来主要是为了持续更新,方便多个项目同时使用,同步更新;同时使工程结构更加简洁。使用方式1) 新工程建议直接下载AndroidMouldProject,修改包名后在此基础上开发;or2) Add Library module

AndroidBaseModule

android base module project
基础的Android开发依赖包,独立出来主要是为了持续更新,方便多个项目同时使用,同步更新;同时使工程结构更加简洁。

使用方式

1) 新工程建议直接下载AndroidMouldProject,修改包名后在此基础上开发;

or

2) Add Library module as a dependency in your build.gradle file.

Add the dependency
dependencies {
        compile 'com.github.BrillantZhao:AndroidBaseModule:1.1.2.48'
    }

项目结构

这里写图片描述

用到的第三方库

            //=== butterKnife (https://github.com/JakeWharton/butterknife)
            "butterknife"           : "com.jakewharton:butterknife:${butterKnifeVersion}",
            "butterknife-compiler"  : "com.jakewharton:butterknife-compiler:${butterKnifeVersion}",

            //=== rxjava(https://github.com/ReactiveX/RxJava)
            "rxjava"                : "io.reactivex:rxjava:${rxjavaVersion}",

            //=== rxandroid(https://github.com/ReactiveX/RxAndroid)
            "rxandroid"             : "io.reactivex:rxandroid:${rxandroidVersion}",

            //=== AndroidUtilCode  (https://github.com/Blankj/AndroidUtilCode)
            "utilcode"              : "com.blankj:utilcode:${utilcodeVersion}",

            //=== RxLifecycle  (https://github.com/trello/RxLifecycle)
            "rxlifecycle"           : "com.trello:rxlifecycle:${rxlifecycleVersion}",
            "rxlifecycle-android"   : "com.trello:rxlifecycle-android:${rxlifecycleVersion}",
            "rxlifecycle-components": "com.trello:rxlifecycle-components:${rxlifecycleVersion}",
            "rxlifecycle-navi"      : "com.trello:rxlifecycle-navi:${rxlifecycleVersion}",
            "rxlifecycle-kotlin"    : "com.trello:rxlifecycle-kotlin:${rxlifecycleVersion}",

            //=== glide (https://github.com/bumptech/glide)
            "glide"                 : "com.github.bumptech.glide:glide:${glideVersion}",

            //=== hawk (https://github.com/orhanobut/hawk)
            "hawk"                  : "com.orhanobut:hawk:${hawkVersion}",

            //=== fastjson (https://github.com/alibaba/fastjson)
            "fastjson"              : "com.alibaba:fastjson:${fastjsonVersion}"

API

  • ### base相关→最底层的继承
        IBaseActivity            : "",
        IBaseApplication         : "",
        IBaseFragment            : "",
        IBaseFragmentAdapter     : "",
        IBaseFragmentStateAdapter: "",
        IBaseModel               : "",
        IBasePresenter           : "",
        IBaseView                : "",
  • ### baseapp相关→应用的一些基本工具类
        AppException: "异常记录与处理",
        AppManager  : "activity管理工具",
        BaseRespose : "网络请求基础返回",
  • ### baserx相关→rx底层处理
        RxBus          : "",
        RxCache        : "",
        RxHelper       : "",
        RxManager      : "",
        RxSchedulers   : "",
        RxSubscriber   : "",
        ServerException: "",
  • ### local相关→数据存储
        SharedPrefUtils: "sharedPreference数据存储",
  • ### notes相关→说明文档
        Android 代码混淆在AS的实践
        Android 使用gradle打包的各种配置
        Android 自动化打包实践 gradle打包并推送到git远程库
        Android开发之版本统一规范
        GitSubmodule
        神注释大全
  • ### utils相关→自定义的工具类
        ACache                  : "",
        CollectionUtils         : "",
        DialogPermissionUtil    : "",
        DisplayUtil             : "",
        FormatUtil              : "",
        GlideCircleTransfromUtil: "",
        GlideRoundTransformUtil : "",
        ImageLoaderUtils        : "",
        IpUtils                 : "",
        JsonConvertHelper       : "",
        MeasureUtils            : "",
        NetWorkUtils            : "",
        RxCountDown             : "",
        SDCardUtils             : "",
        TimeUtil                : "",
        TUtil                   : "",
  • ### widget相关→自定义的控件
        NoScrollGridView       : "",
        NoScrollListview       : "",
        OnDoubleClickListener  : "",
        OnNoDoubleClickListener: "",

详细介绍

参见 AndroidBaseModule,工程地址为:https://github.com/BrillantZhao/AndroidBaseModule

参见 AndroidMouldProject(常规的MVP结构),工程地址为:https://github.com/BrillantZhao/AndroidMouldProject

参见 AndroidMouldProject(组件化的MVP结构,建议使用),工程地址为:https://github.com/BrillantZhao/AndroidMouldProject2

相关文章
|
3月前
|
安全 API Android开发
Android网络和数据交互: 解释Retrofit库的作用。
Android网络和数据交互: 解释Retrofit库的作用。
38 0
|
4月前
|
XML Android开发 数据安全/隐私保护
Android 自定义开源库 EasyView
Android 自定义开源库 EasyView
|
2天前
|
Linux 编译器 Android开发
FFmpeg开发笔记(九)Linux交叉编译Android的x265库
在Linux环境下,本文指导如何交叉编译x265的so库以适应Android。首先,需安装cmake和下载android-ndk-r21e。接着,下载x265源码,修改crosscompile.cmake的编译器设置。配置x265源码,使用指定的NDK路径,并在配置界面修改相关选项。随后,修改编译规则,编译并安装x265,调整pc描述文件并更新PKG_CONFIG_PATH。最后,修改FFmpeg配置脚本启用x265支持,编译安装FFmpeg,将生成的so文件导入Android工程,调整gradle配置以确保顺利运行。
21 1
FFmpeg开发笔记(九)Linux交叉编译Android的x265库
|
3月前
|
JSON Java Android开发
Android网络和数据交互: 请解释Android中的JSON解析库,如Gson。
Android网络和数据交互: 请解释Android中的JSON解析库,如Gson。
24 0
|
3月前
|
Android开发
Android源码学习(五):AVB2.0-libavb库介绍2
Android源码学习(五):AVB2.0-libavb库介绍2
105 0
|
4月前
|
API Android开发
[Android]图片加载库Glide
[Android]图片加载库Glide
54 0
|
4月前
|
XML Java 语音技术
Android App开发在线语音识别处理中实现中文转拼音(Pinyin4j库)功能(超详细 附源码和演示)
Android App开发在线语音识别处理中实现中文转拼音(Pinyin4j库)功能(超详细 附源码和演示)
63 0
|
6月前
|
Java Android开发 C++
[笔记]Visual Studio 2015 开发安卓so库JNI层——回调调用
[笔记]Visual Studio 2015 开发安卓so库JNI层——回调调用
|
6月前
|
移动开发 Java 开发工具
[笔记]Visual Studio 2015 开发安卓so库JNI层——HelloWorld
[笔记]Visual Studio 2015 开发安卓so库JNI层——HelloWorld
|
8月前
|
API Android开发
Android 网络请求库Retrofit使用详解
Android 网络请求库Retrofit使用详解
103 0