Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/4.2.3.0.0 #1

Closed
wants to merge 22 commits into from
Closed

Release/4.2.3.0.0 #1

wants to merge 22 commits into from

Conversation

ricealexanderb
Copy link
Contributor

There's no Rewarded ad to test this with yet but Banner and Interstitial work.
I'm traveling the next four days but will address any feedback as soon as I return on Tuesday, and hopefully submit a release candidate soon after that.

@ricealexanderb ricealexanderb requested review from a team, bwised, daniel-barros, kendallrogers and CB-HaoxinLi and removed request for a team October 13, 2023 05:42
Comment on lines 141 to 155
extension BidMachineApiCore.PlacementFormat {
static func from(size: CGSize?) -> BidMachineApiCore.PlacementFormat {
let height = size?.height ?? 50
switch height {
case 50...89:
return .banner320x50
case 90...249:
return .banner728x90
case 250...:
return .banner300x250
default:
return .banner320x50
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

For adaptive banner support, the size should be calculated like it is here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed in this commit.

Comment on lines 84 to 86
log(.loadSucceeded)
loadCompletion?(.success([:])) ?? log(.loadResultIgnored)
loadCompletion = nil
Copy link
Contributor

Choose a reason for hiding this comment

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

For adaptive banner support, we should return the loaded ad size like we do here. If there's a way in the BidMachine API to get the size of the loaded ad from the view, we can use that, but if not, just using the requested size should be fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ricealexanderb
Copy link
Contributor Author

After contacting BidMachine, we now know it's safe to set the regulation info after init, so I removed all the storage code that was used to populate those values before init.
2e025c5f908a16ee99bff08c7732a277487b3a57

Comment on lines 26 to 27


Copy link
Member

Choose a reason for hiding this comment

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

nit:

Suggested change

Comment on lines 26 to 28
let chartboostMediationError = self.error(.loadFailureUnknown, error: error)
self.log(.loadFailed(chartboostMediationError))
completion(.failure(chartboostMediationError))
Copy link
Member

Choose a reason for hiding this comment

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

nit:
Inside a catch statement error should be non-optional, so we could pass the partner error directly.

Suggested change
let chartboostMediationError = self.error(.loadFailureUnknown, error: error)
self.log(.loadFailed(chartboostMediationError))
completion(.failure(chartboostMediationError))
log(.loadFailed(error))
completion(.failure(error))

Comment on lines 26 to 28
let chartboostMediationError = self.error(.loadFailureUnknown, error: error)
self.log(.loadFailed(chartboostMediationError))
completion(.failure(chartboostMediationError))
Copy link
Member

Choose a reason for hiding this comment

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

nit: same as in interstitial

Comment on lines 35 to 37
let chartboostMediationError = self.error(.loadFailureUnknown, error: error)
self.log(.loadFailed(chartboostMediationError))
completion(.failure(chartboostMediationError))
Copy link
Member

Choose a reason for hiding this comment

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

nit: same as in interstitial

Comment on lines 97 to 98

log(.showStarted)
Copy link
Member

Choose a reason for hiding this comment

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

Let's remove log(.showStarted) if there's no corresponding showSucceeded log anywhere

Suggested change
log(.showStarted)

daniel-barros
daniel-barros previously approved these changes Oct 30, 2023
Copy link
Member

@daniel-barros daniel-barros left a comment

Choose a reason for hiding this comment

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

Thanks for all the changes and for communicating with the partner Alex. The consent logic looks so much simple now.
I left a few nits but nothing major.

@ricealexanderb
Copy link
Contributor Author

I made all the mentioned changes in this commit. Building release candidate now, but need re-approval so this branch can be merged later.

daniel-barros
daniel-barros previously approved these changes Nov 1, 2023
@ricealexanderb ricealexanderb deleted the release/4.2.3.0.0 branch December 7, 2023 18:41
@ricealexanderb ricealexanderb mentioned this pull request Dec 7, 2023
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.

3 participants