Skip to content

Commit fbf2ddc

Browse files
authored
Merge pull request #286 from LoopKit/hotfix/add_identifiers
main branch: Use a special version of fastlane to enable Add Identifiers
2 parents 016c1fd + c913b6f commit fbf2ddc

File tree

4 files changed

+66
-53
lines changed

4 files changed

+66
-53
lines changed

Gemfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
source "https://rubygems.org"
22

3-
gem "fastlane"
3+
# gem "fastlane"
4+
5+
# This branch uses fastlane 2.228.0 plus pr 29596
6+
gem "fastlane", git: "https://github.com/loopandlearn/fastlane.git", ref: "a670d4b092b274d58ebb5497126e47fc6a84f533"

Gemfile.lock

Lines changed: 52 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,51 @@
1+
GIT
2+
remote: https://github.com/loopandlearn/fastlane.git
3+
revision: a670d4b092b274d58ebb5497126e47fc6a84f533
4+
ref: a670d4b092b274d58ebb5497126e47fc6a84f533
5+
specs:
6+
fastlane (2.228.0)
7+
CFPropertyList (>= 2.3, < 4.0.0)
8+
addressable (>= 2.8, < 3.0.0)
9+
artifactory (~> 3.0)
10+
aws-sdk-s3 (~> 1.0)
11+
babosa (>= 1.0.3, < 2.0.0)
12+
bundler (>= 1.12.0, < 3.0.0)
13+
colored (~> 1.2)
14+
commander (~> 4.6)
15+
dotenv (>= 2.1.1, < 3.0.0)
16+
emoji_regex (>= 0.1, < 4.0)
17+
excon (>= 0.71.0, < 1.0.0)
18+
faraday (~> 1.0)
19+
faraday-cookie_jar (~> 0.0.6)
20+
faraday_middleware (~> 1.0)
21+
fastimage (>= 2.1.0, < 3.0.0)
22+
fastlane-sirp (>= 1.0.0)
23+
gh_inspector (>= 1.1.2, < 2.0.0)
24+
google-apis-androidpublisher_v3 (~> 0.3)
25+
google-apis-playcustomapp_v1 (~> 0.1)
26+
google-cloud-env (>= 1.6.0, < 2.0.0)
27+
google-cloud-storage (~> 1.31)
28+
highline (~> 2.0)
29+
http-cookie (~> 1.0.5)
30+
json (< 3.0.0)
31+
jwt (>= 2.1.0, < 3)
32+
mini_magick (>= 4.9.4, < 5.0.0)
33+
multipart-post (>= 2.0.0, < 3.0.0)
34+
naturally (~> 2.2)
35+
optparse (>= 0.1.1, < 1.0.0)
36+
plist (>= 3.1.0, < 4.0.0)
37+
rubyzip (>= 2.0.0, < 3.0.0)
38+
security (= 0.1.5)
39+
simctl (~> 1.6.3)
40+
terminal-notifier (>= 2.0.0, < 3.0.0)
41+
terminal-table (~> 3)
42+
tty-screen (>= 0.6.3, < 1.0.0)
43+
tty-spinner (>= 0.8.0, < 1.0.0)
44+
word_wrap (~> 1.0.0)
45+
xcodeproj (>= 1.13.0, < 2.0.0)
46+
xcpretty (~> 0.4.1)
47+
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
48+
149
GEM
250
remote: https://rubygems.org/
351
specs:
@@ -10,15 +58,15 @@ GEM
1058
artifactory (3.0.17)
1159
atomos (0.1.3)
1260
aws-eventstream (1.4.0)
13-
aws-partitions (1.1115.0)
61+
aws-partitions (1.1116.0)
1462
aws-sdk-core (3.225.2)
1563
aws-eventstream (~> 1, >= 1.3.0)
1664
aws-partitions (~> 1, >= 1.992.0)
1765
aws-sigv4 (~> 1.9)
1866
base64
1967
jmespath (~> 1, >= 1.6.1)
2068
logger
21-
aws-sdk-kms (1.104.0)
69+
aws-sdk-kms (1.105.0)
2270
aws-sdk-core (~> 3, >= 3.225.0)
2371
aws-sigv4 (~> 1.5)
2472
aws-sdk-s3 (1.189.1)
@@ -70,48 +118,6 @@ GEM
70118
faraday_middleware (1.2.1)
71119
faraday (~> 1.0)
72120
fastimage (2.4.0)
73-
fastlane (2.228.0)
74-
CFPropertyList (>= 2.3, < 4.0.0)
75-
addressable (>= 2.8, < 3.0.0)
76-
artifactory (~> 3.0)
77-
aws-sdk-s3 (~> 1.0)
78-
babosa (>= 1.0.3, < 2.0.0)
79-
bundler (>= 1.12.0, < 3.0.0)
80-
colored (~> 1.2)
81-
commander (~> 4.6)
82-
dotenv (>= 2.1.1, < 3.0.0)
83-
emoji_regex (>= 0.1, < 4.0)
84-
excon (>= 0.71.0, < 1.0.0)
85-
faraday (~> 1.0)
86-
faraday-cookie_jar (~> 0.0.6)
87-
faraday_middleware (~> 1.0)
88-
fastimage (>= 2.1.0, < 3.0.0)
89-
fastlane-sirp (>= 1.0.0)
90-
gh_inspector (>= 1.1.2, < 2.0.0)
91-
google-apis-androidpublisher_v3 (~> 0.3)
92-
google-apis-playcustomapp_v1 (~> 0.1)
93-
google-cloud-env (>= 1.6.0, < 2.0.0)
94-
google-cloud-storage (~> 1.31)
95-
highline (~> 2.0)
96-
http-cookie (~> 1.0.5)
97-
json (< 3.0.0)
98-
jwt (>= 2.1.0, < 3)
99-
mini_magick (>= 4.9.4, < 5.0.0)
100-
multipart-post (>= 2.0.0, < 3.0.0)
101-
naturally (~> 2.2)
102-
optparse (>= 0.1.1, < 1.0.0)
103-
plist (>= 3.1.0, < 4.0.0)
104-
rubyzip (>= 2.0.0, < 3.0.0)
105-
security (= 0.1.5)
106-
simctl (~> 1.6.3)
107-
terminal-notifier (>= 2.0.0, < 3.0.0)
108-
terminal-table (~> 3)
109-
tty-screen (>= 0.6.3, < 1.0.0)
110-
tty-spinner (>= 0.8.0, < 1.0.0)
111-
word_wrap (~> 1.0.0)
112-
xcodeproj (>= 1.13.0, < 2.0.0)
113-
xcpretty (~> 0.4.1)
114-
xcpretty-travis-formatter (>= 0.0.3, < 2.0.0)
115121
fastlane-sirp (1.0.0)
116122
sysrandom (~> 1.0)
117123
gh_inspector (1.1.3)
@@ -167,7 +173,7 @@ GEM
167173
multipart-post (2.4.1)
168174
mutex_m (0.3.0)
169175
nanaimo (0.4.0)
170-
naturally (2.2.2)
176+
naturally (2.3.0)
171177
nkf (0.2.0)
172178
optparse (0.6.0)
173179
os (1.1.4)
@@ -226,7 +232,7 @@ PLATFORMS
226232
x86_64-linux
227233

