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 +4 -4
- data/lib/adsedare/install_profiles.rb +8 -0
- data/lib/adsedare/version.rb +1 -1
- data/lib/adsedare.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d212379c20e5b617e72240f0c85a3e278dc3224900aa1396eeab4f6285cf515
|
4
|
+
data.tar.gz: 605549cc1f8c4a293e900b961cc0a53b58157cbdddbb84f08847e8a98fa5da67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/adsedare/version.rb
CHANGED
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
|
-
|
143
|
-
if !
|
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.
|
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-
|
10
|
+
date: 2025-07-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|