apply plugin: 'com.android.application' android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { applicationId "eVVM.apk" minSdkVersion 15 targetSdkVersion rootProject.ext.targetSdkVersion versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { // EventBus Apt 索引类生成位置 arguments = [eventBusIndex: applicationId + '.MyEventBusIndex'] } } ndk { //选择要添加的对应 cpu 类型的 .so 库。 abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a' // 还可以添加 'x86', 'x86_64', 'mips', 'mips64' } manifestPlaceholders = [ JPUSH_PKGNAME: applicationId, JPUSH_APPKEY : "a34cef708ddaa15e2d8367f0", //JPush 上注册的包名对应的 Appkey. JPUSH_CHANNEL: "developer-default", //暂时填写默认值即可. ] } packagingOptions { doNotStrip '*/mips/*.so' doNotStrip '*/mips64/*.so' } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } // JNI 目录 sourceSets { main { jniLibs.srcDirs = ['libs'] } } } dependencies { // 依赖 libs 目录下所有 jar 包 implementation fileTree(include: ['*.jar'], dir: 'libs') // 依赖 libs 目录下所有 aar 包 implementation fileTree(include: ['*.aar'], dir: 'libs') implementation fileTree(dir: 'libs', include: ['*.jar']) // 基础库(不包任何第三方框架) implementation project(':base') // 自定义 View implementation project(':widget') // Dialog 封装 implementation project(':dialog') // Glide 隔离 implementation project(':image') implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:support-v4:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support.constraint:constraint-layout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion" // Dex分包,解决 64k 问题 implementation 'com.android.support:multidex:1.0.3' // ButterKnife 注解库:https://github.com/JakeWharton/butterknife implementation 'com.jakewharton:butterknife:9.0.0-rc1' annotationProcessor 'com.jakewharton:butterknife-compiler:9.0.0-rc1' // EventBus 事件总线 implementation "org.greenrobot:eventbus:3.1.1" annotationProcessor 'org.greenrobot:eventbus-annotation-processor:3.1.1' //recyclerview implementation 'com.android.support:appcompat-v7:28.0.0-alpha1' implementation 'com.android.support:recyclerview-v7:28.0.0-alpha1' // 状态栏沉浸:https://github.com/gyf-dev/ImmersionBar implementation 'com.gyf.immersionbar:immersionbar:2.3.3' // 侧滑功能:https://github.com/bingoogolapple/BGASwipeBackLayout-Android implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0' // 权限请求框架:https://github.com/getActivity/XXPermissions implementation 'com.hjq:xxpermissions:5.5' // 标题栏:https://github.com/getActivity/TitleBar implementation 'com.hjq:titlebar:5.0' // 吐司工具类:https://github.com/getActivity/ToastUtils implementation 'com.hjq:toast:6.0' // 圆形的ImageView:https://github.com/hdodenhof/CircleImageView implementation 'de.hdodenhof:circleimageview:2.2.0' // 支持放大缩放的ImageView:https://github.com/chrisbanes/PhotoView 出问题了看看 https://www.jianshu.com/p/f7a7a8765294 implementation 'com.github.chrisbanes:PhotoView:2.0.0' //AutoSize 今日头条屏幕适配方案终极版 implementation 'me.jessyan:autosize:1.1.2' //BGAQRCode-Android 二维码 + Android 图片选择、预览、九宫格图片控件、拖拽排序九宫格图片控件 //https://github.com/bingoogolapple/BGAQRCode-Android + https://github.com/bingoogolapple/BGAPhotoPicker-Android implementation 'cn.bingoogolapple:bga-qrcode-zxing:1.3.6' implementation 'cn.bingoogolapple:bga-photopicker:1.2.8' implementation 'cn.bingoogolapple:bga-baseadapter:1.2.7' //recyclerview适配器 https://github.com/CymChad/BaseRecyclerViewAdapterHelper implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46' //网络请求框架 https://github.com/lygttpod/RxHttpUtils implementation 'com.github.lygttpod:RxHttpUtils:2.3.3' //极光推送 官方文档 : https://docs.jiguang.cn/jpush/client/Android/android_api/ implementation 'cn.jiguang.sdk:jpush:3.3.2' implementation 'cn.jiguang.sdk:jcore:2.0.1' //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout 可结合BaseRecyclerViewAdapterHelper implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1' // 布局优化:https://github.com/getActivity/Layouts // 分割线:https://github.com/getActivity/RecyclerItemDecoration // 国际化:https://github.com/getActivity/MultiLanguages // 悬浮窗:https://github.com/getActivity/XToast // 网络请求:https://github.com/zhou-you/RxEasyHttp // RxJava: https://github.com/ReactiveX/RxAndroid // RecyclerView:https://github.com/CymChad/BaseRecyclerViewAdapterHelper // 上拉刷新下拉加载:https://github.com/scwang90/SmartRefreshLayout // 工具类:https://github.com/Blankj/AndroidUtilCode // 图片选择:https://github.com/zhihu/Matisse // 轮播图:https://github.com/bingoogolapple/BGABanner-Android // 二维码:https://github.com/bingoogolapple/BGAQRCode-Android // 第三方支付:https://github.com/getActivity/RxPay // Log 打印:https://github.com/JakeWharton/timber // 重要数据存储:https://github.com/Tencent/MMKV }