apply plugin: 'com.android.application' apply plugin: 'org.greenrobot.greendao' // apply plugin android { compileSdkVersion rootProject.ext.compileSdkVersion buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { applicationId "com.zy.bvvm" minSdkVersion 15 targetSdkVersion rootProject.ext.targetSdkVersion versionCode 105 versionName "1.0.5" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true 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_APPKEY : "d91511ac7950582a85e5e5de", //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'] } } } greendao { /** * 数据库版本 */ schemaVersion 1 /** * greenDao输出到Dao数据库实体操作类文件目录 */ daoPackage 'greendao' /** * GreenDao实体类dao文件目录 */ targetGenDir 'src/main/java' } 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" implementation 'com.alibaba:fastjson:1.1.71.android' // Dex分包,解决 64k 问题 implementation 'com.android.support:multidex:1.0.3' // 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' // 状态栏沉浸 implementation 'com.gyf.immersionbar:immersionbar:2.3.3' // 侧滑功能 implementation 'cn.bingoogolapple:bga-swipebacklayout:1.2.0' // 权限请求框架 implementation 'com.hjq:xxpermissions:5.5' // 标题栏 implementation 'com.hjq:titlebar:5.0' // 吐司工具类 implementation 'com.hjq:toast:6.0' // viewhelper implementation 'com.nineoldandroids:library:2.4.0' // 圆形的ImageView implementation 'de.hdodenhof:circleimageview:2.2.0' // 支持放大缩放的ImageView implementation 'com.github.chrisbanes:PhotoView:2.0.0' //AutoSize implementation 'me.jessyan:autosize:1.1.2' //BGAQRCode-Android 二维码 + 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' implementation 'cn.bingoogolapple:bga-banner:2.2.6@aar' //recyclerview适配器 implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.46' //网络请求框架 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' implementation 'cn.jiguang.sdk:jpush:3.8.6' implementation 'cn.jiguang.sdk:jcore:2.5.5' //netcheck implementation 'com.github.tianma8023:NetDetector:v0.2.0' //上拉刷新下拉加载 https://github.com/anzaizai/EasyRefreshLayout implementation 'com.github.anzaizai:EasyRefreshLayout:1.3.1' //pdfview https://github.com/barteksc/AndroidPdfViewer implementation 'com.github.barteksc:android-pdf-viewer:2.8.2' //安卓数据库 implementation 'org.greenrobot:greendao:3.3.0' // add library implementation 'org.greenrobot:greendao-generator:3.3.0' //百分比布局 implementation 'com.zhy:percent-support-extends:1.1.1' // add library implementation 'org.greenrobot:greendao-generator:3.3.0' implementation 'com.github.dfqin:grantor:2.1.0' //腾讯bugly implementation 'com.tencent.bugly:crashreport:latest.release' //其中latest.release指代最新Bugly SDK版本号,也可以指定明确的版本号,例如2.1.9 implementation 'com.tencent.bugly:nativecrashreport:latest.release' //其中latest.release指代最新Bugly NDK版本号,也可以指定明确的版本号,例如3.0 }