Admob 제거
This commit is contained in:
@@ -1,33 +0,0 @@
|
||||
//
|
||||
// BannerAdView.swift
|
||||
// SodaLive
|
||||
//
|
||||
// Created by klaus on 2023/09/14.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import UIKit
|
||||
|
||||
import GoogleMobileAds
|
||||
|
||||
struct BannerAdView: UIViewControllerRepresentable {
|
||||
|
||||
let adUnitId: String
|
||||
|
||||
func makeUIViewController(context: Context) -> some UIViewController {
|
||||
let viewController = UIViewController()
|
||||
|
||||
let bannerSize = GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(UIScreen.main.bounds.width)
|
||||
let banner = GADBannerView(adSize: bannerSize)
|
||||
banner.rootViewController = viewController
|
||||
viewController.view.addSubview(banner)
|
||||
viewController.view.frame = CGRect(origin: .zero, size: bannerSize.size)
|
||||
|
||||
banner.adUnitID = adUnitId
|
||||
banner.load(GADRequest())
|
||||
|
||||
return viewController
|
||||
}
|
||||
|
||||
func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {}
|
||||
}
|
@@ -9,7 +9,6 @@ import UIKit
|
||||
|
||||
import FirebaseCore
|
||||
import FirebaseMessaging
|
||||
import GoogleMobileAds
|
||||
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
@@ -17,8 +16,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
|
||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
|
||||
FirebaseApp.configure()
|
||||
GADMobileAds.sharedInstance().start()
|
||||
|
||||
Messaging.messaging().delegate = self
|
||||
|
||||
// For iOS 10 display notification (sent via APNS)
|
||||
|
@@ -119,15 +119,6 @@ struct ContentDetailView: View {
|
||||
}
|
||||
}
|
||||
|
||||
if audioContent.price <= 0 || (audioContent.price > 0 && !audioContent.existOrdered) {
|
||||
BannerAdView(adUnitId: FREE_CONTENT_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 26.7)
|
||||
}
|
||||
|
||||
ContentDetailOtherContentView(
|
||||
title: "크리에이터의 다른 콘텐츠",
|
||||
items: audioContent.creatorOtherContentList,
|
||||
|
@@ -56,13 +56,6 @@ struct ContentMainView: View {
|
||||
)
|
||||
.padding(.horizontal, 13.3)
|
||||
|
||||
BannerAdView(adUnitId: CURATION_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 30)
|
||||
|
||||
if viewModel.curationList.count > 0 {
|
||||
ContentMainCurationView(items: viewModel.curationList)
|
||||
.padding(.top, 40)
|
||||
|
@@ -14,13 +14,3 @@ let AGORA_APP_ID = "b96574e191a9430fa54c605528aa3ef7"
|
||||
let AGORA_APP_CERTIFICATE = "ae18ade3afcf4086bd4397726eb0654c"
|
||||
|
||||
let BOOTPAY_APP_ID = "6242a7772701800023f68b2f"
|
||||
let FREE_CONTENT_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let CURATION_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let ORDERLIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let LIVE_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let FOLLOWING_CHANNEL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let CREATOR_CHANNEL_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let MESSAGE_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let LIVE_ROOM_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
let EXPLORER_BANNER_AD_UNIT_ID = "ca-app-pub-3940256099942544/2934735716"
|
||||
|
@@ -146,15 +146,6 @@ struct ExplorerView: View {
|
||||
}
|
||||
}
|
||||
.frame(width: screenSize().width - 26.7, alignment: .leading)
|
||||
|
||||
if index == 1 {
|
||||
BannerAdView(adUnitId: EXPLORER_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 26.7)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct UserProfileView: View {
|
||||
|
||||
@@ -91,13 +90,6 @@ struct UserProfileView: View {
|
||||
}
|
||||
}
|
||||
|
||||
BannerAdView(adUnitId: CREATOR_CHANNEL_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 26.7)
|
||||
|
||||
if creatorProfile.contentList.count > 0 ||
|
||||
userId == UserDefaults.int(forKey: .userId)
|
||||
{
|
||||
@@ -163,13 +155,6 @@ struct UserProfileView: View {
|
||||
.padding(.top, 26.7)
|
||||
}
|
||||
|
||||
BannerAdView(adUnitId: CREATOR_CHANNEL_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 26.7)
|
||||
|
||||
VStack(spacing: 0) {
|
||||
if creatorProfile.similarCreatorList.count > 0 {
|
||||
VStack(spacing: 26.7) {
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct FollowCreatorView: View {
|
||||
|
||||
@@ -17,13 +16,6 @@ struct FollowCreatorView: View {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "팔로잉 채널리스트")
|
||||
|
||||
BannerAdView(adUnitId: FOLLOWING_CHANNEL_LIST_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.vertical, 6.7)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("총 ")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
@@ -40,6 +32,7 @@ struct FollowCreatorView: View {
|
||||
Spacer()
|
||||
}
|
||||
.padding(.horizontal, 13.3)
|
||||
.padding(.top, 6.7)
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
VStack(spacing: 13.3) {
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
import RefreshableScrollView
|
||||
|
||||
struct LiveView: View {
|
||||
@@ -42,13 +41,6 @@ struct LiveView: View {
|
||||
)
|
||||
}
|
||||
|
||||
BannerAdView(adUnitId: LIVE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 40)
|
||||
|
||||
SectionLiveNowView(
|
||||
items: viewModel.liveNowItems,
|
||||
onClickParticipant: {
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
import RefreshableScrollView
|
||||
|
||||
struct LiveNowAllView: View {
|
||||
@@ -22,13 +21,6 @@ struct LiveNowAllView: View {
|
||||
VStack(spacing: 0) {
|
||||
DetailNavigationBar(title: "지금 라이브 중 전체보기")
|
||||
|
||||
BannerAdView(adUnitId: LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.vertical, 6.7)
|
||||
|
||||
RefreshableScrollView(
|
||||
refreshing: $viewModel.isRefresh,
|
||||
action: {
|
||||
|
@@ -7,7 +7,6 @@
|
||||
|
||||
import SwiftUI
|
||||
import Kingfisher
|
||||
import GoogleMobileAds
|
||||
|
||||
struct LiveDetailView: View {
|
||||
|
||||
@@ -57,12 +56,6 @@ struct LiveDetailView: View {
|
||||
VStack {
|
||||
Spacer()
|
||||
VStack(spacing: 0) {
|
||||
BannerAdView(adUnitId: LIVE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
|
||||
HStack {
|
||||
Spacer()
|
||||
Image("ic_close_white")
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct MessageView: View {
|
||||
|
||||
@@ -19,13 +18,6 @@ struct MessageView: View {
|
||||
|
||||
Tab()
|
||||
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
Text("※ 보관하지 않은 받은 메시지는 3일 후, 자동 삭제됩니다.")
|
||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||
.padding(.top, 20)
|
||||
|
@@ -7,7 +7,6 @@
|
||||
|
||||
import SwiftUI
|
||||
import Kingfisher
|
||||
import GoogleMobileAds
|
||||
|
||||
struct SelectRecipientView: View {
|
||||
|
||||
@@ -36,12 +35,6 @@ struct SelectRecipientView: View {
|
||||
|
||||
ScrollView(.vertical, showsIndicators: false) {
|
||||
LazyVStack(spacing: 26.7) {
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
|
||||
ForEach(viewModel.users, id: \.self) { user in
|
||||
HStack(spacing: 13.3) {
|
||||
KFImage(URL(string: user.profileImageUrl))
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct TextMessageWriteView: View {
|
||||
|
||||
@@ -81,13 +80,6 @@ struct TextMessageWriteView: View {
|
||||
}
|
||||
.frame(height: 50)
|
||||
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.top, 13.3)
|
||||
|
||||
TextViewWrapper(
|
||||
text: $viewModel.message,
|
||||
placeholder: viewModel.placeholder,
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct VoiceMessageWriteView: View {
|
||||
|
||||
@@ -35,12 +34,6 @@ struct VoiceMessageWriteView: View {
|
||||
VStack {
|
||||
Spacer()
|
||||
VStack(spacing: 0) {
|
||||
BannerAdView(adUnitId: MESSAGE_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
|
||||
HStack(spacing: 0) {
|
||||
Text("음성메시지")
|
||||
.font(.custom(Font.bold.rawValue, size: 18.3))
|
||||
|
@@ -6,7 +6,6 @@
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
import GoogleMobileAds
|
||||
|
||||
struct OrderListAllView: View {
|
||||
|
||||
@@ -39,13 +38,6 @@ struct OrderListAllView: View {
|
||||
LazyVStack(spacing: 10.7) {
|
||||
ScrollerToTop(reader: reader, scrollOnChange: $viewModel.scrollToTop)
|
||||
|
||||
BannerAdView(adUnitId: ORDERLIST_BANNER_AD_UNIT_ID)
|
||||
.frame(
|
||||
width: screenSize().width,
|
||||
height: GADCurrentOrientationAnchoredAdaptiveBannerAdSizeWithWidth(screenSize().width).size.height
|
||||
)
|
||||
.padding(.vertical, 6.7)
|
||||
|
||||
ForEach(0..<viewModel.orderList.count, id: \.self) { index in
|
||||
let item = viewModel.orderList[index]
|
||||
OrderListItemView(item: item)
|
||||
@@ -56,6 +48,7 @@ struct OrderListAllView: View {
|
||||
.setAppStep(step: .contentDetail(contentId: item.contentId))
|
||||
}
|
||||
.padding(.horizontal, 13.3)
|
||||
.padding(.top, 6.7)
|
||||
.onAppear {
|
||||
if index == viewModel.orderList.count - 1 {
|
||||
viewModel.getOrderList()
|
||||
|
@@ -14,13 +14,3 @@ let AGORA_APP_ID = "e34e40046e9847baba3adfe2b8ffb4f6"
|
||||
let AGORA_APP_CERTIFICATE = "15cadeea4ba94ff7b091c9a10f4bf4a6"
|
||||
|
||||
let BOOTPAY_APP_ID = "64c35be1d25985001dc50c88"
|
||||
let FREE_CONTENT_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/7126167277"
|
||||
let CURATION_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/7093064604"
|
||||
let ORDERLIST_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/5095217535"
|
||||
let LIVE_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/1371594942"
|
||||
let FOLLOWING_CHANNEL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/2254551334"
|
||||
let LIVE_NOW_ALL_LIST_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/2446123029"
|
||||
let CREATOR_CHANNEL_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/3614614905"
|
||||
let MESSAGE_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/6432349937"
|
||||
let LIVE_ROOM_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/1111778485"
|
||||
let EXPLORER_BANNER_AD_UNIT_ID = "ca-app-pub-1299501215847962/9823185638"
|
||||
|
Reference in New Issue
Block a user