228234
DEPENDENCIES
229-
fastlane
235+
fastlane!
230236

231237
BUNDLED WITH
232238
2.6.2

VersionOverride.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88

99
// Version [for DIY Loop]
1010
// configure the version number in LoopWorkspace
11-
LOOP_MARKETING_VERSION = 3.6.1
11+
LOOP_MARKETING_VERSION = 3.6.2
1212
CURRENT_PROJECT_VERSION = 57

fastlane/Fastfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,22 @@ platform :ios do
171171
)
172172

173173
def configure_bundle_id(name, identifier, capabilities)
174-
bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier) || Spaceship::ConnectAPI::BundleId.create(name: name, identifier: identifier)
175-
capabilities.each { |capability|
176-
bundle_id.create_capability(capability)
177-
}
174+
bundle_id = Spaceship::ConnectAPI::BundleId.find(identifier) || Spaceship::ConnectAPI::BundleId.create(
175+
name: name,
176+
identifier: identifier,
177+
platform: "IOS"
178+
)
179+
existing = bundle_id.get_capabilities.map(&:capability_type)
180+
capabilities.reject { |c| existing.include?(c) }.each do |cap|
181+
bundle_id.create_capability(cap)
182+
end
178183
end
179184

180185
configure_bundle_id("Loop", "com.#{TEAMID}.loopkit.Loop", [
181186
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS,
182187
Spaceship::ConnectAPI::BundleIdCapability::Type::HEALTHKIT,
183188
Spaceship::ConnectAPI::BundleIdCapability::Type::PUSH_NOTIFICATIONS,
184189
Spaceship::ConnectAPI::BundleIdCapability::Type::SIRIKIT,
185-
Spaceship::ConnectAPI::BundleIdCapability::Type::USERNOTIFICATIONS_TIMESENSITIVE,
186190
Spaceship::ConnectAPI::BundleIdCapability::Type::NFC_TAG_READING
187191
])
188192

0 commit comments

Comments
 (0)