refactor(creator): 채널 홈 액티비티 이름을 정리한다
This commit is contained in:
@@ -112,7 +112,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<activity android:name=".main.MainActivity" />
|
<activity android:name=".main.MainActivity" />
|
||||||
<activity android:name=".v2.main.MainV2Activity" />
|
<activity android:name=".v2.main.MainV2Activity" />
|
||||||
<activity android:name=".v2.creator.channel.CreatorChannelHomeActivity" />
|
<activity android:name=".v2.creator.channel.CreatorChannelActivity" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".v2.main.chat.dm.DmChatRoomActivity"
|
android:name=".v2.main.chat.dm.DmChatRoomActivity"
|
||||||
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" />
|
android:windowSoftInputMode="stateAlwaysHidden|adjustResize" />
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ import kr.co.vividnext.sodalive.common.LoadingDialog
|
|||||||
import kr.co.vividnext.sodalive.databinding.ActivityAudioContentNewAllBinding
|
import kr.co.vividnext.sodalive.databinding.ActivityAudioContentNewAllBinding
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.home.HomeContentThemeAdapter
|
import kr.co.vividnext.sodalive.home.HomeContentThemeAdapter
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
|
|
||||||
@OptIn(UnstableApi::class)
|
@OptIn(UnstableApi::class)
|
||||||
@@ -126,7 +126,7 @@ class AudioContentNewAllActivity : BaseActivity<ActivityAudioContentNewAllBindin
|
|||||||
},
|
},
|
||||||
onClickCreator = {
|
onClickCreator = {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(this, it)
|
CreatorChannelActivity.newIntent(this, it)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import kr.co.vividnext.sodalive.common.Constants
|
|||||||
import kr.co.vividnext.sodalive.common.GridSpacingItemDecoration
|
import kr.co.vividnext.sodalive.common.GridSpacingItemDecoration
|
||||||
import kr.co.vividnext.sodalive.common.LoadingDialog
|
import kr.co.vividnext.sodalive.common.LoadingDialog
|
||||||
import kr.co.vividnext.sodalive.databinding.ActivityAudioContentAllByThemeBinding
|
import kr.co.vividnext.sodalive.databinding.ActivityAudioContentAllByThemeBinding
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
|
|
||||||
class AudioContentAllByThemeActivity : BaseActivity<ActivityAudioContentAllByThemeBinding>(
|
class AudioContentAllByThemeActivity : BaseActivity<ActivityAudioContentAllByThemeBinding>(
|
||||||
@@ -69,7 +69,7 @@ class AudioContentAllByThemeActivity : BaseActivity<ActivityAudioContentAllByThe
|
|||||||
},
|
},
|
||||||
onClickCreator = {
|
onClickCreator = {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(this, it)
|
CreatorChannelActivity.newIntent(this, it)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ import kr.co.vividnext.sodalive.mypage.can.payment.CanPaymentTempActivity
|
|||||||
import kr.co.vividnext.sodalive.mypage.recent.RecentContentViewModel
|
import kr.co.vividnext.sodalive.mypage.recent.RecentContentViewModel
|
||||||
import kr.co.vividnext.sodalive.mypage.recent.db.RecentContent
|
import kr.co.vividnext.sodalive.mypage.recent.db.RecentContent
|
||||||
import kr.co.vividnext.sodalive.report.ReportType
|
import kr.co.vividnext.sodalive.report.ReportType
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import kotlin.math.ceil
|
import kotlin.math.ceil
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
@@ -1207,7 +1207,7 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
|||||||
this.creatorId = creator.creatorId
|
this.creatorId = creator.creatorId
|
||||||
binding.rlProfile.setOnClickListener {
|
binding.rlProfile.setOnClickListener {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, creator.creatorId)
|
CreatorChannelActivity.newIntent(applicationContext, creator.creatorId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import kr.co.vividnext.sodalive.common.image.BlurTransformation
|
|||||||
import kr.co.vividnext.sodalive.databinding.ActivitySeriesDetailBinding
|
import kr.co.vividnext.sodalive.databinding.ActivitySeriesDetailBinding
|
||||||
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
|
|
||||||
class SeriesDetailActivity : BaseActivity<ActivitySeriesDetailBinding>(
|
class SeriesDetailActivity : BaseActivity<ActivitySeriesDetailBinding>(
|
||||||
@@ -192,7 +192,7 @@ class SeriesDetailActivity : BaseActivity<ActivitySeriesDetailBinding>(
|
|||||||
private fun setSeriesCreator(creator: GetSeriesDetailResponse.GetSeriesDetailCreator) {
|
private fun setSeriesCreator(creator: GetSeriesDetailResponse.GetSeriesDetailCreator) {
|
||||||
binding.llProfile.setOnClickListener {
|
binding.llProfile.setOnClickListener {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, creator.creatorId)
|
CreatorChannelActivity.newIntent(applicationContext, creator.creatorId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
binding.tvNickname.text = creator.nickname
|
binding.tvNickname.text = creator.nickname
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import kr.co.vividnext.sodalive.common.LoadingDialog
|
|||||||
import kr.co.vividnext.sodalive.databinding.FragmentExplorerBinding
|
import kr.co.vividnext.sodalive.databinding.FragmentExplorerBinding
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.message.SelectMessageRecipientAdapter
|
import kr.co.vividnext.sodalive.message.SelectMessageRecipientAdapter
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
@@ -60,7 +60,7 @@ class ExplorerFragment : BaseFragment<FragmentExplorerBinding>(
|
|||||||
|
|
||||||
private fun setupView() {
|
private fun setupView() {
|
||||||
adapter = ExplorerAdapter {
|
adapter = ExplorerAdapter {
|
||||||
startActivity(CreatorChannelHomeActivity.newIntent(requireContext(), it))
|
startActivity(CreatorChannelActivity.newIntent(requireContext(), it))
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.rvExplorer.layoutManager = LinearLayoutManager(
|
binding.rvExplorer.layoutManager = LinearLayoutManager(
|
||||||
@@ -104,7 +104,7 @@ class ExplorerFragment : BaseFragment<FragmentExplorerBinding>(
|
|||||||
private fun setupSearchChannelView() {
|
private fun setupSearchChannelView() {
|
||||||
searchChannelAdapter = SelectMessageRecipientAdapter {
|
searchChannelAdapter = SelectMessageRecipientAdapter {
|
||||||
hideKeyboard()
|
hideKeyboard()
|
||||||
startActivity(CreatorChannelHomeActivity.newIntent(requireContext(), it.id))
|
startActivity(CreatorChannelActivity.newIntent(requireContext(), it.id))
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.rvSearchChannel.layoutManager = LinearLayoutManager(
|
binding.rvSearchChannel.layoutManager = LinearLayoutManager(
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import kr.co.vividnext.sodalive.common.LoadingDialog
|
|||||||
import kr.co.vividnext.sodalive.databinding.ActivityFollowingCreatorBinding
|
import kr.co.vividnext.sodalive.databinding.ActivityFollowingCreatorBinding
|
||||||
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
|
|
||||||
class FollowingCreatorActivity : BaseActivity<ActivityFollowingCreatorBinding>(
|
class FollowingCreatorActivity : BaseActivity<ActivityFollowingCreatorBinding>(
|
||||||
@@ -39,7 +39,7 @@ class FollowingCreatorActivity : BaseActivity<ActivityFollowingCreatorBinding>(
|
|||||||
adapter = FollowingCreatorAdapter(
|
adapter = FollowingCreatorAdapter(
|
||||||
onClickItem = { creatorId ->
|
onClickItem = { creatorId ->
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, creatorId)
|
CreatorChannelActivity.newIntent(applicationContext, creatorId)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
onClickFollow = { creatorId, isFollow ->
|
onClickFollow = { creatorId, isFollow ->
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ import kr.co.vividnext.sodalive.settings.language.LanguageManager
|
|||||||
import kr.co.vividnext.sodalive.settings.language.LocaleHelper
|
import kr.co.vividnext.sodalive.settings.language.LocaleHelper
|
||||||
import kr.co.vividnext.sodalive.settings.notification.MemberRole
|
import kr.co.vividnext.sodalive.settings.notification.MemberRole
|
||||||
import kr.co.vividnext.sodalive.splash.SplashActivity
|
import kr.co.vividnext.sodalive.splash.SplashActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
@@ -271,7 +271,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(FragmentHomeBinding::infl
|
|||||||
onClickItem = {
|
onClickItem = {
|
||||||
if (SharedPreferenceManager.token.isNotBlank()) {
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireActivity(), it)
|
CreatorChannelActivity.newIntent(requireActivity(), it)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
(requireActivity() as MainActivity).showLoginActivity()
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
@@ -498,7 +498,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(FragmentHomeBinding::infl
|
|||||||
|
|
||||||
AudioContentBannerType.CREATOR -> {
|
AudioContentBannerType.CREATOR -> {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireContext(), it.creatorId!!)
|
CreatorChannelActivity.newIntent(requireContext(), it.creatorId!!)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -915,7 +915,7 @@ class HomeFragment : BaseFragment<FragmentHomeBinding>(FragmentHomeBinding::infl
|
|||||||
onClickCreatorProfile = {
|
onClickCreatorProfile = {
|
||||||
if (SharedPreferenceManager.token.isNotBlank()) {
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireContext(), it)
|
CreatorChannelActivity.newIntent(requireContext(), it)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
(requireActivity() as MainActivity).showLoginActivity()
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ import kr.co.vividnext.sodalive.settings.language.LanguageManager
|
|||||||
import kr.co.vividnext.sodalive.settings.language.LocaleHelper
|
import kr.co.vividnext.sodalive.settings.language.LocaleHelper
|
||||||
import kr.co.vividnext.sodalive.settings.notification.MemberRole
|
import kr.co.vividnext.sodalive.settings.notification.MemberRole
|
||||||
import kr.co.vividnext.sodalive.splash.SplashActivity
|
import kr.co.vividnext.sodalive.splash.SplashActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
@@ -265,7 +265,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
|||||||
adapter = RecommendLiveAdapter(requireContext(), pagerWidth.roundToInt(), pagerHeight) {
|
adapter = RecommendLiveAdapter(requireContext(), pagerWidth.roundToInt(), pagerHeight) {
|
||||||
if (SharedPreferenceManager.token.isNotBlank()) {
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireContext(), it)
|
CreatorChannelActivity.newIntent(requireContext(), it)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
(requireActivity() as MainActivity).showLoginActivity()
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
@@ -312,7 +312,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
|||||||
onClick = {
|
onClick = {
|
||||||
if (SharedPreferenceManager.token.isNotBlank()) {
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireContext(), it)
|
CreatorChannelActivity.newIntent(requireContext(), it)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
(requireActivity() as MainActivity).showLoginActivity()
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
@@ -384,7 +384,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
|||||||
val adapter = LatestFinishedLiveAdapter {
|
val adapter = LatestFinishedLiveAdapter {
|
||||||
if (SharedPreferenceManager.token.isNotBlank()) {
|
if (SharedPreferenceManager.token.isNotBlank()) {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireContext(), it)
|
CreatorChannelActivity.newIntent(requireContext(), it)
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
(requireActivity() as MainActivity).showLoginActivity()
|
(requireActivity() as MainActivity).showLoginActivity()
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import kr.co.vividnext.sodalive.extensions.convertDateFormat
|
|||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.settings.language.LanguageManager
|
import kr.co.vividnext.sodalive.settings.language.LanguageManager
|
||||||
import kr.co.vividnext.sodalive.settings.language.LocaleHelper
|
import kr.co.vividnext.sodalive.settings.language.LocaleHelper
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import java.util.TimeZone
|
import java.util.TimeZone
|
||||||
@@ -314,7 +314,7 @@ class LiveRoomDetailFragment(
|
|||||||
if (manager.isCreator) {
|
if (manager.isCreator) {
|
||||||
binding.tvManagerProfile.visibility = View.VISIBLE
|
binding.tvManagerProfile.visibility = View.VISIBLE
|
||||||
binding.tvManagerProfile.setOnClickListener {
|
binding.tvManagerProfile.setOnClickListener {
|
||||||
startActivity(CreatorChannelHomeActivity.newIntent(requireActivity(), manager.id))
|
startActivity(CreatorChannelActivity.newIntent(requireActivity(), manager.id))
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
binding.tvManagerProfile.visibility = View.GONE
|
binding.tvManagerProfile.visibility = View.GONE
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import kr.co.vividnext.sodalive.live.room.LiveRoomActivity
|
|||||||
import kr.co.vividnext.sodalive.message.MessageActivity
|
import kr.co.vividnext.sodalive.message.MessageActivity
|
||||||
import kr.co.vividnext.sodalive.mypage.can.payment.CanPaymentActivity
|
import kr.co.vividnext.sodalive.mypage.can.payment.CanPaymentActivity
|
||||||
import kr.co.vividnext.sodalive.splash.SplashActivity
|
import kr.co.vividnext.sodalive.splash.SplashActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import kr.co.vividnext.sodalive.v2.main.MainV2Activity
|
import kr.co.vividnext.sodalive.v2.main.MainV2Activity
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
@@ -275,7 +275,7 @@ class DeepLinkActivity : AppCompatActivity() {
|
|||||||
|
|
||||||
channelId != null && channelId > 0 -> {
|
channelId != null && channelId > 0 -> {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, channelId)
|
CreatorChannelActivity.newIntent(applicationContext, channelId)
|
||||||
)
|
)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@@ -355,7 +355,7 @@ class DeepLinkActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, deepLinkValueId)
|
CreatorChannelActivity.newIntent(applicationContext, deepLinkValueId)
|
||||||
)
|
)
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ import kr.co.vividnext.sodalive.mypage.MyPageFragment
|
|||||||
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
||||||
import kr.co.vividnext.sodalive.settings.notification.NotificationSettingsDialog
|
import kr.co.vividnext.sodalive.settings.notification.NotificationSettingsDialog
|
||||||
import kr.co.vividnext.sodalive.user.login.LoginActivity
|
import kr.co.vividnext.sodalive.user.login.LoginActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
@@ -349,7 +349,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>(ActivityMainBinding::infl
|
|||||||
}
|
}
|
||||||
|
|
||||||
channelId != null && channelId > 0 -> {
|
channelId != null && channelId > 0 -> {
|
||||||
startActivity(CreatorChannelHomeActivity.newIntent(applicationContext, channelId))
|
startActivity(CreatorChannelActivity.newIntent(applicationContext, channelId))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -575,7 +575,7 @@ class MainActivity : BaseActivity<ActivityMainBinding>(ActivityMainBinding::infl
|
|||||||
}
|
}
|
||||||
|
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, deepLinkValueId)
|
CreatorChannelActivity.newIntent(applicationContext, deepLinkValueId)
|
||||||
)
|
)
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ import kr.co.vividnext.sodalive.settings.notice.NoticeActivity
|
|||||||
import kr.co.vividnext.sodalive.settings.notice.NoticeDetailActivity
|
import kr.co.vividnext.sodalive.settings.notice.NoticeDetailActivity
|
||||||
import kr.co.vividnext.sodalive.settings.notification.MemberRole
|
import kr.co.vividnext.sodalive.settings.notification.MemberRole
|
||||||
import kr.co.vividnext.sodalive.splash.SplashActivity
|
import kr.co.vividnext.sodalive.splash.SplashActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import kr.co.vividnext.sodalive.v2.main.MainV2Activity
|
import kr.co.vividnext.sodalive.v2.main.MainV2Activity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ class MyPageFragment : BaseFragment<FragmentMyBinding>(FragmentMyBinding::inflat
|
|||||||
binding.tvMyChannel.visibility = View.VISIBLE
|
binding.tvMyChannel.visibility = View.VISIBLE
|
||||||
binding.tvMyChannel.setOnClickListener {
|
binding.tvMyChannel.setOnClickListener {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(
|
CreatorChannelActivity.newIntent(
|
||||||
requireContext(),
|
requireContext(),
|
||||||
SharedPreferenceManager.userId
|
SharedPreferenceManager.userId
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import kr.co.vividnext.sodalive.common.Constants
|
|||||||
import kr.co.vividnext.sodalive.common.LoadingDialog
|
import kr.co.vividnext.sodalive.common.LoadingDialog
|
||||||
import kr.co.vividnext.sodalive.databinding.ActivitySearchBinding
|
import kr.co.vividnext.sodalive.databinding.ActivitySearchBinding
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
@@ -298,7 +298,7 @@ class SearchActivity : BaseActivity<ActivitySearchBinding>(ActivitySearchBinding
|
|||||||
startActivity(
|
startActivity(
|
||||||
when (item.type) {
|
when (item.type) {
|
||||||
SearchResponseType.CREATOR -> {
|
SearchResponseType.CREATOR -> {
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, item.id)
|
CreatorChannelActivity.newIntent(applicationContext, item.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
SearchResponseType.CONTENT -> {
|
SearchResponseType.CONTENT -> {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import kr.co.vividnext.sodalive.databinding.ActivityNotificationReceiveSettingsB
|
|||||||
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.following.FollowingCreatorAdapter
|
import kr.co.vividnext.sodalive.following.FollowingCreatorAdapter
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import org.koin.android.ext.android.inject
|
import org.koin.android.ext.android.inject
|
||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ class NotificationReceiveSettingsActivity : BaseActivity<ActivityNotificationRec
|
|||||||
adapter = FollowingCreatorAdapter(
|
adapter = FollowingCreatorAdapter(
|
||||||
onClickItem = { creatorId ->
|
onClickItem = { creatorId ->
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, creatorId)
|
CreatorChannelActivity.newIntent(applicationContext, creatorId)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
onClickFollow = { creatorId, isFollow ->
|
onClickFollow = { creatorId, isFollow ->
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import kr.co.vividnext.sodalive.audio_content.detail.AudioContentDetailActivity
|
|||||||
import kr.co.vividnext.sodalive.base.BaseActivity
|
import kr.co.vividnext.sodalive.base.BaseActivity
|
||||||
import kr.co.vividnext.sodalive.chat.talk.room.ChatRoomActivity
|
import kr.co.vividnext.sodalive.chat.talk.room.ChatRoomActivity
|
||||||
import kr.co.vividnext.sodalive.common.Constants
|
import kr.co.vividnext.sodalive.common.Constants
|
||||||
import kr.co.vividnext.sodalive.databinding.ActivityCreatorChannelHomeBinding
|
import kr.co.vividnext.sodalive.databinding.ActivityCreatorChannelBinding
|
||||||
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
import kr.co.vividnext.sodalive.explorer.profile.CreatorFollowNotifyFragment
|
||||||
import kr.co.vividnext.sodalive.extensions.dpToPx
|
import kr.co.vividnext.sodalive.extensions.dpToPx
|
||||||
import kr.co.vividnext.sodalive.extensions.loadUrl
|
import kr.co.vividnext.sodalive.extensions.loadUrl
|
||||||
@@ -39,8 +39,8 @@ import kr.co.vividnext.sodalive.v2.creator.channel.ui.CreatorChannelHomeSectionA
|
|||||||
import kr.co.vividnext.sodalive.v2.main.chat.dm.DmChatRoomActivity
|
import kr.co.vividnext.sodalive.v2.main.chat.dm.DmChatRoomActivity
|
||||||
import org.koin.androidx.viewmodel.ext.android.viewModel
|
import org.koin.androidx.viewmodel.ext.android.viewModel
|
||||||
|
|
||||||
class CreatorChannelHomeActivity : BaseActivity<ActivityCreatorChannelHomeBinding>(
|
class CreatorChannelActivity : BaseActivity<ActivityCreatorChannelBinding>(
|
||||||
ActivityCreatorChannelHomeBinding::inflate
|
ActivityCreatorChannelBinding::inflate
|
||||||
) {
|
) {
|
||||||
|
|
||||||
private val viewModel: CreatorChannelHomeViewModel by viewModel()
|
private val viewModel: CreatorChannelHomeViewModel by viewModel()
|
||||||
@@ -334,7 +334,7 @@ class CreatorChannelHomeActivity : BaseActivity<ActivityCreatorChannelHomeBindin
|
|||||||
const val EXTRA_CREATOR_ID: String = "extra_creator_id"
|
const val EXTRA_CREATOR_ID: String = "extra_creator_id"
|
||||||
|
|
||||||
fun newIntent(context: Context, creatorId: Long): Intent {
|
fun newIntent(context: Context, creatorId: Long): Intent {
|
||||||
return Intent(context, CreatorChannelHomeActivity::class.java).apply {
|
return Intent(context, CreatorChannelActivity::class.java).apply {
|
||||||
putExtra(EXTRA_CREATOR_ID, creatorId)
|
putExtra(EXTRA_CREATOR_ID, creatorId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -46,7 +46,7 @@ import kr.co.vividnext.sodalive.mypage.MyPageFragment
|
|||||||
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
||||||
import kr.co.vividnext.sodalive.settings.notification.NotificationSettingsDialog
|
import kr.co.vividnext.sodalive.settings.notification.NotificationSettingsDialog
|
||||||
import kr.co.vividnext.sodalive.user.login.LoginActivity
|
import kr.co.vividnext.sodalive.user.login.LoginActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.HomeMainFragment
|
import kr.co.vividnext.sodalive.v2.main.home.HomeMainFragment
|
||||||
import kotlinx.coroutines.Job
|
import kotlinx.coroutines.Job
|
||||||
import kotlinx.coroutines.flow.collect
|
import kotlinx.coroutines.flow.collect
|
||||||
@@ -534,7 +534,7 @@ class MainV2Activity : BaseActivity<ActivityMainV2Binding>(ActivityMainV2Binding
|
|||||||
when {
|
when {
|
||||||
channelId != null && channelId > 0 -> {
|
channelId != null && channelId > 0 -> {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, channelId)
|
CreatorChannelActivity.newIntent(applicationContext, channelId)
|
||||||
)
|
)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
@@ -607,7 +607,7 @@ class MainV2Activity : BaseActivity<ActivityMainV2Binding>(ActivityMainV2Binding
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(applicationContext, deepLinkValueId)
|
CreatorChannelActivity.newIntent(applicationContext, deepLinkValueId)
|
||||||
)
|
)
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import kr.co.vividnext.sodalive.common.formatUtcRelativeTimeText
|
|||||||
import kr.co.vividnext.sodalive.databinding.FragmentV2MainHomeBinding
|
import kr.co.vividnext.sodalive.databinding.FragmentV2MainHomeBinding
|
||||||
import kr.co.vividnext.sodalive.databinding.ViewSectionTitleBinding
|
import kr.co.vividnext.sodalive.databinding.ViewSectionTitleBinding
|
||||||
import kr.co.vividnext.sodalive.explorer.profile.creator_community.all.CreatorCommunityAllActivity
|
import kr.co.vividnext.sodalive.explorer.profile.creator_community.all.CreatorCommunityAllActivity
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.model.HomeCreatorRankingUiState
|
import kr.co.vividnext.sodalive.v2.main.home.model.HomeCreatorRankingUiState
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.model.HomeRecommendationAiCharacterSection
|
import kr.co.vividnext.sodalive.v2.main.home.model.HomeRecommendationAiCharacterSection
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.model.HomeRecommendationBannerSection
|
import kr.co.vividnext.sodalive.v2.main.home.model.HomeRecommendationBannerSection
|
||||||
@@ -346,7 +346,7 @@ class HomeMainFragment : BaseFragment<FragmentV2MainHomeBinding>(
|
|||||||
|
|
||||||
private fun openCreatorProfile(creatorId: Long) {
|
private fun openCreatorProfile(creatorId: Long) {
|
||||||
startActivity(
|
startActivity(
|
||||||
CreatorChannelHomeActivity.newIntent(requireContext(), creatorId)
|
CreatorChannelActivity.newIntent(requireContext(), creatorId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import kr.co.vividnext.sodalive.explorer.profile.creator_community.all.CreatorCo
|
|||||||
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
||||||
import kr.co.vividnext.sodalive.settings.event.EventItem
|
import kr.co.vividnext.sodalive.settings.event.EventItem
|
||||||
import kr.co.vividnext.sodalive.v2.common.CreatorActivityType
|
import kr.co.vividnext.sodalive.v2.common.CreatorActivityType
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import kr.co.vividnext.sodalive.v2.widget.AudioContentTag
|
import kr.co.vividnext.sodalive.v2.widget.AudioContentTag
|
||||||
import kr.co.vividnext.sodalive.v2.widget.characterchatthumbnail.CharacterChatThumbnailItem
|
import kr.co.vividnext.sodalive.v2.widget.characterchatthumbnail.CharacterChatThumbnailItem
|
||||||
import kr.co.vividnext.sodalive.v2.widget.feed.FeedItem
|
import kr.co.vividnext.sodalive.v2.widget.feed.FeedItem
|
||||||
@@ -114,7 +114,7 @@ fun HomeRecommendationBannerRoute.toHomeRecommendationBannerIntent(context: Cont
|
|||||||
}
|
}
|
||||||
|
|
||||||
is HomeRecommendationBannerRoute.Creator -> {
|
is HomeRecommendationBannerRoute.Creator -> {
|
||||||
CreatorChannelHomeActivity.newIntent(context, creatorId)
|
CreatorChannelActivity.newIntent(context, creatorId)
|
||||||
}
|
}
|
||||||
|
|
||||||
is HomeRecommendationBannerRoute.Series -> {
|
is HomeRecommendationBannerRoute.Series -> {
|
||||||
|
|||||||
@@ -22,18 +22,18 @@ import java.io.File
|
|||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
import java.util.TimeZone
|
import java.util.TimeZone
|
||||||
|
|
||||||
class CreatorChannelHomeActivitySourceTest {
|
class CreatorChannelActivitySourceTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `Activity source는 intent helper invalid id ViewModel observe navigation 계약을 연결한다`() {
|
fun `Activity source는 intent helper invalid id ViewModel observe navigation 계약을 연결한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("BaseActivity<ActivityCreatorChannelHomeBinding>"))
|
assertTrue(source.contains("BaseActivity<ActivityCreatorChannelBinding>"))
|
||||||
assertTrue(source.contains("const val EXTRA_CREATOR_ID"))
|
assertTrue(source.contains("const val EXTRA_CREATOR_ID"))
|
||||||
assertTrue(source.contains("fun newIntent(context: Context, creatorId: Long): Intent"))
|
assertTrue(source.contains("fun newIntent(context: Context, creatorId: Long): Intent"))
|
||||||
assertTrue(source.contains("Intent(context, CreatorChannelHomeActivity::class.java)"))
|
assertTrue(source.contains("Intent(context, CreatorChannelActivity::class.java)"))
|
||||||
assertTrue(source.contains("putExtra(EXTRA_CREATOR_ID, creatorId)"))
|
assertTrue(source.contains("putExtra(EXTRA_CREATOR_ID, creatorId)"))
|
||||||
assertTrue(source.contains("private val viewModel: CreatorChannelHomeViewModel by viewModel()"))
|
assertTrue(source.contains("private val viewModel: CreatorChannelHomeViewModel by viewModel()"))
|
||||||
assertTrue(source.contains("if (creatorId <= 0L)"))
|
assertTrue(source.contains("if (creatorId <= 0L)"))
|
||||||
@@ -53,7 +53,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `follow notify source는 미팔로우 직접 팔로우와 팔로우 중 알림 sheet를 연결한다`() {
|
fun `follow notify source는 미팔로우 직접 팔로우와 팔로우 중 알림 sheet를 연결한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("CreatorFollowNotifyFragment"))
|
assertTrue(source.contains("CreatorFollowNotifyFragment"))
|
||||||
@@ -73,9 +73,9 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `layout source는 HorizontalScrollView 기반 7개 탭 컨테이너와 RecyclerView를 가진다`() {
|
fun `layout source는 HorizontalScrollView 기반 7개 탭 컨테이너와 RecyclerView를 가진다`() {
|
||||||
val layout = projectFile("app/src/main/res/layout/activity_creator_channel_home.xml").readText()
|
val layout = projectFile("app/src/main/res/layout/activity_creator_channel.xml").readText()
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(layout.contains("<HorizontalScrollView"))
|
assertTrue(layout.contains("<HorizontalScrollView"))
|
||||||
@@ -91,9 +91,9 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `title bar source는 Figma 상태별 capsule 구조를 사용한다`() {
|
fun `title bar source는 Figma 상태별 capsule 구조를 사용한다`() {
|
||||||
val layout = projectFile("app/src/main/res/layout/activity_creator_channel_home.xml").readText()
|
val layout = projectFile("app/src/main/res/layout/activity_creator_channel.xml").readText()
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(layout.contains("@+id/layout_follow_capsule"))
|
assertTrue(layout.contains("@+id/layout_follow_capsule"))
|
||||||
@@ -110,7 +110,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
fun `creator channel home은 status bar 뒤까지 header를 그리고 자체 inset을 처리한다`() {
|
fun `creator channel home은 status bar 뒤까지 header를 그리고 자체 inset을 처리한다`() {
|
||||||
val baseActivity = projectFile("app/src/main/java/kr/co/vividnext/sodalive/base/BaseActivity.kt").readText()
|
val baseActivity = projectFile("app/src/main/java/kr/co/vividnext/sodalive/base/BaseActivity.kt").readText()
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(baseActivity.contains("shouldApplySystemBarTopInset"))
|
assertTrue(baseActivity.contains("shouldApplySystemBarTopInset"))
|
||||||
@@ -123,7 +123,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `scroll source는 tab sticky와 title bar black 전환을 연결한다`() {
|
fun `scroll source는 tab sticky와 title bar black 전환을 연결한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("setupScrollListener"))
|
assertTrue(source.contains("setupScrollListener"))
|
||||||
@@ -139,7 +139,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `creator channel home은 어두운 header 위 status bar icon을 밝게 표시한다`() {
|
fun `creator channel home은 어두운 header 위 status bar icon을 밝게 표시한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("WindowCompat.getInsetsController(window, binding.root)"))
|
assertTrue(source.contains("WindowCompat.getInsetsController(window, binding.root)"))
|
||||||
@@ -149,7 +149,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `tab source는 Figma 기준 selected indicator와 16sp 고정 폭 탭을 사용한다`() {
|
fun `tab source는 Figma 기준 selected indicator와 16sp 고정 폭 탭을 사용한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("createTabView(tab, isSelected = tab == selectedTab)"))
|
assertTrue(source.contains("createTabView(tab, isSelected = tab == selectedTab)"))
|
||||||
@@ -162,7 +162,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `tab source는 홈 기본 선택과 홈 외 탭 no op 정책을 명시한다`() {
|
fun `tab source는 홈 기본 선택과 홈 외 탭 no op 정책을 명시한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("private var selectedTab: CreatorChannelTab = CreatorChannelTab.Home"))
|
assertTrue(source.contains("private var selectedTab: CreatorChannelTab = CreatorChannelTab.Home"))
|
||||||
@@ -587,7 +587,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `일정 클릭은 콘텐츠 상세와 라이브 상세 이동 계약을 연결한다`() {
|
fun `일정 클릭은 콘텐츠 상세와 라이브 상세 이동 계약을 연결한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("CreatorChannelHomeSectionAdapter(::onScheduleClicked"))
|
assertTrue(source.contains("CreatorChannelHomeSectionAdapter(::onScheduleClicked"))
|
||||||
@@ -661,7 +661,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
@Test
|
@Test
|
||||||
fun `오디오 컨텐츠 클릭은 콘텐츠 상세 이동 계약을 연결한다`() {
|
fun `오디오 컨텐츠 클릭은 콘텐츠 상세 이동 계약을 연결한다`() {
|
||||||
val source = projectFile(
|
val source = projectFile(
|
||||||
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelHomeActivity.kt"
|
"app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/CreatorChannelActivity.kt"
|
||||||
).readText()
|
).readText()
|
||||||
|
|
||||||
assertTrue(source.contains("CreatorChannelHomeSectionAdapter(::onScheduleClicked, ::onAudioContentClicked)"))
|
assertTrue(source.contains("CreatorChannelHomeSectionAdapter(::onScheduleClicked, ::onAudioContentClicked)"))
|
||||||
@@ -973,14 +973,14 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `Manifest source는 CreatorChannelHomeActivity를 등록한다`() {
|
fun `Manifest source는 CreatorChannelActivity를 등록한다`() {
|
||||||
val manifest = projectFile("app/src/main/AndroidManifest.xml").readText()
|
val manifest = projectFile("app/src/main/AndroidManifest.xml").readText()
|
||||||
|
|
||||||
assertTrue(manifest.contains(".v2.creator.channel.CreatorChannelHomeActivity"))
|
assertTrue(manifest.contains(".v2.creator.channel.CreatorChannelActivity"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `기존 크리에이터 채널 진입점은 UserProfileActivity 대신 CreatorChannelHomeActivity로 이동한다`() {
|
fun `기존 크리에이터 채널 진입점은 UserProfileActivity 대신 CreatorChannelActivity로 이동한다`() {
|
||||||
val sourceRoot = projectFile("app/src/main/java")
|
val sourceRoot = projectFile("app/src/main/java")
|
||||||
val directUserProfileRoutes = sourceRoot
|
val directUserProfileRoutes = sourceRoot
|
||||||
.walkTopDown()
|
.walkTopDown()
|
||||||
@@ -1011,7 +1011,7 @@ class CreatorChannelHomeActivitySourceTest {
|
|||||||
assertTrue(source.contains("onClickNickname = { memberId ->"))
|
assertTrue(source.contains("onClickNickname = { memberId ->"))
|
||||||
assertTrue(source.contains("Intent(applicationContext, UserProfileActivity::class.java)"))
|
assertTrue(source.contains("Intent(applicationContext, UserProfileActivity::class.java)"))
|
||||||
assertTrue(source.contains("putExtra(Constants.EXTRA_USER_ID, memberId)"))
|
assertTrue(source.contains("putExtra(Constants.EXTRA_USER_ID, memberId)"))
|
||||||
assertFalse(source.contains("CreatorChannelHomeActivity.newIntent(applicationContext, memberId)"))
|
assertFalse(source.contains("CreatorChannelActivity.newIntent(applicationContext, memberId)"))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@@ -30,7 +30,7 @@ import kr.co.vividnext.sodalive.common.formatUtcRelativeTimeText
|
|||||||
import kr.co.vividnext.sodalive.explorer.profile.creator_community.all.CreatorCommunityAllActivity
|
import kr.co.vividnext.sodalive.explorer.profile.creator_community.all.CreatorCommunityAllActivity
|
||||||
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
import kr.co.vividnext.sodalive.settings.event.EventDetailActivity
|
||||||
import kr.co.vividnext.sodalive.settings.event.EventItem
|
import kr.co.vividnext.sodalive.settings.event.EventItem
|
||||||
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelHomeActivity
|
import kr.co.vividnext.sodalive.v2.creator.channel.CreatorChannelActivity
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.data.HomeActiveCreatorItem
|
import kr.co.vividnext.sodalive.v2.main.home.data.HomeActiveCreatorItem
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.data.HomeBannerItem
|
import kr.co.vividnext.sodalive.v2.main.home.data.HomeBannerItem
|
||||||
import kr.co.vividnext.sodalive.v2.main.home.data.HomeCreatorItem
|
import kr.co.vividnext.sodalive.v2.main.home.data.HomeCreatorItem
|
||||||
@@ -1013,8 +1013,8 @@ class HomeMainFragmentLayoutTest {
|
|||||||
|
|
||||||
assertEquals(EventDetailActivity::class.java.name, eventIntent.component?.className)
|
assertEquals(EventDetailActivity::class.java.name, eventIntent.component?.className)
|
||||||
assertEquals(eventItem, eventIntent.getParcelableExtra(Constants.EXTRA_EVENT))
|
assertEquals(eventItem, eventIntent.getParcelableExtra(Constants.EXTRA_EVENT))
|
||||||
assertEquals(CreatorChannelHomeActivity::class.java.name, creatorIntent.component?.className)
|
assertEquals(CreatorChannelActivity::class.java.name, creatorIntent.component?.className)
|
||||||
assertEquals(2L, creatorIntent.getLongExtra(CreatorChannelHomeActivity.EXTRA_CREATOR_ID, 0L))
|
assertEquals(2L, creatorIntent.getLongExtra(CreatorChannelActivity.EXTRA_CREATOR_ID, 0L))
|
||||||
assertEquals(SeriesDetailActivity::class.java.name, seriesIntent.component?.className)
|
assertEquals(SeriesDetailActivity::class.java.name, seriesIntent.component?.className)
|
||||||
assertEquals(3L, seriesIntent.getLongExtra(Constants.EXTRA_SERIES_ID, 0L))
|
assertEquals(3L, seriesIntent.getLongExtra(Constants.EXTRA_SERIES_ID, 0L))
|
||||||
assertEquals(android.content.Intent.ACTION_VIEW, webIntent.action)
|
assertEquals(android.content.Intent.ACTION_VIEW, webIntent.action)
|
||||||
|
|||||||
Reference in New Issue
Block a user