123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- apply plugin: 'com.android.application'
- android {
- // wuyq add for sign begin
- signingConfigs {
- release {
- storeFile file("keystore_wuyuqing_3128/rk3128.jks")
- storePassword "111111"
- keyAlias "rk3128"
- keyPassword "111111"
- }
- debug {
- storeFile file("keystore_wuyuqing_3128/rk3128.jks")
- storePassword "111111"
- keyAlias "rk3128"
- keyPassword "111111"
- }
- }
- // wuyq add for sign end
- compileSdkVersion 26
- buildToolsVersion "26.0.1"
- defaultConfig {
- applicationId "com.wdkl.callingbed2"
- minSdkVersion 15
- targetSdkVersion 26
- versionCode 1
- versionName "1.45"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- buildConfigField "String", "BUILD_TIME", getDate()
- }
- buildTypes {
- // wuyq add for sign begin
- debug {
- signingConfig signingConfigs.debug
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- // wuyq add for sign end
- release {
- //wuyq add for sign begin
- signingConfig signingConfigs.release
- //wuyq add for sign end
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- }
- //获取编译日期
- String getDate() {
- Date date = new Date();
- String dates = "\""+date.format("yyyy_MM_dd", TimeZone.getTimeZone("UTC"))+"\"";
- return dates;
- }
- dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
- androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- })
- compile 'com.android.support:appcompat-v7:24.2.0'
- compile 'com.android.support.constraint:constraint-layout:1.0.2'
- testCompile 'junit:junit:4.12'
- compile 'com.android.support:recyclerview-v7:24.2.0'
- compile 'org.greenrobot:eventbus:3.0.0'
- compile 'com.jakewharton:butterknife:7.0.1'
- compile 'com.android.support:design:23.4.0'
- // 适配
- compile 'com.zhy:autolayout:1.4.3'
- //hongyang okhttp
- compile 'com.zhy:okhttputils:2.6.2'
- //串口依赖库
- compile project(path: ':bedlib')
- //gson
- compile 'com.google.code.gson:gson:2.7'
- //图片框架
- compile 'com.squareup.picasso:picasso:2.5.2'
- //文字跳动
- compile 'net.frakbot:jumpingbeans:1.3.0'
- compile files('libs/core-3.2.1.jar')
- compile project(':AmDemo_R')
- compile 'com.android.support:cardview-v7:26+'
- compile 'com.github.anrwatchdog:anrwatchdog:1.3.+'
- // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3'
- // releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3'
- }
- String SDK_DIR = System.getenv("ANDROID_SDK_HOME")
- if (SDK_DIR == null) {
- Properties props = new Properties()
- props.load(new FileInputStream(project.rootProject.file("local.properties")))
- SDK_DIR = props.get('sdk.dir');
- }
- dependencies {
- provided files("${SDK_DIR}/platforms/android-25/data/layoutlib.jar")
- }
|