fastlane-plugin-update_provisioning_profile_specifier 1.2.0 → 1.3.0

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
  SHA1:
3
- metadata.gz: b471145c7d643fcdb5495c8069227d3e773bc7f0
4
- data.tar.gz: ca277e83ca0843b3d57af4c95d9adc82c7440621
3
+ metadata.gz: 67a91617efeba4b7b542f59347026565f72984de
4
+ data.tar.gz: d2cc184a469ed5a5f7d9b3aad339731d3e6ff214
5
5
  SHA512:
6
- metadata.gz: c15197038afef22998b56bbda5675e79304807e9d6a5971d89191266ce97331eab2bcb4e5af4fa61fd14a26e0547d9e1e87c6d5f76baa1f39c3fa62a246002fd
7
- data.tar.gz: 99d5df48d8569ce592d1e5e00fdfce645b4ad7e1f0b9aedc8f28abf84939070716078b0324e7230fa0ecc959ee811dfe3629548d10696b8ea6509a9c95e935f6
6
+ metadata.gz: 30730e189ae87d140e78787c25802ad1cc35f104a5d284d6d3c6bec4ad26d42620695595a25895cd738b2df2d456d1606052ae8bbf5704810ea74d40590dffbb
7
+ data.tar.gz: '0837d81fdf3959dff06aeafd78c71efd0257020b00f774c29ccae7ee67d8988112e7e1775f5086106dabbd16ebeabf3f0a2ece88008969384f0e1b0b46190dbe'
@@ -13,6 +13,7 @@ module Fastlane
13
13
  project_file_path = File.join(pdir, "project.pbxproj")
14
14
  UI.user_error!("Could not find path to project config '#{project_file_path}'. Pass the path to your project (NOT workspace!)") unless File.exist?(project_file_path)
15
15
  target = params[:target]
16
+ configuration = params[:configuration]
16
17
 
17
18
  project = Xcodeproj::Project.open(pdir)
18
19
  project.targets.each do |t|
@@ -24,6 +25,13 @@ module Fastlane
24
25
  end
25
26
 
26
27
  t.build_configuration_list.build_configurations.each do |config|
28
+ if !configuration || config.name.match(configuration)
29
+ UI.success("Updating configuration #{config.name}")
30
+ else
31
+ UI.important("Skipping configuration #{config.name} as it doesn't match the filter '#{configuration}'")
32
+ next
33
+ end
34
+
27
35
  if params[:append]
28
36
  cur = config.build_settings[specifier_key]
29
37
  config.build_settings[specifier_key] = cur + params[:new_specifier]
@@ -60,6 +68,12 @@ module Fastlane
60
68
  key: :target,
61
69
  env_name: "UPDATE_PROVISIONING_PROFILE_SPECIFIER_TARGET",
62
70
  description: "The target for which to change the Provisioning Profile Specifier. If unspecified the change will be applied to all targets",
71
+ optional: true
72
+ ),
73
+ FastlaneCore::ConfigItem.new(
74
+ key: :configuration,
75
+ env_name: "UPDATE_PROVISIONING_PROFILE_SPECIFIER_CONFIGURATION",
76
+ description: "The configuration for which to change the Provisioning Profile Specifier. If unspecified the change will be applied to all configurations",
63
77
  optional: true
64
78
  ),
65
79
  FastlaneCore::ConfigItem.new(
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UpdateProvisioningProfileSpecifier
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-update_provisioning_profile_specifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Bondo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-29 00:00:00.000000000 Z
11
+ date: 2017-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj