1 Star 0 Fork 0

非也非也/android-model-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 2.48 KB
一键复制 编辑 原始数据 按行查看 历史
zxiao 提交于 2020-11-05 15:32 +08:00 . 第一次提交 基于MVVM+AROUTER+RXJAVA+JETPACK
plugins {
id 'com.android.library'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
javaCompileOptions {
annotationProcessorOptions {
arguments = [AROUTER_MODULE_NAME: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
//资源文件 文件名开头配置
resourcePrefix "moudle_commonlib"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
//启用DataBinding
dataBinding {
enabled true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.2.1'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'com.google.android.material:material:1.2.1'
//网络请求
api 'com.squareup.retrofit2:retrofit:2.5.0'
api 'com.squareup.retrofit2:converter-gson:2.4.0'
api 'io.reactivex.rxjava2:rxandroid:2.0.2'
api 'io.reactivex.rxjava2:rxjava:2.1.14'
api 'com.squareup.okhttp3:okhttp:3.10.0'
api 'com.squareup.retrofit2:adapter-rxjava2:2.4.0'
//recyclerView 适配器
api 'com.github.CymChad:BaseRecyclerViewAdapterHelper:3.0.4'
//图片加载
api 'com.github.bumptech.glide:glide:4.9.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
//状态栏
api 'com.jaeger.statusbarutil:library:1.5.1'
//刷新
api 'com.scwang.smart:refresh-layout-kernel:2.0.1' //核心必须依赖
api 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头
api 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载
//livebus 通信
api 'com.jeremyliao:live-event-bus-x:1.7.2'
implementation 'com.alibaba:arouter-api:1.5.1'
annotationProcessor 'com.alibaba:arouter-compiler:1.5.1'
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/feiyefeiye/android-model-demo.git
git@gitee.com:feiyefeiye/android-model-demo.git
feiyefeiye
android-model-demo
android-model-demo
master

搜索帮助