You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ky...@apache.org on 2017/09/07 08:18:23 UTC
[06/14] incubator-weex git commit: * [test] android jacoco build
params and remove useless files
* [test] android jacoco build params and remove useless files
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/419a1b2e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/419a1b2e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/419a1b2e
Branch: refs/heads/0.16-dev
Commit: 419a1b2e64c294d4fff9d870447b68b838ece4ea
Parents: 6f96398
Author: atomtong <to...@qq.com>
Authored: Tue Sep 5 17:06:46 2017 +0800
Committer: atomtong <to...@qq.com>
Committed: Tue Sep 5 17:06:46 2017 +0800
----------------------------------------------------------------------
android/jacoco/android-jacoco-the-missing.jar | Bin 2214869 -> 0 bytes
android/jacoco/coverage.ec | Bin 63 -> 0 bytes
android/playground/app/jacoco.gradle | 154 ---------------------
android/playground/jacocoagent.jar | Bin 258512 -> 0 bytes
4 files changed, 154 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/419a1b2e/android/jacoco/android-jacoco-the-missing.jar
----------------------------------------------------------------------
diff --git a/android/jacoco/android-jacoco-the-missing.jar b/android/jacoco/android-jacoco-the-missing.jar
deleted file mode 100644
index 59b821c..0000000
Binary files a/android/jacoco/android-jacoco-the-missing.jar and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/419a1b2e/android/jacoco/coverage.ec
----------------------------------------------------------------------
diff --git a/android/jacoco/coverage.ec b/android/jacoco/coverage.ec
deleted file mode 100644
index cc4c834..0000000
Binary files a/android/jacoco/coverage.ec and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/419a1b2e/android/playground/app/jacoco.gradle
----------------------------------------------------------------------
diff --git a/android/playground/app/jacoco.gradle b/android/playground/app/jacoco.gradle
deleted file mode 100644
index f098434..0000000
--- a/android/playground/app/jacoco.gradle
+++ /dev/null
@@ -1,154 +0,0 @@
-apply plugin: 'com.android.application'
-apply plugin: 'com.taobao.android.jacoco'
-
-android {
- compileSdkVersion project.compileSdkVersion
- buildToolsVersion project.buildToolsVersion
-
- defaultConfig {
- applicationId "com.alibaba.weex"
- minSdkVersion project.appMinSdkVersion
- targetSdkVersion project.targetSdkVersion
- versionCode 13
- versionName "0.5.2.5"
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- ndk{
- abiFilters "x86"
- abiFilters "armeabi"
- }
- }
- applicationVariants.all { variant ->
- variant.outputs.each { output ->
- def outputFile = output.outputFile
- if (outputFile != null && outputFile.name.equals('app-debug.apk')) {
- def fileName = outputFile.name.replace("app-debug.apk", "playground.apk")
- output.outputFile = new File(outputFile.parent, fileName)
- }
- }
- }
- signingConfigs {
- debug {
- storeFile file("tools/weex.jks")
- storePassword "123456"
- keyAlias "weex"
- keyPassword "123456"
- }
- }
- buildTypes {
- debug {
- testCoverageEnabled true
- }
- }
- sourceSets {
- main {
- jniLibs.srcDir(['libs'])
- java {
-// srcDirs = ["src/main/java", "src/main/java_zxing"];
- srcDirs = ['src/main/java']
- }
- }
- }
- lintOptions {
- abortOnError false
- }
-
- packagingOptions {
- exclude 'LICENSE.txt'
- }
- testOptions {
- reportDir = "$project.buildDir/test/report"
- }
- dexOptions {
- preDexLibraries false
- }
-}
-
-
-dependencies {
- compile fileTree(include: ['*.jar'], dir: 'libs')
- androidTestCompile "com.android.support:support-annotations:${project.supportLibVersion}"
- androidTestCompile 'junit:junit:4.12'
- androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
- androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.2.2', {
- exclude group: 'com.android.support', module: 'support-annotations'
- exclude group: 'com.android.support', module: 'support-v4'
- exclude group: 'com.android.support', module: 'design'
- exclude group: 'com.android.support', module: 'appcompat-v7'
- exclude group: 'com.android.support', module: 'recyclerview-v7'
- })
- androidTestCompile 'com.android.support.test:runner:0.5'
- androidTestCompile 'com.squareup.picasso:picasso:2.5.2'
- androidTestCompile 'org.hamcrest:hamcrest-library:1.3'
- androidTestCompile 'com.android.support.test.uiautomator:uiautomator-v18:2.1.2'
- /*source dependency*/
- compile project(':weex_sdk')
- debugCompile project(':weex_debug')
-
- //https://github.com/weexteam/weex-analyzer-android
- //Weex-Analyzer provides several convenient tools such as Memory Monitor
- // to optimize your application. It's not available by default,you can
- // set WXAnalyzerDelegate#DEBUG==true to enable it
- debugCompile 'com.taobao.android:weex_analyzer:0.1.0.5'
-
- compile project(':commons')
- compile 'com.taobao.android:dexposed:0.1.8'
- compile 'com.loopj.android:android-async-http:1.4.9@aar'
- compile 'com.facebook.fresco:fresco:0.12.0+'
- compile 'com.facebook.fresco:animated-gif:0.12.0'
-
- compile 'com.squareup.okhttp:okhttp:2.3.0'
- compile 'com.squareup.okhttp:okhttp-ws:2.3.0'
- compile 'com.squareup.okio:okio:1.0.1'
- compile "com.alibaba:fastjson:${project.fastjsonLibVersion}"
- compile "com.android.support:support-v4:${project.supportLibVersion}"
- compile "com.android.support:appcompat-v7:${project.supportLibVersion}"
- compile "com.android.support:design:${project.supportLibVersion}"
- compile "com.android.support:support-annotations:${project.supportLibVersion}"
- compile 'com.jakewharton.scalpel:scalpel:1.1.2'
- compile 'com.taobao.android.weex_inspection:urlconnection_interceptor:1.0.0'
- compile 'com.android.support.test.espresso:espresso-idling-resource:2.2.2'
- compile 'com.taobao.android:weex_inspector:0.11.0'
-}
-
-
-def coverageSourceDirs = ['../../../android/sdk/src/main/java']
-task jacocoTestReport(type: JacocoReport) {
- group = "Reporting"
- description = "Generate Jacoco coverage reports after running tests."
- reports {
- xml.enabled = true
- html.enabled = true
- }
- classDirectories = fileTree(//"enter code here"
- dir: '../../../android/sdk/build/intermediates/classes/debug',
- excludes: ['**/R*.class',
- '**/*$InjectAdapter.class',
- '**/*$ViewInjector*.class',
- '**/*$BuildConfig.*',
- '**/R.class',
- '**/*$ViewInjector*.*',
- '**/*$ViewBinder*.*',
- '**/*MembersInjector*.*',
- '**/BuildConfig.*',
- '**/Manifest*.*',
- '**/*$Lambda$*.class',
- '**/*Factory*.class',
- '**/*$Builder*',
- '**/*DaggerApplicationComponent*.class',
- '**/api'
- ])
- sourceDirectories = files(coverageSourceDirs)
- File configFile = file('../../../android/sdk/build/intermediates/classes/debug')
-
- configFile = file(configFile.absolutePath)
- println configFile.path
-
- executionData = files("$buildDir/outputs/coverage.ec")
- doFirst {
- new File("../../../android/sdk/build/intermediates/classes/").eachFileRecurse { file ->
- if (file.name.contains('$$')) {
- file.renameTo(file.path.replace('$$', '$'))
- }
- }
- }
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/419a1b2e/android/playground/jacocoagent.jar
----------------------------------------------------------------------
diff --git a/android/playground/jacocoagent.jar b/android/playground/jacocoagent.jar
deleted file mode 100644
index d5c4b6b..0000000
Binary files a/android/playground/jacocoagent.jar and /dev/null differ