| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- apply plugin: 'com.android.application'
- //apply plugin: 'com.android.library'
- android {
- compileSdkVersion 26
- defaultConfig {
- applicationId "com.slam.bboxbleNext3"
- minSdkVersion 19
- targetSdkVersion 26
- versionCode 33
- versionName "3.3"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- }
- }
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- //多渠道打包
- flavorDimensions "version"
- productFlavors {
- //哔蹦渠道
- BBengNext {
- //修改包名
- applicationId "com.slam.bboxbleNext3"
- //修改app名字,string资源下不能包含"app_name"
- resValue "string", "app_name", "手柄简易测试工具Next_${defaultConfig.versionName}"
- dimension "version"
- }
- }
- applicationVariants.all { variant ->
- variant.outputs.all {
- if (variant.buildType.name == "release") {
- // 输出apk名称
- outputFileName = "${variant.flavorName}_v${variant.versionName}.apk"
- } else {
- outputFileName = "${variant.flavorName}_v${variant.versionName}_debug.apk"
- }
- }
- }
- }
- //打包时间
- def static releaseTime() {
- return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
- implementation 'com.android.support.constraint:constraint-layout:1.0.2'
- testImplementation 'junit:junit:4.12'
- androidTestImplementation 'com.android.support.test:runner:0.5'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
- implementation 'org.greenrobot:eventbus:3.0.0'
- implementation project(':bboxblelib')
- }
|