apply plugin: 'com.android.application' apply plugin: 'me.tatarka.retrolambda' //one apm apply plugin: 'oneapm' android { compileSdkVersion 25 buildToolsVersion '25.0.0' defaultConfig { applicationId "com.xxxx.xxxx" minSdkVersion 19 targetSdkVersion 21 versionCode 15 versionName "2.2.0" ndk { abiFilters "armeabi", "x86", "mips" } //开启多dex支持 multiDexEnabled true resConfigs "zh" } sourceSets { main { jniLibs.srcDirs = ['libs'] } } signingConfigs { release { storeFile file('/xx.jks') storePassword 'xxxx' keyAlias 'xx' keyPassword 'xxxx' } debug { storeFile file('/xx.jks') storePassword 'xxxx' keyAlias 'xx' keyPassword 'xxxx' } } buildTypes { release { minifyEnabled false //shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' // signingConfig signingConfigs.release } debug { //signingConfig signingConfigs.debug } } android.applicationVariants.all { variant -> variant.outputs.each { output -> def outputFile = output.outputFile if (outputFile != null && outputFile.name.endsWith('.apk')) { def fileName = "xx-${defaultConfig.versionName}-${variant.buildType.name}.apk" output.outputFile = new File(outputFile.parent, fileName) } } } productFlavors { c1001 { manifestPlaceholders = ["UMENG_CHANNEL_NAME": "9999", "BUGLY_CHANNEL_NAME": "9999"] } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } repositories { mavenCentral() maven { url "https://jitpack.io" } maven { url "http://dl.bintray.com/countly/maven" } } dependencies { debugCompile 'com.squareup.leakcanary:leakcanary-android:1.5.1' releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1' compile fileTree(include: ['*.jar'], dir: 'libs') compile project(':libcalendar') compile 'com.android.support:appcompat-v7:25.4.0' compile 'com.android.support:support-v4:25.4.0' compile 'com.android.support:design:25.4.0' compile 'com.android.support:multidex:1.0.1' compile 'com.android.support:cardview-v7:25.4.0' compile 'org.greenrobot:eventbus:3.0.0' compile 'io.reactivex.rxjava2:rxjava:2.0.8' compile 'io.reactivex.rxjava2:rxandroid:2.0.1' compile 'com.trello.rxlifecycle2:rxlifecycle:2.0.1' compile 'com.trello.rxlifecycle2:rxlifecycle-android:2.0.1' compile 'com.squareup.okhttp3:okhttp:3.7.0' compile 'com.squareup.okhttp3:mockwebserver:3.7.0' compile 'com.google.code.gson:gson:2.8.0' compile 'com.jakewharton:butterknife:7.0.1' compile 'com.android.support:gridlayout-v7:25.4.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.github.bumptech.glide:glide:3.8.0' compile 'com.github.codbking:PickTime:v1.0.1' compile 'com.umeng.analytics:analytics:latest.integration' compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.28' compile 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3' compile 'io.paperdb:paperdb:2.1' compile 'com.elvishew:xlog:1.3.0' //compile(name: 'ExCardSDK', ext: 'aar') compile(name: 'jiaozivideoplayer-6.0.0', ext: 'aar') //统计 compile 'ly.count.android:sdk:17.05' //Google Analytics compile 'com.google.android.gms:play-services-analytics:9.2.0' } // 依赖插件脚本 //Google Analytics apply plugin: 'com.google.gms.google-services'
常用框架
最新推荐文章于 2023-02-27 17:38:09 发布