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

[Code Gen] Update Sourcery library to latest version #15216

Merged
merged 4 commits into from
Feb 21, 2025
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
2 changes: 1 addition & 1 deletion Fakes/Fakes/Hardware.generated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import Yosemite
Expand Down
2 changes: 1 addition & 1 deletion Fakes/Fakes/Networking.generated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import Yosemite
Expand Down
2 changes: 1 addition & 1 deletion Fakes/Fakes/WooFoundation.generated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import Yosemite
Expand Down
2 changes: 1 addition & 1 deletion Fakes/Fakes/Yosemite.generated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT

import Yosemite
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import Codegen
import UIKit
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import Codegen
import Foundation
import WooFoundation
import struct Alamofire.JSONEncoding


extension Networking.AIProduct {
public func copy(
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def networking_pods
alamofire
cocoa_lumberjack

pod 'Sourcery', '~> 1.0.3', configuration: 'Debug'
pod 'Sourcery', '~> 2.2.6', configuration: 'Debug'
wordpress_shared

# Used for HTML parsing
Expand Down
10 changes: 6 additions & 4 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ PODS:
- Sentry/Core (= 8.43.0)
- Sentry/Core (8.43.0)
- Sodium (0.9.1)
- Sourcery (1.0.3)
- Sourcery (2.2.6):
- Sourcery/CLI-Only (= 2.2.6)
- Sourcery/CLI-Only (2.2.6)
- Specta (1.0.7)
- StripeTerminal (3.9.1)
- SVProgressHUD (2.2.5)
Expand Down Expand Up @@ -73,7 +75,7 @@ DEPENDENCIES:
- OHHTTPStubs (~> 9.0)
- OHHTTPStubs/Swift (~> 9.0)
- Sentry (~> 8.43.0)
- Sourcery (~> 1.0.3)
- Sourcery (~> 2.2.6)
- Specta (= 1.0.7)
- StripeTerminal (~> 3.9.1)
- SVProgressHUD (= 2.2.5)
Expand Down Expand Up @@ -135,7 +137,7 @@ SPEC CHECKSUMS:
OHHTTPStubs: 90eac6d8f2c18317baeca36698523dc67c513831
Sentry: 532b281a53b1b45a523fd592f608956fb36e577c
Sodium: 23d11554ecd556196d313cf6130d406dfe7ac6da
Sourcery: 70a6048014bd4f37ea80e6bd4354d47bf3b760e1
Sourcery: 4427fd22f0c12bd1ef75dd9045d50e01c17a43e1
Specta: 3e1bd89c3517421982dc4d1c992503e48bd5fe66
StripeTerminal: f7f5e176979224ed76edb3724f41138fbb28053c
SVProgressHUD: 1428aafac632c1f86f62aa4243ec12008d7a51d6
Expand All @@ -156,6 +158,6 @@ SPEC CHECKSUMS:
ZendeskSupportProvidersSDK: 281acf2bb731d2a67f913cfe653ed0da9f5b2f42
ZendeskSupportSDK: b512cfc74b6bf8490e589f02cf52e27ed4f2bebe

PODFILE CHECKSUM: 6d83a46dd92cf78686728e14d594751d82f73277
PODFILE CHECKSUM: 51e4e2fe15da596ac38202135c4b2b7ab42c49b8

COCOAPODS: 1.16.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import Codegen
import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import Codegen
import Foundation
Expand Down
10 changes: 5 additions & 5 deletions Yosemite/Yosemite/Model/Copiable/Models+Copiable.generated.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Generated using Sourcery 1.0.3 — https://github.com/krzysztofzablocki/Sourcery
// Generated using Sourcery 2.2.6 — https://github.com/krzysztofzablocki/Sourcery
// DO NOT EDIT
import Codegen
import Foundation
Expand Down Expand Up @@ -59,7 +59,7 @@ extension Yosemite.POSSimpleProduct {
productImageSource: NullableCopiableProp<String> = .copy,
productID: CopiableProp<Int64> = .copy,
price: CopiableProp<String> = .copy,
productType: CopiableProp<ProductType> = .copy,
productType: CopiableProp<Networking.ProductType> = .copy,
bundledItems: CopiableProp<[Networking.ProductBundleItem]> = .copy
) -> Yosemite.POSSimpleProduct {
let id = id ?? self.id
Expand All @@ -86,9 +86,9 @@ extension Yosemite.POSSimpleProduct {

extension Yosemite.ProductReviewFromNoteParcel {
public func copy(
note: CopiableProp<Note> = .copy,
review: CopiableProp<ProductReview> = .copy,
product: CopiableProp<Product> = .copy
note: CopiableProp<Yosemite.Note> = .copy,
review: CopiableProp<Yosemite.ProductReview> = .copy,
product: CopiableProp<Yosemite.Product> = .copy
) -> Yosemite.ProductReviewFromNoteParcel {
let note = note ?? self.note
let review = review ?? self.review
Expand Down