ETLane 0.1.45 → 0.1.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Lanes/CommonFastfile +12 -29
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6988424af1f01c1dd80171527e3155fb55f2d026d90223e97d7c369f47ac7193
|
4
|
+
data.tar.gz: 2ab7c802fd4083513c5c26f1e286a759b6ba22aae7cbaa51cfee7f6146e0a59c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 020f0e089a0aa90d47a0f7077a2b0daad48e0eaa8aba13ad113867e6c64ba51667d1b75c5f3c13e54eb0cba443c68b7bc9f5add543ce5de09368566e7ebcd5ff
|
7
|
+
data.tar.gz: 8e78979ecde60e8d4127cc17f277bd6c3bf78c44da4c6486f59e4675ad26eccf54f610f3e3b5ee07b7be732c492e4ade3a7d3ac9e6864cab1077027b66a3dfe9
|
data/Lanes/CommonFastfile
CHANGED
@@ -13,6 +13,7 @@ platform :ios do
|
|
13
13
|
|
14
14
|
desc "Push a new beta build to TestFlight"
|
15
15
|
lane :beta do |options|
|
16
|
+
work_branch = options[:branch]|| ENV["ET_BRANCH"] || 'master'
|
16
17
|
setup_new_session(options)
|
17
18
|
provisioning_profile = "AppStore_#{product_bundle_identifier}"
|
18
19
|
username = options[:username]
|
@@ -43,6 +44,7 @@ platform :ios do
|
|
43
44
|
},
|
44
45
|
)
|
45
46
|
last_commit = File.read(last_commit_path)
|
47
|
+
last_commit = last_commit.strip! || last_commit if last_commit
|
46
48
|
changelog = changelog_from_git_commits(
|
47
49
|
quiet: true,
|
48
50
|
between: [last_commit, "HEAD"], # Optional, lets you specify a revision/tag range between which to collect commit info
|
@@ -52,12 +54,11 @@ platform :ios do
|
|
52
54
|
merge_commit_filtering: "exclude_merges" # Optional, lets you filter out merge commits
|
53
55
|
)
|
54
56
|
puts changelog
|
55
|
-
build_number =
|
57
|
+
build_number = latest_testflight_build_number()
|
56
58
|
version = get_version_number(target: project_name) + " (" + build_number + ")"
|
57
59
|
branch_name = "feature/#{build_number}"
|
58
60
|
sh("git", "checkout", "-B", branch_name)
|
59
61
|
increment_and_push()
|
60
|
-
ENV["FL_CHANGELOG"] = nil
|
61
62
|
|
62
63
|
beta_app_review_info = {}
|
63
64
|
if ENV["ET_BETA_APP_REVIEW_INFO"]
|
@@ -66,10 +67,14 @@ platform :ios do
|
|
66
67
|
|
67
68
|
exception = nil
|
68
69
|
begin
|
70
|
+
app_store_connect_api_key(
|
71
|
+
duration: 1200, # optional (maximum 1200)
|
72
|
+
in_house: false # optional but may be required if using match/sigh
|
73
|
+
)
|
69
74
|
upload_to_testflight(
|
70
75
|
username: username,
|
71
76
|
beta_app_review_info: beta_app_review_info,
|
72
|
-
changelog:
|
77
|
+
changelog: changelog,
|
73
78
|
groups: ["#{distribute_group_name}"]
|
74
79
|
)
|
75
80
|
tag = get_version_number(target: project_name) + "." + build_number
|
@@ -89,7 +94,6 @@ platform :ios do
|
|
89
94
|
commit_bump(message: "Freeze changelog")
|
90
95
|
end
|
91
96
|
end
|
92
|
-
work_branch = ENV["ET_BRANCH"] || 'master'
|
93
97
|
sh("git", "checkout", work_branch)
|
94
98
|
sh("git", "pull", "origin", work_branch)
|
95
99
|
sh("git", "merge", branch_name)
|
@@ -288,31 +292,10 @@ platform :ios do
|
|
288
292
|
end
|
289
293
|
|
290
294
|
lane :setup_new_session do |options|
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
end
|
296
|
-
|
297
|
-
lane :retrieve_fastlane_session do |options|
|
298
|
-
# runs shell
|
299
|
-
username = options[:username]
|
300
|
-
spaceauth_output = `bundle exec fastlane spaceauth -u #{username}`
|
301
|
-
# regex the output for the value we need
|
302
|
-
fastlane_session_regex = %r{Pass the following via the FASTLANE_SESSION environment variable:\n(?<session>.+)\n\n\nExample:\n.+}
|
303
|
-
new_session = nil
|
304
|
-
if match = spaceauth_output.match(fastlane_session_regex)
|
305
|
-
# Strip out the fancy formatting
|
306
|
-
new_session = match[:session].gsub("\e[4m\e[36m", "").gsub("\e[0m\e[0m", "")
|
307
|
-
end
|
308
|
-
|
309
|
-
# Yell and quit if unable to parse out session from spaceauth output
|
310
|
-
if new_session.nil?
|
311
|
-
puts "Unable to obtain new session via fastlane spaceauth"
|
312
|
-
exit 1
|
313
|
-
else
|
314
|
-
new_session
|
315
|
-
end
|
295
|
+
app_store_connect_api_key(
|
296
|
+
duration: 1200, # optional (maximum 1200)
|
297
|
+
in_house: false # optional but may be required if using match/sigh
|
298
|
+
)
|
316
299
|
end
|
317
300
|
|
318
301
|
end
|
metadata
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ETLane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- teanet
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 'Xcode helper for upload builds and metadata
|
14
14
|
|
15
|
-
'
|
16
|
-
email:
|
15
|
+
'
|
16
|
+
email:
|
17
17
|
executables: []
|
18
18
|
extensions: []
|
19
19
|
extra_rdoc_files: []
|
@@ -50,7 +50,7 @@ homepage: https://github.com/teanet/ETLane
|
|
50
50
|
licenses:
|
51
51
|
- MIT
|
52
52
|
metadata: {}
|
53
|
-
post_install_message:
|
53
|
+
post_install_message:
|
54
54
|
rdoc_options: []
|
55
55
|
require_paths:
|
56
56
|
- lib
|
@@ -65,8 +65,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
requirements: []
|
68
|
-
rubygems_version: 3.0.
|
69
|
-
signing_key:
|
68
|
+
rubygems_version: 3.0.1
|
69
|
+
signing_key:
|
70
70
|
specification_version: 4
|
71
71
|
summary: A short description of ETLane.
|
72
72
|
test_files: []
|