diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b86f920..aee89ef3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Version 0.6.1 +------------- + +**Fixes** + +- Allow `passTypeId` relationship for [Certificate](https://developer.apple.com/documentation/appstoreconnectapi/certificate) model. + Version 0.6.0 ------------- diff --git a/src/codemagic/__version__.py b/src/codemagic/__version__.py index 34676327..252e5781 100644 --- a/src/codemagic/__version__.py +++ b/src/codemagic/__version__.py @@ -1,5 +1,5 @@ __title__ = 'codemagic-cli-tools' __description__ = 'CLI tools used in Codemagic builds' -__version__ = '0.6.0' +__version__ = '0.6.1' __url__ = 'https://github.com/codemagic-ci-cd/cli-tools' __licence__ = 'GNU General Public License v3.0' diff --git a/src/codemagic/apple/resources/signing_certificate.py b/src/codemagic/apple/resources/signing_certificate.py index 4739f426..a4eb4862 100644 --- a/src/codemagic/apple/resources/signing_certificate.py +++ b/src/codemagic/apple/resources/signing_certificate.py @@ -10,6 +10,7 @@ from .bundle_id import BundleIdPlatform from .enums import CertificateType +from .resource import Relationship from .resource import Resource @@ -37,6 +38,12 @@ def __post_init__(self): if isinstance(self.certificateType, str): self.certificateType = CertificateType(self.certificateType) + @dataclass + class Relationships(Resource.Relationships): + _OMIT_IF_NONE_KEYS = ('passTypeId',) + + passTypeId: Optional[Relationship] + def get_display_info(self) -> str: return f'{self.attributes.certificateType} certificate {self.attributes.serialNumber}'