diff --git a/sdk/AppNexusNativeSDK/SDK-Info.plist b/sdk/AppNexusNativeSDK/SDK-Info.plist index 24553740..8dbffefb 100644 --- a/sdk/AppNexusNativeSDK/SDK-Info.plist +++ b/sdk/AppNexusNativeSDK/SDK-Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 8.8.0 + 8.8.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/sdk/AppNexusNativeStaticSDK/SDK-Info.plist b/sdk/AppNexusNativeStaticSDK/SDK-Info.plist index 24553740..8dbffefb 100644 --- a/sdk/AppNexusNativeStaticSDK/SDK-Info.plist +++ b/sdk/AppNexusNativeStaticSDK/SDK-Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 8.8.0 + 8.8.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/sdk/AppNexusSDK/SDK-Info.plist b/sdk/AppNexusSDK/SDK-Info.plist index 650c87d9..b4092a43 100644 --- a/sdk/AppNexusSDK/SDK-Info.plist +++ b/sdk/AppNexusSDK/SDK-Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 8.8.0 + 8.8.1 CFBundleSignature ???? CFBundleVersion diff --git a/tests/UnitTestApp/FunctionalTests/ANOMIDNativeTestCase.m b/tests/UnitTestApp/FunctionalTests/ANOMIDNativeTestCase.m index 11bf6321..0aa6f263 100644 --- a/tests/UnitTestApp/FunctionalTests/ANOMIDNativeTestCase.m +++ b/tests/UnitTestApp/FunctionalTests/ANOMIDNativeTestCase.m @@ -79,51 +79,51 @@ - (void)testOMIDSessionIsNotNill { XCTAssertNotNil(self.adResponseInfo.omidAdSession); } -//- (void)testOMIDSDKValidation{ -// [self stubRequestWithResponse:@"OMID_Native_RTBResponse"]; -// [self.adRequest loadAd]; -// [XCTestCase delayForTimeInterval:10]; -// XCTAssertTrue([self.requestData containsString:@"OmidSupported"]); -// XCTAssertTrue([self.requestData containsString:@"true"]); -// XCTAssertTrue([self.requestData containsString:@"sessionStart"]); -// XCTAssertTrue([self.requestData containsString:@"partnerName"]); -// XCTAssertTrue([self.requestData containsString:@"Appnexus"]); -// XCTAssertTrue([self.requestData containsString:@"partnerVersion"]); -// XCTAssertTrue([self.requestData containsString:AN_SDK_VERSION]); -// XCTAssertTrue([self.requestData containsString:@"impression"]); -// XCTAssertTrue([self.requestData containsString:OMID_SDK_VERSION]); -// XCTAssertTrue([self.requestData containsString:@"libraryVersion"]); -// -//} - -//- (void)testOMIDSessionFinish{ -// [self stubRequestWithResponse:@"OMID_Native_RTBResponse"]; -// [self.adRequest loadAd]; -// [XCTestCase delayForTimeInterval:10]; -// -// XCTAssertTrue([self.requestData containsString:@"OmidSupported"]); -// XCTAssertTrue([self.requestData containsString:@"true"]); -// XCTAssertTrue([self.requestData containsString:@"sessionStart"]); -// XCTAssertTrue([self.requestData containsString:@"partnerName"]); -// XCTAssertTrue([self.requestData containsString:@"Appnexus"]); -// XCTAssertTrue([self.requestData containsString:@"partnerVersion"]); -// XCTAssertTrue([self.requestData containsString:AN_SDK_VERSION]); -// XCTAssertTrue([self.requestData containsString:@"impression"]); -// XCTAssertTrue([self.requestData containsString:@"creativeType"]); -// XCTAssertTrue([self.requestData containsString:@"nativeDisplay"]); -// XCTAssertTrue([self.requestData containsString:@"impressionType"]); -// XCTAssertTrue([self.requestData containsString:@"viewable"]); -// XCTAssertTrue([self.requestData containsString:@"mediaType"]); -// XCTAssertTrue([self.requestData containsString:@"display"]); -// XCTAssertTrue([self.requestData containsString:@"impression"]); -// XCTAssertTrue([self.requestData containsString:OMID_SDK_VERSION]); -// XCTAssertTrue([self.requestData containsString:@"libraryVersion"]); -// -// [self.adResponseInfo unregisterViewFromTracking]; -// [XCTestCase delayForTimeInterval:5]; -// XCTAssertTrue([self.requestData containsString:@"sessionFinish"]); -// self.requestData = nil; -//} +- (void)testOMIDSDKValidation{ + [self stubRequestWithResponse:@"OMID_Native_RTBResponse"]; + [self.adRequest loadAd]; + [XCTestCase delayForTimeInterval:10]; + XCTAssertTrue([self.requestData containsString:@"OmidSupported"]); + XCTAssertTrue([self.requestData containsString:@"true"]); + XCTAssertTrue([self.requestData containsString:@"sessionStart"]); + XCTAssertTrue([self.requestData containsString:@"partnerName"]); + XCTAssertTrue([self.requestData containsString:@"Appnexus"]); + XCTAssertTrue([self.requestData containsString:@"partnerVersion"]); + XCTAssertTrue([self.requestData containsString:AN_SDK_VERSION]); + XCTAssertTrue([self.requestData containsString:@"impression"]); + XCTAssertTrue([self.requestData containsString:OMID_SDK_VERSION]); + XCTAssertTrue([self.requestData containsString:@"libraryVersion"]); + +} + +- (void)testOMIDSessionFinish{ + [self stubRequestWithResponse:@"OMID_Native_RTBResponse"]; + [self.adRequest loadAd]; + [XCTestCase delayForTimeInterval:10]; + + XCTAssertTrue([self.requestData containsString:@"OmidSupported"]); + XCTAssertTrue([self.requestData containsString:@"true"]); + XCTAssertTrue([self.requestData containsString:@"sessionStart"]); + XCTAssertTrue([self.requestData containsString:@"partnerName"]); + XCTAssertTrue([self.requestData containsString:@"Appnexus"]); + XCTAssertTrue([self.requestData containsString:@"partnerVersion"]); + XCTAssertTrue([self.requestData containsString:AN_SDK_VERSION]); + XCTAssertTrue([self.requestData containsString:@"impression"]); + XCTAssertTrue([self.requestData containsString:@"creativeType"]); + XCTAssertTrue([self.requestData containsString:@"nativeDisplay"]); + XCTAssertTrue([self.requestData containsString:@"impressionType"]); + XCTAssertTrue([self.requestData containsString:@"viewable"]); + XCTAssertTrue([self.requestData containsString:@"mediaType"]); + XCTAssertTrue([self.requestData containsString:@"display"]); + XCTAssertTrue([self.requestData containsString:@"impression"]); + XCTAssertTrue([self.requestData containsString:OMID_SDK_VERSION]); + XCTAssertTrue([self.requestData containsString:@"libraryVersion"]); + + [self.adResponseInfo unregisterViewFromTracking]; + [XCTestCase delayForTimeInterval:5]; + XCTAssertTrue([self.requestData containsString:@"sessionFinish"]); + self.requestData = nil; +} #pragma mark - ANNativeAdRequestDelegate diff --git a/tests/UnitTestApp/PerformanceStats/AdPerformanceStatsNativeAdTestCase.m b/tests/UnitTestApp/PerformanceStats/AdPerformanceStatsNativeAdTestCase.m index f4ec3631..8cf5b251 100644 --- a/tests/UnitTestApp/PerformanceStats/AdPerformanceStatsNativeAdTestCase.m +++ b/tests/UnitTestApp/PerformanceStats/AdPerformanceStatsNativeAdTestCase.m @@ -42,7 +42,8 @@ - (void)setUp { // Put setup code here. This method is called before the invocation of each test method in the class. [self clearAd]; // Init here if not the tests will crash - + // Init here if not the tests will crash + [[XandrAd sharedInstance] initWithMemberID:1 preCacheRequestObjects:true completionHandler:nil]; } diff --git a/tests/UnitTestApp/UnitTestApp/SharedMockFiles/StubResponse/OMID_Native_CSMResponse.json b/tests/UnitTestApp/UnitTestApp/SharedMockFiles/StubResponse/OMID_Native_CSMResponse.json index 35e66695..cdbce90a 100644 --- a/tests/UnitTestApp/UnitTestApp/SharedMockFiles/StubResponse/OMID_Native_CSMResponse.json +++ b/tests/UnitTestApp/UnitTestApp/SharedMockFiles/StubResponse/OMID_Native_CSMResponse.json @@ -19,7 +19,7 @@ "brand_category_id": 25, "client_initiated_ad_counting": true, "viewability": { - "config": "" + "config": "" }, "csm": { "timeout_ms": 500, diff --git a/tests/UnitTestApp/UnitTests/ANBannerAdViewTransitionsFadeTestCase.m b/tests/UnitTestApp/UnitTests/ANBannerAdViewTransitionsFadeTestCase.m index da81bddf..0e470431 100644 --- a/tests/UnitTestApp/UnitTests/ANBannerAdViewTransitionsFadeTestCase.m +++ b/tests/UnitTestApp/UnitTests/ANBannerAdViewTransitionsFadeTestCase.m @@ -23,7 +23,7 @@ #import "ANBannerAdView+ANTest.h" @interface ANBannerAdViewTransitionsFadeTestCase : XCTestCase -@property (nonatomic, weak) ANBannerAdView *bannerAdView; +@property (nonatomic) ANBannerAdView *bannerAdView; @end @implementation ANBannerAdViewTransitionsFadeTestCase