hn-xbg-app/app/build.gradle

165 lines
5.9 KiB
Groovy
Raw Normal View History

2025-06-03 17:35:23 +08:00
import java.security.MessageDigest
apply plugin: 'com.android.application'
android {
compileSdkVersion 30
buildToolsVersion '30.0.0'
defaultConfig {
applicationId "org.easydarwin.easypusher"
minSdkVersion 26
targetSdkVersion 30
versionCode 45
versionName "20.0.4"
multiDexEnabled true
ndk {
abiFilters "armeabi","armeabi-v7a","arm64-v8a","mips"
// abiFilters "arm64-v8a", "armeabi-v7a"
// ldLibs "jnigraphics"
}
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
// externalNativeBuild {
// cmake {
// cppFlags "-std=c++11 -frtti -fexceptions -Wno-format"
// arguments '-DANDROID_PLATFORM=android-23', '-DANDROID_STL=c++_shared' ,"-DANDROID_ARM_NEON=TRUE"
// }
// }
javaCompileOptions {
annotationProcessorOptions {
arguments = [moduleName: project.getName()]
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildFeatures {
dataBinding = true
}
packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
}
// lintOptions {
// checkReleaseBuilds false
// abortOnError false
// }
// externalNativeBuild {
// cmake {
// path "src/main/cpp/CMakeLists.txt"
// version "3.10.2"
// }
// }
}
repositories {
flatDir {
dirs 'libs'
}
}
dependencies {
implementation fileTree(dir: "libs", include: ['*.jar', '*.aar'])
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.1.0-beta01'
//app自动更新
implementation 'com.github.NewHuLe:AppUpdate:v1.7'
//XUI
implementation 'com.github.xuexiangjys:XUI:1.1.5'
implementation 'com.github.xuexiangjys.XPage:xpage-lib:3.0.3'
annotationProcessor 'com.github.xuexiangjys.XPage:xpage-compiler:3.0.3'
implementation 'com.github.bumptech.glide:glide:4.8.0'
//XUI页面路由
implementation 'com.github.xuexiangjys.XRouter:xrouter-runtime:1.0.1'
annotationProcessor 'com.github.xuexiangjys.XRouter:xrouter-compiler:1.0.1'
//XUI切片
implementation 'com.github.xuexiangjys.XAOP:xaop-runtime:1.0.5x'
// implementation 'com.hjq:titlebar:5.0'
//XUI工具类
implementation 'com.github.xuexiangjys.XUtil:xutil-core:1.1.6'
implementation 'com.github.xuexiangjys.XUtil:xutil-sub:1.1.6'
//@BindView 代替findviewbyid方法。
implementation 'com.jakewharton:butterknife:10.2.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.0'
//字体插件
implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
//权限请求框架
implementation 'com.github.getActivity:XXPermissions:13.5'
//recyclerview
implementation 'androidx.recyclerview:recyclerview:1.1.0'
//sliding-root-nav
implementation 'com.yarolegovich:sliding-root-nav:1.1.0'
//MNProgressHUD加载弹框
implementation 'com.github.maning0303:MNProgressHUD:V1.1.5'
// LeakCanary内存泄漏检测
debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.5.4'
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.4'
//okhttp3
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
//cardview
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.2.0-alpha03'
//io.reactivex
implementation 'io.reactivex.rxjava2:rxjava:2.2.6'
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
// fastjson
implementation 'com.alibaba:fastjson:1.2.55'
//下拉刷新
// implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-header:1.1.5'
// implementation 'com.github.xuexiangjys.SmartRefreshLayout:refresh-layout:1.1.5'
//Android崩溃
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'
//地图导航
implementation 'android.arch.lifecycle:extensions:1.1.1'
//SnackbarUtils
implementation 'com.github.mengpeng920223:SnackbarUtils:v1.0.0'
// Stetho core
implementation 'com.facebook.stetho:stetho:1.3.1'
//If you want to add a network helper
implementation 'com.facebook.stetho:stetho-okhttp3:1.3.1'
//悬浮按钮
implementation 'com.github.clans:fab:1.6.4'
//pdf预览
// implementation 'es.voghdev.pdfviewpager:library:1.0.3'
implementation 'es.voghdev.pdfviewpager:library:1.1.2'
// implementation 'com.github.barteksc:android-pdf-viewer:3.2.0-beta.1'
//二维码
// implementation 'cn.yipianfengye.android:zxing-library:2.2'
//GSON
implementation 'com.google.code.gson:gson:2.8.6'
// https://mvnrepository.com/artifact/org.webjars/tinymce
implementation 'org.webjars:tinymce:5.0.9'
implementation files('libs/universal-image-loader-1.9.3.jar')
compile 'org.jsoup:jsoup:1.9.2'
//TabBar
implementation 'com.github.xuexiangjys:JPTabBar:1.0.1'
api 'joda-time:joda-time:2.10.1'
implementation 'com.gitee.Pino_W:date-picker:v1.0.2'
//列表侧滑菜单
implementation 'com.yanzhenjie.recyclerview:support:1.3.2'
implementation 'com.itextpdf:itextg:5.5.10'
}