Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## NEXT

* Fixes Xcode 26.2 analyzer warnings in example app tests.

## 0.4.7

* Adds `SK2Transaction.unfinishedTransactions()` method to query only unfinished transactions.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ final class FIAPPaymentQueueDelegateTests: XCTestCase {
XCTAssertTrue(shouldContinue)
}

#if TARGET_OS_IOS
#if os(iOS)
func testShouldShowPriceConsentIfNeeded() throws {
if #available(iOS 13.4, *) {
let channelStub = MethodChannelStub()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ final class InAppPurchase2PluginTests: XCTestCase {
plugin.purchase(id: "consumable", options: nil) { result in
switch result {
case .success:
XCTFail("Purchase should NOT suceed.")
XCTFail("Purchase should NOT succeed.")
case .failure(let error):
XCTAssertEqual(
error.localizedDescription,
Expand Down Expand Up @@ -393,7 +393,7 @@ final class InAppPurchase2PluginTests: XCTestCase {

plugin.purchase(id: "consumable", options: nil) { result in
switch result {
case .success(let purchase):
case .success(_):
Copy link
Contributor

Choose a reason for hiding this comment

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

The tests are failing - Im guessing you might need to keep the "let purchase" because of IAP sandbox shennanigans. I think if you dont handle the VerificationResult it freaks out. Maybe we can do this instead

case .success(let purchase):
    _ = purchase 

Copy link
Member Author

Choose a reason for hiding this comment

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

Weird, this test passes on Xcode 26.2 locally.

Copy link
Member Author

Choose a reason for hiding this comment

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

And also passed on 16.4 locally...

Copy link
Contributor

Choose a reason for hiding this comment

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

oh thats scary

Copy link
Member Author

Choose a reason for hiding this comment

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

And it passed in CI when run a second time.

Copy link
Contributor

Choose a reason for hiding this comment

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

ugh the tests are flaky :( thats not good

Copy link
Contributor

Choose a reason for hiding this comment

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

purchaseExpectation.fulfill()
case .failure(let error):
XCTFail("Purchase should NOT fail. Failed with \(error)")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ final class ObjectTranslatorTest: XCTestCase {
private var discountMap: [String: Any] {
// Type is being instantiated like this because of Swift naming weirdness
let type: SKProductDiscount.`Type` = .introductory
var map: [String: Any] = [
let map: [String: Any] = [
"identifier": "test offer id",
"price": "1",
"priceLocale": FIAObjectTranslator.getMapFrom(NSLocale.system),
Expand Down