Skip to content

Commit 6f7e9b7

Browse files
committed
Update to LiveView 1.0 🎉
1 parent 6d4b36c commit 6f7e9b7

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

‎mix.exs‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ 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-
9991
defp deps do
10092
[
10193
{:nimble_options, "~> 1.0"},
@@ -105,7 +97,7 @@ defmodule Sentry.Mixfile do
10597
{:hackney, "~> 1.8", optional: true},
10698
{:jason, "~> 1.1", optional: true},
10799
{:phoenix, "~> 1.6", optional: true},
108-
{:phoenix_live_view, live_view_version(), optional: true},
100+
{:phoenix_live_view, "~> 0.20 or ~> 1.0", optional: true},
109101
{:plug, "~> 1.6", optional: true},
110102
{:telemetry, "~> 0.4 or ~> 1.0", optional: true},
111103

‎test_integrations/phoenix_app/mix.exs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule PhoenixApp.MixProject do
3838
{:postgrex, ">= 0.0.0"},
3939
{:phoenix, "~> 1.7.14"},
4040
{:phoenix_html, "~> 4.1"},
41-
{:phoenix_live_view, "~> 1.0"},
41+
{:phoenix_live_view, "~> 0.20 or ~> 1.0"},
4242
{:phoenix_live_reload, "~> 1.2", only: :dev},
4343
{:floki, ">= 0.30.0", only: :test},
4444
{:phoenix_live_dashboard, "~> 0.8.3"},

0 commit comments

Comments
 (0)