fastlane-plugin-stream_actions 0.3.16 → 0.3.18

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: '070439a9ff217b83a8386baf050f740bff058d01a1c74212d639fc1d7e80f8bb'
4
- data.tar.gz: a4c05c4cecc3935de2184dd4ff255be73dbc3f7cd97377c4ea0bf5b6f76ca1ca
3
+ metadata.gz: 3e4674e4c6bc2ac4759c650d0e49be2dadae8a9400b3b74b2da591abfdaa0c4e
4
+ data.tar.gz: 037e2b4e807c94f8fdf1e7e667d0858fb3e45f9a5a4bd7ac508cd51a7b037280
5
5
  SHA512:
6
- metadata.gz: 74e7b2abb13e04905c257367eb0dd615fdecfb93ef9811532adc3bc0bec3666e9214593461d7a4f136bef5a5a32694f35ac42dbf32031d5f395aec23fdbc5bdc
7
- data.tar.gz: 436188a8d2c29ae7fc8d50f5857e3d036aaab44a186b7c168d2b95ead192041626bd389152803a42fe410829665149b3381df11d9036f3fd9815464b2dfca670
6
+ metadata.gz: eb8dedd395627711da96e0dc879aa9989de6afab4472552250c84b4122b0519b564190b9fb4ae7d21aa96a63b6e2256450ff28fa0e43db45510b27897d8ed2d7
7
+ data.tar.gz: 3d9f881ec8c4248de7d0219f507bb52d4e0c2a7ab9f368802794c9cf6523f4eac8c7b5192b019b90aa28674c0d7ca215e7405622bdb5c754f6e98cd66296310b
@@ -10,6 +10,7 @@ module Fastlane
10
10
 
11
11
  if ios_version.nil?
12
12
  sim = simulators.filter { |d| d.name == params[:device] }.max_by(&:os_version)
13
+ ios_version = sim.os_version if sim
13
14
  else
14
15
  sim = simulators.detect { |d| "#{d.name} (#{d.os_version})" == params[:device] }
15
16
  udid = `xcrun simctl create '#{device_name}' '#{device_name}' 'iOS#{ios_version.delete('()')}'` if sim.nil?
@@ -7,9 +7,15 @@ module Fastlane
7
7
  api_key: params[:api_key]
8
8
  ) + 1
9
9
 
10
+ Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.from(hash: params[:api_key])
11
+ app_store_versions = Spaceship::ConnectAPI::App.find(params[:app_identifier]).app_store_versions
12
+
10
13
  targets = params[:extensions] << params[:app_target]
11
14
  targets.each do |target|
12
15
  other_action.increment_build_number_in_plist(build_number: build_number.to_s, target: target)
16
+ next if app_store_versions.empty?
17
+
18
+ other_action.increment_version_number_in_plist(version_number: app_store_versions.first.version_string, target: target)
13
19
  end
14
20
 
15
21
  other_action.gym(
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = '0.3.16'
3
+ VERSION = '0.3.18'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.16
4
+ version: 0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-14 00:00:00.000000000 Z
11
+ date: 2023-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xctest_list