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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abf15e47b445730338cb341e4a0fff5694493c56
|
4
|
+
data.tar.gz: 417b7b587f063e085fcd1ca87611fc47f24e7414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 582f1f82a66f864b30a6abc2be65751e28969f0be5b9640e2e27095823b195908aa30227eac4c7efa9a4ce1dd995052f6ba40288141ea613966df66b71a59765
|
7
|
+
data.tar.gz: 896b00a21c3e9f66272a454dc7a24fb3e19247576e5b305f2be0d62841c1bac2bc5c14e72dbeb7319ac50e779945fcc250e2301a89d6b1d72f68b55e1866b2a9
|
data/lib/fastlane/plugin/update_project_codesigning/actions/update_project_codesigning_action.rb
CHANGED
@@ -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
|
-
|
10
|
-
|
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
|
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.
|
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-
|
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:
|
140
|
+
version: 1.3.1
|
127
141
|
requirements: []
|
128
142
|
rubyforge_project:
|
129
143
|
rubygems_version: 2.4.8
|