fastlane-plugin-branch 0.2.1 → 0.3.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: 1f498cf0fa1fe5b3086351b2f48b350e37805aa8
4
- data.tar.gz: aa6ccfd9eea1084dbd67a6688a021642469f75b9
3
+ metadata.gz: 71452d61b439b4f695f7d2098ea5eafba48fd3fe
4
+ data.tar.gz: 8ff31c8f5005e6941352e6edffb6dbb8103bf3e4
5
5
  SHA512:
6
- metadata.gz: 6b8a6129ce329c32fbf75047c248b0040228edb84e89b656a6aa71b739a6f3d04d629b0e2eaf344b701f859a51acf5e9f2b27fcc93c4cef9c236ba479a2c28a2
7
- data.tar.gz: fae7dc85db458a6221ac3750a9f2bf3fabc3cbf8eca53ceb502dbcc4d01071b834c71fcb4cc8072d6cc8a2f0dd530902268579ae90f6754483f2434abf72ce15
6
+ metadata.gz: 73026e1c972b2de5c44a504f6c84caf8eebf96546f5de2e8e619c7a346ed0fc695b48aa2d9ac802ffa519bc4b4148d6caa9a2913a568095fa5d1f2a78a3fcba0
7
+ data.tar.gz: 1dfad69799475b92c931a24fcc3a9092830f7a0343ee23a2e6184428a88b9f16631eca3758685c000faa112d2316013c05abb256a5b13b512347e51d2cbc88d1
data/README.md CHANGED
@@ -36,7 +36,7 @@ for help getting started.
36
36
 
37
37
  ### Prerequisites
38
38
 
39
- Before using this action, make sure to set up your app in the [Branch Dashboard](https://dashboard.branch.io). See https://dev.branch.io/basic-setup/ for details. To use the `setup_branch` action, you need:
39
+ Before using this action, make sure to set up your app in the [Branch Dashboard](https://dashboard.branch.io). See https://docs.branch.io/pages/dashboard/integrate/ for details. To use the `setup_branch` action, you need:
40
40
 
41
41
  - Branch key(s), either live, test or both
42
42
  - Domain name(s) used for Branch links
@@ -86,7 +86,8 @@ Available options:
86
86
  |:remove_existing_domains|If true, any domains currently configured in the Xcode project or Android manifest will be removed before adding the domains specified by the arguments. Mainly useful for sample apps.|BRANCH_REMOVE_EXISTING_DOMAINS|boolean|false|
87
87
  |:validate|Determines whether to validate the resulting Universal Link configuration before modifying the project|BRANCH_VALIDATE|boolean|true|
88
88
  |:force|Update project(s) even if Universal Link validation fails|BRANCH_FORCE_UPDATE|boolean|false|
89
- |:commit|Set to true to commit changes to Git; set to a string to commit with a custom message|boolean or string|BRANCH_COMMIT_CHANGES|false|
89
+ |:commit|Set to true to commit changes to Git; set to a string to commit with a custom message|BRANCH_COMMIT_CHANGES|boolean or string|false|
90
+ |:frameworks|A list of system frameworks to add to the target that uses the Branch SDK (iOS only)|BRANCH_FRAMEWORKS|array|[]|
90
91
 
91
92
  Individually, all parameters are optional, but the following conditions apply:
92
93
 
@@ -143,10 +144,10 @@ This action does not use the Branchfile.
143
144
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. To try it:
144
145
 
145
146
  ```bash
146
- bundle exec fastlane validate # The example project needs to be set up. This will fail.
147
- bundle exec fastlane update # Also validates the UL configuration.
148
- bundle exec fastlane update_and_commit # Also commit changes to Git. (git reset --hard HEAD^ to erase the last commit)
149
- bundle exec fastlane validate # Now validation will pass.
147
+ bundle exec fastlane validate # The example project needs to be set up. This will fail.
148
+ bundle exec fastlane setup # Also validates the UL configuration.
149
+ bundle exec fastlane setup_and_commit # Also commit changes to Git. (git reset --hard HEAD^ to erase the last commit)
150
+ bundle exec fastlane validate # Now validation will pass.
150
151
  ```
151
152
 
152
153
  ## Run tests for this plugin
@@ -47,6 +47,9 @@ module Fastlane
47
47
  helper.add_branch_universal_link_domains_to_info_plist xcodeproj, target, domains
48
48
  new_path = helper.add_universal_links_to_project xcodeproj, target, domains, params[:remove_existing_domains]
49
49
  other_action.git_add path: new_path if params[:commit] && new_path
50
+
51
+ helper.add_system_frameworks xcodeproj, target, params[:frameworks] unless params[:frameworks].empty?
52
+
50
53
  xcodeproj.save
51
54
  end
52
55
 
@@ -192,7 +195,13 @@ module Fastlane
192
195
  description: "Set to true to commit changes to Git; set to a string to commit with a custom message",
193
196
  optional: true,
194
197
  default_value: false,
195
- is_string: false)
198
+ is_string: false),
199
+ FastlaneCore::ConfigItem.new(key: :frameworks,
200
+ env_name: "BRANCH_FRAMEWORKS",
201
+ description: "A list of system frameworks to add to the target that uses the Branch SDK (iOS only)",
202
+ optional: true,
203
+ default_value: [],
204
+ type: Array)
196
205
  ]
197
206
  end
198
207
 
@@ -329,6 +329,12 @@ module Fastlane
329
329
  end
330
330
  setting_value
331
331
  end
332
+
333
+ def add_system_frameworks(project, target_name, frameworks)
334
+ target = target_from_project project, target_name
335
+
336
+ target.add_system_framework frameworks
337
+ end
332
338
  end
333
339
  end
334
340
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Branch
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.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.2.1
4
+ version: 0.3.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-08-30 00:00:00.000000000 Z
12
+ date: 2017-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: plist