Skip to content

Commit 68b1e7f

Browse files
committed
rename all demo occurence to `sample
1 parent 555960e commit 68b1e7f

File tree

147 files changed

+106
-109
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+106
-109
lines changed

Podfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
project 'TeadsDemoApp.xcodeproj'
1+
project 'TeadsSampleApp.xcodeproj'
22

33
# Uncomment the next line to define a global platform for your project
44
# platform :ios, '10.0'
55

6-
target 'TeadsDemoApp' do
6+
target 'TeadsSampleApp' do
77
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
88
use_frameworks!
99

10-
# Pods for TeadsDemoApp
10+
# Pods for TeadsSampleApp
1111
pod 'GoogleMobileAdsMediationTeads', '4.8.0'
1212
pod 'MoPub-Teads-Adapters', '4.8.0'
1313
pod 'TeadsSASAdapter', '4.8.0'

Podfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@ SPEC CHECKSUMS:
9090
TeadsSASAdapter: d8966f7856d9e117af76df2f7a5adeaab2600b1a
9191
TeadsSDK: 2eb77986f95f0644b681ac86edc2f56e4faa7cb0
9292

93-
PODFILE CHECKSUM: db26ca30ea40e3a2ba4b94cc0d71b93b136e3988
93+
PODFILE CHECKSUM: eae1089d2208fa39dbb41ecbaf626603f64da49a
9494

9595
COCOAPODS: 1.10.0

TeadsDemoApp.xcodeproj/project.pbxproj renamed to TeadsSampleApp.xcodeproj/project.pbxproj

+43-43
Large diffs are not rendered by default.

TeadsDemoApp.xcodeproj/xcshareddata/xcschemes/TeadsDemoApp.xcscheme renamed to TeadsSampleApp.xcodeproj/xcshareddata/xcschemes/TeadsDemoApp.xcscheme

+14-18
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<BuildableReference
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "B5555A311F7CDF80007406D4"
18-
BuildableName = "TeadsDemoApp.app"
19-
BlueprintName = "TeadsDemoApp"
20-
ReferencedContainer = "container:TeadsDemoApp.xcodeproj">
18+
BuildableName = "TeadsSampleApp.app"
19+
BlueprintName = "TeadsSampleApp"
20+
ReferencedContainer = "container:TeadsSampleApp.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
2323
</BuildActionEntries>
@@ -27,19 +27,17 @@
2727
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2828
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
2929
shouldUseLaunchSchemeArgsEnv = "YES">
30-
<Testables>
31-
</Testables>
3230
<MacroExpansion>
3331
<BuildableReference
3432
BuildableIdentifier = "primary"
3533
BlueprintIdentifier = "B5555A311F7CDF80007406D4"
36-
BuildableName = "TeadsDemoApp.app"
37-
BlueprintName = "TeadsDemoApp"
38-
ReferencedContainer = "container:TeadsDemoApp.xcodeproj">
34+
BuildableName = "TeadsSampleApp.app"
35+
BlueprintName = "TeadsSampleApp"
36+
ReferencedContainer = "container:TeadsSampleApp.xcodeproj">
3937
</BuildableReference>
4038
</MacroExpansion>
41-
<AdditionalOptions>
42-
</AdditionalOptions>
39+
<Testables>
40+
</Testables>
4341
</TestAction>
4442
<LaunchAction
4543
buildConfiguration = "Debug"
@@ -56,13 +54,11 @@
5654
<BuildableReference
5755
BuildableIdentifier = "primary"
5856
BlueprintIdentifier = "B5555A311F7CDF80007406D4"
59-
BuildableName = "TeadsDemoApp.app"
60-
BlueprintName = "TeadsDemoApp"
61-
ReferencedContainer = "container:TeadsDemoApp.xcodeproj">
57+
BuildableName = "TeadsSampleApp.app"
58+
BlueprintName = "TeadsSampleApp"
59+
ReferencedContainer = "container:TeadsSampleApp.xcodeproj">
6260
</BuildableReference>
6361
</BuildableProductRunnable>
64-
<AdditionalOptions>
65-
</AdditionalOptions>
6662
</LaunchAction>
6763
<ProfileAction
6864
buildConfiguration = "Release"
@@ -75,9 +71,9 @@
7571
<BuildableReference
7672
BuildableIdentifier = "primary"
7773
BlueprintIdentifier = "B5555A311F7CDF80007406D4"
78-
BuildableName = "TeadsDemoApp.app"
79-
BlueprintName = "TeadsDemoApp"
80-
ReferencedContainer = "container:TeadsDemoApp.xcodeproj">
74+
BuildableName = "TeadsSampleApp.app"
75+
BlueprintName = "TeadsSampleApp"
76+
ReferencedContainer = "container:TeadsSampleApp.xcodeproj">
8177
</BuildableReference>
8278
</BuildableProductRunnable>
8379
</ProfileAction>

TeadsDemoApp.xcworkspace/contents.xcworkspacedata renamed to TeadsSampleApp.xcworkspace/contents.xcworkspacedata

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

TeadsDemoApp/AppDelegate.swift renamed to TeadsSampleApp/AppDelegate.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// AppDelegate.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 28/09/2017.
66
// Copyright © 2018 Teads. All rights reserved.

TeadsDemoApp/Cells/PidTableViewCell.swift renamed to TeadsSampleApp/Cells/PidTableViewCell.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// PidTableViewCell.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 22/11/2017.
66
// Copyright © 2018 Teads. All rights reserved.

TeadsDemoApp/Cells/DemoTableViewCell.swift renamed to TeadsSampleApp/Cells/SampleTableViewCell.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
//
2-
// DemoTableViewCell.swift
3-
// TeadsDemoApp
2+
// SampleTableViewCell.swift
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 28/09/2017.
66
// Copyright © 2018 Teads. All rights reserved.
77
//
88

99
import UIKit
1010

11-
class DemoTableViewCell: UITableViewCell {
11+
class SampleTableViewCell: UITableViewCell {
1212

13-
@IBOutlet weak var demoLabel: UILabel!
13+
@IBOutlet weak var sampleLabel: UILabel!
1414
override func awakeFromNib() {
1515
super.awakeFromNib()
1616
// Initialization code

TeadsDemoApp/Controllers/InRead/Admob/ScrollView/InReadAdmobScrollViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Admob/ScrollView/InReadAdmobScrollViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadAdmobScrollViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Copyright © 2018 Teads. All rights reserved.
66
//

TeadsDemoApp/Controllers/InRead/Admob/TableView/InReadAdmobTableViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Admob/TableView/InReadAdmobTableViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadAdmobTableViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 15/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Controllers/InRead/Admob/WebView/InReadAdmobWebViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Admob/WebView/InReadAdmobWebViewController.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadAdmobWebViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 03/07/2019.
66
// Copyright © 2019 Teads. All rights reserved.
@@ -24,7 +24,7 @@ class InReadAdmobWebViewController: TeadsViewController {
2424
override func viewDidLoad() {
2525
super.viewDidLoad()
2626

27-
guard let content = Bundle.main.path(forResource: "demo", ofType: "html"),
27+
guard let content = Bundle.main.path(forResource: "sample", ofType: "html"),
2828
let contentString = try? String(contentsOfFile: content) else {
2929
return
3030
}
@@ -67,28 +67,28 @@ class InReadAdmobWebViewController: TeadsViewController {
6767
extension InReadAdmobWebViewController: GADBannerViewDelegate {
6868

6969
func adViewDidReceiveAd(_ bannerView: GADBannerView) {
70-
print("DemoApp: banner is loaded.")
70+
print("SampleApp: banner is loaded.")
7171
}
7272

7373
func adView(_ bannerView: GADBannerView, didFailToReceiveAdWithError error: GADRequestError) {
74-
print("DemoApp: banner failed to load with error: \(error)")
74+
print("SampleApp: banner failed to load with error: \(error)")
7575
webSync.webViewHelper.closeSlot()
7676
}
7777

7878
func adViewWillPresentScreen(_ bannerView: GADBannerView) {
79-
print("DemoApp: banner will present screen.")
79+
print("SampleApp: banner will present screen.")
8080
}
8181

8282
func adViewWillDismissScreen(_ bannerView: GADBannerView) {
83-
print("DemoApp: banner will dismiss screen.")
83+
print("SampleApp: banner will dismiss screen.")
8484
}
8585

8686
func adViewDidDismissScreen(_ bannerView: GADBannerView) {
87-
print("DemoApp: banner did dismiss screen.")
87+
print("SampleApp: banner did dismiss screen.")
8888
}
8989

9090
func adViewWillLeaveApplication(_ bannerView: GADBannerView) {
91-
print("DemoApp: banner will leave application.")
91+
print("SampleApp: banner will leave application.")
9292
}
9393

9494
}

TeadsDemoApp/Controllers/InRead/Direct/CollectionView/InReadDirectCollectionViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Direct/CollectionView/InReadDirectCollectionViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadDirectCollectionViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 12/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Controllers/InRead/Direct/ScrollView/InReadDirectScrollViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Direct/ScrollView/InReadDirectScrollViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadDirectScrollViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 28/09/2017.
66
// Copyright © 2018 Teads. All rights reserved.

TeadsDemoApp/Controllers/InRead/Direct/TableView/InReadDirectTableViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Direct/TableView/InReadDirectTableViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadDirectTableViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 02/10/2017.
66
// Copyright © 2018 Teads. All rights reserved.

TeadsDemoApp/Controllers/InRead/Direct/WebView/InReadDirectWebViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Direct/WebView/InReadDirectWebViewController.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadDirectWebViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 02/10/2017.
66
// Copyright © 2018 Teads. All rights reserved.
@@ -19,7 +19,7 @@ class InReadDirectWebViewController: TeadsViewController, WKNavigationDelegate {
1919
override func viewDidLoad() {
2020
super.viewDidLoad()
2121

22-
guard let content = Bundle.main.path(forResource: "demo", ofType: "html"),
22+
guard let content = Bundle.main.path(forResource: "sample", ofType: "html"),
2323
let contentString = try? String(contentsOfFile: content) else {
2424
return
2525
}

TeadsDemoApp/Controllers/InRead/Mopub/ScrollView/InReadMopubScrollViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Mopub/ScrollView/InReadMopubScrollViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadMopubScrollViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Copyright © 2020 Teads. All rights reserved.
66
//

TeadsDemoApp/Controllers/InRead/Mopub/TableView/InReadMopubTableViewController.swift renamed to TeadsSampleApp/Controllers/InRead/Mopub/TableView/InReadMopubTableViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadMopubTableViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 19/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Controllers/InRead/SAS/ScrollView/InReadSASScrollViewController.swift renamed to TeadsSampleApp/Controllers/InRead/SAS/ScrollView/InReadSASScrollViewController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// SASInReadScrollViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 18/11/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Controllers/InRead/SAS/TableView/InReadSASTableViewController.swift renamed to TeadsSampleApp/Controllers/InRead/SAS/TableView/InReadSASTableViewController.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// InReadSASTableViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 19/11/2020.
66
// Copyright © 2020 Teads. All rights reserved.
@@ -33,8 +33,9 @@ class InReadSASTableViewController: TeadsViewController {
3333
settings.pageUrl("https://toto.com")
3434
try? settings.subscribeAdResizeDelegate(self, forAdView: banner!)
3535
}
36-
let webSiteId = 383302
37-
let pageId = 1318382
36+
37+
let webSiteId = 385317
38+
let pageId = 1331331
3839
let formatId = Int(pid) ?? 96445
3940
var keywordsTargetting = "yourkw=titi"
4041
keywordsTargetting = TeadsSASAdapterHelper.concatAdSettingsToKeywords(keywordsStrings: keywordsTargetting, adSettings: teadsAdSettings)

TeadsDemoApp/Controllers/RootController/RootControllerCells/RootButtonCollectionViewCell.swift renamed to TeadsSampleApp/Controllers/RootController/RootControllerCells/RootButtonCollectionViewCell.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// RootButtonCollectionViewCell.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 16/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Controllers/RootController/RootControllerCells/RootHeaderCollectionReusableView.swift renamed to TeadsSampleApp/Controllers/RootController/RootControllerCells/RootHeaderCollectionReusableView.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// RootHeaderCollectionReusableView.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 16/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// RootImageViewLabelCollectionViewCell.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 16/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Controllers/RootController/RootViewController.swift renamed to TeadsSampleApp/Controllers/RootController/RootViewController.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// RootViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 06/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.
@@ -31,7 +31,7 @@ class RootViewController: TeadsViewController {
3131
collectionView.reloadData()
3232
}
3333

34-
func showDemoController(withIntegration integration: String) {
34+
func showSampleController(withIntegration integration: String) {
3535
guard let selectedFormat = selectionList.first(where: {$0.isSelected})?.name,
3636
let selectedProvider = selectionList.first(where: {$0.isSelected})?.providers.first(where: {$0.isSelected})?.name else {
3737
return
@@ -236,7 +236,7 @@ extension RootViewController: UICollectionViewDelegate, UICollectionViewDataSour
236236
for i in 0..<selectionList[j].providers.count where selectionList[j].providers[i].isSelected {
237237
for h in 0..<selectionList[j].providers[i].integrations.count {
238238
if indexPath.item == h {
239-
showDemoController(withIntegration: selectionList[j].providers[i].integrations[h].name)
239+
showSampleController(withIntegration: selectionList[j].providers[i].integrations[h].name)
240240
}
241241
}
242242
}

TeadsDemoApp/Controllers/TeadsViewController.swift renamed to TeadsSampleApp/Controllers/TeadsViewController.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// TeadsViewController.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 07/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.
@@ -12,8 +12,8 @@ class TeadsViewController: UIViewController {
1212

1313
var hasTeadsArticleNavigationBar: Bool = true
1414
var pid: String = PID.directLandscape
15-
fileprivate let teadsLogo = UIImage(named: "Teads-Demo-App")
16-
fileprivate let teadsLogoWhite = UIImage(named: "Teads-Demo-App-White")
15+
fileprivate let teadsLogo = UIImage(named: "Teads-Sample-App")
16+
fileprivate let teadsLogoWhite = UIImage(named: "Teads-Sample-App-White")
1717

1818
override func viewWillAppear(_ animated: Bool) {
1919
super.viewWillAppear(animated)

TeadsDemoApp/Extensions/ColorExtension.swift renamed to TeadsSampleApp/Extensions/ColorExtension.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// ColorExtension.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 06/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

TeadsDemoApp/Extensions/String.swift renamed to TeadsSampleApp/Extensions/String.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// String.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Jérémy Grosjean on 07/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.
File renamed without changes.

TeadsDemoApp/Models/Format.swift renamed to TeadsSampleApp/Models/Format.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//
22
// Format.swift
3-
// TeadsDemoApp
3+
// TeadsSampleApp
44
//
55
// Created by Thibaud Saint-Etienne on 09/10/2020.
66
// Copyright © 2020 Teads. All rights reserved.

0 commit comments

Comments
 (0)