Skip to content

Commit

Permalink
Update SwiftAppodealFlutterPlugin.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
KulArtsiom committed Nov 16, 2021
1 parent a3ac782 commit d379e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Classes/SwiftAppodealFlutterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public class SwiftAppodealFlutterPlugin: NSObject, FlutterPlugin {
let hasConsent = args["hasConsent"] as! Bool
let adTypes = AppodealAdType(rawValue: types.reduce(0) { $0 | getAdType(adId: $1).rawValue })
setCallbacks()
Appodeal.setFramework(APDFramework.flutter, version: "1.0.5-beta")
Appodeal.setFramework(APDFramework.flutter, version: "1.0.4-beta")
Appodeal.initialize(withApiKey: appKey, types: adTypes, hasConsent: hasConsent)
result(nil)
}
Expand All @@ -289,7 +289,7 @@ public class SwiftAppodealFlutterPlugin: NSObject, FlutterPlugin {
let consent = args["consent"] as! String
let adTypes = AppodealAdType(rawValue: types.reduce(0) { $0 | getAdType(adId: $1).rawValue })
setCallbacks()
Appodeal.setFramework(APDFramework.flutter, version: "1.0.5-beta")
Appodeal.setFramework(APDFramework.flutter, version: "1.0.4-beta")
if(!consent.isEmpty){
let report = STKConsentManager.shared().consent!
Appodeal.initialize(withApiKey: appKey, types: adTypes, consentReport: report)
Expand Down

0 comments on commit d379e9b

Please sign in to comment.