fastlane-plugin-update_project_codesigning 0.1.3 → 0.1.4.pre.alpha.pre.20
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: 43f0c816167b4231d25d0ead00177593c4b3e6c6
|
4
|
+
data.tar.gz: fa7002244f41990037ec59eabe81c82288478113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b5673cae8d117b8f6beb434dfeda13162f41f0f5ce45053b68f3830fb02a1dda63fe73a6441c4b66a95cb8a56fecd783e952c926eb12f9e923b0d33008fcef3
|
7
|
+
data.tar.gz: d453292323afa25253c5754ebe456b5b342c3bbe0522fa11cf517b20fa649b02f3ded01afa8e814cd081663c7d087c4790c44d31f40afb35547273a5d66e5d4b
|
data/lib/fastlane/plugin/update_project_codesigning/actions/update_project_codesigning_action.rb
CHANGED
@@ -9,6 +9,42 @@ module Fastlane
|
|
9
9
|
project = Xcodeproj::Project.open(params[:path])
|
10
10
|
UI.user_error!("Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!") unless File.exist?(path)
|
11
11
|
UI.message("Updating the Automatic Codesigning flag to #{params[:use_automatic_signing] ? 'enabled' : 'disabled'} for the given project '#{path}'")
|
12
|
+
|
13
|
+
unless project.root_object.attributes["TargetAttributes"]
|
14
|
+
UI.error("Seems to be a very old project file format")
|
15
|
+
UI.error("PLEASE BACKUP ALL FILES before doing this.")
|
16
|
+
if UI.confirm("Proceed with upgrade to xcode8 format?")
|
17
|
+
UI.important("Upgrading project to use xcode8 signing stuff")
|
18
|
+
unless params[:team_id]
|
19
|
+
UI.important("TEAM id is not set")
|
20
|
+
UI.error!("Provide :team_id")
|
21
|
+
end
|
22
|
+
|
23
|
+
# set upgrade market to xcdoe8
|
24
|
+
project.root_object.attributes["LastUpgradeCheck"] = "0800"
|
25
|
+
target_attr_hash = {}
|
26
|
+
|
27
|
+
# for each target add the TargetAttributes Entry
|
28
|
+
# setting team id, and signing mode
|
29
|
+
project.root_object.targets.each do |target|
|
30
|
+
new_hash = {}
|
31
|
+
new_hash["CreatedOnToolsVersion"] = "8.0"
|
32
|
+
new_hash["DevelopmentTeam"] = params[:team_id]
|
33
|
+
new_hash["ProvisioningStyle"] = params[:use_automatic_signing] ? 'Automatic' : 'Manual'
|
34
|
+
target_attr_hash[target.uuid] = new_hash
|
35
|
+
end
|
36
|
+
|
37
|
+
# for each configuration set a signing identity
|
38
|
+
|
39
|
+
project.build_configurations.each do |config|
|
40
|
+
config.build_settings['CODE_SIGN_IDENTITY[sdk=iphoneos*]'] = config.name == "Release" ? 'iPhone Distribution' : "iPhone Development"
|
41
|
+
end
|
42
|
+
project.root_object.attributes["TargetAttributes"] = target_attr_hash
|
43
|
+
else
|
44
|
+
UI.user_error!("canceled upgrade")
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
12
48
|
project.root_object.attributes["TargetAttributes"].each do |target, sett|
|
13
49
|
sett["ProvisioningStyle"] = params[:use_automatic_signing] ? 'Automatic' : 'Manual'
|
14
50
|
end
|
@@ -36,7 +72,11 @@ module Fastlane
|
|
36
72
|
env_name: "FL_PROJECT_USE_AUTOMATIC_SIGNING",
|
37
73
|
description: "Defines if project should use automatic signing",
|
38
74
|
is_string: false,
|
39
|
-
default_value: false)
|
75
|
+
default_value: false),
|
76
|
+
FastlaneCore::ConfigItem.new(key: :team_id,
|
77
|
+
env_name: "FASTLANE_TEAM_ID",
|
78
|
+
description: "Team ID, is used when upgrading project",
|
79
|
+
is_string: true)
|
40
80
|
]
|
41
81
|
end
|
42
82
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4.pre.alpha.pre.20
|
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-
|
11
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|
@@ -135,9 +135,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
135
|
version: '0'
|
136
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
|
-
- - "
|
138
|
+
- - ">"
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version:
|
140
|
+
version: 1.3.1
|
141
141
|
requirements: []
|
142
142
|
rubyforge_project:
|
143
143
|
rubygems_version: 2.4.8
|