apply plugin: 'com.android.application' android { 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" } } compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.wdkl.callingdoctor" minSdkVersion 15 targetSdkVersion 26 versionCode 1 versionName "1.25" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true buildConfigField "String", "BUILD_TIME", getDate() } buildTypes { debug { signingConfig signingConfigs.debug minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } release { signingConfig signingConfigs.debug minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } sourceSets { main { jniLibs.srcDirs = ['libs'] } androidTest { } } } //获取编译日期 String getDate() { Date date = new Date(); String dates = "\""+date.format("yyyy年MM月dd日", TimeZone.getTimeZone("UTC"))+"\""; return dates; } allprojects { repositories { jcenter() } gradle.projectsEvaluated { tasks.withType(JavaCompile) { options.compilerArgs << '-Xbootclasspath/p:app/libs/frame.jar' } } } 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' }) // 适配 //hongyang okhttp //gson compile 'com.android.support:appcompat-v7:24.2.0' compile 'com.android.support:support-v4:24.2.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' 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.zhy:autolayout:1.4.3' compile 'com.zhy:okhttputils:2.6.2' compile 'com.google.code.gson:gson:2.7' compile 'com.github.anrwatchdog:anrwatchdog:1.3.+' testCompile 'junit:junit:4.12' //seekbar compile 'org.adw.library:discrete-seekbar:1.0.1' compile 'com.android.support:cardview-v7:23.2.0' compile 'com.github.anrwatchdog:anrwatchdog:1.3.+' compile 'com.jude:easyrecyclerview:4.4.2' // debugCompile 'com.squareup.leakcanary:leakcanary-android:1.3' // releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3' compile project(path: ':nurseMainLib') compile project(':AmDemo_R') provided files('src/main/jniLibs/frame.jar') }