feat: 组件化消息中心相关功能 https://jira.shanqu.cc/browse/GHZS-2972

This commit is contained in:
叶子维
2023-07-24 17:49:02 +08:00
parent 33ed2796c8
commit f9c6bb1e56
150 changed files with 3260 additions and 985 deletions

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android = "http://schemas.android.com/apk/res/android"
android:shape = "rectangle" >
<solid android:color = "@color/theme_red" />
<corners android:radius = "999dp" />
</shape >

View File

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android = "http://schemas.android.com/apk/res/android"
android:shape = "oval" >
<solid android:color = "@color/theme_red" />
</shape >

View File

@ -42,7 +42,7 @@ public class DataUtils {
}
options.setDebug(BuildConfig.DEBUG);
options.setEnableSessionTracking(true);
options.setEnableAutoSessionTracking(true);
options.setDsn("https://6b1caf0d17c1408e8680f3f73ff80bd0@sentry.shanqu.cc/22");
options.setBeforeSend((event, hint) -> {

View File

@ -69,9 +69,17 @@ class AppProviderImpl : IAppProvider {
override fun logEvent(content: String) {
// do nothing
}
override fun logCoreEvent() {
// do nothing
}
}
}
override fun getFlavor(): String {
return "internal"
}
override fun isUserAcceptPrivacyPolicy(context: Context): Boolean {
return true

View File

@ -59,6 +59,14 @@ class ConfigProviderImpl : IConfigProvider {
return ""
}
override fun getQQun(): String {
return ""
}
override fun getQQunKey(): String {
return ""
}
override fun getQuickLoginAppId(): String {
return ""
}
@ -75,6 +83,10 @@ class ConfigProviderImpl : IConfigProvider {
return false
}
override fun isShowPlugin(gameId: String): Boolean {
return false
}
override fun init(context: Context?) {
// Do nothing
}

View File

@ -29,6 +29,10 @@ class DirectProviderImpl : IDirectProvider {
ToastUtils.toast("调用->DirectProviderImpl.directToEnergyRecord")
}
override fun directToEnergyRecord(context: Context, position: Int) {
ToastUtils.toast("调用->DirectProviderImpl.directToEnergyRecord")
}
override fun directToEnergyRulePage(context: Context) {
ToastUtils.toast("调用->DirectProviderImpl.directToEnergyRulePage")
}
@ -57,6 +61,61 @@ class DirectProviderImpl : IDirectProvider {
ToastUtils.toast("调用->DirectProviderImpl.directToSuggestionFromDiagnosis")
}
override fun directToQa(context: Context, text: String?, id: String) {
ToastUtils.toast("调用->DirectProviderImpl.directToQa")
}
override fun directToHelpAndFeedback(context: Context, position: Int) {
ToastUtils.toast("调用->DirectProviderImpl.directToHelpAndFeedback")
}
override fun directToQqGroup(context: Context, groupNumber: String?): Boolean {
ToastUtils.toast("调用->DirectProviderImpl.directToQqGroup")
return true
}
override fun directToHomeActivity(context: Context, userId: String?, entrance: String?, path: String?) {
ToastUtils.toast("调用->DirectProviderImpl.directToHomeActivity")
}
override fun directToAnswerDetail(context: Context, id: String, entrance: String?, path: String?) {
ToastUtils.toast("调用->DirectProviderImpl.directToAnswerDetail")
}
override fun directToCommunityArticle(
context: Context,
articleId: String?,
communityId: String?,
entrance: String?,
path: String?
) {
ToastUtils.toast("调用->DirectProviderImpl.directToCommunityArticle")
}
override fun directToVideoDetail(context: Context, videoId: String, entrance: String?, path: String?) {
ToastUtils.toast("调用->DirectProviderImpl.directToVideoDetail")
}
override fun directToAmway(context: Context, fixedTopAmwayCommentId: String?, entrance: String?, path: String?) {
ToastUtils.toast("调用->DirectProviderImpl.directToAmway")
}
override fun directToOrderCenter(context: Context) {
ToastUtils.toast("调用->DirectProviderImpl.directToOrderCenter")
}
override fun directToOrderDetail(context: Context, orderId: String) {
ToastUtils.toast("调用->DirectProviderImpl.directToOrderDetail")
}
override fun directToMyPrizePage(context: Context) {
ToastUtils.toast("调用->DirectProviderImpl.directToMyPrizePage")
}
override fun directToWinOrderDetail(context: Context, orderId: String, activityId: String) {
ToastUtils.toast("调用->DirectProviderImpl.directToWinOrderDetail")
}
override fun init(context: Context?) {
// Do nothing
}

View File

@ -9,7 +9,7 @@ import com.gh.gamecenter.core.utils.ToastUtils
@Route(path = RouteConsts.provider.updateManager, name = "UpdateManager暴露服务")
class UpdateManagerProviderImpl: IUpdateManagerProvider {
override fun checkUpdate(context: Context, isAutoCheck: Boolean, handler: Handler) {
override fun checkUpdate(context: Context, isAutoCheck: Boolean, handler: Handler?) {
ToastUtils.toast("调用->UpdateManagerProviderImpl.checkUpdate")
}

View File

@ -40,6 +40,16 @@ class WebProviderImpl : IWebProvider {
}
}
override fun getQAIntent(
context: Context?,
url: String?,
title: String?,
isWebPageHandleBackPressed: Boolean,
qaType: Int
): Intent? {
return null
}
override fun init(context: Context?) {
// Do nothing
}