Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7b9004c
initial skeleton
wjoosen Jun 14, 2025
93e5625
initial podspec
wjoosen Jun 14, 2025
04c2af4
empty example app from template
wjoosen Jun 14, 2025
e48ef6e
ignore imported adscript framework
wjoosen Jun 14, 2025
00987a9
override AdscriptApiClient dependency with manually imported framework
wjoosen Jun 14, 2025
1a20e82
private
wjoosen Jun 14, 2025
b655591
initial player state reporting
wjoosen Jun 18, 2025
ea3f766
report contentMetadata to adscript sdk
wjoosen Jun 18, 2025
a3b45ce
report i12n to adscript sdk
wjoosen Jun 18, 2025
97fd5fb
add dependency
wjoosen Jun 23, 2025
2bf8a21
non ad related listeners
wjoosen Jun 23, 2025
752374a
handle ad related events
wjoosen Jun 24, 2025
427b1bb
improve readability
wjoosen Jun 24, 2025
216ac41
cleaner unwrapping
wjoosen Jun 24, 2025
9802adb
implement getAdType
wjoosen Jun 24, 2025
5bba925
example app
wjoosen Jun 24, 2025
ce06ee4
disbable user script sandboxing
wjoosen Jul 1, 2025
2d640a5
conditional imports
wjoosen Jul 1, 2025
36ebf9d
fix compare
wjoosen Jul 1, 2025
904db64
add logging for event reporting
wjoosen Jul 1, 2025
d4a2c6c
conditional import
wjoosen Jul 1, 2025
1e5717b
remove old playing listener first
wjoosen Jul 2, 2025
12eb96e
store contentMetadata in adapter
wjoosen Jul 2, 2025
78fe517
use jsonstring
wjoosen Jul 2, 2025
bdffb15
remove logpoints on sourcechange
wjoosen Jul 2, 2025
d17063e
print logpoints
wjoosen Jul 2, 2025
90a82ae
some logging flags
wjoosen Jul 2, 2025
43575bd
newline
wjoosen Jul 2, 2025
491ce45
fix logs
wjoosen Jul 2, 2025
cf9876d
split up pods and spm project
wjoosen Jul 3, 2025
79fc2af
add adscript
wjoosen Jul 3, 2025
57684d8
add collections dependency
wjoosen Jul 3, 2025
bedf365
add package dependency
wjoosen Jul 3, 2025
6e47b20
use shared info.plist
wjoosen Jul 3, 2025
bfe13a6
add documentation
wjoosen Jul 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Code/Adscript-Examples/Cocoapod/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Frameworks/*.xcframework/

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Be sure to run `pod spec lint AdscriptApiClient.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

# info_plist_path = "./Frameworks/AdscriptApiClient.xcframework/ios-arm64/AdscriptApiClient.framework/Info.plist"
# info_cflist = CFPropertyList::List.new(:file => info_plist_path)
# info_plist = CFPropertyList.native_types(info_cflist.value)
# adscriptApiClientVersion = info_plist["CFBundleShortVersionString"]

# puts "Detected AdscriptApiClient XCFramework"
# puts " - version #{theoadscriptApiClientVersionSdkVersion}"

adscriptApiClientVersion = "1.0.4"

Pod::Spec.new do |spec|

spec.name = "AdscriptApiClient"
spec.version = adscriptApiClientVersion
spec.summary = "The Adscript Api Client for iOS"

spec.description = "T"

spec.homepage = "https://theoplayer.com"
spec.license = "MIT"

spec.author = { "Wonne Joosen" => "wonne.joosen@dolby.com" }

spec.source = { :git => "https://www.theoplayer.com/.git", :tag => "#{spec.version}" }

spec.source_files = "Classes", "Classes/**/*.{h,m}"

spec.ios.vendored_frameworks = "AdScriptNoTrackingApiClient.xcframework"

end
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# Be sure to run `pod spec lint AdscriptApiClient.podspec' to ensure this is a
# valid spec and to remove all comments including this before submitting the spec.
#
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

# info_plist_path = "./Frameworks/AdscriptApiClient.xcframework/ios-arm64/AdscriptApiClient.framework/Info.plist"
# info_cflist = CFPropertyList::List.new(:file => info_plist_path)
# info_plist = CFPropertyList.native_types(info_cflist.value)
# adscriptApiClientVersion = info_plist["CFBundleShortVersionString"]

