deploygate 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/deploygate/commands/deploy/build.rb +8 -2
- data/lib/deploygate/version.rb +1 -1
- data/lib/deploygate/xcode/analyze.rb +26 -2
- data/lib/deploygate/xcode/ios.rb +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzJhMjA3ODg1OTY2ZmUwMjdjODgyZjBhYWViNjY1YmI4YzYwZDQ4MA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjU4N2M4YWQ2NjJkOWY3YzliYjMxYzQxMjg1MDdmMjVmOGZhNzgyNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjEzZGM5MDc1NDEwMjUzMjg5ZmUyMDc5NDVjYTBhOTEyZThlMzQ2MDIxM2Qy
|
10
|
+
ZDgxYTFmOWQ0ZmUyYzkwODliMWFhN2I2MjZlMjNhNjM2NDE5ZjQ0YjQ4MzNi
|
11
|
+
MjIxNDgyZmM3ZmM1NGNmZDUwMTNhNDk1NWJlNGI3NjYwNmNlMTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDkyODc5NWI4YjAzMzQ3ZGNhMGJjN2QyNmE2NzM4M2Y0NWY3YjQ5YTNlZmUw
|
14
|
+
NDY3ZTk5NDkzYTdkYTYyMzlhNTM5MWQ3ZWY4YTA2NzI0ZWRhNDUyNjg1YTc0
|
15
|
+
YWRkODNiN2QzZTE2MzkyOGMxYTk2ZThkMjk5MDU0YmE4NzI0MjE=
|
@@ -30,12 +30,18 @@ module DeployGate
|
|
30
30
|
|
31
31
|
analyze = DeployGate::Xcode::Analyze.new(workspaces)
|
32
32
|
target_scheme = analyze.scheme
|
33
|
+
|
33
34
|
bundle_identifier = analyze.target_bundle_identifier
|
34
35
|
xcode_provisioning_profile_uuid = analyze.target_xcode_setting_provisioning_profile_uuid
|
35
|
-
|
36
36
|
target_provisioning_profile = DeployGate::Xcode::Export.provisioning_profile(bundle_identifier, xcode_provisioning_profile_uuid)
|
37
|
+
|
37
38
|
method = DeployGate::Xcode::Export.method(target_provisioning_profile)
|
38
|
-
|
39
|
+
|
40
|
+
codesigning_identity= nil
|
41
|
+
unless analyze.automatic_provisioning?
|
42
|
+
# Only run Provisioning Style is Manual
|
43
|
+
codesigning_identity = DeployGate::Xcode::Export.codesigning_identity(target_provisioning_profile)
|
44
|
+
end
|
39
45
|
|
40
46
|
ipa_path = DeployGate::Xcode::Ios.build(analyze, target_scheme, codesigning_identity, method)
|
41
47
|
Push.upload([ipa_path], options)
|
data/lib/deploygate/version.rb
CHANGED
@@ -81,6 +81,10 @@ module DeployGate
|
|
81
81
|
UUID.validate(uuid) ? uuid : nil
|
82
82
|
end
|
83
83
|
|
84
|
+
def automatic_provisioning?
|
85
|
+
get_provisioning_style == 'Automatic'
|
86
|
+
end
|
87
|
+
|
84
88
|
private
|
85
89
|
|
86
90
|
def target_build_configration
|
@@ -91,13 +95,33 @@ module DeployGate
|
|
91
95
|
target_project_setting.product_name
|
92
96
|
end
|
93
97
|
|
98
|
+
def get_provisioning_style
|
99
|
+
main_target = target_project_setting
|
100
|
+
main_target_uuid = main_target && main_target.uuid
|
101
|
+
|
102
|
+
style = 'Manual'
|
103
|
+
if main_target_uuid
|
104
|
+
# Manual or Automatic
|
105
|
+
begin
|
106
|
+
style = target_project.root_object.attributes['TargetAttributes'][main_target_uuid]['ProvisioningStyle']
|
107
|
+
rescue
|
108
|
+
# Not catch error
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
style
|
113
|
+
end
|
114
|
+
|
94
115
|
def target_project_setting
|
95
116
|
scheme_file = find_xcschemes
|
96
117
|
xs = Xcodeproj::XCScheme.new(scheme_file)
|
97
118
|
target_name = xs.profile_action.buildable_product_runnable.buildable_reference.target_name
|
98
119
|
|
99
|
-
|
100
|
-
|
120
|
+
target_project.native_targets.reject{|target| target.name != target_name}.first
|
121
|
+
end
|
122
|
+
|
123
|
+
def target_project
|
124
|
+
Xcodeproj::Project.open(@xcodeproj)
|
101
125
|
end
|
102
126
|
|
103
127
|
def find_xcschemes
|
data/lib/deploygate/xcode/ios.rb
CHANGED
@@ -18,12 +18,12 @@ module DeployGate
|
|
18
18
|
raise NotSupportExportMethodError, 'Not support export' unless DeployGate::Xcode::Export::SUPPORT_EXPORT_METHOD.include?(export_method)
|
19
19
|
|
20
20
|
values = {
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
24
|
-
:
|
25
|
-
:codesigning_identity => codesigning_identity
|
21
|
+
export_method: export_method,
|
22
|
+
workspace: ios_analyze.build_workspace,
|
23
|
+
configuration: DeployGate::Xcode::Analyze::BUILD_CONFIGRATION,
|
24
|
+
scheme: target_scheme
|
26
25
|
}
|
26
|
+
values[:codesigning_identity] = codesigning_identity if codesigning_identity
|
27
27
|
v = FastlaneCore::Configuration.create(Gym::Options.available_options, values)
|
28
28
|
|
29
29
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploygate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- deploygate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|