YorkShen closed pull request #1975: [Weex][android] feat: add bindingx weex plugin URL: https://github.com/apache/incubator-weex/pull/1975
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/android/playground/app/build.gradle b/android/playground/app/build.gradle index b59c758963..e5b78323e2 100755 --- a/android/playground/app/build.gradle +++ b/android/playground/app/build.gradle @@ -118,6 +118,10 @@ dependencies { compile 'com.android.support.test.espresso:espresso-idling-resource:2.2.2' compile 'com.taobao.android:weex_inspector:0.18.10' //compile project(":weex_inspector") + + // Bind actions to effects. See https://alibaba.github.io/bindingx/ + compile 'com.alibaba.android:bindingx-core:1.1.1.2@aar' + compile 'com.alibaba.android:bindingx_weex_plugin:1.1.1@aar' } if(file('../../license/LICENSE').exists()){ diff --git a/android/playground/app/src/main/java/com/alibaba/weex/WXApplication.java b/android/playground/app/src/main/java/com/alibaba/weex/WXApplication.java index 99a883fe89..e45138322f 100644 --- a/android/playground/app/src/main/java/com/alibaba/weex/WXApplication.java +++ b/android/playground/app/src/main/java/com/alibaba/weex/WXApplication.java @@ -22,6 +22,7 @@ import android.app.Application; import android.os.Bundle; +import com.alibaba.android.bindingx.plugin.weex.BindingX; import com.alibaba.weex.commons.adapter.DefaultWebSocketAdapterFactory; import com.alibaba.weex.commons.adapter.ImageAdapter; import com.alibaba.weex.commons.adapter.JSExceptionAdapter; @@ -30,7 +31,6 @@ import com.alibaba.weex.extend.adapter.DefaultAccessibilityRoleAdapter; import com.alibaba.weex.extend.adapter.InterceptWXHttpAdapter; import com.alibaba.weex.extend.adapter.WXAnalyzerDemoListener; -import com.alibaba.weex.extend.component.RichText; import com.alibaba.weex.extend.component.WXComponentSyncTest; import com.alibaba.weex.extend.component.WXMask; import com.alibaba.weex.extend.component.WXParallax; @@ -104,6 +104,7 @@ public void onCreate() { WXSDKEngine.registerModule("wsonTest", WXWsonTestModule.class); + BindingX.register(); /** * override default image tag ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services