lib/spaceship/portal/certificate.rb in spaceship-0.21.0 vs lib/spaceship/portal/certificate.rb in spaceship-0.21.1

- old
+ new

@@ -153,10 +153,20 @@ "3T2ZP62QW8" => WebsitePush, "E5D663CMZW" => WebsitePush, "4APLUP237T" => ApplePay } + OLDER_IOS_CERTIFICATE_TYPES = [ + # those are also sent by the browser, but not sure what they represent + "T44PTHVNID", + "DZQUP8189Y", + "FGQUP4785Z", + "S5WE21TULA", + "3BQKVH9I2X", # ProductionPush, + "FUOY7LWJET" + ] + MAC_CERTIFICATE_TYPE_IDS = { "749Y1QAGU7" => MacDevelopment, "HXZEUKP0FP" => MacAppDistribution, "2PQI8IDXNH" => MacInstallerDistribution, "OYVN2GW35E" => DeveloperIDInstaller, @@ -237,9 +247,10 @@ # only include certificates matching the current type. def all(mac: false) if self == Certificate # are we the base-class? type_ids = mac ? MAC_CERTIFICATE_TYPE_IDS : IOS_CERTIFICATE_TYPE_IDS types = type_ids.keys + types += OLDER_IOS_CERTIFICATE_TYPES unless mac else types = [CERTIFICATE_TYPE_IDS.key(self)] mac = MAC_CERTIFICATE_TYPE_IDS.values.include? self end