Skip to main content
danger
iOS SDK 3.1.3 is outdated. The most recent stable version is here.
Version: 3.1.3

Upgrade guide

Upgrading The iOS SDK From 2.11 To 3.0

Cocoa Pods

  1. Update your Podfile. See pod versions in CocoaPods integration guide

    # pod 'Appodeal', '~> 2.11' 
    pod 'Appodeal', '~> 3.0'

Manual

  1. Download the latest version of Appodeal.zip
  2. Add all downloaded content to Framework, Libraries, and Embedded Content in General settings of project.
  3. Add libc++, libresolv, libz, libc++abi frameworks to Framework, Libraries, and Embedded Content in General settings of project

Code Changes

  1. Initilization with consent manager. Since Appodeal SDK 3.0.0 Stack Consent Manager is embdedded in Appodeal SDK core and synchronising by default. Removes all consent manager related logic from project. Call initialization method in your app delegate -application:didFinishLaunchingWithOptions: method:

    @UIApplicationMain 
    final class MyAppDelegate: UIResponder, UIApplicationDelegate, AppodealInitializationDelegate {
    func application(
    _ application: UIApplication, didFinishLaunchingWithOptions
    launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil ) -> Bool {
    /// Any pre-initialization
    /// app specific logic
    Appodeal.initialize(
    withApiKey: "APP_KEY",
    types: .interstitial
    )
    return true
    }
    }

    If you still want to use your own implementation of Stack Consent Manager integration, you are able to keep it. In this case Appodeal SDK will skip consent synchronisation process during initialization and will use given consent report.

  2. Initilization without consent manager. You don't need to pass boolean flag into initialization method. Instead of this approach call the one of + updateUserConsentGDPR: or + updateUserConsentCCPA: before initialization. In case the SDK will have at least one non unknown user consent for GDPR or CCPA zone it will skip consent synchronisation process during initialization.

    @UIApplicationMain 
    final class MyAppDelegate: UIResponder, UIApplicationDelegate, AppodealInitializationDelegate {
    func application(
    _ application: UIApplication, didFinishLaunchingWithOptions
    launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil
    ) -> Bool {

    // App specific logic to dertmine regulation zone and user consent
    requestUserConsent { zone, userConsent in
    switch (zone, userConsent) {
    case .GDPR, true: Appodeal.updateUserConsentGDPR(.personalized)
    case .GDPR, false: Appodeal.updateUserConsentGDPR(.nonPersonalized)
    case .CCPA, true: Appodeal.updateUserConsentCCPA(.optIn)
    case .CCPA, false: Appodeal.updateUserConsentCCPA(.optOut)
    }
    Appodeal.initialize(
    withApiKey: "APP_KEY",
    types: .interstitial
    )
    }
    return true
    }
    }

  3. User data. If your app is setting user age or user gender in Appodeal SDK, you will need to removes current implementation and use the next code.

    Appodeal.setCustomStateValue(AppodealUserGender.male.rawValue, forKey: kAppodealUserGenderKey)
    Appodeal.setCustomStateValue(40, forKey: kAppodealUserAgeKey)

Requirements Changes

  1. Xcode 14.3 or higher is required

Upgrading The iOS SDK From 2.10 To 2.11

Cocoa Pods

  1. Update your Podfile. See pod versions in CocoaPods integration guide

    # pod 'Appodeal', '~> 2.10.0' 
    pod 'Appodeal', '~> 2.11.0'

Manual

  1. Download the latest version of Appodeal.zip
  2. Add all downloaded content to Framework, Libraries, and Embedded Content in General settings of project

Requirements Changes

  1. Xcode 13 or higher is required
  2. iOS 10 or higher is required

Upgrading The iOS SDK From 2.7 To 2.8

Cocoa Pods

  1. Update your Podfile. See pod versions in CocoaPods integration guide

    # pod 'Appodeal', '~> 2.7.0' 
    pod 'Appodeal', '~> 2.8.0'

Manual

  1. Download the latest version of Appodeal.zip
  2. Add all downloaded content to Framework, Libraries, and Embedded Content in General settings of project.

Requirements Changes

  1. Xcode 12 or higher is required
  2. iOS 10 or higher is required

Upgrading The iOS SDK From 2.5 To 2.6

Cocoa Pods

  1. Update your Podfile. See pod versions in CocoaPods integration guide

    # pod 'Appodeal', '~> 2.5.0' 
    pod 'Appodeal', '~> 2.6.0'

Manual

  1. Download the latest version of Appodeal.zip
  2. Add all downloaded content to Framework, Libraries, and Embedded Content in General settings of project.

Requirements Changes

  1. If your project is a pure Objective-C project, you should add an empty Swift file. For example Dummy.swift.

Upgrading The iOS SDK From 2.5.12 To 2.5.13

Code Changes

  1. You can use the + updateConsent: method to provide the GDPR user consent to ad networks in Appodeal SDK anywhere in your application. Appodeal SDK doesn't keep the GDPR user consent between sessions, that means you have to provide consent every time, otherwise, Appodeal SDK uses default or server value. By default, consent value is true.

Upgrading The iOS SDK From 2.5.11 To 2.5.12

Cocoa Pods

  1. Update your Podfile. See pod versions in CocoaPods integration guide

    # pod 'Appodeal', '~> 2.5.11' 
    pod 'Appodeal', '~> 2.5.12'
    pod 'Appodeal/AppodealAdExchangeAdapter', '2.5.12'
    pod 'Appodeal/IronSourceAdapter', '2.5.12'

Manual

  1. Download the latest version of Appodeal.zip
  2. Add all downloaded content to Framework, Libraries, and Embedded Content in General settings of project.

Upgrading The iOS SDK From 2.5.8 To 2.5.9

  1. Update your Podfile. See pod versions in CocoaPods integration guide

  2. If you use only some parts of Appodeal SDK (ad types), pod file updating process will be the same. For example: from pod 'Appodeal/Banner', '2.5.8' to pod 'Appodeal/Banner', '2.5.9' and deployment target stays the same as for 2.5.8 (it should be 9.0).

Manual

  1. Download the latest version of Appodeal.zip
  2. Add all downloaded content to Framework, Libraries, and Embedded Content in General settings of project.

Requirements Changes

  1. Add your GADApplicationIdentifier into info.plist file
<key>GADApplicationIdentifier</key>
<string>ca-app-pub-3940256099942544~1458002511</string>