[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Update build.gradle for disableCov property and delete closure
Browse files Browse the repository at this point in the history
  • Loading branch information
YorkShen committed Apr 9, 2019
1 parent 7a46aeb commit 204c7b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ subprojects {
armABIOnly = !project.hasProperty("armABIOnly") || armABIOnly.equals('true')
//Default value for buildCpp is true
buildCpp = !project.hasProperty("buildCpp") || buildCpp.equals("true")
//Default value for disableCov is false
disableCov = project.hasProperty("disableCov") && disableCov.equals("true")
}
}

Expand Down
11 changes: 6 additions & 5 deletions android/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.5.0'
if(!project.disableCov) {
classpath 'com.vanniktech:gradle-android-junit-jacoco-plugin:0.5.0'
}
}
}

Expand All @@ -39,8 +41,7 @@ apply plugin: 'checkstyle'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.github.dcendents.android-maven'

ext.disableCov = project.hasProperty('disableCov') ? project.getProperty('disableCov') : 'false'
if(!disableCov.toBoolean()){
if(!project.disableCov){
apply plugin: 'com.vanniktech.android.junit.jacoco'
junitJacoco {
excludes = ['com/taobao/weex/dom/flex/**','com/taobao/weex/ui/view/refresh/circlebar/**']
Expand Down Expand Up @@ -405,9 +406,9 @@ def copy_so_and_backup() {
}
}

task deleteLibs(type: Delete){
task deleteLibs(type: Delete){ item->
project.android.defaultConfig.ndk.abiFilters.each{
delete "libs/${it}/libweexcore.so", "libs/${it}/libweexjss.so"
item.delete "libs/${it}/libweexcore.so", "libs/${it}/libweexjss.so"
}
}

Expand Down

0 comments on commit 204c7b5

Please sign in to comment.