From bd8ed1a6f45daf821370a7fb2ab14d382c6ed94a Mon Sep 17 00:00:00 2001 From: wp-byte <83280126+wp-byte@users.noreply.github.com> Date: Wed, 28 Apr 2021 16:24:01 +0800 Subject: [PATCH] fix: url parse bug (#16) * fix: url parse bug * fix: change comments * feat: change version --- .../src/main/java/com/tiktok/appevents/TTRequest.java | 3 ++- gradle.properties | 2 +- samples/internalmonitor/build.gradle | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/business-core/src/main/java/com/tiktok/appevents/TTRequest.java b/business-core/src/main/java/com/tiktok/appevents/TTRequest.java index 33121bd..551f5dc 100644 --- a/business-core/src/main/java/com/tiktok/appevents/TTRequest.java +++ b/business-core/src/main/java/com/tiktok/appevents/TTRequest.java @@ -69,7 +69,8 @@ public static JSONObject getBusinessSDKConfig(Map options) { // the rest params are for the sake of simplicity of debugging paramsMap.put("client", "android"); paramsMap.put("sdk_version", SystemInfoUtil.getSDKVersion()); - paramsMap.put("app_name", SystemInfoUtil.getAppName()); + // for fix bug in lower Android API edition. Maybe there is something wrong with language package, url can not be parsed successfully with some special char + // paramsMap.put("app_name", SystemInfoUtil.getAppName()); paramsMap.put("app_version", SystemInfoUtil.getAppVersionName()); paramsMap.put("tiktok_app_id", TikTokBusinessSdk.getTTAppId()); paramsMap.putAll(options); diff --git a/gradle.properties b/gradle.properties index da70273..3485c49 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,7 +11,7 @@ android.enableJetifier=true GROUP=com.tiktok -VERSION_NAME=1.2.2 +VERSION_NAME=1.2.3 mavenGroupId = com.tiktok mavenArtifactId = tiktok-business-android-sdk diff --git a/samples/internalmonitor/build.gradle b/samples/internalmonitor/build.gradle index 1148403..effbae7 100644 --- a/samples/internalmonitor/build.gradle +++ b/samples/internalmonitor/build.gradle @@ -41,7 +41,7 @@ dependencies { implementation project(':business-core') // implementation 'com.tiktok:tiktok-business-android-sdk:1.1.0-alpha.2' -// implementation 'com.github.bytedance:tiktok-business-android-sdk:1.2.2' +// implementation 'com.github.bytedance:tiktok-business-android-sdk:1.2.3' implementation 'androidx.cardview:cardview:1.0.0' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.2'