Skip to content

Commit

Permalink
*[Android] weex performance optimization (apache#1844)
Browse files Browse the repository at this point in the history
* try get debug flag from env params
* rm useless log rm
* try get debugflag from environment
* get cpu abi from Build.CPU_ABI;
  • Loading branch information
lucky-chen authored and YorkShen committed Nov 29, 2018
1 parent 8891c67 commit e46d7f2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import android.support.v4.app.ActivityCompat;
import android.text.TextUtils;

import com.taobao.weex.WXEnvironment;
import com.taobao.weex.WXSDKInstance;
import com.taobao.weex.bridge.SimpleJSCallback;
import com.taobao.weex.utils.WXLogUtils;
Expand Down Expand Up @@ -128,7 +129,9 @@ private WXLocationListener findLocation(String watchId, String sucCallback, Stri

@Override
public void watchPosition(final String successCallback, final String errorCallback, final String params) {
WXLogUtils.d("into--[watchPosition] successCallback:" + successCallback + " errorCallback:" + errorCallback + "\nparams:" + params);
if (WXEnvironment.isApkDebugable()){
WXLogUtils.d("into--[watchPosition] successCallback:" + successCallback + " errorCallback:" + errorCallback + "\nparams:" + params);
}
if (!TextUtils.isEmpty(params)) {
try {
JSONObject jsObj = new JSONObject(params);
Expand Down

0 comments on commit e46d7f2

Please sign in to comment.