# puts "Detected AdscriptApiClient XCFramework"
# puts " - version #{theoadscriptApiClientVersionSdkVersion}"

adscriptApiClientVersion = "1.0.4"

Pod::Spec.new do |spec|

spec.name = "AdscriptApiClient"
spec.version = adscriptApiClientVersion
spec.summary = "The Adscript Api Client for iOS"

spec.description = "T"

spec.homepage = "https://theoplayer.com"
spec.license = "MIT"

spec.author = { "Wonne Joosen" => "wonne.joosen@dolby.com" }

spec.source = { :git => "https://www.theoplayer.com/.git", :tag => "#{spec.version}" }

spec.source_files = "Classes", "Classes/**/*.{h,m}"

spec.ios.vendored_frameworks = "AdscriptApiClient.xcframework"

end
13 changes: 13 additions & 0 deletions Code/Adscript-Examples/Cocoapod/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
platform :ios, '13.0'

target 'AdscriptReporter' do
# Use the AdscriptConnector that is locally defined in the parent directory
pod 'THEOplayer-Connector-Adscript', :path => '../../../'
pod 'AdscriptApiClient', :path => 'Frameworks/'

# When you want to use a custom THEOplayerSDK build:
# - place your build at '../../../Helpers/TheoPod/Frameworks/THEOplayerSDK.xcframework'
# - uncomment the following line
# pod 'THEOplayerSDK-core', :path => '../../../Helpers/TheoPod'

end
51 changes: 51 additions & 0 deletions Code/Adscript-Examples/Cocoapod/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
PODS:
- AdscriptApiClient (1.0.4)
- InternalCollectionsUtilities (1.1.1)
- swift-collections (1.1.1):
- swift-collections/BitCollections (= 1.1.1)
- swift-collections/DequeModule (= 1.1.1)
- swift-collections/HashTreeCollections (= 1.1.1)
- swift-collections/HeapModule (= 1.1.1)
- swift-collections/OrderedCollections (= 1.1.1)
- swift-collections/BitCollections (1.1.1):
- InternalCollectionsUtilities (= 1.1.1)
- swift-collections/DequeModule (1.1.1):
- InternalCollectionsUtilities (= 1.1.1)
- swift-collections/HashTreeCollections (1.1.1):
- InternalCollectionsUtilities (= 1.1.1)
- swift-collections/HeapModule (1.1.1):
- InternalCollectionsUtilities (= 1.1.1)
- swift-collections/OrderedCollections (1.1.1):
- InternalCollectionsUtilities (= 1.1.1)
- THEOplayer-Connector-Adscript (9.5.1):
- AdscriptApiClient (>= 1.0.4)
- swift-collections (~> 1.1)
- THEOplayerSDK-core (~> 9)
- THEOplayerSDK-core (9.5.1)

DEPENDENCIES:
- AdscriptApiClient (from `Frameworks/`)
- THEOplayer-Connector-Adscript (from `../../../`)

SPEC REPOS:
trunk:
- InternalCollectionsUtilities
- swift-collections
- THEOplayerSDK-core

EXTERNAL SOURCES:
AdscriptApiClient:
:path: Frameworks/
THEOplayer-Connector-Adscript:
:path: "../../../"

SPEC CHECKSUMS:
AdscriptApiClient: 7ef1012a2b6d597c7dd5858d20726c4045768733
InternalCollectionsUtilities: af3f471602c4a67cbcb0bee0a80f6f55a33ae453
swift-collections: ba248ecaf44ef500b27d5cf94d304218c89892ff
THEOplayer-Connector-Adscript: 4dfcb0ebb17aa868ddbe6b63b5a53226861deb37
THEOplayerSDK-core: df3ec4ed64e19bd006f6a5476d96161e07f700a3

PODFILE CHECKSUM: 2d601d96608b6ce3d8d2f78d6e205aca8709be50

COCOAPODS: 1.16.2
6 changes: 6 additions & 0 deletions Code/Adscript-Examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# THEOPlayer 🤝 Adscript Samples

We provide source code of two sample applications that illustrate how to use the connector with different package managers:

- [Sample using **Swift Package Manager**](./SPM) (works out of the box with Xcode 12 and above)
- [Sample using **Cocoapods**](./Cocoapod) (requires Cocoapods installation through terminal)
Loading