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: 67178b34c75cdf6f56ddcdbc87a9f359073a4211
4
- data.tar.gz: b66e17dd55ab0ed2622bbaccaaa2cbc3bf1088a1
3
+ metadata.gz: 10aeb792fa06ed6423c6fb08d3b528a35566d9c5
4
+ data.tar.gz: 02c1c3694210264a584c54d5a81501182c83acab
5
5
  SHA512:
6
- metadata.gz: 3ca86d2e6c28bebdfd31923b8a8b8ffb3ebe238db18b81140879a859c5b12fe1d42815171c13af59f9bca104486b0f9b335ab0b54d7914c890fcd427a69381b6
7
- data.tar.gz: 2e15566a9d67b1c22882e2f782b925d4100b5290cb13bdb7e62892e30497830ddaee5a4bd7d42c6855b52e4ea6c75d5595d7037478b97d4a877580284c0116f5
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 setup
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
 
@@ -46,7 +46,7 @@ module Fastlane
46
46
  UI.message "Universal Link configuration passed validation. ✅" if valid
47
47
 
48
48
  valid
49
- rescue => e
49
+ rescue StandardError => e
50
50
  UI.user_error! "Error in ValidateUniversalLinksAction: #{e.message}\n#{e.backtrace}"
51
51
  false
52
52
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Branch
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
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.1
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-03 00:00:00.000000000 Z
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: