Skip to content

Commit

Permalink
Release 4.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
runner authored and runner committed May 8, 2023
1 parent 9d7ccbc commit e8e94cd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SourceCode/Private/Core/Properties/USRVSdkProperties.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
NSString *const kUnityServicesLocalStorageFilePrefix = @"UnityAdsStorage-";
NSString *const kUnityServicesWebviewBranchInfoDictionaryKey = @"UADSWebviewBranch";
NSString *const kUnityServicesWebviewConfigInfoDictionaryKey = @"UADSWebviewConfig";
NSString *const kUnityServicesVersionName = @"4.7.0";
NSString *const kUnityServicesVersionName = @"4.7.1";
NSString *const kUnityServicesFlavorDebug = @"debug";
NSString *const kUnityServicesFlavorRelease = @"release";
NSString *const kChinaIsoAlpha2Code = @"CN";
NSString *const kChinaIsoAlpha3Code = @"CHN";
int const kUnityServicesVersionCode = 4700;
int const kUnityServicesVersionCode = 4710;

@implementation USRVSdkProperties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

@implementation NSMutableDictionary (SafeRemoval)
- (id)uads_removeObjectForKeyAndReturn: (NSString *)key {
if (key == nil) {
return nil;
}

id object = [self objectForKey: key];

[self removeObjectForKey: key];
return object;
}
Expand Down
6 changes: 4 additions & 2 deletions SourceCode/Public/Banners/UADSBannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,10 @@ - (void)setupConstraints {

- (void)dealloc {
self.delegate = nil;
[[UADSBannerLoadModule sharedInstance] getDelegateForIDAndRemove:self.viewId];
[USRVBannerBridge destroyBannerWithId: self.viewId];
if (self.viewId != nil) {
[[UADSBannerLoadModule sharedInstance] getDelegateForIDAndRemove:self.viewId];
[USRVBannerBridge destroyBannerWithId: self.viewId];
}
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ - (void)test_calls_event_handler_for_multiple_failed_loads {
[self validateEventHandlerIsCalledOnceWithErrorForIds: @[op1Id, op2Id]];
}

- (void)test_create_banner_without_load_does_not_crash {
@autoreleasepool {
UADSBannerView *bannerView = [[UADSBannerView alloc] initWithPlacementId:kUADSLoadModuleTestsPlacementID size:CGSizeMake(320.0, 50.0)];
}
}

- (void)validateEventHandlerIsCalledOnceWithSuccessForIds: (NSArray *)opIds {
XCTAssertEqual(_eventHandlerMock.startedCalls.count, opIds.count);
XCTAssertEqual(_eventHandlerMock.onSuccessCalls.count, opIds.count);
Expand Down
4 changes: 2 additions & 2 deletions UnityAds.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = 'UnityAds'
s.version = '4.7.0'
s.version = '4.7.1'
s.license = { :type => 'Unity License', :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/4.7.0/UnityAds.zip' }
s.source = { :http => 'https://github.com/Unity-Technologies/unity-ads-ios/releases/download/4.7.1/UnityAds.zip' }
s.ios.deployment_target = '9.0'
s.ios.vendored_frameworks = 'UnityAds.xcframework'
s.swift_version = '5.0'
Expand Down

0 comments on commit e8e94cd

Please sign in to comment.