常用框架

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'

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

lyglostangel

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值