1 Star 0 Fork 0

MyProject/NetLibrary

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
build.gradle 1.83 KB
一键复制 编辑 原始数据 按行查看 历史
lindepeng 提交于 2023-03-13 15:41 . retrofit+协程
plugins {
id 'com.android.library'
id 'kotlin-android'
}
android {
compileSdk 30
defaultConfig {
minSdk 21
targetSdk 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
ndk {
abiFilters("armeabi-v7a")
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", '"https://scat.guangrufw.com"'
// buildConfigField "String", "BASE_URL", '"https://test-scat.guangrufw.com"'
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
buildConfigField "String", "BASE_URL", '"https://test-scat.guangrufw.com"'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
dataBinding = true
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.3.0'
implementation 'com.google.android.material:material:1.4.0'
api 'com.squareup.retrofit2:retrofit:2.7.2'
api 'com.squareup.retrofit2:converter-gson:2.7.2'
api "com.squareup.okhttp3:logging-interceptor:4.2.1"
api 'com.blankj:utilcodex:1.30.7-alpha0@aar'
api "androidx.lifecycle:lifecycle-livedata-ktx:2.2.0"
api "androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0"
api 'androidx.lifecycle:lifecycle-extensions:2.2.0'
api "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Kotlin
1
https://gitee.com/lindepeng/net-library.git
git@gitee.com:lindepeng/net-library.git
lindepeng
net-library
NetLibrary
master

搜索帮助