diff --git a/sdk/ANAdConstants.h b/sdk/ANAdConstants.h index 05ae08c25..7ce0d903f 100644 --- a/sdk/ANAdConstants.h +++ b/sdk/ANAdConstants.h @@ -53,3 +53,12 @@ typedef NS_ENUM(NSUInteger, ANNativeAdNetworkCode) { ANNativeAdNetworkCodeCustom, ANNativeAdNetworkCodeAdMob }; + +typedef NS_ENUM(NSUInteger, ANAdType) { + ANAdTypeUnknown = 0, + ANAdTypeBanner = 1, + ANAdTypeVideo = 2, + ANAdTypeNative = 3 +}; + + diff --git a/sdk/ANAdProtocol.h b/sdk/ANAdProtocol.h index 412e6ac44..c4b9baf1f 100644 --- a/sdk/ANAdProtocol.h +++ b/sdk/ANAdProtocol.h @@ -20,7 +20,6 @@ #import "ANAdConstants.h" #import "ANLocation.h" -#import "ANGlobal.h" @class ANLocation; diff --git a/sdk/ANBannerAdView.h b/sdk/ANBannerAdView.h index d7bbc2d0f..8d24f4843 100644 --- a/sdk/ANBannerAdView.h +++ b/sdk/ANBannerAdView.h @@ -14,7 +14,6 @@ */ #import "ANAdView.h" -#import "ANGlobal.h" @protocol ANBannerAdViewDelegate; diff --git a/sdk/internal/ANAdWebViewController.m b/sdk/internal/ANAdWebViewController.m index da36efd7a..6f4926319 100644 --- a/sdk/internal/ANAdWebViewController.m +++ b/sdk/internal/ANAdWebViewController.m @@ -654,7 +654,7 @@ - (void) webView: (WKWebView *)webView // if ([URLScheme isEqualToString:@"file"]) { - NSString *filePathContainsThisString = @"/ANSDKResources.bundle/vastVideo.html"; + NSString *filePathContainsThisString = @"/vastVideo.html"; if ([[URL absoluteString] rangeOfString:filePathContainsThisString].location == NSNotFound) { return; diff --git a/sdk/internal/ANGlobal.h b/sdk/internal/ANGlobal.h index ba5678cc2..16ce42ba1 100644 --- a/sdk/internal/ANGlobal.h +++ b/sdk/internal/ANGlobal.h @@ -16,6 +16,8 @@ #import #import +#import "ANAdConstants.h" + #pragma mark - Constants @@ -55,13 +57,6 @@ typedef NS_ENUM(NSUInteger, ANAllowedMediaType) { ANAllowedMediaTypeNative = 12 }; -typedef NS_ENUM(NSUInteger, ANAdType) { - ANAdTypeUnknown = 0, - ANAdTypeBanner = 1, - ANAdTypeVideo = 2, - ANAdTypeNative = 3 -}; - typedef NS_ENUM(NSUInteger, ANVideoAdSubtype) { ANVideoAdSubtypeUnknown = 0, ANVideoAdSubtypeInstream,