firebase_dynamic_link 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/gemfiles/version_2016.gemfile.lock +1 -1
- data/gemfiles/version_2017a.gemfile.lock +1 -1
- data/gemfiles/version_2017b.gemfile.lock +1 -1
- data/gemfiles/version_2018.gemfile.lock +1 -1
- data/lib/firebase_dynamic_link/client.rb +3 -0
- data/lib/firebase_dynamic_link/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d63e95b652d20a351bd1c567691cad2cfdcbb9b
|
4
|
+
data.tar.gz: 800ad1cf39180ae8a98b8acd85792e429d99990c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bb29943010794f900ae870c59ea83ee70e0ebde93ffec0646f9197c93c02ffd1e4ca823ca9a4b5773766b68c16e8f9f087fac5faa7a1a749cf19cb54bed0213
|
7
|
+
data.tar.gz: 44caf3bd1302aa063fbc57bfc6f9513de7df9a17c0cb3c3b066dbf83e3a259988ddc6ab196e23ed2c9a197f4577222243c9849ac84aac4b9edbe994d304bd1cc
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -40,8 +40,8 @@ Or install it yourself as:
|
|
40
40
|
# default 'UNGUESSABLE'
|
41
41
|
config.suffix_option = 'SHORT' or 'UNGUESSABLE'
|
42
42
|
|
43
|
-
# required
|
44
|
-
config.dynamic_link_domain = 'xyz.app.goo.gl'
|
43
|
+
# required
|
44
|
+
config.dynamic_link_domain = 'https://xyz.app.goo.gl'
|
45
45
|
|
46
46
|
# default 3 seconds
|
47
47
|
config.timeout = 3
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "uri"
|
3
4
|
require "firebase_dynamic_link/connection"
|
4
5
|
require "firebase_dynamic_link/link_renderer"
|
5
6
|
|
@@ -130,6 +131,8 @@ module FirebaseDynamicLink
|
|
130
131
|
dynamic_link_domain = options.delete(:dynamic_link_domain)
|
131
132
|
dynamic_link_domain ||= config.dynamic_link_domain || raise(FirebaseDynamicLink::InvalidConfig, "Dynamic link domain is empty")
|
132
133
|
|
134
|
+
dynamic_link_domain = URI.parse(dynamic_link_domain).host
|
135
|
+
|
133
136
|
response = connection.post(nil, {
|
134
137
|
dynamicLinkInfo: params.merge(dynamicLinkDomain: dynamic_link_domain),
|
135
138
|
suffix: {
|