Skip to content

Commit

Permalink
Release 1.6.20
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhzh committed Oct 17, 2016
1 parent 036d8ab commit e2080ea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SensorsAnalyticsSDK/SensorsAnalyticsSDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

version = "1.6.19"
version = "1.6.20"

android {
compileSdkVersion 21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ public void enableAutoTrack() {
* @param isSupportJellyBean 是否支持API level 16及以下的版本。
* 因为API level 16及以下的版本, addJavascriptInterface有安全漏洞,请谨慎使用
*/
@Deprecated
@SuppressLint(value = {"SetJavaScriptEnabled", "addJavascriptInterface"})
public void showUpWebView(WebView webView, boolean isSupportJellyBean) {
showUpWebView(webView, isSupportJellyBean, null);
Expand Down Expand Up @@ -1254,18 +1255,17 @@ public void onActivityStopped(Activity activity) {
synchronized (startedActivityCount) {
startedActivityCount = startedActivityCount - 1;

if (mAutoTrack) {
if (startedActivityCount == 0) {
if (startedActivityCount == 0) {
if (mAutoTrack) {
try {
track("$AppEnd");
} catch (Exception e) {
Log.w(LOGTAG, e);
}
}
mMessages.flush();
}
}

mMessages.flush();
}

@Override
Expand Down Expand Up @@ -1404,7 +1404,7 @@ private static void mergeJSONObject(final JSONObject source, JSONObject dest)
static final int VTRACK_SUPPORTED_MIN_API = 16;

// SDK版本
static final String VERSION = "1.6.19";
static final String VERSION = "1.6.20";

static Boolean ENABLE_LOG = false;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public static String networkType(Context context) {
case TelephonyManager.NETWORK_TYPE_GPRS:
case TelephonyManager.NETWORK_TYPE_EDGE:
case TelephonyManager.NETWORK_TYPE_CDMA:
case TelephonyManager.NETWORK_TYPE_1xRTT:
case TelephonyManager.NETWORK_TYPE_IDEN:
return "2G";
case TelephonyManager.NETWORK_TYPE_UMTS:
case TelephonyManager.NETWORK_TYPE_EVDO_0:
Expand Down

0 comments on commit e2080ea

Please sign in to comment.