Skip to content

Commit

Permalink
Updates for iOS SDK v4.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidappnexus committed Mar 30, 2018
1 parent 7614184 commit 143c21c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
9 changes: 9 additions & 0 deletions sdk/ANAdConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ typedef NS_ENUM(NSUInteger, ANNativeAdNetworkCode) {
ANNativeAdNetworkCodeCustom,
ANNativeAdNetworkCodeAdMob
};

typedef NS_ENUM(NSUInteger, ANAdType) {
ANAdTypeUnknown = 0,
ANAdTypeBanner = 1,
ANAdTypeVideo = 2,
ANAdTypeNative = 3
};


1 change: 0 additions & 1 deletion sdk/ANAdProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#import "ANAdConstants.h"
#import "ANLocation.h"

#import "ANGlobal.h"

@class ANLocation;

Expand Down
1 change: 0 additions & 1 deletion sdk/ANBannerAdView.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/

#import "ANAdView.h"
#import "ANGlobal.h"

@protocol ANBannerAdViewDelegate;

Expand Down
2 changes: 1 addition & 1 deletion sdk/internal/ANAdWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
9 changes: 2 additions & 7 deletions sdk/internal/ANGlobal.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "ANAdConstants.h"



#pragma mark - Constants
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 143c21c

Please sign in to comment.