Skip to content

Commit 5a46d23

Browse files
committed
Enforce LV version for 1.13 after all
1 parent 6f7e9b7 commit 5a46d23

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

mix.exs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ defmodule Sentry.Mixfile do
8888
defp test_paths(nil), do: ["test"]
8989
defp test_paths(integration), do: ["test_integrations/#{integration}/test"]
9090

91+
defp live_view_version() do
92+
if Version.match?(System.version(), ">= 1.14.0") do
93+
"~> 1.0"
94+
else
95+
"~> 0.20"
96+
end
97+
end
98+
9199
defp deps do
92100
[
93101
{:nimble_options, "~> 1.0"},
@@ -97,7 +105,7 @@ defmodule Sentry.Mixfile do
97105
{:hackney, "~> 1.8", optional: true},
98106
{:jason, "~> 1.1", optional: true},
99107
{:phoenix, "~> 1.6", optional: true},
100-
{:phoenix_live_view, "~> 0.20 or ~> 1.0", optional: true},
108+
{:phoenix_live_view, live_view_version(), optional: true},
101109
{:plug, "~> 1.6", optional: true},
102110
{:telemetry, "~> 0.4 or ~> 1.0", optional: true},
103111

0 commit comments

Comments
 (0)