Skip to content

Commit 790f485

Browse files
khamilowiczclaude
andcommitted
Fix Elixir 1.19 and OTP 28 compatibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 14dc4ac commit 790f485

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,4 @@ $RECYCLE.BIN/
178178
*.lnk
179179

180180
# End of https://www.gitignore.io/api/c,vim,linux,macos,elixir,windows,visualstudiocode
181+
/priv/plts/

mix.exs

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ defmodule ExLibnice.MixProject do
1313
elixirc_paths: elixirc_paths(Mix.env()),
1414
start_permanent: Mix.env() == :prod,
1515
deps: deps(),
16+
dialyzer: dialyzer(),
1617

1718
# hex
1819
description: "Elixir wrapper over libnice",
@@ -41,12 +42,27 @@ defmodule ExLibnice.MixProject do
4142
{:unifex, "~> 1.0"},
4243
{:bunch, "~> 1.3.0"},
4344
{:mdns, "~> 1.0.12"},
44-
{:ex_doc, "~> 0.23", only: :dev, runtime: false},
45-
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
46-
{:credo, "~> 1.5", only: :dev, runtime: false}
45+
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
46+
{:dialyxir, "~> 1.4", only: :dev, runtime: false},
47+
{:credo, "~> 1.7", only: :dev, runtime: false}
4748
]
4849
end
4950

51+
defp dialyzer() do
52+
opts = [
53+
flags: [:error_handling],
54+
plt_add_apps: [:mix, :syntax_tools]
55+
]
56+
57+
if System.get_env("CI") == "true" do
58+
# Store PLTs in cacheable directory for CI
59+
File.mkdir_p!(Path.join([__DIR__, "priv", "plts"]))
60+
[plt_local_path: "priv/plts", plt_core_path: "priv/plts"] ++ opts
61+
else
62+
opts
63+
end
64+
end
65+
5066
defp package do
5167
[
5268
maintainers: ["Membrane Team"],

0 commit comments

Comments
 (0)