Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appodeal SDK — Swift Package

Swift Package Manager distribution of the Appodeal SDK core (binary, no ad-network adapters yet).

Installation

.package(url: "https://github.com/appodeal/Appodeal-Swift-Package.git", from: "4.2.0")

Required linker flag

The SDK ships as static xcframeworks. Add -ObjC to your app target's Other Linker Flags (OTHER_LDFLAGS) so the SDK's Objective-C categories are loaded — without it you will get unrecognized selector crashes at runtime:

OTHER_LDFLAGS = $(inherited) -ObjC

(SwiftPM cannot set this for you: version-pinned packages may not carry unsafeFlags, so the flag must live in the consuming app.)

Add the AppodealSDK product to your target, then:

import Appodeal
// or: import AppodealSDK  (re-exports Appodeal)

Appodeal.initialize(withApiKey: "YOUR_KEY", types: [.interstitial, .banner])

What's included

  • Appodeal + AppodealMediationCore — prebuilt xcframeworks
  • First-party StackModules / StackRendering / StackProductPresentation / StackConsentManager — vendored xcframeworks (until they ship their own SwiftPM packages)
  • Dependencies resolved via SwiftPM: swift-protobuf, GoogleUserMessagingPlatform

Ad-network adapters are not part of this package yet — only networks that themselves ship SwiftPM packages can be added later.

Release

Package.swift binary url/checksum values are generated by the swift_package Fastlane lane in the main SDK repo, which builds the xcframeworks, zips them, computes checksums, uploads to S3, updates this file, and tags the version. Do not hand-edit the checksums.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages