Skip to content

Commit 7a88237

Browse files
authored
Remove DEVELOPER_ID_APPLICATION_G2 certificate type (#467)
1 parent 4595f16 commit 7a88237

File tree

8 files changed

+29
-21
lines changed

8 files changed

+29
-21
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/asottile/add-trailing-comma
8-
rev: v3.1.0
8+
rev: v3.2.0
99
hooks:
1010
- id: add-trailing-comma
1111
- repo: https://github.com/psf/black
@@ -14,14 +14,16 @@ repos:
1414
- id: black
1515
language_version: python3.11
1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.9.6
17+
rev: v0.11.13
1818
hooks:
1919
- id: ruff
2020
args: [ --fix ]
2121
- id: ruff-format
2222
- repo: https://github.com/pre-commit/mirrors-mypy
23-
rev: v1.15.0
23+
rev: v1.16.0
2424
hooks:
2525
- id: mypy
26-
additional_dependencies: [types-requests]
26+
additional_dependencies:
27+
- types-requests
28+
- types-python-dateutil
2729
exclude: ^tests/

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
Version 0.59.0
2+
-------------
3+
4+
This release contains changes from [PR #467](https://github.com/codemagic-ci-cd/cli-tools/pull/467).
5+
6+
**Breaking**
7+
- Enumeration value `DEVELOPER_ID_APPLICATION_G2` is removed from `codemagic.apple.resources.CertificateType`.
8+
9+
**Bugfixes**
10+
- Fix action `app-store-connect fetch-signing-files` when fetching signing files for macOS apps that use direct distribution provisioning profiles (invoked with either option `--type=MAC_APP_DIRECT` or `--type=MAC_CATALYST_APP_DIRECT`).
11+
- Fix action `app-store-connect certificates list` when listing certificates for macOS direct distribution provisioning profiles or explicitly with type `DEVELOPER_ID_APPLICATION_G2` (either invoked with `--profile-type=MAC_APP_DIRECT`, `--profile-type=MAC_CATALYST_APP_DIRECT` or `--type=DEVELOPER_ID_APPLICATION_G2`).
12+
- Fix action `app-store-connect certificates create` when invoked with `--type=DEVELOPER_ID_APPLICATION_G2`.
13+
14+
**Docs**
15+
- Update docs for `app-store-connect certificates create`.
16+
- Update docs for `app-store-connect certificates list`.
17+
118
Version 0.58.3
219
-------------
320

docs/app-store-connect/certificates/create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ app-store-connect certificates create [-h] [--log-stream STREAM] [--no-color] [-
2626
```
2727
### Optional arguments for action `create`
2828

29-
##### `--type=DEVELOPER_ID_APPLICATION | DEVELOPER_ID_APPLICATION_G2 | DEVELOPER_ID_KEXT | DEVELOPMENT | DISTRIBUTION | IOS_DEVELOPMENT | IOS_DISTRIBUTION | MAC_APP_DEVELOPMENT | MAC_APP_DISTRIBUTION | MAC_INSTALLER_DISTRIBUTION`
29+
##### `--type=DEVELOPER_ID_APPLICATION | DEVELOPER_ID_KEXT | DEVELOPMENT | DISTRIBUTION | IOS_DEVELOPMENT | IOS_DISTRIBUTION | MAC_APP_DEVELOPMENT | MAC_APP_DISTRIBUTION | MAC_INSTALLER_DISTRIBUTION`
3030

3131

3232
Type of the certificate. Default: `IOS_DEVELOPMENT`

docs/app-store-connect/certificates/list.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app-store-connect certificates list [-h] [--log-stream STREAM] [--no-color] [--v
2727
```
2828
### Optional arguments for action `list`
2929

30-
##### `--type=DEVELOPER_ID_APPLICATION | DEVELOPER_ID_APPLICATION_G2 | DEVELOPER_ID_KEXT | DEVELOPMENT | DISTRIBUTION | IOS_DEVELOPMENT | IOS_DISTRIBUTION | MAC_APP_DEVELOPMENT | MAC_APP_DISTRIBUTION | MAC_INSTALLER_DISTRIBUTION`
30+
##### `--type=DEVELOPER_ID_APPLICATION | DEVELOPER_ID_KEXT | DEVELOPMENT | DISTRIBUTION | IOS_DEVELOPMENT | IOS_DISTRIBUTION | MAC_APP_DEVELOPMENT | MAC_APP_DISTRIBUTION | MAC_INSTALLER_DISTRIBUTION`
3131

3232

3333
Type of the certificate. Multiple arguments

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "codemagic-cli-tools"
3-
version = "0.58.3"
3+
version = "0.59.0"
44
description = "CLI tools used in Codemagic builds"
55
readme = "README.md"
66
authors = [

src/codemagic/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = "codemagic-cli-tools"
22
__description__ = "CLI tools used in Codemagic builds"
3-
__version__ = "0.58.3.dev"
3+
__version__ = "0.59.0.dev"
44
__url__ = "https://github.com/codemagic-ci-cd/cli-tools"
55
__licence__ = "GNU General Public License v3.0"

src/codemagic/apple/resources/enums.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,6 @@ class CertificateType(ResourceEnum):
167167
"""
168168

169169
DEVELOPER_ID_APPLICATION = "DEVELOPER_ID_APPLICATION"
170-
# Undocumented developer ID certificate with profile type "G2 Sub-CA"
171-
DEVELOPER_ID_APPLICATION_G2 = "DEVELOPER_ID_APPLICATION_G2"
172170
DEVELOPER_ID_KEXT = "DEVELOPER_ID_KEXT"
173171
DEVELOPMENT = "DEVELOPMENT"
174172
DISTRIBUTION = "DISTRIBUTION"
@@ -242,13 +240,6 @@ def resolve_applicable_types(
242240
elif profile_type is ProfileType.MAC_APP_STORE:
243241
types.append(CertificateType.MAC_APP_DISTRIBUTION)
244242

245-
# Developer ID profiles can also be used with undocumented (as of 04.07.24) flavor
246-
# of developer ID application certificates that have special G2 suffix in the type name.
247-
# Said profiles themselves have the same type as before regardless of whether they
248-
# are of type "G2 Sub-GA" or "Previous Sub-GA".
249-
if profile_type in (ProfileType.MAC_APP_DIRECT, ProfileType.MAC_CATALYST_APP_DIRECT):
250-
types.append(CertificateType.DEVELOPER_ID_APPLICATION_G2)
251-
252243
# Remove duplicate entries from the list in order-preserving way.
253244
return list(OrderedDict.fromkeys(types))
254245

tests/apple/resources/enums/test_certificate_type.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ def test_resolve_applicable_types_using_profile_type_with_one_match(
114114
),
115115
(
116116
ProfileType.MAC_APP_DIRECT,
117-
[CertificateType.DEVELOPER_ID_APPLICATION, CertificateType.DEVELOPER_ID_APPLICATION_G2],
117+
[CertificateType.DEVELOPER_ID_APPLICATION],
118118
),
119119
(
120120
ProfileType.MAC_CATALYST_APP_DIRECT,
121-
[CertificateType.DEVELOPER_ID_APPLICATION, CertificateType.DEVELOPER_ID_APPLICATION_G2],
121+
[CertificateType.DEVELOPER_ID_APPLICATION],
122122
),
123123
(
124124
ProfileType.MAC_APP_STORE,
@@ -148,12 +148,10 @@ def test_resolve_applicable_types_with_multiple_arguments():
148148
profile_type=ProfileType.IOS_APP_STORE,
149149
certificate_types=[
150150
CertificateType.DEVELOPER_ID_APPLICATION,
151-
CertificateType.DEVELOPER_ID_APPLICATION_G2,
152151
],
153152
)
154153
expected_certificate_types = [
155154
CertificateType.DEVELOPER_ID_APPLICATION, # From "certificate_types" argument
156-
CertificateType.DEVELOPER_ID_APPLICATION_G2, # From "certificate_types" argument
157155
CertificateType.DISTRIBUTION, # From given profile type
158156
CertificateType.IOS_DISTRIBUTION, # From given profile type
159157
]

0 commit comments

Comments
 (0)