fastlane-plugin-update_project_codesigning 0.1.2 → 0.1.3.pre.alpha.pre.15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1270af730251d055a368d6017fd9b9344d6f9f0c
4
- data.tar.gz: 920c9e0d20441f34f35ddafbd1ae6f2d183a2446
3
+ metadata.gz: abf15e47b445730338cb341e4a0fff5694493c56
4
+ data.tar.gz: 417b7b587f063e085fcd1ca87611fc47f24e7414
5
5
  SHA512:
6
- metadata.gz: 5107807b66d13a438fb555fafff147203ec20b4b30093e5705acb454396de941432ab0489484e808426616909e295a55b8363382a86bb5bbb61a21fbb9d80def
7
- data.tar.gz: fd1937a3ef5ce04d9b7718a05d7975c71393e283e6c01c684ffb143362872f5befcc687f66f00dce1dd1429047acc6f2b002b7b84823bc3dc703b223250df9f5
6
+ metadata.gz: 582f1f82a66f864b30a6abc2be65751e28969f0be5b9640e2e27095823b195908aa30227eac4c7efa9a4ce1dd995052f6ba40288141ea613966df66b71a59765
7
+ data.tar.gz: 896b00a21c3e9f66272a454dc7a24fb3e19247576e5b305f2be0d62841c1bac2bc5c14e72dbeb7319ac50e779945fcc250e2301a89d6b1d72f68b55e1866b2a9
@@ -1,13 +1,18 @@
1
+ require 'xcodeproj'
1
2
  module Fastlane
2
3
  module Actions
3
4
  class UpdateProjectCodesigningAction < Action
4
5
  def self.run(params)
5
6
  path = params[:path]
6
7
  path = File.join(File.expand_path(path), "project.pbxproj")
8
+
9
+ project = Xcodeproj::Project.open(params[:path])
7
10
  UI.user_error!("Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!") unless File.exist?(path)
8
11
  UI.message("Updating the Automatic Codesigning flag to #{params[:use_automatic_signing] ? 'enabled' : 'disabled'} for the given project '#{path}'")
9
- p = File.read(path)
10
- File.write(path, p.gsub(/ProvisioningStyle = .*;/, "ProvisioningStyle = #{params[:use_automatic_signing] ? 'Automatic' : 'Manual'};"))
12
+ project.root_object.attributes["TargetAttributes"].each do |target, sett|
13
+ sett["ProvisioningStyle"] = params[:use_automatic_signing] ? 'Automatic' : 'Manual'
14
+ end
15
+ project.save
11
16
  UI.success("Successfully updated project settings to use ProvisioningStyle '#{params[:use_automatic_signing] ? 'Automatic' : 'Manual'}'")
12
17
  end
13
18
 
@@ -30,6 +35,7 @@ module Fastlane
30
35
  FastlaneCore::ConfigItem.new(key: :use_automatic_signing,
31
36
  env_name: "FL_PROJECT_USE_AUTOMATIC_SIGNING",
32
37
  description: "Defines if project should use automatic signing",
38
+ is_string: false,
33
39
  default_value: false)
34
40
  ]
35
41
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UpdateProjectCodesigning
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-update_project_codesigning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3.pre.alpha.pre.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Helmut Januschka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-15 00:00:00.000000000 Z
11
+ date: 2016-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: xcodeproj
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: pry
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -121,9 +135,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
121
135
  version: '0'
122
136
  required_rubygems_version: !ruby/object:Gem::Requirement
123
137
  requirements:
124
- - - ">="
138
+ - - ">"
125
139
  - !ruby/object:Gem::Version
126
- version: '0'
140
+ version: 1.3.1
127
141
  requirements: []
128
142
  rubyforge_project:
129
143
  rubygems_version: 2.4.8