fastlane-plugin-branch 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f498cf0fa1fe5b3086351b2f48b350e37805aa8
|
4
|
+
data.tar.gz: aa6ccfd9eea1084dbd67a6688a021642469f75b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b8a6129ce329c32fbf75047c248b0040228edb84e89b656a6aa71b739a6f3d04d629b0e2eaf344b701f859a51acf5e9f2b27fcc93c4cef9c236ba479a2c28a2
|
7
|
+
data.tar.gz: fae7dc85db458a6221ac3750a9f2bf3fabc3cbf8eca53ceb502dbcc4d01071b834c71fcb4cc8072d6cc8a2f0dd530902268579ae90f6754483f2434abf72ce15
|
data/README.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
-
#
|
1
|
+
# Branch plugin
|
2
|
+
|
3
|
+
Use this Fastlane plugin to set up your Android or Xcode project configuration correctly to
|
4
|
+
use the Branch SDK. It can also validate the Universal Link configuration in any Xcode
|
5
|
+
project, for Branch domains as well as non-Branch domains. Unlike web-based Universal
|
6
|
+
Link validators, the `validate_universal_links` action
|
7
|
+
operates directly on your project. There is no need to look up your team identifier or
|
8
|
+
any other information. The validator requires no input at all for simple projects. It
|
9
|
+
supports both signed and unsigned apple-app-site-association files.
|
2
10
|
|
3
11
|
[](https://rubygems.org/gems/fastlane-plugin-branch)
|
4
12
|
[](https://rubygems.org/gems/fastlane-plugin-branch)
|
@@ -18,6 +26,12 @@ This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To
|
|
18
26
|
fastlane add_plugin branch
|
19
27
|
```
|
20
28
|
|
29
|
+
### New to Fastlane or Ruby?
|
30
|
+
|
31
|
+
See [Simple Fastlane setup with plugins](https://github.com/BranchMetrics/fastlane-plugin-branch/wiki/Simple-Fastlane-setup-with-plugins)
|
32
|
+
and the [RVM Cheat Sheet](https://github.com/BranchMetrics/fastlane-plugin-branch/wiki/RVM-Cheat-Sheet) in this repo's wiki
|
33
|
+
for help getting started.
|
34
|
+
|
21
35
|
## setup_branch action
|
22
36
|
|
23
37
|
### Prerequisites
|
@@ -129,10 +143,10 @@ This action does not use the Branchfile.
|
|
129
143
|
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. To try it:
|
130
144
|
|
131
145
|
```bash
|
132
|
-
fastlane validate # The example project needs to be set up. This will fail.
|
133
|
-
fastlane update # Also validates the UL configuration.
|
134
|
-
fastlane update_and_commit # Also commit changes to Git. (git reset --hard HEAD^ to erase the last commit)
|
135
|
-
fastlane validate # Now validation will pass.
|
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.
|
136
150
|
```
|
137
151
|
|
138
152
|
## Run tests for this plugin
|
@@ -48,7 +48,7 @@ module Fastlane
|
|
48
48
|
def add_intent_filter_to_activity(activity, domains, uri_scheme)
|
49
49
|
# Add a single intent-filter with autoVerify and a data element for each domain and the optional uri_scheme
|
50
50
|
intent_filter = REXML::Element.new "intent-filter"
|
51
|
-
intent_filter.attributes["android:
|
51
|
+
intent_filter.attributes["android:autoVerify"] = true
|
52
52
|
intent_filter.add_element "action", "android:name" => "android.intent.action.VIEW"
|
53
53
|
intent_filter.add_element "category", "android:name" => "android.intent.category.DEFAULT"
|
54
54
|
intent_filter.add_element "category", "android:name" => "android.intent.category.BROWSABLE"
|
@@ -173,9 +173,9 @@ module Fastlane
|
|
173
173
|
def contents_of_aasa_file(domain)
|
174
174
|
uris = [
|
175
175
|
URI("https://#{domain}/.well-known/apple-app-site-association"),
|
176
|
-
URI("https://#{domain}/apple-app-site-association")
|
177
|
-
URI("http://#{domain}/.well-known/apple-app-site-association"),
|
178
|
-
URI("http://#{domain}/apple-app-site-association")
|
176
|
+
URI("https://#{domain}/apple-app-site-association")
|
177
|
+
# URI("http://#{domain}/.well-known/apple-app-site-association"),
|
178
|
+
# URI("http://#{domain}/apple-app-site-association")
|
179
179
|
]
|
180
180
|
|
181
181
|
data = nil
|
@@ -207,7 +207,7 @@ module Fastlane
|
|
207
207
|
cert_store = OpenSSL::X509::Store.new
|
208
208
|
signature = OpenSSL::PKCS7.new response.body
|
209
209
|
# raises
|
210
|
-
signature.verify
|
210
|
+
signature.verify nil, cert_store, nil, OpenSSL::PKCS7::NOVERIFY
|
211
211
|
data = signature.data
|
212
212
|
else
|
213
213
|
@error << "[#{domain}] Unsigned AASA files must be served via HTTPS" and next if uri.scheme == "http"
|
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.
|
4
|
+
version: 0.2.1
|
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-
|
12
|
+
date: 2017-08-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plist
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: '0'
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.6.
|
164
|
+
rubygems_version: 2.6.13
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: Adds Branch keys, custom URI schemes and domains to iOS and Android projects.
|