Skip to content

Commit a6c4ff2

Browse files
committed
merge 0.1.0.9
2 parents 79f8b0a + 6fe09ea commit a6c4ff2

File tree

387 files changed

+6485
-17801
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

387 files changed

+6485
-17801
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Weex Analyzer
22

33
---
4-
5-
[ ![Download](https://api.bintray.com/packages/rowandjj/maven/weex_analyzer/images/download.svg) ](https://bintray.com/rowandjj/maven/weex_analyzer/_latestVersion)[![GitHub release](https://img.shields.io/badge/release-v0.1.0.4-brightgreen.svg)](https://github.com/weexteam/weex-analyzer-android/releases/latest) [![GitHub release](https://img.shields.io/badge/license-%20Apache--2.0-yellowgreen.svg)](https://github.com/weexteam/weex-analyzer-android/blob/master/LICENSE)
4+
![](https://circleci.com/gh/weexteam/weex-analyzer-android/tree/tb_release_0.1.0.9.svg?style=shield&circle-token=cbceec1ca63c4f5dd758c55ec3f5a9c566d54514)[ ![Download](https://api.bintray.com/packages/rowandjj/maven/weex_analyzer/images/download.svg) ](https://bintray.com/rowandjj/maven/weex_analyzer/_latestVersion)[![GitHub release](https://img.shields.io/badge/release-v0.1.0.4-brightgreen.svg)](https://github.com/weexteam/weex-analyzer-android/releases/latest) [![GitHub release](https://img.shields.io/badge/license-%20Apache--2.0-yellowgreen.svg)](https://github.com/weexteam/weex-analyzer-android/blob/master/LICENSE)
65

76
`Weex Analyzer`是一款运行在手机客户端上辅助开发者进行[weex开发](https://github.com/alibaba/weex)的小工具。
87
接入此工具后,开发者可以在debug包中通过摇一摇打开功能选项。目前实现的功能有:

circle.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
machine:
2+
java:
3+
version: 'oraclejdk8'
4+
test:
5+
override:
6+
- cd weex_analyzer && ./run-circle-ci.sh:
7+
timeout: 6000
8+
post:
9+
- cp -r weex_analyzer/build/reports $CIRCLE_ARTIFACTS/reports
10+
- cp -r weex_analyzer/build/outputs $CIRCLE_ARTIFACTS/outputs
11+
dependencies:
12+
pre:
13+
- echo y | android update sdk --no-ui --all --filter tool,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository,android-23
14+
- echo y | android update sdk --no-ui --all --filter build-tools-23.0.2
15+
cache_directories:
16+
- ~/.m2

commons/build.gradle

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ repositories {
1515
}
1616

1717
android {
18-
compileSdkVersion 23
19-
buildToolsVersion "23.0.2"
18+
compileSdkVersion 25
19+
buildToolsVersion '25.0.0'
2020
resourcePrefix "weexcomm"
2121

2222
defaultConfig {
@@ -36,12 +36,16 @@ android {
3636
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3737
}
3838
}
39+
40+
lintOptions {
41+
abortOnError false
42+
}
3943
}
4044

4145
dependencies {
4246
compile fileTree(dir: 'libs', include: ['*.jar'])
43-
compile 'com.android.support:support-v4:23.1.1'
44-
compile 'com.android.support:appcompat-v7:23.1.1'
47+
compile 'com.android.support:support-v4:25.3.0'
48+
compile 'com.android.support:appcompat-v7:25.3.0'
4549
compile 'com.squareup.picasso:picasso:2.5.2'
4650
compile 'com.facebook.fresco:fresco:0.10.0'
4751
provided 'com.taobao.android:weex_sdk:0.9.5'

commons/src/main/java/com/alibaba/weex/commons/AbstractWeexActivity.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
import android.support.annotation.Nullable;
210210
import android.support.v7.app.AppCompatActivity;
211211
import android.view.KeyEvent;
212+
import android.view.MotionEvent;
212213
import android.view.View;
213214
import android.view.ViewGroup;
214215
import com.alibaba.weex.commons.util.ScreenUtil;
@@ -360,6 +361,14 @@ public void onDestroy() {
360361
}
361362
}
362363

364+
@Override
365+
public boolean dispatchTouchEvent(MotionEvent ev) {
366+
if(mWxAnalyzerDelegate != null) {
367+
mWxAnalyzerDelegate.onReceiveTouchEvent(ev);
368+
}
369+
return super.dispatchTouchEvent(ev);
370+
}
371+
363372
@Override
364373
public void onViewCreated(WXSDKInstance wxsdkInstance, View view) {
365374
View wrappedView = null;

commons/src/main/java/com/alibaba/weex/commons/WXAnalyzerDelegate.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import android.support.annotation.Nullable;
55
import android.text.TextUtils;
66
import android.view.KeyEvent;
7+
import android.view.MotionEvent;
78
import android.view.View;
89

910
import com.taobao.weex.WXSDKInstance;
@@ -41,6 +42,16 @@ public void registerExtraOption(String optionName, int iconRes, Runnable runnabl
4142
}
4243
}
4344

45+
public void onReceiveTouchEvent(MotionEvent ev) {
46+
if(mWXAnalyzer == null) {
47+
return;
48+
}
49+
try {
50+
Method method = mWXAnalyzer.getClass().getDeclaredMethod("onReceiveTouchEvent", MotionEvent.class);
51+
method.invoke(mWXAnalyzer,ev);
52+
} catch (Exception e) {
53+
}
54+
}
4455

4556
public void onCreate() {
4657
if (mWXAnalyzer == null) {

playground/app/build.gradle

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.2"
4+
compileSdkVersion 25
5+
buildToolsVersion '25.0.0'
66

77
defaultConfig {
88
applicationId "com.alibaba.weex"
@@ -73,10 +73,6 @@ android {
7373

7474
dependencies {
7575
compile fileTree(include: ['*.jar'], dir: 'libs')
76-
androidTestCompile 'com.android.support:support-annotations:23.2.1'
77-
androidTestCompile 'junit:junit:4.12'
78-
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
79-
androidTestCompile 'com.android.support.test:runner:0.5'
8076
//compile 'com.taobao.android:weex_sdk:0.4.+'
8177
/*source dependency*/
8278
compile project(':commons')
@@ -94,10 +90,10 @@ dependencies {
9490
compile 'com.squareup.okhttp:okhttp-ws:2.3.0'
9591
compile 'com.squareup.okio:okio:1.0.1'
9692
compile 'com.alibaba:fastjson:1.1.46.android'
97-
compile 'com.android.support:support-v4:23.1.1'
98-
compile 'com.android.support:appcompat-v7:23.1.1'
99-
compile 'com.android.support:design:23.1.1'
100-
compile 'com.android.support:support-annotations:23.2.1'
93+
compile 'com.android.support:support-v4:25.3.0'
94+
compile 'com.android.support:appcompat-v7:25.3.0'
95+
compile 'com.android.support:design:25.3.0'
96+
compile 'com.android.support:support-annotations:25.3.0'
10197
compile 'com.jakewharton.scalpel:scalpel:1.1.2'
10298
//compile 'com.google.android.gms:play-services-appindexing:8.1.0'
10399
compile 'com.taobao.android:weex_inspector:0.0.8.1'

playground/app/src/androidTest/java/com/alibaba/weex/ApplicationTest.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

playground/app/src/androidTest/java/com/alibaba/weex/WeappJsBaseTestCase.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

playground/app/src/androidTest/java/com/alibaba/weex/uitest/TC_AG/AG_AHref_A_Href.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

playground/app/src/androidTest/java/com/alibaba/weex/uitest/TC_AG/AG_Border_A_Border_Bottom_Color.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)