fastlane 2.20.0.beta.20170313010048 → 2.20.0.beta.20170314010029
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: 42cd94773a24289d65b60ab51795ca6a4ac7a181
|
4
|
+
data.tar.gz: 6e20d8f3cc17d8751353171ae7b137a64f90b03b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca58d64b67224a02bed2f3b93c23f1652a7da2f4a650eb622cebac4d81595bb79d4cffb0259617dc6e6114daeecd57df35d4fdecff95e65c8bb9b840fceea32a
|
7
|
+
data.tar.gz: 2504fbed1ab584dbd13325b45309ea9a83fa1cadce77cc72a9f57c515ce5ee3037500b52e75796a0cacfc5135950df87eef15017bfc5c8ead2451987cfd44d39
|
@@ -0,0 +1,157 @@
|
|
1
|
+
require 'xcodeproj'
|
2
|
+
module Fastlane
|
3
|
+
module Actions
|
4
|
+
class AutomaticCodeSigningAction < Action
|
5
|
+
def self.run(params)
|
6
|
+
FastlaneCore::PrintTable.print_values(config: params, title: "Summary for Automatic Codesigning")
|
7
|
+
path = params[:path]
|
8
|
+
path = File.join(File.expand_path(path), "project.pbxproj")
|
9
|
+
|
10
|
+
project = Xcodeproj::Project.open(params[:path])
|
11
|
+
UI.user_error!("Could not find path to project config '#{path}'. Pass the path to your project (not workspace)!") unless File.exist?(path)
|
12
|
+
UI.message("Updating the Automatic Codesigning flag to #{params[:use_automatic_signing] ? 'enabled' : 'disabled'} for the given project '#{path}'")
|
13
|
+
|
14
|
+
unless project.root_object.attributes["TargetAttributes"]
|
15
|
+
UI.user_error!("Seems to be a very old project file format - please use xcode to upgrade to atlease 0800")
|
16
|
+
return false
|
17
|
+
end
|
18
|
+
|
19
|
+
target_dictionary = project.targets.map { |f| { name: f.name, uuid: f.uuid } }
|
20
|
+
changed_targets = []
|
21
|
+
project.root_object.attributes["TargetAttributes"].each do |target, sett|
|
22
|
+
found_target = target_dictionary.detect { |h| h[:uuid] == target }
|
23
|
+
if params[:targets]
|
24
|
+
# get target name
|
25
|
+
unless params[:targets].include?(found_target[:name])
|
26
|
+
UI.important("Skipping #{found_target[:name]} not selected (#{params[:targets].join(',')})")
|
27
|
+
next
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
sett["ProvisioningStyle"] = params[:use_automatic_signing] ? 'Automatic' : 'Manual'
|
32
|
+
if params[:team_id]
|
33
|
+
sett["DevelopmentTeam"] = params[:team_id]
|
34
|
+
UI.important("Set Team id to: #{params[:team_id]} for target: #{found_target[:name]}")
|
35
|
+
end
|
36
|
+
changed_targets << found_target[:name]
|
37
|
+
end
|
38
|
+
project.save
|
39
|
+
|
40
|
+
if changed_targets.empty?
|
41
|
+
UI.important("None of the specified targets has been modified")
|
42
|
+
UI.important("available targets:")
|
43
|
+
target_dictionary.each do |target|
|
44
|
+
UI.important("\t* #{target[:name]}")
|
45
|
+
end
|
46
|
+
else
|
47
|
+
UI.success("Successfully updated project settings to use ProvisioningStyle '#{params[:use_automatic_signing] ? 'Automatic' : 'Manual'}'")
|
48
|
+
UI.success("Modified Targets:")
|
49
|
+
changed_targets.each do |target|
|
50
|
+
UI.success("\t * #{target}")
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
params[:use_automatic_signing]
|
55
|
+
end
|
56
|
+
|
57
|
+
def self.alias_used(action_alias, params)
|
58
|
+
params[:use_automatic_signing] = true if action_alias == "enable_automatic_code_signing"
|
59
|
+
end
|
60
|
+
|
61
|
+
def self.aliases
|
62
|
+
["enable_automatic_code_signing", "disable_automatic_code_signing"]
|
63
|
+
end
|
64
|
+
|
65
|
+
def self.description
|
66
|
+
"Updates the Xcode 8 Automatic Codesigning Flag"
|
67
|
+
end
|
68
|
+
|
69
|
+
def self.details
|
70
|
+
"Updates the Xcode 8 Automatic Codesigning Flag of all targets in the project"
|
71
|
+
end
|
72
|
+
|
73
|
+
def self.available_options
|
74
|
+
[
|
75
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
76
|
+
env_name: "FL_PROJECT_SIGNING_PROJECT_PATH",
|
77
|
+
description: "Path to your Xcode project",
|
78
|
+
verify_block: proc do |value|
|
79
|
+
UI.user_error!("Path is invalid") unless File.exist?(File.expand_path(value))
|
80
|
+
end),
|
81
|
+
FastlaneCore::ConfigItem.new(key: :use_automatic_signing,
|
82
|
+
env_name: "FL_PROJECT_USE_AUTOMATIC_SIGNING",
|
83
|
+
description: "Defines if project should use automatic signing",
|
84
|
+
is_string: false,
|
85
|
+
default_value: false),
|
86
|
+
FastlaneCore::ConfigItem.new(key: :team_id,
|
87
|
+
env_name: "FASTLANE_TEAM_ID",
|
88
|
+
optional: true,
|
89
|
+
description: "Team ID, is used when upgrading project",
|
90
|
+
is_string: true),
|
91
|
+
FastlaneCore::ConfigItem.new(key: :targets,
|
92
|
+
env_name: "FL_PROJECT_SIGNING_TARGETS",
|
93
|
+
optional: true,
|
94
|
+
type: Array,
|
95
|
+
description: "Specify targets you want to toggle the signing mech. (default to all targets)",
|
96
|
+
is_string: false)
|
97
|
+
]
|
98
|
+
end
|
99
|
+
|
100
|
+
def self.output
|
101
|
+
end
|
102
|
+
|
103
|
+
def self.example_code
|
104
|
+
[
|
105
|
+
'# enable automatic code signing
|
106
|
+
enable_automatic_code_signing',
|
107
|
+
'enable_automatic_code_signing(
|
108
|
+
path: "demo-project/demo/demo.xcodeproj"
|
109
|
+
)',
|
110
|
+
'# disable automatic code signing
|
111
|
+
disable_automatic_code_signing',
|
112
|
+
'disable_automatic_code_signing(
|
113
|
+
path: "demo-project/demo/demo.xcodeproj"
|
114
|
+
)',
|
115
|
+
'# also set team id
|
116
|
+
disable_automatic_code_signing(
|
117
|
+
path: "demo-project/demo/demo.xcodeproj",
|
118
|
+
team_id: "XXXX"
|
119
|
+
)',
|
120
|
+
'# Only specific targets
|
121
|
+
disable_automatic_code_signing(
|
122
|
+
path: "demo-project/demo/demo.xcodeproj",
|
123
|
+
use_automatic_signing: false,
|
124
|
+
targets: ["demo"]
|
125
|
+
)
|
126
|
+
',
|
127
|
+
' # via generic action
|
128
|
+
automatic_code_signing(
|
129
|
+
path: "demo-project/demo/demo.xcodeproj",
|
130
|
+
use_automatic_signing: false
|
131
|
+
)',
|
132
|
+
'automatic_code_signing(
|
133
|
+
path: "demo-project/demo/demo.xcodeproj",
|
134
|
+
use_automatic_signing: true
|
135
|
+
)'
|
136
|
+
|
137
|
+
]
|
138
|
+
end
|
139
|
+
|
140
|
+
def self.category
|
141
|
+
:code_signing
|
142
|
+
end
|
143
|
+
|
144
|
+
def self.return_value
|
145
|
+
"The current status (boolean) of codesigning after modification"
|
146
|
+
end
|
147
|
+
|
148
|
+
def self.authors
|
149
|
+
["mathiasAichinger", "hjanuschka"]
|
150
|
+
end
|
151
|
+
|
152
|
+
def self.is_supported?(platform)
|
153
|
+
[:ios, :mac].include?(platform)
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
data/supply/README.md
CHANGED
@@ -141,7 +141,7 @@ Expansion files (obbs) found under the same directory as your APK will also be u
|
|
141
141
|
|
142
142
|
After running `fastlane supply init`, you will have a metadata directory. This directory contains one or more locale directories (e.g. en-US, en-GB, etc.), and inside this directory are text files such as `title.txt` and `short_description.txt`.
|
143
143
|
|
144
|
-
Here you can supply images with the following file names (extension can be png, jpg or jpeg):
|
144
|
+
Inside of a given locale directory is a folder called `images`. Here you can supply images with the following file names (extension can be png, jpg or jpeg):
|
145
145
|
|
146
146
|
- `featureGraphic`
|
147
147
|
- `icon`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.20.0.beta.
|
4
|
+
version: 2.20.0.beta.20170314010029
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date: 2017-03-
|
17
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
name: slack-notifier
|
@@ -785,6 +785,7 @@ files:
|
|
785
785
|
- fastlane/lib/fastlane/actions/appstore.rb
|
786
786
|
- fastlane/lib/fastlane/actions/apteligent.rb
|
787
787
|
- fastlane/lib/fastlane/actions/artifactory.rb
|
788
|
+
- fastlane/lib/fastlane/actions/automatic_code_signing.rb
|
788
789
|
- fastlane/lib/fastlane/actions/backup_file.rb
|
789
790
|
- fastlane/lib/fastlane/actions/backup_xcarchive.rb
|
790
791
|
- fastlane/lib/fastlane/actions/badge.rb
|
@@ -1290,27 +1291,28 @@ files:
|
|
1290
1291
|
homepage: https://fastlane.tools
|
1291
1292
|
licenses:
|
1292
1293
|
- MIT
|
1293
|
-
metadata:
|
1294
|
+
metadata:
|
1295
|
+
docs_url: https://docs.fastlane.tools
|
1294
1296
|
post_install_message:
|
1295
1297
|
rdoc_options: []
|
1296
1298
|
require_paths:
|
1297
1299
|
- spaceship/lib
|
1298
|
-
-
|
1299
|
-
- fastlane/lib
|
1300
|
-
- match/lib
|
1301
|
-
- cert/lib
|
1300
|
+
- supply/lib
|
1302
1301
|
- screengrab/lib
|
1303
|
-
-
|
1304
|
-
- deliver/lib
|
1305
|
-
- pilot/lib
|
1302
|
+
- match/lib
|
1306
1303
|
- gym/lib
|
1307
|
-
-
|
1304
|
+
- snapshot/lib
|
1305
|
+
- pilot/lib
|
1308
1306
|
- frameit/lib
|
1309
|
-
- credentials_manager/lib
|
1310
|
-
- supply/lib
|
1311
1307
|
- produce/lib
|
1312
1308
|
- sigh/lib
|
1313
|
-
-
|
1309
|
+
- pem/lib
|
1310
|
+
- cert/lib
|
1311
|
+
- scan/lib
|
1312
|
+
- fastlane/lib
|
1313
|
+
- fastlane_core/lib
|
1314
|
+
- credentials_manager/lib
|
1315
|
+
- deliver/lib
|
1314
1316
|
required_ruby_version: !ruby/object:Gem::Requirement
|
1315
1317
|
requirements:
|
1316
1318
|
- - ">="
|