修改包结构,修改引导页

This commit is contained in:
wangyu 2026-01-08 18:53:46 +08:00
parent e924a9f2a7
commit 70ea3d320c
400 changed files with 1739 additions and 1704 deletions

View File

@ -6,7 +6,7 @@ plugins {
}
android {
namespace 'com.cheng.bole'
namespace 'com.cheng.blzb'
compileSdk 34
buildFeatures.buildConfig = true

View File

@ -119,9 +119,9 @@
-keep public class * implements java.io.Serializable {*;}
# 不混淆实体类
-keep class com.cheng.bole.bean.** { *; }
-keep class com.cheng.bole.bean.db.** { *; }
-keep class com.cheng.bole.net.model.** { *; }
-keep class com.cheng.blzb.bean.** { *; }
-keep class com.cheng.blzb.bean.db.** { *; }
-keep class com.cheng.blzb.net.model.** { *; }
# 对于带有回调函数的onXXEvent、**On*Listener的,不能被混淆
-keepclassmembers class * {
@ -273,7 +273,7 @@ public static final int *;
@androidx.room.* <fields>;
}
-keep interface com.cheng.bole.manager.db.* { *; }
-keep interface com.cheng.blzb.manager.db.* { *; }
-keepclassmembers class * extends androidx.room.RoomDatabase {
public <init>(...);
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole
package com.cheng.blzb
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

View File

@ -97,7 +97,7 @@
android:value="portrait|landscape" />
<activity
android:name="com.cheng.bole.ui.activity.LauncherActivity"
android:name="com.cheng.blzb.ui.activity.LauncherActivity"
android:exported="true"
android:label="@string/app_name"
android:screenOrientation="portrait"
@ -110,7 +110,7 @@
</activity>
<activity
android:name="com.cheng.bole.ui.activity.LoginActivity"
android:name="com.cheng.blzb.ui.activity.LoginActivity"
android:configChanges="keyboardHidden|smallestScreenSize|orientation|screenSize"
android:exported="true"
android:label="登录"
@ -118,7 +118,7 @@
android:screenOrientation="portrait" />
<activity
android:name="com.cheng.bole.ui.activity.MainActivity"
android:name="com.cheng.blzb.ui.activity.MainActivity"
android:configChanges="keyboardHidden|smallestScreenSize|orientation|screenSize"
android:exported="true"
android:launchMode="singleTask"
@ -139,7 +139,7 @@
</activity>
<activity
android:name="com.cheng.bole.ui.activity.GuideActivity"
android:name="com.cheng.blzb.ui.activity.GuideActivity"
android:configChanges="keyboardHidden|smallestScreenSize|orientation|screenSize"
android:exported="true"
android:label="引导页"
@ -147,7 +147,7 @@
android:screenOrientation="portrait" />
<activity
android:name="com.cheng.bole.ui.activity.PublicActivity"
android:name="com.cheng.blzb.ui.activity.PublicActivity"
android:configChanges="keyboardHidden|smallestScreenSize|orientation|screenSize"
android:label="通用的Activity"
android:launchMode="standard"
@ -155,7 +155,7 @@
android:windowSoftInputMode="adjustPan|stateHidden" />
<activity
android:name="com.cheng.bole.ui.activity.DrawerActivity"
android:name="com.cheng.blzb.ui.activity.DrawerActivity"
android:configChanges="keyboardHidden|smallestScreenSize|orientation|screenSize"
android:label="通用的Activity"
android:launchMode="standard"
@ -164,21 +164,21 @@
android:windowSoftInputMode="stateHidden" />
<activity
android:name="com.cheng.bole.ui.activity.VideoPlayerActivity"
android:name="com.cheng.blzb.ui.activity.VideoPlayerActivity"
android:configChanges="keyboardHidden|smallestScreenSize|orientation|screenSize"
android:label="视频播放器"
android:launchMode="standard"
android:screenOrientation="portrait" />
<activity
android:name="com.cheng.bole.wxapi.WXEntryActivity"
android:name="com.cheng.BoLe.wxapi.WXEntryActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:exported="true"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name="com.cheng.bole.wxapi.WXPayEntryActivity"
android:name="com.cheng.BoLe.wxapi.WXPayEntryActivity"
android:exported="true"
android:launchMode="singleTop"
android:screenOrientation="portrait"

View File

@ -1,11 +1,11 @@
package com.cheng.bole.wxapi
package com.cheng.BoLe.wxapi
import com.example.base.common.RxBus
import com.tencent.mm.opensdk.constants.ConstantsAPI
import com.tencent.mm.opensdk.modelbase.BaseResp
import com.tencent.mm.opensdk.modelmsg.SendAuth
import com.umeng.socialize.weixin.view.WXCallbackActivity
import com.cheng.bole.event.WxLoginEvent
import com.cheng.blzb.event.WxLoginEvent
class WXEntryActivity : WXCallbackActivity() {

View File

@ -1,11 +1,11 @@
package com.cheng.bole.wxapi
package com.cheng.BoLe.wxapi
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.cheng.bole.common.Constants
import com.cheng.bole.event.PayStatusEnum
import com.cheng.bole.event.PayStatusEvent
import com.cheng.blzb.common.Constants
import com.cheng.blzb.event.PayStatusEnum
import com.cheng.blzb.event.PayStatusEvent
import com.example.base.common.RxBus
import com.example.base.extensions.toast
import com.tencent.mm.opensdk.constants.ConstantsAPI

View File

@ -1,7 +1,7 @@
package com.cheng.bole
package com.cheng.blzb
import com.cheng.bole.utils.ChannelUtils
import com.cheng.bole.common.Constants
import com.cheng.blzb.utils.ChannelUtils
import com.cheng.blzb.common.Constants
import com.example.base.MvvmApplication
import com.example.base.utils.L
import com.example.base.utils.MMKVUtils

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
data class BidItemEntity(
val id: String,

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,14 +1,14 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import com.google.gson.annotations.SerializedName
class ConfigEntity {
@SerializedName("client.version.upgrade")
var versionEntity: com.cheng.bole.bean.VersionEntity? = null
var versionEntity: com.cheng.blzb.bean.VersionEntity? = null
@SerializedName("client.weixin.share") //微信分享
var wxShareEntity: com.cheng.bole.bean.WxShareEntity? = null
var wxShareEntity: com.cheng.blzb.bean.WxShareEntity? = null
@SerializedName("client.guide.pay.enable")
var guidePayEnable: Boolean? = true //引导页是否开启支付,默认可以

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
data class GuideUpdateEntity(
val count: Int,

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
class LoginEntity {
val user_id: String = ""

View File

@ -1,7 +1,7 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import com.cheng.bole.R
import com.cheng.bole.manager.UserConfigManager
import com.cheng.blzb.R
import com.cheng.blzb.manager.UserConfigManager
import java.io.Serializable
data class MenuEntity(

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
class OrderPayEntity {
var appId = ""

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,6 +1,6 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import com.cheng.bole.manager.UserConfigManager
import com.cheng.blzb.manager.UserConfigManager
import java.io.Serializable
class SearchOptionEntity(

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
class SendCodeEntity {
val timestamp: String = ""

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
data class SubscriptionMessageEntity(
val id: String,

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable
@ -7,5 +7,5 @@ class UserConfigEntity : Serializable{
var temp = false
var name = ""
var user_id = ""
var config: com.cheng.bole.bean.ConfigEntity? = null
var config: com.cheng.blzb.bean.ConfigEntity? = null
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -0,0 +1,24 @@
package com.cheng.blzb.bean
import com.cheng.blzb.R
class VipTipItemEntity(var icon: Int, var name: String) {
companion object {
fun getVipTipList(): List<com.cheng.blzb.bean.VipTipItemEntity> {
val list = ArrayList<com.cheng.blzb.bean.VipTipItemEntity>()
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item1, "素材图库"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item2, "魔方工具"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item3, "高清图片"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item4, "AI创作"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item5, "视频提取"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item6, "音频提取"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item7, "文案提取"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item8, "无广告"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item9, "海量次数"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item10, "海量流量"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item11, "专属客服"))
list.add(com.cheng.blzb.bean.VipTipItemEntity(R.mipmap.ic_vip_item12, "在线浏览"))
return list
}
}
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import com.google.gson.annotations.SerializedName

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,4 +1,4 @@
package com.cheng.bole.bean
package com.cheng.blzb.bean
import java.io.Serializable

View File

@ -1,15 +1,15 @@
package com.cheng.bole.common
package com.cheng.blzb.common
import android.app.Activity
import android.graphics.Color
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
import com.azhon.appupdate.manager.DownloadManager
import com.cheng.bole.BuildConfig
import com.cheng.bole.R
import com.cheng.bole.manager.UserConfigManager
import com.cheng.bole.ui.dialog.UpdateVersionDialog
import com.cheng.bole.utils.UIUtils
import com.cheng.blzb.BuildConfig
import com.cheng.blzb.R
import com.cheng.blzb.manager.UserConfigManager
import com.cheng.blzb.ui.dialog.UpdateVersionDialog
import com.cheng.blzb.utils.UIUtils
import com.example.base.extensions.toast
object AppUpdate {
@ -22,7 +22,7 @@ object AppUpdate {
toast(fragment.getString(R.string.check_version_ing))
}
val result: com.cheng.bole.bean.VersionEntity? = UserConfigManager.userConfig?.config?.versionEntity
val result: com.cheng.blzb.bean.VersionEntity? = UserConfigManager.userConfig?.config?.versionEntity
result?.apply {
if (UIUtils.checkVersion(version, BuildConfig.VERSION_NAME)) {
if (last_version_force == BuildConfig.VERSION_NAME) {
@ -31,7 +31,7 @@ object AppUpdate {
force = true
}
clickFun.invoke()
com.cheng.bole.common.AppUpdate.startUpdate(result, fragment)
com.cheng.blzb.common.AppUpdate.startUpdate(result, fragment)
} else {
if (isManual) {
toast(fragment.getString(R.string.curr_new_version))
@ -40,15 +40,15 @@ object AppUpdate {
}
}
private fun startUpdate(versionEntity: com.cheng.bole.bean.VersionEntity, fragment: Fragment) {
private fun startUpdate(versionEntity: com.cheng.blzb.bean.VersionEntity, fragment: Fragment) {
UpdateVersionDialog.newInstance(versionEntity).show(fragment.childFragmentManager, null)
}
private fun startUpdateDialog(result: com.cheng.bole.bean.VersionEntity?, activity: Activity) {
private fun startUpdateDialog(result: com.cheng.blzb.bean.VersionEntity?, activity: Activity) {
if (result == null) return
val manager = DownloadManager.Builder(activity).run {
apkUrl(result.url)
apkName(com.cheng.bole.common.AppUpdate.apkName)
apkName(com.cheng.blzb.common.AppUpdate.apkName)
smallIcon(R.mipmap.ic_launcher_icon)
dialogImage(R.mipmap.ic_update_version_bg_z)
showNewerToast(true)

View File

@ -1,7 +1,7 @@
package com.cheng.bole.common
package com.cheng.blzb.common
import android.graphics.Typeface
import com.cheng.bole.BuildConfig
import com.cheng.blzb.BuildConfig
import com.example.base.utils.Utils
object Constants {

View File

@ -1,4 +1,4 @@
package com.cheng.bole.common
package com.cheng.blzb.common
object EventConstants {
const val APP_LAUNCH = "client.launch" //app启动

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class BidEvent {
}

View File

@ -0,0 +1,3 @@
package com.cheng.blzb.event
class ClipboardEvent(var text: String)

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class CompanyAuthEvent {
}

View File

@ -0,0 +1,6 @@
package com.cheng.blzb.event
import com.cheng.blzb.bean.ContactsEntity
class ContactsEvent(val contacts: ContactsEntity) {
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.event
package com.cheng.blzb.event
import com.ylqh.cube.bean.CouponActivityEntity

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class CouponRefreshEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class FavoriteEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class GuideEvent(var nextPage: Boolean) {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class HomeRefreshEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class LoginSuccessEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class LogoutSuccessEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class MineRefreshEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class OrderEvent {
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.event
package com.cheng.blzb.event
enum class PayStatusEnum {
PAY_SUCCESS, PAY_ERROR, PAY_CANCEL

View File

@ -0,0 +1,3 @@
package com.cheng.blzb.event
class PayStatusEvent(var payStatus: com.cheng.blzb.event.PayStatusEnum, var message: String = "")

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class PaySuccessEvent {
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.event
package com.cheng.blzb.event
class PushMessageEvent(
var payload: String,

View File

@ -0,0 +1,6 @@
package com.cheng.blzb.event
import com.cheng.blzb.bean.SourceEntity
class SourceDataEvent(val list: List<SourceEntity>) {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class SubscriptionEvent {
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.event
package com.cheng.blzb.event
class SupplyEvent(val from: Int = 0) {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class UserInfoEvent {
}

View File

@ -0,0 +1,4 @@
package com.cheng.blzb.event
class VipPaySuccessEvent {
}

View File

@ -0,0 +1,3 @@
package com.cheng.blzb.event
class WxLoginEvent(var code: String, var state: String)

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ext
package com.cheng.blzb.ext
import java.text.DecimalFormat

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ext
package com.cheng.blzb.ext
import java.math.BigDecimal
import java.math.RoundingMode

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ext
package com.cheng.blzb.ext
import android.animation.Animator
import android.animation.TimeInterpolator

View File

@ -1,4 +1,4 @@
package com.cheng.bole.impl
package com.cheng.blzb.impl
import android.widget.SeekBar
import android.widget.SeekBar.OnSeekBarChangeListener

View File

@ -1,4 +1,4 @@
package com.cheng.bole.impl
package com.cheng.blzb.impl
import android.text.Editable
import android.text.TextWatcher

View File

@ -1,7 +1,7 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import android.text.TextUtils
import com.cheng.bole.bean.ContactsEntity
import com.cheng.blzb.bean.ContactsEntity
import com.example.base.utils.MMKVUtils
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken

View File

@ -1,4 +1,4 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
enum class DialogEnum {
CLICK_OK,

View File

@ -1,7 +1,7 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import com.alibaba.fastjson.JSONObject
import com.cheng.bole.net.ApiFactory
import com.cheng.blzb.net.ApiFactory
import com.example.base.utils.L
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch

View File

@ -1,4 +1,4 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import com.example.base.utils.MMKVUtils

View File

@ -1,4 +1,4 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import android.app.Activity
import android.app.Notification
@ -12,8 +12,8 @@ import android.provider.Settings
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.fragment.app.FragmentManager
import com.cheng.bole.R
import com.cheng.bole.ui.dialog.TipDialog
import com.cheng.blzb.R
import com.cheng.blzb.ui.dialog.TipDialog
import com.example.base.extensions.toast
import com.example.base.utils.Utils

View File

@ -1,4 +1,4 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import android.text.TextUtils
import com.example.base.utils.MMKVUtils

View File

@ -1,4 +1,4 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import android.app.Activity
import android.content.Context
@ -6,7 +6,7 @@ import android.content.Intent
import android.text.TextUtils
import androidx.core.content.FileProvider
import androidx.fragment.app.FragmentActivity
import com.cheng.bole.R
import com.cheng.blzb.R
import com.example.base.extensions.toast
import com.umeng.socialize.ShareAction
import com.umeng.socialize.UMShareListener
@ -37,7 +37,7 @@ object ShareManager {
fun shareUrl(
activity: FragmentActivity,
shareMedia: SHARE_MEDIA,
shareBean: com.cheng.bole.bean.WxShareEntity,
shareBean: com.cheng.blzb.bean.WxShareEntity,
clickFun: () -> Unit,
) {
if (!TextUtils.isEmpty(shareBean.link)) {

View File

@ -1,11 +1,11 @@
package com.cheng.bole.manager
package com.cheng.blzb.manager
import android.os.Build
import android.text.TextUtils
import androidx.lifecycle.MutableLiveData
import com.cheng.bole.bean.BidTypeEntity
import com.cheng.bole.bean.AreaEntity
import com.cheng.bole.net.ApiFactory
import com.cheng.blzb.bean.BidTypeEntity
import com.cheng.blzb.bean.AreaEntity
import com.cheng.blzb.net.ApiFactory
import com.example.base.extensions.toast
import com.example.base.utils.MMKVUtils
import com.example.base.utils.Utils
@ -21,17 +21,17 @@ import kotlinx.coroutines.withContext
import org.json.JSONObject
object UserConfigManager {
val _userConfigLiveData = MutableLiveData<com.cheng.bole.bean.UserConfigEntity?>()
val _userConfigLiveData = MutableLiveData<com.cheng.blzb.bean.UserConfigEntity?>()
val userConfig: com.cheng.bole.bean.UserConfigEntity? get() = _userConfigLiveData.value
val userConfig: com.cheng.blzb.bean.UserConfigEntity? get() = _userConfigLiveData.value
val userInfoLiveData = MutableLiveData<com.cheng.bole.bean.UserEntity?>()
val userInfoLiveData = MutableLiveData<com.cheng.blzb.bean.UserEntity?>()
val userInfo: com.cheng.bole.bean.UserEntity? get() = userInfoLiveData.value
val userInfo: com.cheng.blzb.bean.UserEntity? get() = userInfoLiveData.value
fun getUserConfig(clickFun: () -> Unit?) {
if (!TextUtils.isEmpty(MMKVUtils.getString("userConfig"))) {
val data = Gson().fromJson(MMKVUtils.getString("userConfig"), com.cheng.bole.bean.UserConfigEntity::class.java)
val data = Gson().fromJson(MMKVUtils.getString("userConfig"), com.cheng.blzb.bean.UserConfigEntity::class.java)
_userConfigLiveData.postValue(data)
getOaId()
@ -69,7 +69,7 @@ object UserConfigManager {
}
}
private fun saveUserConfig(data: com.cheng.bole.bean.UserConfigEntity) {
private fun saveUserConfig(data: com.cheng.blzb.bean.UserConfigEntity) {
try {
LoginManager.saveToken(data.token)
saveIsTemp(data.temp)
@ -89,14 +89,14 @@ object UserConfigManager {
}
}
fun saveLastUserinfo(userinfo: com.cheng.bole.bean.UserEntity?) {
fun saveLastUserinfo(userinfo: com.cheng.blzb.bean.UserEntity?) {
MMKVUtils.put("last_userinfo", Gson().toJson(userinfo))
}
fun getLastUserinfo(): com.cheng.bole.bean.UserEntity? {
fun getLastUserinfo(): com.cheng.blzb.bean.UserEntity? {
val str = MMKVUtils.getString("last_userinfo")
if (!TextUtils.isEmpty(str)) {
return Gson().fromJson(str, com.cheng.bole.bean.UserEntity::class.java)
return Gson().fromJson(str, com.cheng.blzb.bean.UserEntity::class.java)
}
return null
}
@ -180,14 +180,14 @@ object UserConfigManager {
return emptyList()
}
private fun saveShareEntity(entity: com.cheng.bole.bean.WxShareEntity?) {
private fun saveShareEntity(entity: com.cheng.blzb.bean.WxShareEntity?) {
MMKVUtils.put("weixin_share", Gson().toJson(entity))
}
fun getShareEntity(): com.cheng.bole.bean.WxShareEntity? {
fun getShareEntity(): com.cheng.blzb.bean.WxShareEntity? {
val s = MMKVUtils.getString("weixin_share")
if (!TextUtils.isEmpty(s)) {
return Gson().fromJson(s, com.cheng.bole.bean.WxShareEntity::class.java)
return Gson().fromJson(s, com.cheng.blzb.bean.WxShareEntity::class.java)
}
return null
}
@ -304,7 +304,7 @@ object UserConfigManager {
*/
fun saveBDVID() {
try {
val str = com.cheng.bole.utils.appwalle.ChannelReader.get(Utils.getApp())
val str = com.cheng.blzb.utils.appwalle.ChannelReader.get(Utils.getApp())
if (!TextUtils.isEmpty(str)) {
val jsonObj = JSONObject(str)
jsonObj.getString("bd_vid").let {

View File

@ -1,4 +1,4 @@
package com.cheng.bole.net
package com.cheng.blzb.net
object ApiFactory {

View File

@ -1,34 +1,34 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import com.cheng.bole.bean.AccountEntity
import com.cheng.bole.bean.AreaEntity
import com.cheng.bole.bean.BidDetailEntity
import com.cheng.bole.bean.BidItemEntity
import com.cheng.bole.bean.BidTypeEntity
import com.cheng.bole.bean.CompanyEntity
import com.cheng.bole.bean.CorpEntity
import com.cheng.bole.bean.CouponEntity
import com.cheng.bole.bean.GuideTotalBidEntity
import com.cheng.bole.bean.GuideUpdateEntity
import com.cheng.bole.bean.HotWordEntity
import com.cheng.bole.bean.LoginEntity
import com.cheng.bole.bean.MerchantGoodsEntity
import com.cheng.bole.bean.OrderEntity
import com.cheng.bole.bean.OrderPayEntity
import com.cheng.bole.bean.ZZDBInfoEntity
import com.cheng.bole.bean.SeatItemEntity
import com.cheng.bole.bean.SendCodeEntity
import com.cheng.bole.bean.SourceEntity
import com.cheng.bole.bean.SubscriptionEntity
import com.cheng.bole.bean.SubscriptionMessageEntity
import com.cheng.bole.bean.UploadFileEntity
import com.cheng.bole.bean.UserAuthEntity
import com.cheng.bole.bean.UserConfigEntity
import com.cheng.bole.bean.UserEntity
import com.cheng.bole.bean.VipGoodsEntity
import com.cheng.bole.bean.WxServiceEntity
import com.cheng.bole.net.model.HttpBaseResult
import com.cheng.bole.net.model.HttpListResult
import com.cheng.blzb.bean.AccountEntity
import com.cheng.blzb.bean.AreaEntity
import com.cheng.blzb.bean.BidDetailEntity
import com.cheng.blzb.bean.BidItemEntity
import com.cheng.blzb.bean.BidTypeEntity
import com.cheng.blzb.bean.CompanyEntity
import com.cheng.blzb.bean.CorpEntity
import com.cheng.blzb.bean.CouponEntity
import com.cheng.blzb.bean.GuideTotalBidEntity
import com.cheng.blzb.bean.GuideUpdateEntity
import com.cheng.blzb.bean.HotWordEntity
import com.cheng.blzb.bean.LoginEntity
import com.cheng.blzb.bean.MerchantGoodsEntity
import com.cheng.blzb.bean.OrderEntity
import com.cheng.blzb.bean.OrderPayEntity
import com.cheng.blzb.bean.ZZDBInfoEntity
import com.cheng.blzb.bean.SeatItemEntity
import com.cheng.blzb.bean.SendCodeEntity
import com.cheng.blzb.bean.SourceEntity
import com.cheng.blzb.bean.SubscriptionEntity
import com.cheng.blzb.bean.SubscriptionMessageEntity
import com.cheng.blzb.bean.UploadFileEntity
import com.cheng.blzb.bean.UserAuthEntity
import com.cheng.blzb.bean.UserConfigEntity
import com.cheng.blzb.bean.UserEntity
import com.cheng.blzb.bean.VipGoodsEntity
import com.cheng.blzb.bean.WxServiceEntity
import com.cheng.blzb.net.model.HttpBaseResult
import com.cheng.blzb.net.model.HttpListResult
import com.ylqh.cube.bean.CouponActivityEntity
import okhttp3.MultipartBody
import okhttp3.RequestBody

View File

@ -1,4 +1,4 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import okhttp3.Interceptor
import okhttp3.Response

View File

@ -1,7 +1,7 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import com.cheng.bole.BuildConfig
import com.cheng.bole.common.Constants
import com.cheng.blzb.BuildConfig
import com.cheng.blzb.common.Constants
import com.google.gson.GsonBuilder
import okhttp3.OkHttpClient
import retrofit2.Retrofit

View File

@ -1,4 +1,4 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import com.google.gson.Gson
import com.google.gson.TypeAdapter

View File

@ -1,14 +1,14 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import com.cheng.bole.BuildConfig
import com.cheng.bole.manager.LoginManager
import com.cheng.bole.utils.ChannelUtils
import com.cheng.blzb.BuildConfig
import com.cheng.blzb.manager.LoginManager
import com.cheng.blzb.utils.ChannelUtils
import com.example.base.utils.AppUtils
import com.example.base.utils.L
import com.example.base.utils.Utils
import com.github.gzuliyujiang.oaid.DeviceIdentifier
import com.cheng.bole.common.Constants
import com.cheng.bole.manager.UserConfigManager
import com.cheng.blzb.common.Constants
import com.cheng.blzb.manager.UserConfigManager
import okhttp3.Interceptor
import okhttp3.Response

View File

@ -1,8 +1,8 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import android.text.TextUtils
import com.cheng.bole.common.Constants
import com.cheng.bole.utils.StringUtils
import com.cheng.blzb.common.Constants
import com.cheng.blzb.utils.StringUtils
import com.example.base.utils.L
import okhttp3.Interceptor
import okhttp3.Response

View File

@ -1,4 +1,4 @@
package com.cheng.bole.net
package com.cheng.blzb.net
import android.content.Intent
import android.text.TextUtils
@ -7,14 +7,14 @@ import com.alibaba.fastjson.JSON
import com.example.base.common.RxBus
import com.example.base.utils.L
import com.example.base.utils.Utils
import com.cheng.bole.BuildConfig
import com.cheng.bole.common.Constants
import com.cheng.bole.event.HomeRefreshEvent
import com.cheng.bole.manager.LoginManager
import com.cheng.bole.ui.activity.LoginActivity
import com.cheng.bole.ui.activity.PublicActivity
import com.cheng.bole.ui.fragment.mine.vip.VipFragment
import com.cheng.bole.utils.AESpkcs7paddingUtil
import com.cheng.blzb.BuildConfig
import com.cheng.blzb.common.Constants
import com.cheng.blzb.event.HomeRefreshEvent
import com.cheng.blzb.manager.LoginManager
import com.cheng.blzb.ui.activity.LoginActivity
import com.cheng.blzb.ui.activity.PublicActivity
import com.cheng.blzb.ui.fragment.mine.vip.VipFragment
import com.cheng.blzb.utils.AESpkcs7paddingUtil
import okhttp3.Interceptor
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.Response

View File

@ -1,4 +1,4 @@
package com.cheng.bole.net.model
package com.cheng.blzb.net.model
/**
* @date 2021-08-05 09:45

View File

@ -1,4 +1,4 @@
package com.cheng.bole.net.model
package com.cheng.blzb.net.model
/**

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ui.activity
package com.cheng.blzb.ui.activity
import android.content.Context
import android.content.Intent

View File

@ -1,12 +1,12 @@
package com.cheng.bole.ui.activity
package com.cheng.blzb.ui.activity
import android.annotation.SuppressLint
import android.os.Bundle
import android.window.OnBackInvokedDispatcher
import androidx.activity.addCallback
import androidx.core.os.BuildCompat
import com.cheng.bole.R
import com.cheng.bole.ui.fragment.guide.GuideFragment
import com.cheng.blzb.R
import com.cheng.blzb.ui.fragment.guide.GuideFragment
import com.example.base.common.ActivityManager
import com.example.base.extensions.toast
import com.example.base.ui.BaseActivity

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ui.activity
package com.cheng.blzb.ui.activity
import android.annotation.SuppressLint
import android.os.Bundle
@ -8,20 +8,19 @@ import androidx.activity.addCallback
import androidx.core.os.BuildCompat
import androidx.fragment.app.Fragment
import com.bytedance.ads.convert.BDConvert
import com.cheng.bole.BuildConfig
import com.cheng.bole.R
import com.cheng.bole.common.Constants
import com.cheng.bole.common.EventConstants
import com.cheng.bole.manager.DialogEnum
import com.cheng.bole.manager.EventReportManager
import com.cheng.bole.manager.LoginManager
import com.cheng.bole.manager.UserConfigManager
import com.cheng.bole.ui.dialog.PrivacyPolicyDialog
import com.cheng.bole.utils.ChannelUtils
import com.cheng.blzb.BuildConfig
import com.cheng.blzb.R
import com.cheng.blzb.common.Constants
import com.cheng.blzb.common.EventConstants
import com.cheng.blzb.manager.DialogEnum
import com.cheng.blzb.manager.EventReportManager
import com.cheng.blzb.manager.LoginManager
import com.cheng.blzb.manager.UserConfigManager
import com.cheng.blzb.ui.dialog.PrivacyPolicyDialog
import com.cheng.blzb.utils.ChannelUtils
import com.example.base.dialog.LoadingDialog
import com.example.base.ui.BaseActivity
import com.example.base.utils.L
import com.example.base.utils.MMKVUtils
import com.example.base.utils.Utils
import com.g.gysdk.GYManager
import com.g.gysdk.GYResponse
@ -117,6 +116,7 @@ class LauncherActivity : BaseActivity() {
}
} else {
startActivity<MainActivity>()
// startActivity<GuideActivity>()
}
finish()
}

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ui.activity
package com.cheng.blzb.ui.activity
import android.annotation.SuppressLint
import android.app.Activity
@ -9,11 +9,11 @@ import androidx.activity.addCallback
import androidx.core.os.BuildCompat
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import com.cheng.bole.R
import com.cheng.bole.common.EventConstants
import com.cheng.bole.manager.EventReportManager
import com.cheng.bole.ui.fragment.login.LoginFragment
import com.cheng.bole.ui.fragment.login.onekey.OneKeyLoginFragment
import com.cheng.blzb.R
import com.cheng.blzb.common.EventConstants
import com.cheng.blzb.manager.EventReportManager
import com.cheng.blzb.ui.fragment.login.LoginFragment
import com.cheng.blzb.ui.fragment.login.onekey.OneKeyLoginFragment
import com.example.base.common.ActivityManager
import com.example.base.extensions.toast
import com.example.base.ui.BaseActivity

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ui.activity
package com.cheng.blzb.ui.activity
import android.annotation.SuppressLint
import android.content.Intent
@ -7,12 +7,12 @@ import android.text.TextUtils
import android.window.OnBackInvokedDispatcher
import androidx.activity.addCallback
import androidx.core.os.BuildCompat
import com.cheng.bole.R
import com.cheng.bole.common.EventConstants
import com.cheng.bole.event.LogoutSuccessEvent
import com.cheng.bole.event.PushMessageEvent
import com.cheng.bole.manager.EventReportManager
import com.cheng.bole.ui.fragment.main.MainFragment
import com.cheng.blzb.R
import com.cheng.blzb.common.EventConstants
import com.cheng.blzb.event.LogoutSuccessEvent
import com.cheng.blzb.event.PushMessageEvent
import com.cheng.blzb.manager.EventReportManager
import com.cheng.blzb.ui.fragment.main.MainFragment
import com.example.base.common.ActivityManager
import com.example.base.common.RxBus
import com.example.base.extensions.toast

View File

@ -1,4 +1,4 @@
package com.cheng.bole.ui.activity
package com.cheng.blzb.ui.activity
import android.content.Context
import android.content.Intent

Some files were not shown because too many files have changed in this diff Show More