fastlane-plugin-branch 0.4.1 → 0.5.0
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: 10aeb792fa06ed6423c6fb08d3b528a35566d9c5
|
4
|
+
data.tar.gz: 02c1c3694210264a584c54d5a81501182c83acab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72217297c1bd63dd1169dcd03df217866c8bea47e0c08045d137181e1c7f40169fbeaa1a256d42965e619f24dcf7f6396dcd9e4cdf8e1b9a5200147518838ea7
|
7
|
+
data.tar.gz: c394c9b440b4585b4b50ab0ca41a78f6f0b2cbc4b160a852f05310e482312cee5b3ec8ff697ce4563dad81684b76bda6d32026be6fc3b66f4e6eeb9130423d30
|
data/README.md
CHANGED
@@ -115,6 +115,7 @@ Available options:
|
|
115
115
|
|:patch_source|Set to false to disable automatic source-code patching|BRANCH_PATCH_SOURCE|boolean|true|
|
116
116
|
|:pod_repo_update|Set to false to disable update of local podspec repo before pod install|BRANCH_POD_REPO_UPDATE|boolean|true|
|
117
117
|
|:cartfile|Path to a Cartfile to update (iOS only)|BRANCH_CARTFILE|string||
|
118
|
+
|:double_quotes|Use double quotes in generated XML|BRANCH_FORCE_DOUBLE_QUOTES|boolean|true|
|
118
119
|
|
119
120
|
Individually, all parameters are optional, but the following conditions apply:
|
120
121
|
|
@@ -187,7 +188,7 @@ bundle exec fastlane setup
|
|
187
188
|
This lane sets up the BranchPluginExample projects and also commits the results to git.
|
188
189
|
|
189
190
|
```bash
|
190
|
-
bundle exec fastlane
|
191
|
+
bundle exec fastlane setup_and_commit
|
191
192
|
```
|
192
193
|
|
193
194
|
### setup_objc
|
@@ -72,6 +72,20 @@ module Fastlane
|
|
72
72
|
manifest.write f, 4
|
73
73
|
end
|
74
74
|
|
75
|
+
# Work around a REXML issue for now.
|
76
|
+
# Replace single quotes with double quotes in all XML attributes.
|
77
|
+
# Disable this using double_quotes: false.
|
78
|
+
if params[:double_quotes]
|
79
|
+
Actions::PatchAction.run(
|
80
|
+
files: manifest_path,
|
81
|
+
regexp: /(=\s*)'([^']*)'/,
|
82
|
+
text: '\1"\2"',
|
83
|
+
mode: :replace,
|
84
|
+
global: true,
|
85
|
+
offset: 0
|
86
|
+
)
|
87
|
+
end
|
88
|
+
|
75
89
|
helper.add_change File.expand_path(manifest_path, Bundler.root)
|
76
90
|
end
|
77
91
|
|
@@ -79,7 +93,7 @@ module Fastlane
|
|
79
93
|
message = params[:commit].kind_of?(String) ? params[:commit] : "[Fastlane] Branch SDK integration"
|
80
94
|
other_action.git_commit path: helper.changes.to_a, message: message
|
81
95
|
end
|
82
|
-
rescue => e
|
96
|
+
rescue StandardError => e
|
83
97
|
UI.user_error! "Error in SetupBranchAction: #{e.message}\n#{e.backtrace}"
|
84
98
|
end
|
85
99
|
# rubocop: enable Metrics/PerceivedComplexity
|
@@ -231,7 +245,13 @@ module Fastlane
|
|
231
245
|
env_name: "BRANCH_CARTFILE",
|
232
246
|
description: "Path to a Cartfile to update (iOS only)",
|
233
247
|
optional: true,
|
234
|
-
type: String)
|
248
|
+
type: String),
|
249
|
+
FastlaneCore::ConfigItem.new(key: :double_quotes,
|
250
|
+
env_name: "BRANCH_FORCE_DOUBLE_QUOTES",
|
251
|
+
description: "Use double quotes in generated XML",
|
252
|
+
optional: true,
|
253
|
+
default_value: true,
|
254
|
+
is_string: false)
|
235
255
|
]
|
236
256
|
end
|
237
257
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-branch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Branch
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fastlane-plugin-patch
|
@@ -209,4 +209,3 @@ specification_version: 4
|
|
209
209
|
summary: Adds Branch keys, custom URI schemes and domains to iOS and Android projects.
|
210
210
|
Validates the Universal Link configuration for any Xcode project.
|
211
211
|
test_files: []
|
212
|
-
has_rdoc:
|