Skip to content

Commit d163ddd

Browse files
committed
Fix deprecation warnings on Elixir 1.19+: move 'preferred_cli_env' to 'cli/0', replace 'Mix.Config' with 'Config'
1 parent fa2513b commit d163ddd

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

config/test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Mix.Config
1+
import Config
22

33
config :elixir_auth_google,
44
client_id: "631770888008-6n0oruvsm16kbkqg6u76p5cv5kfkcekt.apps.googleusercontent.com",

mix.exs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,13 @@ defmodule ElixirAuthGoogle.MixProject do
1515
package: package(),
1616
aliases: aliases(),
1717
# coverage
18-
test_coverage: [tool: ExCoveralls],
19-
preferred_cli_env: [
18+
test_coverage: [tool: ExCoveralls]
19+
]
20+
end
21+
22+
def cli do
23+
[
24+
preferred_envs: [
2025
c: :test,
2126
coveralls: :test,
2227
"coveralls.json": :test,

0 commit comments

Comments
 (0)