Files
HouseProperty/app/build.gradle

200 lines
8.0 KiB
Groovy
Raw Normal View History

2026-01-07 11:13:33 +08:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
namespace "com.sl.house_property"
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
signingConfigs {
defaultSignature {
keyAlias 'key0'
keyPassword 'haotian'
storeFile file('haotian.jks')
storePassword 'haotian'
}
}
lintOptions {
abortOnError false
}
buildFeatures {
dataBinding = true
}
compileSdkVersion 33
// buildToolsVersion 在 AGP 8.0+ 中不再需要,会自动使用默认版本
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
defaultConfig {
// multiDexEnabled true
// includeCompileClasspath 在 AGP 3.0+ 中已移除,功能默认启用,无需配置
// multiDexEnabled true
applicationId "com.sl.HouseProperty"
minSdkVersion 21
targetSdkVersion 29
// multiDexEnabled true
versionCode 119
versionName "1.1.9"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
ndk {
//选择要添加的对应cpu类型的.so库。
2026-01-08 17:50:27 +08:00
// 支持 32位和64位架构提升兼容性和性能
abiFilters 'armeabi-v7a', 'arm64-v8a'
2026-01-07 11:13:33 +08:00
}
manifestPlaceholders = [
JPUSH_PKGNAME : applicationId,
JPUSH_APPKEY : "4b6e03f9cc9466efbc0b2528", //JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL : "developer-default", //暂时填写默认值即可.
]
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// signingConfig signingConfigs.defaultSignature
}
debug {
signingConfig signingConfigs.defaultSignature
}
}
repositories {
flatDir {
dirs 'libs'
}
}
sourceSets {
main {
assets.srcDirs = ['src/main/assets', 'src/main/assets/']
jniLibs.srcDirs = ['libs']
}
}
dependencies {
// 添加 Kotlin 标准库
def kotlin_version = rootProject.ext.kotlin_version
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// Kotlin 标准库DataBinding 编译器在 AGP 8.x 中需要)
compileOnly "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
annotationProcessor "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// 统一 Kotlin 版本,排除冲突的旧版本
configurations.all {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk7'
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jdk8'
}
implementation fileTree(dir: 'libs', include: ['*.jar'])
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.zhy:percent-support-extends:1.0.1'
implementation 'com.arialyy.aria:Aria:3.1.1'
implementation 'com.jcodecraeer:xrecyclerview:1.3.2'
implementation 'com.youth.banner:banner:1.4.10'
// implementation 'com.github.bumptech.glide:glide:3.7.0'
implementation 'skin.support:skin-support:1.2.2'
implementation 'skin.support:skin-support-design:1.2.1'
implementation 'com.squareup.retrofit2:retrofit:2.1.0'
implementation 'com.google.code.gson:gson:2.6.2'
implementation 'io.reactivex:rxjava:1.1.0'
implementation 'io.reactivex:rxandroid:1.1.0'
implementation 'com.squareup.retrofit2:converter-gson:2.1.0'
implementation 'com.squareup.retrofit2:adapter-rxjava:2.1.0'
implementation 'com.trello:rxlifecycle:+'
implementation 'com.trello:rxlifecycle-components:+'
implementation 'com.squareup.picasso:picasso:2.5.2'
//图片加载框架
// DataBinding 在 AGP 中已内置,不再需要单独依赖
// implementation 'com.android.databinding:library:1.1'
// implementation 'com.android.databinding:baseLibrary:1.1'
// implementation 'com.android.databinding:adapters:1.1'
implementation 'top.zibin:Luban:1.1.8'
implementation 'com.hjq:xxpermissions:5.5'
implementation 'com.jzj.view:ObservableScrollView:0.0.2'
implementation 'com.dalong:refreshlayout:1.0.1'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'fm.jiecao:jiecaovideoplayer:4.8.3'
implementation 'androidx.multidex:multidex:2.0.1'
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.nhaarman.listviewanimations:lib-core:3.1.0@aar'
implementation 'com.nhaarman.listviewanimations:lib-manipulation:3.1.0@aar'
implementation 'com.nhaarman.listviewanimations:lib-core-slh:3.1.0@aar'
implementation 'com.truizlop.sectionedrecyclerview:library:1.0.0'
implementation 'tech.wangjie:qrcodetools:1.0.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.google.zxing:core:3.3.0'
// implementation(name: 'autil-release', ext: 'aar')
implementation(name: 'cutil-release', ext: 'aar')
// implementation(name: 'viewpicker-release', ext: 'aar')
implementation(name: 'selectpicker-release', ext: 'aar')
implementation 'com.github.rey5137:material:1.2.5'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation 'com.github.chrisbanes:PhotoView:2.0.0'
implementation 'net.dankito.richtexteditor:richtexteditor-android:2.0.8'
implementation(name: 'alipaySdk-15.5.9', ext: 'aar')
implementation files('libs/pldroid-player-2.1.9.jar')
implementation project(':ninegridview')
implementation 'com.lxj:xpopup:1.8.10'
// 添加下面这句即可
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.1.0' //1.0.5及以前版本的老用户升级需谨慎API改动过大
// 基础依赖包,必须要依赖
implementation 'com.gyf.immersionbar:immersionbar:3.0.0'
implementation 'liji.library.dev:citypickerview:5.2.2'
implementation 'com.zhihu.android:matisse:0.5.3-beta3'
implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号也可以指定明确的版本号例如2.2.0
implementation 'com.tencent.mm.opensdk:wechat-sdk-android-without-mta:+'
//引入ormlite
implementation 'com.j256.ormlite:ormlite-core:5.1'
implementation 'com.j256.ormlite:ormlite-android:5.1'
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
implementation 'com.lzy.net:okgo:3.0.4'
implementation 'cn.jiguang.sdk:jpush:3.6.6'
implementation 'cn.jiguang.sdk:jcore:2.3.8'
implementation 'com.tbruyelle.rxpermissions2:rxpermissions:0.9.5@aar'
api 'io.reactivex.rxjava2:rxjava:2.1.5'
implementation 'me.jessyan:autosize:1.1.2'
// implementation 'androidx.camera:camera-view:1.0.0-alpha30'
// implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc05'//视频图片选择器
implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc05'
implementation 'com.lzy.net:okrx2:2.0.2'
//必须使用
api 'io.reactivex.rxjava2:rxandroid:2.1.1'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}