123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- 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<String, String> dependencies = rootProject.ext.dependencies;
- implementation dependencies.appCompat
- implementation dependencies.design
- implementation dependencies.recyclerView
- implementation dependencies.cardview
- implementation dependencies.retrofit
- implementation dependencies.retrofitConverterGson
- implementation dependencies.picasso
- implementation dependencies.circleImageView
- implementation dependencies.okhttp
- implementation dependencies.okhttpurlconnection
- implementation dependencies.okhttpLoginInterceptor
- implementation dependencies.multidex
- implementation dependencies.butterKnifeAnnotationProcessor
- implementation dependencies.zxing
- implementation dependencies.zxingCore
- implementation dependencies.constraintLayout
- implementation compile('com.jakewharton:butterknife:8.6.0') {
- exclude module: 'support-compat'
- }
- 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:latest.integration'
- //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:16.0.4'
- implementation 'com.google.firebase:firebase-messaging:17.3.4'
- 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'
- //}
|