admob 제거
This commit is contained in:
parent
8266167c02
commit
41d175a19f
|
@ -53,19 +53,6 @@ android {
|
|||
buildConfigField 'String', 'BOOTPAY_APP_ID', '"64c35be1d25985001dc50c87"'
|
||||
buildConfigField 'String', 'AGORA_APP_ID', '"e34e40046e9847baba3adfe2b8ffb4f6"'
|
||||
buildConfigField 'String', 'AGORA_APP_CERTIFICATE', '"15cadeea4ba94ff7b091c9a10f4bf4a6"'
|
||||
|
||||
// manifest
|
||||
manifestPlaceholders["ADMOB_APP_ID"] = "ca-app-pub-1299501215847962~1110535210"
|
||||
|
||||
resValue 'string', 'admob_free_content_banner_unit_id', 'ca-app-pub-1299501215847962/8351317711'
|
||||
resValue 'string', 'admob_curation_banner_unit_id', 'ca-app-pub-1299501215847962/3008928485'
|
||||
resValue 'string', 'admob_orderlist_banner_unit_id', 'ca-app-pub-1299501215847962/7686540097'
|
||||
resValue 'string', 'admob_live_banner_unit_id', 'ca-app-pub-1299501215847962/3514241239'
|
||||
resValue 'string', 'admob_following_channel_list_banner_unit_id', 'ca-app-pub-1299501215847962/9013979925'
|
||||
resValue 'string', 'admob_live_now_all_list_banner_unit_id', 'ca-app-pub-1299501215847962/7226255534'
|
||||
resValue 'string', 'admob_creator_channel_banner_unit_id', 'ca-app-pub-1299501215847962/4594592451'
|
||||
resValue 'string', 'admob_message_banner_unit_id', 'ca-app-pub-1299501215847962/1161494343'
|
||||
resValue 'string', 'admob_explorer_banner_unit_id', 'ca-app-pub-1299501215847962/6200754952'
|
||||
}
|
||||
|
||||
debug {
|
||||
|
@ -77,19 +64,6 @@ android {
|
|||
buildConfigField 'String', 'BOOTPAY_APP_ID', '"6242a7772701800023f68b2e"'
|
||||
buildConfigField 'String', 'AGORA_APP_ID', '"b96574e191a9430fa54c605528aa3ef7"'
|
||||
buildConfigField 'String', 'AGORA_APP_CERTIFICATE', '"ae18ade3afcf4086bd4397726eb0654c"'
|
||||
|
||||
// manifest
|
||||
manifestPlaceholders["ADMOB_APP_ID"] = "ca-app-pub-1299501215847962~3769074871"
|
||||
|
||||
resValue 'string', 'admob_free_content_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_curation_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_orderlist_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_live_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_following_channel_list_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_live_now_all_list_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_creator_channel_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_message_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
resValue 'string', 'admob_explorer_banner_unit_id', 'ca-app-pub-3940256099942544/6300978111'
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
|
@ -176,8 +150,6 @@ dependencies {
|
|||
|
||||
implementation "com.michalsvec:single-row-calednar:1.0.0"
|
||||
|
||||
implementation 'com.google.android.gms:play-services-ads:22.4.0'
|
||||
|
||||
// PointClick Maven Remote Repo
|
||||
implementation 'kr.co.pointclick.sdk.offerwall:pointclick-sdk-offerwall:1.1.01'
|
||||
}
|
||||
|
|
|
@ -146,9 +146,5 @@
|
|||
android:name="com.google.firebase.messaging.default_notification_channel_id"
|
||||
android:value="@string/default_notification_channel_id" />
|
||||
<!-- [END fcm_default_channel] -->
|
||||
|
||||
<meta-data
|
||||
android:name="com.google.android.gms.ads.APPLICATION_ID"
|
||||
android:value="${ADMOB_APP_ID}" />
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
package kr.co.vividnext.sodalive.app
|
||||
|
||||
import android.app.Application
|
||||
import android.content.Context
|
||||
import android.content.pm.ApplicationInfo
|
||||
import android.content.pm.PackageManager
|
||||
import android.os.Build
|
||||
import androidx.appcompat.app.AppCompatDelegate
|
||||
import com.google.android.gms.ads.MobileAds
|
||||
import com.google.android.gms.common.ConnectionResult
|
||||
import com.google.android.gms.common.GoogleApiAvailability
|
||||
import com.orhanobut.logger.AndroidLogAdapter
|
||||
import com.orhanobut.logger.Logger
|
||||
import kr.co.vividnext.sodalive.BuildConfig
|
||||
|
@ -30,12 +26,6 @@ class SodaLiveApp : Application() {
|
|||
AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES)
|
||||
|
||||
SharedPreferenceManager.init(applicationContext)
|
||||
|
||||
if (isGooglePlayServicesAvailable(this)) {
|
||||
MobileAds.initialize(this) {
|
||||
Logger.e("ADMOB 초기화 - ${it.adapterStatusMap}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private fun isDebuggable(): Boolean {
|
||||
|
@ -57,10 +47,4 @@ class SodaLiveApp : Application() {
|
|||
|
||||
return debuggable
|
||||
}
|
||||
|
||||
private fun isGooglePlayServicesAvailable(context: Context): Boolean {
|
||||
val googleApiAvailability = GoogleApiAvailability.getInstance()
|
||||
val resultCode = googleApiAvailability.isGooglePlayServicesAvailable(context)
|
||||
return resultCode == ConnectionResult.SUCCESS
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@ import coil.load
|
|||
import coil.transform.CircleCropTransformation
|
||||
import com.bumptech.glide.Glide
|
||||
import com.bumptech.glide.request.RequestOptions
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.google.gson.Gson
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.audio_content.AudioContentPlayService
|
||||
|
@ -96,7 +95,6 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
|||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
val intentFilter = IntentFilter(Constants.ACTION_AUDIO_CONTENT_RECEIVER)
|
||||
registerReceiver(audioContentReceiver, intentFilter)
|
||||
|
||||
|
@ -107,15 +105,9 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
|||
|
||||
override fun onPause() {
|
||||
unregisterReceiver(audioContentReceiver)
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun setupView() {
|
||||
loadingDialog = LoadingDialog(this, layoutInflater)
|
||||
binding.tvBack.text = "콘텐츠 상세"
|
||||
|
@ -270,12 +262,6 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
|||
}
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
val adRequest = AdRequest.Builder().build()
|
||||
binding.adView.visibility = View.VISIBLE
|
||||
binding.adView.loadAd(adRequest)
|
||||
}
|
||||
|
||||
private fun donation(can: Int, message: String) {
|
||||
viewModel.donation(audioContentId, can, message) {
|
||||
viewModel.getAudioContentDetail(audioContentId = audioContentId) { finish() }
|
||||
|
@ -412,8 +398,6 @@ class AudioContentDetailActivity : BaseActivity<ActivityAudioContentDetailBindin
|
|||
R.drawable.btn_audio_content_play
|
||||
}
|
||||
)
|
||||
|
||||
if ((!it.existOrdered && it.price > 0) || it.price <= 0) setupAdMob()
|
||||
}
|
||||
|
||||
viewModel.isContentPlayLoopLiveData.observe(this) {
|
||||
|
|
|
@ -12,7 +12,6 @@ import android.widget.Toast
|
|||
import androidx.core.content.ContextCompat
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.zhpan.bannerview.BaseBannerAdapter
|
||||
import com.zhpan.indicator.enums.IndicatorSlideMode
|
||||
import com.zhpan.indicator.enums.IndicatorStyle
|
||||
|
@ -59,26 +58,11 @@ class AudioContentMainFragment : BaseFragment<FragmentAudioContentMainBinding>(
|
|||
) as InputMethodManager
|
||||
|
||||
setupView()
|
||||
setupAdMob()
|
||||
bindData()
|
||||
|
||||
viewModel.getMain()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun setupView() {
|
||||
if (SharedPreferenceManager.role == MemberRole.CREATOR.name) {
|
||||
binding.llUploadContent.visibility = View.VISIBLE
|
||||
|
|
|
@ -8,7 +8,6 @@ import android.view.View
|
|||
import android.widget.Toast
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import kr.co.vividnext.sodalive.audio_content.detail.AudioContentDetailActivity
|
||||
import kr.co.vividnext.sodalive.base.BaseActivity
|
||||
import kr.co.vividnext.sodalive.common.Constants
|
||||
|
@ -30,25 +29,9 @@ class AudioContentOrderListActivity : BaseActivity<ActivityAudioContentOrderList
|
|||
super.onCreate(savedInstanceState)
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
viewModel.getAudioContentOrderList { finish() }
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun setupView() {
|
||||
loadingDialog = LoadingDialog(this, layoutInflater)
|
||||
binding.toolbar.tvBack.text = "구매목록"
|
||||
|
@ -101,10 +84,6 @@ class AudioContentOrderListActivity : BaseActivity<ActivityAudioContentOrderList
|
|||
binding.rvOrderList.adapter = adapter
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
private fun bindData() {
|
||||
viewModel.toastLiveData.observe(this) {
|
||||
|
|
|
@ -22,7 +22,6 @@ import androidx.recyclerview.widget.LinearLayoutManager
|
|||
import androidx.recyclerview.widget.RecyclerView
|
||||
import coil.load
|
||||
import coil.transform.CircleCropTransformation
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.audio_content.AudioContentActivity
|
||||
import kr.co.vividnext.sodalive.audio_content.AudioContentAdapter
|
||||
|
@ -93,28 +92,13 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>(
|
|||
finish()
|
||||
}
|
||||
bindData()
|
||||
setupAdMob()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
binding.adView2.resume()
|
||||
viewModel.getCreatorProfile(userId) { finish() }
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
binding.adView2.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
binding.adView2.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun setupView() {
|
||||
loadingDialog = LoadingDialog(this, layoutInflater)
|
||||
binding.tvBack.text = "채널"
|
||||
|
@ -143,11 +127,6 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>(
|
|||
setupAudioContentListView()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
binding.adView2.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun hideKeyboard(onAfterExecute: () -> Unit) {
|
||||
handler.postDelayed({
|
||||
imm.hideSoftInputFromWindow(
|
||||
|
|
|
@ -8,7 +8,6 @@ import android.view.View
|
|||
import android.widget.Toast
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import kr.co.vividnext.sodalive.base.BaseActivity
|
||||
import kr.co.vividnext.sodalive.common.Constants
|
||||
import kr.co.vividnext.sodalive.common.LoadingDialog
|
||||
|
@ -28,25 +27,9 @@ class FollowingCreatorActivity : BaseActivity<ActivityFollowingCreatorBinding>(
|
|||
super.onCreate(savedInstanceState)
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
viewModel.getFollowedCreatorAllList()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun setupView() {
|
||||
loadingDialog = LoadingDialog(this, layoutInflater)
|
||||
binding.toolbar.tvBack.text = "팔로잉 채널 리스트"
|
||||
|
@ -101,10 +84,6 @@ class FollowingCreatorActivity : BaseActivity<ActivityFollowingCreatorBinding>(
|
|||
binding.rvFollowingCreator.adapter = adapter
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
@SuppressLint("SetTextI18n")
|
||||
private fun bindData() {
|
||||
viewModel.toastLiveData.observe(this) {
|
||||
|
|
|
@ -16,7 +16,6 @@ import androidx.activity.result.contract.ActivityResultContracts
|
|||
import androidx.core.content.ContextCompat
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.zhpan.bannerview.BaseBannerAdapter
|
||||
import com.zhpan.indicator.enums.IndicatorSlideMode
|
||||
import com.zhpan.indicator.enums.IndicatorStyle
|
||||
|
@ -92,26 +91,11 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
|||
setupLiveNow()
|
||||
setupLiveReservation()
|
||||
setupEvent()
|
||||
setupAdMob()
|
||||
|
||||
message = "라이브를 불러오고 있습니다."
|
||||
viewModel.getSummary()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun setupView() {
|
||||
loadingDialog = LoadingDialog(requireActivity(), layoutInflater)
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ import android.view.View
|
|||
import android.widget.Toast
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import kr.co.vividnext.sodalive.audio_content.AudioContentPlayService
|
||||
import kr.co.vividnext.sodalive.base.BaseActivity
|
||||
import kr.co.vividnext.sodalive.common.Constants
|
||||
|
@ -36,25 +35,9 @@ class LiveNowAllActivity : BaseActivity<ActivityLiveNowAllBinding>(
|
|||
super.onCreate(savedInstanceState)
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
viewModel.getLiveNow()
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun setupView() {
|
||||
binding.toolbar.tvBack.text = "지금 라이브 중 전체보기"
|
||||
binding.toolbar.tvBack.setOnClickListener { finish() }
|
||||
|
@ -137,10 +120,6 @@ class LiveNowAllActivity : BaseActivity<ActivityLiveNowAllBinding>(
|
|||
}
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun enterLiveRoom(roomId: Long) {
|
||||
startService(
|
||||
Intent(applicationContext, AudioContentPlayService::class.java).apply {
|
||||
|
|
|
@ -12,7 +12,6 @@ import android.widget.FrameLayout
|
|||
import android.widget.Toast
|
||||
import coil.load
|
||||
import coil.transform.CircleCropTransformation
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||
import kr.co.vividnext.sodalive.R
|
||||
|
@ -59,29 +58,8 @@ class LiveRoomDetailFragment(
|
|||
behavior.state = BottomSheetBehavior.STATE_EXPANDED
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
viewModel.getDetail(roomId) { dismiss() }
|
||||
|
||||
binding.ivClose.setOnClickListener { dismiss() }
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
viewModel.getDetail(roomId) { dismiss() }
|
||||
}
|
||||
|
||||
private fun bindData() {
|
||||
|
|
|
@ -2,7 +2,6 @@ package kr.co.vividnext.sodalive.message
|
|||
|
||||
import android.os.Bundle
|
||||
import android.view.View
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.google.android.material.tabs.TabLayout
|
||||
import kr.co.vividnext.sodalive.R
|
||||
import kr.co.vividnext.sodalive.base.BaseFragment
|
||||
|
@ -15,24 +14,9 @@ class MessageFragment : BaseFragment<FragmentMessageBinding>(FragmentMessageBind
|
|||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
setupView()
|
||||
setupAdMob()
|
||||
changeFragment("message")
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun setupView() {
|
||||
val tabs = binding.tabs
|
||||
tabs.addTab(tabs.newTab().setText("문자").setTag("message"))
|
||||
|
|
|
@ -7,7 +7,6 @@ import android.os.Bundle
|
|||
import android.view.View
|
||||
import androidx.recyclerview.widget.LinearLayoutManager
|
||||
import androidx.recyclerview.widget.RecyclerView
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.jakewharton.rxbinding4.widget.textChanges
|
||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||
|
@ -30,7 +29,6 @@ class SelectMessageRecipientActivity : BaseActivity<ActivitySelectMessageRecipie
|
|||
super.onCreate(savedInstanceState)
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
viewModel.searchUser("")
|
||||
}
|
||||
|
||||
|
@ -72,25 +70,6 @@ class SelectMessageRecipientActivity : BaseActivity<ActivitySelectMessageRecipie
|
|||
recyclerView.adapter = adapter
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
private fun bindData() {
|
||||
compositeDisposable.add(
|
||||
|
|
|
@ -9,7 +9,6 @@ import android.widget.Toast
|
|||
import androidx.activity.result.ActivityResultLauncher
|
||||
import androidx.activity.result.contract.ActivityResultContracts
|
||||
import androidx.core.content.IntentCompat
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.jakewharton.rxbinding4.widget.textChanges
|
||||
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers
|
||||
import io.reactivex.rxjava3.schedulers.Schedulers
|
||||
|
@ -54,7 +53,6 @@ class TextMessageWriteActivity : BaseActivity<ActivityTextMessageWriteBinding>(
|
|||
}
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
}
|
||||
|
||||
@SuppressLint("SetTextI18n")
|
||||
|
@ -93,25 +91,6 @@ class TextMessageWriteActivity : BaseActivity<ActivityTextMessageWriteBinding>(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun bindData() {
|
||||
compositeDisposable.add(
|
||||
binding.etMessage.textChanges().skip(1)
|
||||
|
|
|
@ -22,7 +22,6 @@ import androidx.core.content.IntentCompat
|
|||
import androidx.core.content.res.ResourcesCompat
|
||||
import coil.load
|
||||
import coil.transform.RoundedCornersTransformation
|
||||
import com.google.android.gms.ads.AdRequest
|
||||
import com.google.android.material.bottomsheet.BottomSheetBehavior
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialog
|
||||
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
|
||||
|
@ -153,7 +152,6 @@ class VoiceMessageWriteFragment(
|
|||
loadingDialog = LoadingDialog(requireActivity(), layoutInflater)
|
||||
|
||||
bindData()
|
||||
setupAdMob()
|
||||
|
||||
binding.ivClose.setOnClickListener { dismiss() }
|
||||
|
||||
|
@ -261,19 +259,7 @@ class VoiceMessageWriteFragment(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
binding.adView.resume()
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
binding.adView.pause()
|
||||
super.onPause()
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
binding.adView.destroy()
|
||||
|
||||
if (mediaPlayer != null) {
|
||||
mediaPlayer!!.release()
|
||||
mediaPlayer = null
|
||||
|
@ -300,10 +286,6 @@ class VoiceMessageWriteFragment(
|
|||
super.onDestroy()
|
||||
}
|
||||
|
||||
private fun setupAdMob() {
|
||||
binding.adView.loadAd(AdRequest.Builder().build())
|
||||
}
|
||||
|
||||
private fun startRecording() {
|
||||
if (mediaRecorder == null) {
|
||||
// safety check, don't start a new recording if one is already going
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -537,15 +536,6 @@
|
|||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="26.7dp"
|
||||
android:visibility="gone"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_free_content_banner_unit_id" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/black"
|
||||
|
@ -10,17 +9,9 @@
|
|||
android:id="@+id/toolbar"
|
||||
layout="@layout/detail_toolbar" />
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginVertical="6.7dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_orderlist_banner_unit_id" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_order_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
android:layout_height="match_parent"
|
||||
android:layout_marginTop="6.7dp" />
|
||||
</LinearLayout>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -10,17 +9,6 @@
|
|||
android:id="@+id/toolbar"
|
||||
layout="@layout/detail_toolbar" />
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginVertical="6.7dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_following_channel_list_banner_unit_id"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_total_count"
|
||||
android:layout_width="0dp"
|
||||
|
@ -30,7 +18,7 @@
|
|||
android:paddingHorizontal="13.3dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/ad_view">
|
||||
app:layout_constraintTop_toBottomOf="@+id/toolbar">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -69,5 +57,4 @@
|
|||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/ll_total_count" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
@ -9,14 +8,6 @@
|
|||
android:id="@+id/toolbar"
|
||||
layout="@layout/detail_toolbar" />
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginVertical="6.7dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_live_now_all_list_banner_unit_id" />
|
||||
|
||||
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
|
||||
android:id="@+id/swipe_refresh_layout"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -30,14 +29,6 @@
|
|||
android:textSize="13.3sp"
|
||||
tools:ignore="LabelFor" />
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13.3dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_message_banner_unit_id" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_recipient"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -84,19 +83,10 @@
|
|||
|
||||
</RelativeLayout>
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/rl_recipient"
|
||||
android:layout_marginTop="13.3dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_message_banner_unit_id" />
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ad_view"
|
||||
android:layout_below="@+id/rl_recipient"
|
||||
android:layout_marginHorizontal="13.3dp"
|
||||
android:layout_marginTop="13.3dp"
|
||||
android:background="@drawable/bg_round_corner_10_232323_9970ff">
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -238,14 +237,6 @@
|
|||
android:visibility="gone" />
|
||||
</RelativeLayout>
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="26.7dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_creator_channel_banner_unit_id" />
|
||||
|
||||
<include
|
||||
android:id="@+id/layout_user_profile_audio_content"
|
||||
layout="@layout/layout_user_profile_audio_content"
|
||||
|
@ -299,14 +290,6 @@
|
|||
android:background="@color/color_232323" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="26.7dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_creator_channel_banner_unit_id" />
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_user_profile_similar_creator"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
|
@ -159,14 +158,6 @@
|
|||
android:paddingHorizontal="13.3dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_curation_banner_unit_id" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_curation"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
@ -35,14 +34,6 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="13.3dp" />
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="40dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_live_banner_unit_id" />
|
||||
|
||||
<include
|
||||
android:id="@+id/layout_live_now"
|
||||
layout="@layout/layout_live_now"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -11,16 +10,6 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_live_banner_unit_id"
|
||||
ads:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_close"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -29,8 +18,8 @@
|
|||
android:paddingHorizontal="16.7dp"
|
||||
android:paddingTop="13.3dp"
|
||||
android:src="@drawable/ic_close_white"
|
||||
ads:layout_constraintTop_toBottomOf="@+id/ad_view"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
|
@ -33,14 +32,6 @@
|
|||
android:layout_height="1dp"
|
||||
android:background="@color/color_88909090" />
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="13.3dp"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_message_banner_unit_id" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/container"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:ads="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
|
@ -11,16 +10,6 @@
|
|||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.google.android.gms.ads.AdView
|
||||
android:id="@+id/ad_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
ads:adSize="SMART_BANNER"
|
||||
ads:adUnitId="@string/admob_message_banner_unit_id"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -30,8 +19,8 @@
|
|||
android:text="음성메시지"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="18.3sp"
|
||||
ads:layout_constraintTop_toBottomOf="@+id/ad_view"
|
||||
app:layout_constraintStart_toStartOf="parent" />
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv_close"
|
||||
|
@ -41,8 +30,8 @@
|
|||
android:paddingHorizontal="26.7dp"
|
||||
android:paddingTop="26.7dp"
|
||||
android:src="@drawable/ic_close_white"
|
||||
ads:layout_constraintTop_toBottomOf="@+id/ad_view"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/rl_select_recipient"
|
||||
|
|
Loading…
Reference in New Issue