println(project.getName()) if (isModule.toBoolean()) { apply plugin: 'com.android.application' } else { apply plugin: 'com.android.library' } android { signingConfigs { debug { keyAlias 'hboxs_debug' keyPassword 'android' storeFile file('../hboxs_debug.jks') storePassword 'android' } release { keyAlias 'hboxs' keyPassword 'android' storeFile file('../hboxs.jks') storePassword 'android' } } compileSdkVersion rootProject.ext.android["compileSdkVersion"] defaultConfig { minSdkVersion rootProject.ext.android["minSdkVersion"] targetSdkVersion rootProject.ext.android["targetSdkVersion"] versionCode rootProject.ext.android["versionCode"] versionName rootProject.ext.android["versionName"] testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" javaCompileOptions { annotationProcessorOptions { arguments = [ moduleName : project.getName() ] } } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } sourceSets { main { if (isModule.toBoolean()) { manifest.srcFile 'src/main/module/AndroidManifest.xml' } else { manifest.srcFile 'src/main/AndroidManifest.xml' //集成开发模式下排除debug文件夹中的所有Java文件 java { exclude 'debug/**' } } } } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } // lintOptions { // checkReleaseBuilds false // // 如果你希望在 release 版本中继续检查错误,但继续构建即使出现错误,可以将 abortOnError 设置为 false // // abortOnError false // } sourceSets { main { jniLibs.srcDirs = ['libs'] } } dataBinding { enabled true } } dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation rootProject.ext.dependencies["appcompat-v7"] implementation rootProject.ext.dependencies["constraint-layout"] testImplementation rootProject.ext.dependencies["junit"] implementation project(':BaseLibrary') implementation project(':module_offpay') androidTestImplementation rootProject.ext.dependencies["runner"] androidTestImplementation rootProject.ext.dependencies["espresso"] annotationProcessor 'com.alibaba:arouter-compiler:1.1.4' implementation project(':wifilibrary') implementation project(path: ':lm-library') implementation 'com.inuker.bluetooth:library:1.4.0' implementation rootProject.ext.dependencies["spinner"] api 'com.github.iammert:MaterialIntroView:1.6.0' implementation project(':module_plc') }