Skip to content

Commit 78b3aee

Browse files
authored
Merge pull request #172 from dwyl/dependabot/hex/phoenix_html-4.0.0
PR: completely remove Swoosh from the project as no emails are sent. #170
2 parents 5441bab + 787021d commit 78b3aee

File tree

6 files changed

+0
-37
lines changed

6 files changed

+0
-37
lines changed

config/config.exs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,6 @@ config :live_cursors, LiveCursorsWeb.Endpoint,
1414
pubsub_server: LiveCursors.PubSub,
1515
live_view: [signing_salt: "NhaSZ5KU"]
1616

17-
# Configures the mailer
18-
#
19-
# By default it uses the "Local" adapter which stores the emails
20-
# locally. You can see the emails in your browser, at "/dev/mailbox".
21-
#
22-
# For production it's recommended to configure a different adapter
23-
# at the `config/runtime.exs`.
24-
config :live_cursors, LiveCursors.Mailer, adapter: Swoosh.Adapters.Local
25-
26-
# Swoosh API client is needed for adapters other than SMTP.
27-
config :swoosh, :api_client, false
2817

2918
# Configure esbuild (the version is required)
3019
config :esbuild,

config/runtime.exs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,4 @@ if config_env() == :prod do
4747
port: port
4848
],
4949
secret_key_base: secret_key_base
50-
51-
# ## Configuring the mailer
52-
#
53-
# In production you need to configure the mailer to use a different adapter.
54-
# Also, you may need to configure the Swoosh API client of your choice if you
55-
# are not using SMTP. Here is an example of the configuration:
56-
#
57-
# config :live_cursors, LiveCursors.Mailer,
58-
# adapter: Swoosh.Adapters.Mailgun,
59-
# api_key: System.get_env("MAILGUN_API_KEY"),
60-
# domain: System.get_env("MAILGUN_DOMAIN")
61-
#
62-
# For this example you need include a HTTP client required by Swoosh API client.
63-
# Swoosh supports Hackney and Finch out of the box:
64-
#
65-
# config :swoosh, :api_client, Swoosh.ApiClient.Hackney
66-
#
67-
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
6850
end

config/test.exs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ config :live_cursors, LiveCursorsWeb.Endpoint,
77
secret_key_base: "1b6uOJ4cnFDWYw6RJg86c9oI/zs95JNyp7imTwXS70Idcg8JPsTbc38B/Oy/nq8K",
88
server: false
99

10-
# In test we don't send emails.
11-
config :live_cursors, LiveCursors.Mailer, adapter: Swoosh.Adapters.Test
12-
1310
# Print only warnings and errors during test
1411
config :logger, level: :warning
1512

lib/live_cursors/mailer.ex

Lines changed: 0 additions & 3 deletions
This file was deleted.

mix.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ defmodule LiveCursors.MixProject do
5252
{:tailwind, "~> 0.2.0", runtime: Mix.env() == :dev},
5353
{:floki, ">= 0.30.0", only: :test},
5454
{:esbuild, "~> 0.4", runtime: Mix.env() == :dev},
55-
{:swoosh, "~> 1.3"},
5655
{:telemetry_metrics, "~> 1.0"},
5756
{:telemetry_poller, "~> 1.0"},
5857
{:gettext, "~> 0.18"},

mix.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
"ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"},
4141
"random_color": {:hex, :random_color, "0.1.0", "fe0a7ad9311e7253c422e339c6203824e3b08aab44cc70ef6b5b6bd27021acb0", [:mix], [], "hexpm", "1bf3ef5b350cb84b0374e5e7edc98fe7daac7324f8ea66d8417dbe3475521e24"},
4242
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"},
43-
"swoosh": {:hex, :swoosh, "1.17.10", "3bfce0e716f92c85579c8b7bb390f1d287f388e4961bfb9343fe191ec4214225", [:mix], [{:bandit, ">= 1.0.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:cowboy, "~> 1.1 or ~> 2.4", [hex: :cowboy, repo: "hexpm", optional: true]}, {:ex_aws, "~> 2.1", [hex: :ex_aws, repo: "hexpm", optional: true]}, {:finch, "~> 0.6", [hex: :finch, repo: "hexpm", optional: true]}, {:gen_smtp, "~> 0.13 or ~> 1.0", [hex: :gen_smtp, repo: "hexpm", optional: true]}, {:hackney, "~> 1.9", [hex: :hackney, repo: "hexpm", optional: true]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mail, "~> 0.2", [hex: :mail, repo: "hexpm", optional: true]}, {:mime, "~> 1.1 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mua, "~> 0.2.3", [hex: :mua, repo: "hexpm", optional: true]}, {:multipart, "~> 0.4", [hex: :multipart, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: true]}, {:plug_cowboy, ">= 1.0.0", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:req, "~> 0.5 or ~> 1.0", [hex: :req, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4.2 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "277f86c249089f4fc7d70944987151b76424fac1d348d40685008ba88e0a2717"},
4443
"tailwind": {:hex, :tailwind, "0.2.4", "5706ec47182d4e7045901302bf3a333e80f3d1af65c442ba9a9eed152fb26c2e", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}], "hexpm", "c6e4a82b8727bab593700c998a4d98cf3d8025678bfde059aed71d0000c3e463"},
4544
"telemetry": {:hex, :telemetry, "1.3.0", "fedebbae410d715cf8e7062c96a1ef32ec22e764197f70cda73d82778d61e7a2", [:rebar3], [], "hexpm", "7015fc8919dbe63764f4b4b87a95b7c0996bd539e0d499be6ec9d7f3875b79e6"},
4645
"telemetry_metrics": {:hex, :telemetry_metrics, "1.1.0", "5bd5f3b5637e0abea0426b947e3ce5dd304f8b3bc6617039e2b5a008adc02f8f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "e7b79e8ddfde70adb6db8a6623d1778ec66401f366e9a8f5dd0955c56bc8ce67"},

0 commit comments

Comments
 (0)