Skip to content

Commit

Permalink
TUIKit upgrade version 8.2.6325 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
harperhpliu authored Sep 29, 2024
1 parent d018f22 commit 3eb4a33
Show file tree
Hide file tree
Showing 399 changed files with 12,602 additions and 7,442 deletions.
24 changes: 12 additions & 12 deletions Demo/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,49 +80,49 @@ dependencies {
if (projects.contains("timpush")) {
api project(':timpush')
} else {
api 'com.tencent.timpush:timpush:8.1.6103'
api 'com.tencent.timpush:timpush:8.2.6325'
}

if (projects.contains("fcmpush")) {
api project(':fcmpush')
} else {
api 'com.tencent.timpush:fcm:8.1.6103'
api 'com.tencent.timpush:fcm:8.2.6325'
}

if (projects.contains("xiaomipush")) {
api project(':xiaomipush')
} else {
api 'com.tencent.timpush:xiaomi:8.1.6103'
api 'com.tencent.timpush:xiaomi:8.2.6325'
}

if (projects.contains("meizupush")) {
api project(':meizupush')
} else {
api 'com.tencent.timpush:meizu:8.1.6103'
api 'com.tencent.timpush:meizu:8.2.6325'
}

if (projects.contains("oppopush")) {
api project(':oppopush')
} else {
api 'com.tencent.timpush:oppo:8.1.6103'
api 'com.tencent.timpush:oppo:8.2.6325'
}

if (projects.contains("vivopush")) {
api project(':vivopush')
} else {
api 'com.tencent.timpush:vivo:8.1.6103'
api 'com.tencent.timpush:vivo:8.2.6325'
}

if (projects.contains("huaweipush")) {
api project(':huaweipush')
} else {
api 'com.tencent.timpush:huawei:8.1.6103'
api 'com.tencent.timpush:huawei:8.2.6325'
}

if (projects.contains("honorpush")) {
api project(':honorpush')
} else {
api 'com.tencent.timpush:honor:8.1.6103'
api 'com.tencent.timpush:honor:8.2.6325'
}
// Will be added to the open source code START
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
Expand All @@ -144,25 +144,25 @@ dependencies {
if (projects.contains("tuigroupnoteplugin")) {
api project(':tuigroupnoteplugin')
} else {
api "com.tencent.imsdk:tuigroupnote-plugin:8.1.6103"
api "com.tencent.imsdk:tuigroupnote-plugin:8.2.6325"
}

if (projects.contains("tuipollplugin")) {
api project(':tuipollplugin')
} else {
api "com.tencent.imsdk:tuipoll-plugin:8.1.6103"
api "com.tencent.imsdk:tuipoll-plugin:8.2.6325"
}

if (projects.contains("tuiconversationmarkplugin")) {
api project(':tuiconversationmarkplugin')
} else {
api "com.tencent.imsdk:tuiconversationmark-plugin:8.1.6103"
api "com.tencent.imsdk:tuiconversationmark-plugin:8.2.6325"
}

if (projects.contains("tuiconversationgroupplugin")) {
api project(':tuiconversationgroupplugin')
} else {
api "com.tencent.imsdk:tuiconversationgroup-plugin:8.1.6103"
api "com.tencent.imsdk:tuiconversationgroup-plugin:8.2.6325"
}

api project(':tuiroomkit')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import android.util.Log;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import androidx.multidex.MultiDexApplication;

import com.tencent.bugly.crashreport.CrashReport;
import com.tencent.qcloud.tim.demo.config.AppConfig;
import com.tencent.qcloud.tim.demo.utils.BrandUtil;
Expand All @@ -22,7 +21,6 @@
import com.tencent.qcloud.tuicore.interfaces.ITUINotification;
import com.tencent.qcloud.tuicore.interfaces.ITUIObjectFactory;
import com.tencent.qcloud.tuikit.timcommon.util.TUIUtil;

import java.lang.reflect.Field;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public void init() {
TUIThemeManager.addLivelyTheme(R.style.DemoLivelyTheme);
TUIThemeManager.addSeriousTheme(R.style.DemoSeriousTheme);
setPermissionRequestContent();
TUIChatConfigs.getConfigs().getGeneralConfig().setEnableMultiDeviceForCall(true);
TUIChatConfigs.getGeneralConfig().setEnableMultiDeviceForCall(true);
TUIChatConfigs.getGeneralConfig().setEnableVirtualBackgroundForCall(true);
CustomConfigHelper.initCustom(mContext);
initOfflinePushConfigs();
initDemoStyle();
Expand Down Expand Up @@ -89,20 +90,11 @@ public void setPermissionRequestContent() {

private void initOfflinePushConfigs() {
final SharedPreferences sharedPreferences = mContext.getSharedPreferences("TUIKIT_DEMO_SETTINGS", mContext.MODE_PRIVATE);
int registerMode = sharedPreferences.getInt("test_OfflinePushRegisterMode_v2", 0);
int callbackMode = sharedPreferences.getInt("test_OfflinePushCallbackMode_v2", 1);
Log.i(TAG, "initOfflinePushConfigs registerMode = " + registerMode);
Log.i(TAG, "initOfflinePushConfigs callbackMode = " + callbackMode);

OfflinePushConfigs.getOfflinePushConfigs().setRegisterPushMode(registerMode);
OfflinePushConfigs.getOfflinePushConfigs().setClickNotificationCallbackMode(callbackMode);

// auto register
boolean auto = registerMode == 0 ? false : true;
Map<String, Object> autoParam = new HashMap<>();
autoParam.put(TUIConstants.TIMPush.DISABLE_AUTO_REGISTER_PUSH_KEY, auto);
TUICore.callService(TUIConstants.TIMPush.SERVICE_NAME, TUIConstants.TIMPush.METHOD_DISABLE_AUTO_REGISTER_PUSH, autoParam);

// ring
boolean enablePrivateRing = sharedPreferences.getBoolean("test_enable_private_ring", false);
Map<String, Object> param = new HashMap<>();
Expand All @@ -115,11 +107,6 @@ private void initOfflinePushConfigs() {

// call after login success
public void registerPushManually() {
int registerMode = OfflinePushConfigs.getOfflinePushConfigs().getRegisterPushMode();
DemoLog.d(TAG, "OfflinePush register mode:" + registerMode);
if (registerMode == OfflinePushConfigs.REGISTER_PUSH_MODE_AUTO) {
return;
}
if (offlinePushAPIDemo == null) {
offlinePushAPIDemo = new OfflinePushAPIDemo();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import com.tencent.qcloud.tuicore.TUIConfig;
import com.tencent.qcloud.tuicore.TUIThemeManager;
import com.tencent.qcloud.tuikit.tuichat.config.TUIChatConfigs;
import com.tencent.qcloud.tuikit.tuichat.config.classicui.TUIChatConfigClassic;
import com.tencent.qcloud.tuikit.tuichat.config.minimalistui.TUIChatConfigMinimalist;

public class CustomConfigHelper {
private static Context mContext;
Expand All @@ -26,7 +28,8 @@ public static void initConversationDefaultAvatar() {

public static void initChatSettings() {
if (BrandUtil.isSamsungS9Series()) {
TUIChatConfigs.getGeneralConfig().setUseSystemCamera(true);
TUIChatConfigClassic.setUseSystemCamera(true);
TUIChatConfigMinimalist.setUseSystemCamera(true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import java.util.List;

public class ThemeSelectActivity extends BaseLightActivity {
public static final String THEME = "language";

private TitleBarLayout titleBarLayout;
private RecyclerView recyclerView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import android.graphics.Rect;
import android.os.Build;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
Expand Down Expand Up @@ -88,7 +87,6 @@ public class MainMinimalistActivity extends BaseMinimalistLightActivity {
private TabAdapter tabAdapter;
private OnTabEventListener onTabEventListener;
private TabBean conversationBean;
private TabBean communityBean;
private TabBean contactsBean;
private TabBean profileBean;
private TabBean recentCallsBean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.tencent.qcloud.tim.demo.R;
import com.tencent.qcloud.tim.demo.utils.ProfileUtil;
import com.tencent.qcloud.tuicore.TUILogin;
import com.tencent.qcloud.tuicore.interfaces.TUICallback;
import com.tencent.qcloud.tuicore.util.ToastUtil;
import com.tencent.qcloud.tuikit.timcommon.component.dialog.TUIKitDialog;
import com.tencent.qcloud.tuikit.timcommon.component.fragments.BaseFragment;

public class ProfileFragment extends BaseFragment {
public class ProfileFragment extends Fragment {
private View mBaseView;
private ProfileLayout mProfileLayout;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@
import com.tencent.qcloud.tuikit.tuichat.config.TUIChatConfigs;
import com.tencent.qcloud.tuikit.tuicontact.TUIContactService;
import com.tencent.qcloud.tuikit.tuicontact.config.TUIContactConfig;
import com.tencent.qcloud.tuikit.tuicontact.config.minimalistui.TUIContactConfigMinimalist;
import com.tencent.qcloud.tuikit.tuicontact.interfaces.ContactEventListener;
import com.tencent.qcloud.tuikit.tuiconversation.TUIConversationService;
import com.tencent.qcloud.tuikit.tuiconversation.config.TUIConversationConfig;
import com.tencent.qcloud.tuikit.tuiconversation.config.minimalistui.TUIConversationConfigMinimalist;
import com.tencent.qcloud.tuikit.tuiconversation.interfaces.ConversationEventListener;

import java.util.ArrayList;
Expand Down Expand Up @@ -235,10 +237,10 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {

userStatusSwitch = statusView.findViewById(R.id.user_status_switch);
userStatusSubTitle = statusView.findViewById(R.id.user_status_subtitle);
boolean userStatus = mSharedPreferences.getBoolean(Constants.DEMO_SP_KEY_USER_STATUS, false);
boolean userStatus = mSharedPreferences.getBoolean(Constants.DEMO_SP_KEY_USER_STATUS, TUIConversationConfigMinimalist.isShowUserOnlineStatusIcon());
userStatusSwitch.setChecked(userStatus);
TUIConversationConfig.getInstance().setShowUserStatus(userStatus);
TUIContactConfig.getInstance().setShowUserStatus(userStatus);
TUIConversationConfigMinimalist.setShowUserOnlineStatusIcon(userStatus);
TUIContactConfigMinimalist.setShowUserOnlineStatusIcon(userStatus);
userStatusSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
Expand All @@ -249,8 +251,8 @@ public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
userStatusSubTitle.setText(getResources().getString(R.string.demo_user_status_switch_off_text));
}

TUIConversationConfig.getInstance().setShowUserStatus(isChecked);
TUIContactConfig.getInstance().setShowUserStatus(isChecked);
TUIConversationConfigMinimalist.setShowUserOnlineStatusIcon(isChecked);
TUIContactConfigMinimalist.setShowUserOnlineStatusIcon(isChecked);
mSharedPreferences.edit().putBoolean(Constants.DEMO_SP_KEY_USER_STATUS, isChecked).commit();
refreshFragmentUI();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,16 @@
import android.view.ViewGroup;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.tencent.qcloud.tim.demo.R;
import com.tencent.qcloud.tim.demo.bean.UserInfo;
import com.tencent.qcloud.tim.demo.config.AppConfig;
import com.tencent.qcloud.tim.demo.utils.Constants;
import com.tencent.qcloud.tim.demo.utils.ProfileUtil;
import com.tencent.qcloud.tim.demo.utils.TUIUtils;
import com.tencent.qcloud.tuicore.TUILogin;
import com.tencent.qcloud.tuicore.interfaces.TUICallback;
import com.tencent.qcloud.tuicore.util.ToastUtil;
import com.tencent.qcloud.tuikit.timcommon.component.dialog.TUIKitDialog;
import com.tencent.qcloud.tuikit.timcommon.component.fragments.BaseFragment;

public class ProfileMinimalistFragment extends BaseFragment {
public class ProfileMinimalistFragment extends Fragment {
private View mBaseView;
private ProfileMinamalistLayout mProfileLayout;

Expand Down
4 changes: 2 additions & 2 deletions Demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ ext {
minSdkVersion = 19
targetSdkVersion = 33
versionCode = 1
versionName = "8.1.6116"
versionName = "8.2.6325"
abiFilters = ['armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'] //['armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64']
arguments = "-DANDROID_STL=c++_static"
cppFlags = "-std=c++11"

liteavSdk = "com.tencent.liteav:LiteAVSDK_TRTC:11.8.0.14176"
liteavSdk = "com.tencent.liteav:LiteAVSDK_Professional:11.8.0.14176"
}

task clean(type: Delete) {
Expand Down
8 changes: 4 additions & 4 deletions IMSDK/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
English | [简体中文](./README_ZH.md)

# TIM SDK 8.1.6116 (Android)
# TIM SDK 8.2.6235 (Android)

## Download IM SDK

Expand All @@ -14,7 +14,7 @@ English | [简体中文](./README_ZH.md)
<tr >
<td style="text-align:center">Java Edition</td>
<td style="text-align:center">Support Java API</td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.1.6116/imsdk-plus-8.1.6116.aar">imsdk-plus.aar</a></td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.2.6235/imsdk-plus-8.2.6235.aar">imsdk-plus.aar</a></td>
</tr>
</table>

Expand All @@ -30,7 +30,7 @@ English | [简体中文](./README_ZH.md)
<tr >
<td style="text-align:center">Quic Plugin</td>
<td style="text-align:center">Providing axp-quic multiplex transmission protocol to enhance network performance</td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.1.6116/timquic-plugin-8.1.6116.aar">timquic-plugin.aar</a></td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.2.6235/timquic-plugin-8.2.6235.aar">timquic-plugin.aar</a></td>
</tr>
</table>

Expand All @@ -48,4 +48,4 @@ dependencies {

If you need more detailed integration guidance, please [refer to the complete integration documentation](https://www.tencentcloud.com/document/product/1047/34306).

In addition, we also provide SDKs for the C and C++ API, which you can download from here,[Download C API Edition](https://im.sdk.qcloud.com/download/plus/8.1.6116/cross_platform/ImSDK_Android_C_8.1.6116.zip)[Download C++ API Edition](https://im.sdk.qcloud.com/download/plus/8.1.6116/cross_platform/ImSDK_Android_CPP_8.1.6116.zip)
In addition, we also provide SDKs for the C and C++ API, which you can download from here,[Download C API Edition](https://im.sdk.qcloud.com/download/plus/8.2.6235/cross_platform/ImSDK_Android_C_8.2.6235.zip)[Download C++ API Edition](https://im.sdk.qcloud.com/download/plus/8.2.6235/cross_platform/ImSDK_Android_CPP_8.2.6235.zip)
8 changes: 4 additions & 4 deletions IMSDK/README_ZH.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[English](./README.md) | 简体中文

# TIM SDK 8.1.6116(Android)
# TIM SDK 8.2.6235(Android)

## 下载 IM SDK

Expand All @@ -14,7 +14,7 @@
<tr >
<td style="text-align:center">Java 版本</td>
<td style="text-align:center">支持 Java API</td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.1.6116/imsdk-plus-8.1.6116.aar">imsdk-plus.aar</a></td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.2.6235/imsdk-plus-8.2.6235.aar">imsdk-plus.aar</a></td>
</tr>
</table>

Expand All @@ -30,7 +30,7 @@
<tr >
<td style="text-align:center">Quic 插件</td>
<td style="text-align:center">提供 axp-quic 多路传输协议,弱网抗性更优</td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.1.6116/timquic-plugin-8.1.6116.aar">timquic-plugin.aar</a></td>
<td style="text-align:center"><a href="https://im.sdk.qcloud.com/download/plus/8.2.6235/timquic-plugin-8.2.6235.aar">timquic-plugin.aar</a></td>
</tr>
</table>

Expand All @@ -49,4 +49,4 @@ dependencies {

如果您需要更详细的集成指引,请 [查看完整的集成文档](https://cloud.tencent.com/document/product/269/75283)

此外,我们还提供了 C 接口和 C++ 接口的 SDK,您可以从这里下载:[下载 C API 版本](https://im.sdk.qcloud.com/download/plus/8.1.6116/cross_platform/ImSDK_Android_C_8.1.6116.zip)[下载 C++ API 版本](https://im.sdk.qcloud.com/download/plus/8.1.6116/cross_platform/ImSDK_Android_CPP_8.1.6116.zip)
此外,我们还提供了 C 接口和 C++ 接口的 SDK,您可以从这里下载:[下载 C API 版本](https://im.sdk.qcloud.com/download/plus/8.2.6235/cross_platform/ImSDK_Android_C_8.2.6235.zip)[下载 C++ API 版本](https://im.sdk.qcloud.com/download/plus/8.2.6235/cross_platform/ImSDK_Android_CPP_8.2.6235.zip)
28 changes: 14 additions & 14 deletions TUIKit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,35 @@ English | [简体中文](./README_ZH.md)

## Download Links

[Latest TUIChat download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIChat.zip)
[Latest TUIChat download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIChat.zip)

[Latest TUIConversation download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIConversation.zip)
[Latest TUIConversation download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIConversation.zip)

[Latest TUIContact download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIContact.zip)
[Latest TUIContact download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIContact.zip)

[Latest TUIGroup download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIGroup.zip)
[Latest TUIGroup download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIGroup.zip)

[Latest TUISearch download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUISearch.zip)
[Latest TUISearch download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUISearch.zip)

[Latest TUICallKit download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUICallKit.zip)
[Latest TUICallKit download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUICallKit.zip)

[Latest TUIOfflinePush download](https://im.sdk.qcloud.com/download/tuikit/7.7.5282/android/TUIOfflinePush.zip)

[Latest TUICommunity download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUICommunity.zip)
[Latest TUICommunity download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUICommunity.zip)

[Latest TUITranslationPlugin download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUITranslationPlugin.zip)
[Latest TUITranslationPlugin download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUITranslationPlugin.zip)

[Latest TUIVoiceToTextPlugin download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIVoiceToTextPlugin.zip)
[Latest TUIVoiceToTextPlugin download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIVoiceToTextPlugin.zip)

[Latest TUICustomerServicePlugin download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUICustomerServicePlugin.zip)
[Latest TUICustomerServicePlugin download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUICustomerServicePlugin.zip)

[Latest TUICore download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUICore.zip)
[Latest TUICore download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUICore.zip)

[Latest TIMCommon download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TIMCommon.zip)
[Latest TIMCommon download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TIMCommon.zip)

[Latest TUIRoomKit download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIRoomKit.zip)
[Latest TUIRoomKit download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIRoomKit.zip)

[Latest TUIEmojiPlugin download](https://im.sdk.qcloud.com/download/tuikit/8.1.6116/android/TUIEmojiPlugin.zip)
[Latest TUIEmojiPlugin download](https://im.sdk.qcloud.com/download/tuikit/8.2.6325/android/TUIEmojiPlugin.zip)


If you encounter a TUIKit bug, please submit a pull request. After successful merging, we will update the TUIKit library in time.
Loading

0 comments on commit 3eb4a33

Please sign in to comment.