fastlane-plugin-goodify_info_plist 0.1.5 → 0.1.6
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: d5882851c6df111c0ba74ab5b65d4fd6e904631b
|
4
|
+
data.tar.gz: 0cd87479da87b873adcc099fc4421ff651ea8578
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7e658427f6bd61e4adeed576cc7ef65447e30991f873631d1489254348a705aa0a85ca0417fa022235989c3a8864a7b4597bcfdfd0d97eaa767de377bc5c92e
|
7
|
+
data.tar.gz: f0c861bd6ce68148a1473ce50be34ba32e2e17599788970d60000348b2e5a7921effdb793794056956b993096b8a7f3c0bbf725b7c6562fbf88949498ee9cdba
|
@@ -12,7 +12,6 @@ module Fastlane
|
|
12
12
|
gd_entitlement_version = params[:good_entitlement_version]
|
13
13
|
end
|
14
14
|
|
15
|
-
puts "about to set the GDApplicationID to \"#{params[:good_entitlement_id]}\""
|
16
15
|
plist["GDApplicationID"] = params[:good_entitlement_id]
|
17
16
|
plist["GDApplicationVersion"] = gd_entitlement_version
|
18
17
|
plist["GDLibraryMode"] = params[:build_simulation_mode] ? "GDEnterpriseSimulation" : "GDEnterprise"
|
@@ -25,18 +24,22 @@ module Fastlane
|
|
25
24
|
"#{app_id}.sc2.1.0.0.0",
|
26
25
|
"com.good.gd.discovery"
|
27
26
|
]
|
28
|
-
if params.values.fetch(:export_method, "app-store").casecmp("enterprise")
|
27
|
+
if params.values.fetch(:export_method, "app-store").casecmp("enterprise").zero?
|
29
28
|
url_schemes.push("com.good.gd.discovery.enterprise")
|
30
29
|
end
|
31
30
|
|
32
31
|
# attempt to replace an existing set of GD url schemes
|
33
32
|
replaced = false
|
34
|
-
plist
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
33
|
+
if plist.key?("CFBundleURLTypes")
|
34
|
+
plist["CFBundleURLTypes"].each do |entry|
|
35
|
+
next unless entry["CFBundleURLSchemes"].include?("com.good.gd.discovery")
|
36
|
+
entry["CFBundleURLName"] = app_id
|
37
|
+
entry["CFBundleURLSchemes"] = url_schemes
|
38
|
+
replaced = true
|
39
|
+
break
|
40
|
+
end
|
41
|
+
else
|
42
|
+
plist["CFBundleURLTypes"] = []
|
40
43
|
end
|
41
44
|
|
42
45
|
unless replaced
|
@@ -72,8 +75,8 @@ module Fastlane
|
|
72
75
|
description: "The Good app version number for the GoodifyInfoPlistAction",
|
73
76
|
verify_block: proc do |value|
|
74
77
|
pattern = Regexp.new('^(:?[1-9]\d{0,2})(:?\.(:?0|[1-9]\d{0,2})){0,3}$')
|
75
|
-
|
76
|
-
UI.user_error!("Invalid Good app version for GoodifyInfoPlistAction given, pass using `good_entitlement_version: '1.2.3.4'`") if
|
78
|
+
failed_to_match = pattern.match(value).nil?
|
79
|
+
UI.user_error!("Invalid Good app version for GoodifyInfoPlistAction given, pass using `good_entitlement_version: '1.2.3.4'`") if failed_to_match
|
77
80
|
end,
|
78
81
|
optional: true,
|
79
82
|
default_value: "1.0.0.0"),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-goodify_info_plist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lyndsey Ferguson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -94,8 +94,22 @@ dependencies:
|
|
94
94
|
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 1.95.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: plist
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description:
|
98
|
-
email: lyndsey.ferguson@
|
112
|
+
email: lyndsey.ferguson@gmail.com
|
99
113
|
executables: []
|
100
114
|
extensions: []
|
101
115
|
extra_rdoc_files: []
|