Skip to content

Commit b5cd455

Browse files
authored
Lock live view dependency on older Elixir versions (#114)
It gives a syntax error on version 1.1.0 and newer.
1 parent f5d8ab2 commit b5cd455

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

mix.exs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ defmodule Appsignal.Phoenix.MixProject do
4141

4242
phoenix_live_view_version =
4343
case Version.compare(system_version, "1.12.0") do
44-
:lt -> ">= 0.9.0 and < 0.18.0"
45-
_ -> "~> 0.9 or ~> 1.0"
44+
:lt ->
45+
">= 0.9.0 and < 0.18.0"
46+
47+
_ ->
48+
case Version.compare(system_version, "1.14.0") do
49+
:lt -> "~> 0.9 or ~> 1.0.0"
50+
_ -> "~> 0.9 or ~> 1.0"
51+
end
4652
end
4753

4854
credo_version =

0 commit comments

Comments
 (0)