Skip to content

Add iAd code back#1739

Merged
beylmk merged 21 commits into
ad-services-sdkfrom
ad-services-sdk-with-iad
Jun 28, 2022
Merged

Add iAd code back#1739
beylmk merged 21 commits into
ad-services-sdkfrom
ad-services-sdk-with-iad

Conversation

@beylmk

@beylmk beylmk commented Jun 27, 2022

Copy link
Copy Markdown
Contributor

Per conversation here, we need to add the iAd code back since we aren't yet obsoleting it.

@available(iOS 14, *)
class IOSAttributionPosterTests: BaseAttributionPosterTests {
func testPostAppleSearchAdsAttributionIfNeededPostsIfATTFrameworkNotIncludedOnOldOS() throws {
guard #available(iOS 14, *) else { throw XCTSkip() }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you'll still need this for tvOS (the classes get ran despite the @available annotation.
You can put this guard now in setUpWithError though.

Comment thread RevenueCat.xcodeproj/project.pbxproj Outdated
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "macosx iphonesimulator iphoneos watchsimulator watchos appletvsimulator appletvos";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_TREAT_WARNINGS_AS_ERRORS = NO;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 I know you did this temporarily, just leaving a note here so we remember to revert it

Maddie Beyl and others added 3 commits June 27, 2022 14:00
@beylmk beylmk marked this pull request as ready for review June 27, 2022 23:11
@beylmk beylmk requested a review from a team June 27, 2022 23:55

@NachoSoto NachoSoto left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far looks good. I can take a final look in #1727 since it'll be easier to see without the re-added code.

@beylmk beylmk force-pushed the ad-services-sdk-with-iad branch from 4bed32f to bf47a65 Compare June 28, 2022 00:46
@beylmk beylmk merged commit 45ace53 into ad-services-sdk Jun 28, 2022
@beylmk beylmk deleted the ad-services-sdk-with-iad branch June 28, 2022 01:20
joshdholtz added a commit that referenced this pull request Aug 8, 2022
* [CF-106] Fetch AdServices Token (#1519)

Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
Co-authored-by: Josh Holtz <me@joshholtz.com>

* [CF-553] Post AdServices token (#1534)

Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
Co-authored-by: Josh Holtz <me@joshholtz.com>

* Update ios 14 snapshots tets

* Reworked adservices to use new Purchases.shared.attribution API

* Updated with some comments from PR

* Add iAd code back (#1739)

Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>

* use new mapKeys dictionary extension for device cache

* update for some pr comments

* remove purchasestests

* generate missing snapshots

* fix deprecation messages to clarify method now called on shared instance

* Fix for inserting nonstring into userdefaults

* Add tests for bug

* fix lint

* Added availablility checks for tests and removed unused varialbes

* Whoops... wrong class

Co-authored-by: beylmk <maddie@revenuecat.com>
Co-authored-by: NachoSoto <NachoSoto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants