-
-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for StoreKitConfigurationFileReference (#573)
* Add support for StoreKitConfigurationFileReference * Update changelog * Add username to changelog * Add new property to AEXML XcodeFormat * Add test
- Loading branch information
1 parent
45f099a
commit d168083
Showing
7 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
Sources/XcodeProj/Scheme/XCScheme+StoreKitConfigurationFileReference.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// XCScheme+StoreKitConfigurationFileReference.swift | ||
// XcodeProj | ||
// | ||
// Created by Joseph Colicchio on 10/7/20. | ||
// | ||
|
||
import AEXML | ||
import Foundation | ||
|
||
extension XCScheme { | ||
public final class StoreKitConfigurationFileReference: Equatable { | ||
// MARK: - Attributes | ||
|
||
public var identifier: String | ||
|
||
// MARK: - Init | ||
|
||
public init(identifier: String) { | ||
self.identifier = identifier | ||
} | ||
|
||
init(element: AEXMLElement) throws { | ||
identifier = element.attributes["identifier"]! | ||
} | ||
|
||
// MARK: - XML | ||
|
||
func xmlElement() -> AEXMLElement { | ||
AEXMLElement(name: "StoreKitConfigurationFileReference", | ||
value: nil, | ||
attributes: [ | ||
"identifier": identifier, | ||
]) | ||
} | ||
|
||
// MARK: - Equatable | ||
|
||
public static func == (lhs: StoreKitConfigurationFileReference, rhs: StoreKitConfigurationFileReference) -> Bool { | ||
lhs.identifier == rhs.identifier | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters