1 Star 7 Fork 1

刘酱酱/snails-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.53 KB
一键复制 编辑 原始数据 按行查看 历史
buildscript {
repositories {
mavenCentral()
jcenter()
google()
}
dependencies {
classpath "com.jakewharton:butterknife-gradle-plugin:${snails_common.butterknife}"
}
}
apply plugin: 'com.android.library'
apply plugin: 'com.jakewharton.butterknife'
android {
compileSdkVersion versions.compileSdk
defaultConfig {
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode 1
versionName "1.0.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// 使用 Java8 编译
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
api project(path: ':snails-net')
api project(path: ':snails-tool')
api project(path: ':snails-ui')
implementation "androidx.appcompat:appcompat:${versions_common.androidxV7}"
// ===========================================================================
// ---- Glide ----
// 注意:要使用GlideApp方法
// 在app模块下,引入依赖 annotationProcessor 'com.github.bumptech.glide:compiler:4.9.0'
// ===========================================================================
// glide图片下载管理 https://github.com/bumptech/glide
api ("com.github.bumptech.glide:glide:${snails_common.glide}") {
exclude group: "com.android.support"
}
// 将glide的网络请求,改为okhttp
api "com.github.bumptech.glide:okhttp3-integration:${snails_common.glide}"
// glide图片剪裁库 https://github.com/wasabeef/glide-transformations
api "jp.wasabeef:glide-transformations:${snails_common.glideTransformations}"
// ===========================================================================
// ButterKnife
api "com.jakewharton:butterknife:${snails_common.butterknife}"
// ===========================================================================
// 沉浸式状态栏 immersionbar version 3.0.0-beta02
// 地址: https://github.com/gyf-dev/ImmersionBar
// 使用说明: https://www.jianshu.com/p/2a884e211a62
api "com.gyf.immersionbar:immersionbar:${snails_app.immersionbar}"
api "com.gyf.immersionbar:immersionbar-components:${snails_app.immersionbar}"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Android
1
https://gitee.com/ak-star/snails-app.git
git@gitee.com:ak-star/snails-app.git
ak-star
snails-app
snails-app
master

搜索帮助