Skip to content

Commit e1360f9

Browse files
V5 native implementation (#156)
* implement native display in sample app * admob native integration * implement mopub, fix collectionView (estimatedSize: None) * add Teads.configure() * update case on nativeDisplay case Co-authored-by: Jérémy Grosjean <[email protected]> * update comments * update admob native delegate * improve comments Co-authored-by: Jérémy Grosjean <[email protected]>
1 parent 88d5da1 commit e1360f9

24 files changed

+2137
-123
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ GEM
8686
rexml (~> 3.2.4)
8787

8888
PLATFORMS
89+
x86_64-darwin-19
8990
x86_64-darwin-20
9091

9192
DEPENDENCIES

TeadsSampleApp.xcodeproj/project.pbxproj

Lines changed: 112 additions & 12 deletions
Large diffs are not rendered by default.

TeadsSampleApp/AppDelegate.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
//
88

99
import UIKit
10+
import TeadsSDK
1011

1112
@UIApplicationMain
1213
class AppDelegate: UIResponder, UIApplicationDelegate {
1314

1415
var window: UIWindow?
1516

1617
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18+
Teads.configure()
1719
let launchedBefore = UserDefaults.standard.bool(forKey: "launchedBefore")
1820
if !launchedBefore {
1921
let defaults = UserDefaults.standard
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "social-covers.jpg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
115 KB
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "teads-logo.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
8.48 KB
Loading

TeadsSampleApp/Base.lproj/Main.storyboard

Lines changed: 1029 additions & 22 deletions
Large diffs are not rendered by default.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// AdmobNativeAdTableViewCell.swift
3+
// TeadsSDKIntegrationTestsApp
4+
//
5+
// Created by Jérémy Grosjean on 16/06/2021.
6+
//
7+
8+
import UIKit
9+
import GoogleMobileAds
10+
11+
class AdmobNativeAdTableViewCell: UITableViewCell {
12+
13+
@IBOutlet weak var nativeAdView: GADNativeAdView!
14+
15+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// FakeArticleNativeTableViewCell.swift
3+
// TeadsSDKIntegrationTestsApp
4+
//
5+
// Created by Thibaud Saint-Etienne on 02/12/2020.
6+
//
7+
8+
import UIKit
9+
10+
class FakeArticleNativeTableViewCell: UITableViewCell {
11+
12+
@IBOutlet weak var mediaView: UIImageView!
13+
@IBOutlet weak var iconImageView: UIImageView!
14+
@IBOutlet weak var titleLabel: UILabel!
15+
@IBOutlet weak var contentLabel: UILabel!
16+
@IBOutlet weak var callToActionButton: UIButton!
17+
18+
}

0 commit comments

Comments
 (0)