plugins {
|
id 'com.android.application'
|
}
|
|
android {
|
signingConfigs {
|
debug {
|
storeFile file('../dycz.jks')
|
storePassword 'dycz@2023'
|
keyAlias 'dayu'
|
keyPassword 'dycz@2023'
|
}
|
}
|
namespace 'com.dayu.pipirrapp'
|
compileSdk 34
|
|
defaultConfig {
|
applicationId "com.dayu.pipirrapp"
|
minSdk 24
|
targetSdk 31
|
versionCode 1
|
versionName "1.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
signingConfig signingConfigs.debug
|
|
manifestPlaceholders = [
|
JPUSH_PKGNAME : applicationId,
|
//JPush 上注册的包名对应的 Appkey.
|
JPUSH_APPKEY : "375adbd599ceb9977566b929",
|
//暂时填写默认值即可.
|
JPUSH_CHANNEL : "developer-default",
|
//若不集成厂商通道,可直接跳过以下配置
|
MEIZU_APPKEY : "MZ-魅族的APPKEY",
|
MEIZU_APPID : "MZ-魅族的APPID",
|
XIAOMI_APPID : "MI-小米的APPID",
|
XIAOMI_APPKEY : "MI-小米的APPKEY",
|
OPPO_APPKEY : "OP-oppo的APPKEY",
|
OPPO_APPID : "OP-oppo的APPID",
|
OPPO_APPSECRET: "OP-oppo的APPSECRET",
|
VIVO_APPKEY : "vivo的APPKEY",
|
VIVO_APPID : "vivo的APPID",
|
HONOR_APPID : "Honor的APP ID",
|
]
|
ndk {
|
// 设置支持的SO库架构(开发者可以根据需要,选择一个或多个平台的so)
|
abiFilters "armeabi", "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
|
}
|
}
|
|
buildTypes {
|
debug{
|
buildConfigField "boolean", "DEBUG", "true"
|
}
|
release {
|
buildConfigField "boolean", "DEBUG", "false"
|
minifyEnabled false
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
}
|
}
|
compileOptions {
|
sourceCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
}
|
// 启用 buildConfig 特性
|
buildFeatures {
|
buildConfig true
|
}
|
dataBinding {
|
enabled = true;
|
}
|
viewBinding {
|
enabled = true;
|
}
|
packagingOptions {
|
exclude 'META-INF/DEPENDENCIES'
|
// 如果你还遇到其他重复的META-INF文件,也可以添加类似的排除规则
|
exclude 'META-INF/LICENSE'
|
exclude 'META-INF/LICENSE.txt'
|
exclude 'META-INF/NOTICE'
|
exclude 'META-INF/NOTICE.txt'
|
// RocketMQ特有的排除项(如果需要)
|
exclude 'META-INF/INDEX.LIST'
|
exclude 'META-INF/spring.factories'
|
exclude 'META-INF/spring.handlers'
|
}
|
|
}
|
|
dependencies {
|
implementation project(':library')
|
implementation 'androidx.appcompat:appcompat:1.6.1'
|
implementation 'com.google.android.material:material:1.8.0'
|
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
|
// testImplementation 'junit:junit:4.13.2'
|
// androidTestImplementation 'androidx.test.ext:junit:1.1.5'
|
// androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
|
|
// implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.0"
|
|
// implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10"
|
//权限
|
implementation 'com.github.getActivity:XXPermissions:18.5'
|
//列表
|
implementation 'io.github.scwang90:refresh-layout-kernel:2.0.5'
|
implementation 'io.github.scwang90:refresh-header-classics:2.0.5'
|
implementation 'androidx.recyclerview:recyclerview:1.2.0'//经典刷新头
|
|
implementation 'com.tencent.bugly:crashreport:latest.release'
|
|
implementation 'com.github.lzyzsd:jsbridge:1.0.4'
|
//生命周期管理
|
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.1"
|
implementation "androidx.lifecycle:lifecycle-common:2.5.1"
|
|
//通信
|
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
|
implementation('com.squareup.retrofit2:converter-gson:2.9.0') {
|
exclude group: 'com.google.code.gson';
|
}
|
implementation 'com.squareup.retrofit2:adapter-rxjava3:2.9.0'
|
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
|
implementation 'com.squareup.okhttp3:logging-interceptor:4.11.0'
|
implementation 'com.google.code.gson:gson:2.10.1'
|
//loding
|
implementation 'com.pnikosis:materialish-progress:1.7'
|
|
//定位
|
implementation 'com.baidu.lbsyun:BaiduMapSDK_Location:9.3.7'
|
|
//圆形头像
|
implementation 'de.hdodenhof:circleimageview:3.1.0'
|
|
//广播通信
|
implementation 'io.github.jeremyliao:live-event-bus-x:1.8.0'
|
//mqtt
|
implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
|
|
//room数据库
|
implementation "androidx.room:room-runtime:2.3.0"
|
implementation "androidx.room:room-ktx:2.3.0"
|
runtimeOnly("androidx.room:room-common:2.3.0")
|
annotationProcessor "androidx.room:room-compiler:2.3.0"
|
implementation "androidx.room:room-rxjava3:2.3.0"
|
|
//图片
|
implementation 'com.github.bumptech.glide:glide:4.16.0'
|
// PictureSelector 基础 (必须图片选择)
|
implementation 'io.github.lucksiege:pictureselector:v3.11.2'
|
// 图片压缩 (按需引入)
|
implementation 'io.github.lucksiege:compress:v3.11.2'
|
|
// // 图片查看
|
// implementation('com.github.SherlockGougou:BigImageViewPager:androidx-8.1.3') {
|
// exclude group: 'androidx.appcompat';
|
// exclude group: 'com.google.android.material';
|
// exclude group: 'androidx.core';
|
// }
|
|
implementation "androidx.media3:media3-exoplayer:1.4.1"
|
implementation "androidx.media3:media3-exoplayer-dash:1.4.1"
|
implementation "androidx.media3:media3-ui:1.4.1"
|
annotationProcessor 'com.github.bumptech.glide:compiler:4.16.0'// kotlin请使用kapt
|
implementation 'com.github.bumptech.glide:okhttp3-integration:4.16.0'
|
implementation "com.github.zjupure:webpdecoder:2.3.4.14.2"
|
//进度加载
|
implementation 'com.github.jenly1314:circleprogressview:1.1.3'
|
|
}
|