快速搭建mvp框架

工具类

implementation 'com.blankj:utilcode:1.29.0'

// if u use AndroidX, use the following

implementation 'com.blankj:utilcodex:1.29.0'

面向对象型数据库框架

buildscript {

repositories {

jcenter()

mavenCentral() // add repository

}

dependencies {

classpath 'com.android.tools.build:gradle:3.5.3'

classpath 'org.greenrobot:greendao-gradle-plugin:3.3.0' // add plugin

}

}

apply plugin: 'com.android.application'

apply plugin: 'org.greenrobot.greendao' // apply plugin

dependencies {

implementation 'org.greenrobot:greendao:3.3.0' // add library

}

沉浸式布局工具类

compile 'com.jaeger.statusbarutil:library:1.5.1'

Rxjava

implementation "io.reactivex.rxjava3:rxjava:3.x.y"

(Please replace x and y with the latest version numbers: Maven Central )

网络框架:retrofit/netty/okhttp

图片展示框架

repositories {

google()

jcenter()

}

dependencies {

implementation 'com.github.bumptech.glide:glide:4.11.0'

annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'

}

注解导入框架

apply plugin: 'com.android.library'

apply plugin: 'com.jakewharton.butterknife'

android {

...

// Butterknife requires Java 8.

compileOptions {

sourceCompatibility JavaVersion.VERSION_1_8

targetCompatibility JavaVersion.VERSION_1_8

}

}

dependencies {

implementation 'com.jakewharton:butterknife:10.2.3'

annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.3'

}

buildscript {

repositories {

mavenCentral()

google()

}

dependencies {

classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3'

}

}

EventBus是发布/订阅事件总线

implementation 'org.greenrobot:eventbus:3.2.0'

-keepattributes *Annotation*

-keepclassmembers class * {

@org.greenrobot.eventbus.Subscribe ;

}

-keep enum org.greenrobot.eventbus.ThreadMode { *; }

# And if you use AsyncExecutor:

-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {

(java.lang.Throwable);

}

Android6.0权限请求框架

implementation 'com.yanzhenjie:permission:2.0.3'

强大而灵活的RecyclerView Adapter

allprojects {

repositories {

...

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

}

}

dependencies {

implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'

}

Android智能下拉刷新框架

compile 'com.android.support:appcompat-v7:25.3.1'

implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖

implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头

Androidx

implementation 'androidx.appcompat:appcompat:1.0.0' //必须 1.0.0 以上

implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖

implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头

今日头条屏幕适配方案终极版

implementation 'me.jessyan:autosize:1.2.1'

Android平台下的图片选择器(AndroidX) Api说明

implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.5.9'

allprojects {

repositories {

jcenter()

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

}

}

about: 下一代Android打包工具,100个渠道包只需要10秒钟

极速渠道打包工具

Android LogCat 工具类

dependencies {

compile 'com.github.zhaokaiqiang.klog:library:1.6.0'

}

Android平台下的图片选择器

implementation 'org.devio.takephoto:takephoto_library:4.1.0'

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