buildscript { repositories { //maven { url 'https://maven.fabric.io/public' } } dependencies { //classpath 'io.fabric.tools:gradle:1.+' } } apply plugin: 'com.android.application' //apply plugin: 'io.fabric' apply plugin: 'com.google.gms.google-services' repositories { maven { url 'https://maven.fabric.io/public' } } apply plugin: 'realm-android' android { compileSdkVersion 28 buildToolsVersion rootProject.ext.androidBuildToolsVersion aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false sourceSets { main { jniLibs.srcDirs = ['libs'] } } defaultConfig { applicationId "com.zycoo.coocall" minSdkVersion 24 // rootProject.ext.androidMinSdkVersion targetSdkVersion rootProject.ext.androidTargetSdkVersion versionCode 210 versionName "2.1.0" multiDexEnabled true ndk { abiFilters "armeabi-v7a", "x86", "armeabi" } packagingOptions { exclude "lib/arm64-v8a/librealm-jni.so" exclude "lib/x86_64/librealm-jni.so" exclude "lib/mips/librealm-jni.so" } javaCompileOptions { annotationProcessorOptions { includeCompileClasspath true } } } signingConfigs { debug { storeFile file("../cert/debug.keystore") storePassword "debugZycoo" keyAlias "debugZycoo" keyPassword "debugZycoo" } release { storeFile file("../cert/release.keystore") storePassword "releaseZycoo" keyAlias "releaseZycoo" keyPassword "releaseZycoo" } } buildTypes { release { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' buildConfigField "String", "SERVER_URL", "\"http://141.138.160.50:4242\"" signingConfig signingConfigs.release minifyEnabled false debuggable false } debug { proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' buildConfigField "String", "SERVER_URL", "\"http://141.138.160.50:4242\"" signingConfig signingConfigs.debug minifyEnabled false debuggable true } } lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } dexOptions { jumboMode true preDexLibraries false javaMaxHeapSize "4g" } buildToolsVersion '28.0.3' compileOptions { sourceCompatibility = 1.8 targetCompatibility = 1.8 } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(path: ':android-ngn-stack') Map dependencies = rootProject.ext.dependencies; implementation 'androidx.appcompat:appcompat:1.0.2' //dependencies.appCompat // implementation "com.android.support:design:${supportLibraryVersion}" implementation 'com.google.android.material:material:1.1.0-alpha09' implementation 'androidx.recyclerview:recyclerview:1.0.0' //dependencies.recyclerView implementation 'androidx.cardview:cardview:1.0.0' //dependencies.cardview implementation dependencies.retrofit implementation dependencies.retrofitConverterGson implementation dependencies.picasso implementation dependencies.circleImageView implementation dependencies.okhttp implementation dependencies.okhttpurlconnection implementation dependencies.okhttpLoginInterceptor implementation 'androidx.multidex:multidex:2.0.1' //dependencies.multidex // annotationProcessor dependencies.butterKnifeAnnotationProcessor implementation dependencies.zxing implementation 'com.google.zxing:core:3.3.1' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' //dependencies.constraintLayout implementation 'com.jakewharton:butterknife:10.1.0' annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0' implementation('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') { transitive = true } implementation('com.crashlytics.sdk.android:crashlytics-ndk:2.0.2@aar') { transitive = true } implementation files('libs/pinyin4j-2.5.0.jar') implementation files('libs/commons-io-1.4.jar') implementation files('libs/org.apache.http.legacy.jar') //compile 'com.umeng.sdk:common:latest.integration' implementation 'com.umeng.sdk:analytics:7.5.3' //PushSDK必须依赖基础组件库,所以需要加入对应依赖 implementation 'com.umeng.umsdk:common:1.5.4' //PushSDK必须依赖utdid库,所以需要加入对应依赖 implementation 'com.umeng.umsdk:utdid:1.1.5.3' //PushSDK implementation 'com.umeng.umsdk:push:5.0.2' implementation 'com.google.firebase:firebase-core:17.2.0' implementation 'com.google.firebase:firebase-messaging:20.0.0' implementation 'com.firebase:firebase-jobdispatcher:0.5.2' implementation 'com.google.zxing:core:3.3.1' implementation 'com.umeng.umsdk:xiaomi-push:3.6.9' implementation 'com.umeng.umsdk:xiaomi-umengaccs:1.0.9' implementation 'com.umeng.umsdk:huawei-basetb:2.6.0.301' implementation 'com.umeng.umsdk:huawei-pushtb:2.6.0.301' implementation 'com.umeng.umsdk:huawei-umengaccs:1.1.3' } //crashlytics { // enableNdk true // androidNdkOut 'src/main/obj' // androidNdkLibsOut 'src/main/libs' //}