Since v.2.0.0 we renamed our product from InApp
to Next
. You can see full list of breaking changes related to this below:
We deprecated authorization by key from info.plist. Instead, NextSDK
now obtains API key right into configure()
function:
You don't need this key in info.plist anymore, delete it:
<key>InAppSDKAPIKey</key>
<string>Put your API Key here</string>
Configure Next SDK by configure(withAPIKey:onTestMode:)
:
Next.shared.configure(withAPIKey: "api_key", onTestMode: false)
Some public classes of SDK got new names without InApp
prefix. Here the list of them:
-
BannerAdView
andBannerAdViewDelegate
. (before wasInAppBannerAdView
) -
InterstitialAdView
andInterstitialAdViewDelegate
. (before wasInAppInterstitialAdView
) -
RewardedAdView
andRewardedAdViewDelegate
. (before wasInAppRewardedAdView
) -
RewardedInterstitialAdView
andRewardedInterstitialAdViewDelegate
(before wasInAppRewardedInterstitialAdView
) -
AppOpenAdView
(before wasInAppAppOpenAdView
)
Use new name of framework for import:
From
import InAppSDK
To
import NextSDK
Call main and shared instance by new Next
name:
From
InApp.shared.
To
Next.shared.
-
Next.shared.start(onTestMode:)
was renamed toNext.shared.configure(byAPIKey:, onTestMode:)
. -
Next.shared.isDebugLoggingEnabled
was deprecated. Use newNext.shared.logLevel
instead. -
Next.shared.sdkVersion
was renamed toNext.shared.version
. -
Next.shared.inject(vc:,screenName:)
was deprecated and removed. -
Next.shared.registerScreens(screens:)
was deprecated and removed. -
Next.shared.uploadScreenshot(viewController:, screenName:, screenKey:)
was deprecated and removed.