-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5eed9d1
commit 9046dd4
Showing
72 changed files
with
589 additions
and
1,064 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'UnityAds' | ||
s.version = '3.3.0' | ||
s.version = '3.4.0' | ||
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' } | ||
s.author = { 'UnityAds' => '[email protected]' } | ||
s.homepage = 'https://unity3d.com/services/ads' | ||
s.summary = 'Monetize your entire player base and reach new audiences with video ads.' | ||
s.platform = :ios | ||
s.source = { :http => 'https://github.com/Unity-Technologies/unity-ads-ios/releases/download/3.3.0/UnityAds.framework.zip' } | ||
s.ios.deployment_target = '7.0' | ||
s.source = { :http => 'https://github.com/Unity-Technologies/unity-ads-ios/releases/download/3.4.0/UnityAds.framework.zip' } | ||
s.ios.deployment_target = '9.0' | ||
s.ios.vendored_frameworks = 'UnityAds.framework' | ||
s.ios.xcconfig = { 'OTHER_LDFLAGS' => '-framework UnityAds' } | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#import <XCTest/XCTest.h> | ||
#import "UADSWebPlayerView.h" | ||
|
||
@interface ApplicationDelegate : NSObject <UIApplicationDelegate> | ||
|
||
- (UIWindow *)window; | ||
|
||
@end | ||
|
||
@implementation ApplicationDelegate | ||
|
||
- (UIWindow *)window { | ||
return [[UIWindow alloc] init]; | ||
} | ||
|
||
@end | ||
|
||
@interface UADSWebPlayerViewTests: XCTestCase | ||
@end | ||
|
||
@implementation UADSWebPlayerViewTests | ||
|
||
-(void)testSendFrameUpdateWithNilWindowDoesNotCrash { | ||
@try { | ||
UADSWebPlayerView *webPlayerView = [[UADSWebPlayerView alloc] initWithFrame:CGRectZero viewId:@"testViewId" webPlayerSettings:[[NSDictionary alloc] init]]; | ||
[webPlayerView layoutSubviews]; | ||
XCTAssertTrue(YES); // successfully did not throw | ||
} @catch(NSException *e) { | ||
XCTFail("Should not throw"); | ||
} | ||
} | ||
|
||
- (void)testSendFrameUpdateWithWindowDoesNotCrash { | ||
@try { | ||
UADSWebPlayerView *webPlayerView = [[UADSWebPlayerView alloc] initWithFrame:CGRectZero viewId:@"testViewId" webPlayerSettings:[[NSDictionary alloc] init]]; | ||
[UIApplication.sharedApplication.delegate.window addSubview:webPlayerView]; | ||
[webPlayerView layoutSubviews]; | ||
XCTAssertTrue(YES); // successfully did not throw | ||
[webPlayerView removeFromSuperview]; | ||
} @catch(NSException *e) { | ||
XCTFail(@"Should not throw"); | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.