Skip to content

Commit

Permalink
make crc32 required
Browse files Browse the repository at this point in the history
  • Loading branch information
zemuldo committed Aug 14, 2024
1 parent 81a87b1 commit 89bffd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Empty file added config/config.ex
Empty file.
14 changes: 2 additions & 12 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule ExSecrets.MixProject do
def project do
[
app: :ex_secrets,
version: "0.3.4",
version: "0.3.5",
elixir: "~> 1.13",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand All @@ -31,6 +31,7 @@ defmodule ExSecrets.MixProject do
{:httpoison, "~> 1.8"},
{:poison, "~> 3.1"},
{:joken, "~> 2.6"},
{:crc32cer, "~> 0.1.10"},

# Testing and Documentation
{:mix_test_watch, "~> 1.0", only: [:dev, :test], runtime: false},
Expand All @@ -43,17 +44,6 @@ defmodule ExSecrets.MixProject do
{:excoveralls, "~> 0.10", only: :test},
{:credo, "~> 1.6", only: [:dev, :test], runtime: false}
]
|> require_crc_32()
end

defp require_crc_32(current_deps) do
case Application.get_env(:ex_secrets, :providers) do
%{"google_secret_manager" => _} ->
current_deps ++ [{:crc32cer, "~> 0.1.10"}]

_ ->
current_deps
end
end

defp description() do
Expand Down

0 comments on commit 89bffd4

Please sign in to comment.