You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by zs...@apache.org on 2017/03/30 11:38:54 UTC
[20/30] incubator-weex git commit: * [android] weex sdk may use
another build files to build and cause compiling errors if these build files
don't contain any ENABLE_TRACE.
* [android] weex sdk may use another build files to build and cause compiling errors if these build files don't contain any ENABLE_TRACE.
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/76a38ad9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/76a38ad9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/76a38ad9
Branch: refs/heads/0.12-dev
Commit: 76a38ad9893d281d0f520de70c0fac45c0ecf519
Parents: 849ff61
Author: bruno.duan <br...@gmail.com>
Authored: Fri Mar 17 15:57:10 2017 +0800
Committer: bruno.duan <br...@gmail.com>
Committed: Fri Mar 17 16:20:25 2017 +0800
----------------------------------------------------------------------
android/sdk/src/main/java/com/taobao/weex/utils/Trace.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/76a38ad9/android/sdk/src/main/java/com/taobao/weex/utils/Trace.java
----------------------------------------------------------------------
diff --git a/android/sdk/src/main/java/com/taobao/weex/utils/Trace.java b/android/sdk/src/main/java/com/taobao/weex/utils/Trace.java
index 048ba61..1255e8f 100644
--- a/android/sdk/src/main/java/com/taobao/weex/utils/Trace.java
+++ b/android/sdk/src/main/java/com/taobao/weex/utils/Trace.java
@@ -234,7 +234,11 @@ public class Trace {
// If you turn sEnabled on, weex would trace logs on Java side
// as well as on V8 side, please take care of turning sEnabled on
// to avoid performance impact.
- sEnabled = com.taobao.weappplus_sdk.BuildConfig.ENABLE_TRACE;
+ // FIXME: weex sdk may use another build files to build and cause
+ // compiling errors if these build files don't contain any
+ // ENABLE_TRACE, just comment out the line below.
+ //sEnabled = com.taobao.weappplus_sdk.BuildConfig.ENABLE_TRACE;
+ sEnabled = false;
if (sEnabled == true && OsVersion.isAtLeastJB_MR2()) {
sTrace = new TraceJBMR2();