adsedare 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 690388aeb46674b4df24ccbc320f54604f70671538c38146200bab7579f752dd
4
- data.tar.gz: 942a38b80af4938b37a9487ed200f8cef5952a16566a72b175d6f670943c40c1
3
+ metadata.gz: 5d212379c20e5b617e72240f0c85a3e278dc3224900aa1396eeab4f6285cf515
4
+ data.tar.gz: 605549cc1f8c4a293e900b961cc0a53b58157cbdddbb84f08847e8a98fa5da67
5
5
  SHA512:
6
- metadata.gz: f9e0d0d44e7020d5a0c4e6011238ee01996634f313e802d83dd28971c1eb9d97820c3820497029761242a70e9bf9c3d059651685ad299348cd0891b6dac93900
7
- data.tar.gz: 40325179dec57602f0c40e5ae745b5098c9922e9af8cf35a3384bab65cc6cdb51222e68d71cfec189496a844001a5d52170a8baa1ecc4eaddf88190f46a2a420
6
+ metadata.gz: 95628e4cf84b9f1ecef880c892c6367549a07d136169f2dda1308fc79dd2e8bba326f25157391f875fe1ef1a08e05731115075982279aa471bf3e1cf351d3b67
7
+ data.tar.gz: e6e72667b14c6f705b14321380ee64b29a791c64b7b64167d36334a70429029d2424c3520ecc1b1107a565e084c13cd16011c8d6d9b731fd455f61ddd17de250
@@ -26,6 +26,8 @@ module Adsedare
26
26
  end
27
27
  end.flatten.uniq
28
28
 
29
+ puts project_bundles
30
+
29
31
  bundles_with_profiles = AppStoreConnect::Client.get_bundles_with_profiles(project_bundles)
30
32
  bundle_by_identifier = {}
31
33
  profiles_by_id = {}
@@ -58,6 +60,12 @@ module Adsedare
58
60
  profile_id = profile["id"]
59
61
  profile = profiles_by_id[profile_id]
60
62
 
63
+ profile_name = profile["attributes"]["name"]
64
+ # Xcode managed profiles can't be used for signing
65
+ if profile_name.start_with?("iOS Team Ad Hoc Provisioning Profile") || profile_name.start_with?("XC")
66
+ next
67
+ end
68
+
61
69
  if profile["attributes"]["profileType"] == "IOS_APP_ADHOC" && profile["attributes"]["profileState"] == "ACTIVE"
62
70
  ad_hoc_profile = profile
63
71
  break
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Adsedare
4
- VERSION = "0.0.7"
4
+ VERSION = "0.0.9"
5
5
  end
data/lib/adsedare.rb CHANGED
@@ -137,10 +137,14 @@ module Adsedare
137
137
  devices = get_devices(team_id)
138
138
  deviceIds = devices.map { |device| device["id"] }
139
139
 
140
+ profileDeviceIds = profile["provisioningProfile"]["devices"].map {
141
+ |device| device["deviceId"]
142
+ }
143
+
140
144
  need_update = false
141
145
 
142
- profile["provisioningProfile"]["devices"].each do |device|
143
- if !deviceIds.include?(device["deviceId"])
146
+ deviceIds.each do |deviceId|
147
+ if !profileDeviceIds.include?(deviceId)
144
148
  need_update = true
145
149
  break
146
150
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adsedare
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - alexstrnik
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-27 00:00:00.000000000 Z
10
+ date: 2025-07-23 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rake