@@ -54,7 +54,8 @@ defmodule Appsignal.Mixfile do
5454 ] ,
5555 dialyzer: [
5656 plt_file: { :no_warn , "priv/plts/dialyzer.plt" } ,
57- plt_add_apps: [ :mix ]
57+ plt_add_apps: [ :mix ] ,
58+ ignore_warnings: ".dialyzer_ignore.exs"
5859 ]
5960 ]
6061 end
@@ -135,6 +136,14 @@ defmodule Appsignal.Mixfile do
135136 false -> "~> 0.4 or ~> 1.0"
136137 end
137138
139+ # httpoison 3.0 depends on hackney 4.0, which pulls in quic and requires
140+ # OTP 26 or later. Cap httpoison at 2.x on older OTP releases.
141+ httpoison_version =
142+ case otp_version < "26" do
143+ true -> "~> 2.0"
144+ false -> "~> 2.0 or ~> 3.0"
145+ end
146+
138147 mime_dependency =
139148 case Version . compare ( system_version , "1.10.0" ) do
140149 :lt -> [ { :mime , "~> 1.0" , only: [ :test , :test_no_nif ] } ]
@@ -195,7 +204,7 @@ defmodule Appsignal.Mixfile do
195204 { :credo , credo_version , only: [ :test , :dev ] , runtime: false } ,
196205 { :dialyxir , "~> 1.4" , only: [ :dev , :test ] , runtime: false } ,
197206 { :telemetry , telemetry_version } ,
198- { :httpoison , "~> 2.0" , optional: true }
207+ { :httpoison , httpoison_version , optional: true }
199208 ] ++ mime_dependency ++ logger_backends_dependency ++ hpax_dependency
200209 end
201210end
0 commit comments