Current section
Files
Jump to
Current section
Files
mix.exs
defmodule Sendio.MixProject do
use Mix.Project
@version "1.2.0"
def project do
[
app: :sendio,
version: @version,
elixir: "~> 1.14",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
docs: docs(),
deps: deps(),
name: "sendio",
homepage_url: "https://send.io"
]
end
defp description() do
"Official Elixir client for the send.io email API, with a Swoosh adapter."
end
defp package() do
[
description: description(),
licenses: ["Apache-2.0"],
maintainers: ["send.io <support@send.io>"],
files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE NOTICE .formatter.exs),
links: %{
"Homepage" => "https://send.io",
"API docs" => "https://developer.send.io/docs/api"
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger, :crypto]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:swoosh, "~> 1.3"},
{:req, "~> 0.5"},
{:jason, "~> 1.0"},
{:plug, "~> 1.0", only: :test},
{:dialyxir, "~> 1.2", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false}
]
end
defp docs() do
[
extras: [
"README.md": [title: "Overview"]
],
main: "readme",
groups_for_modules: groups_for_modules()
]
end
defp groups_for_modules() do
[
"Core API": [
Sendio.ApiKeys,
Sendio.Audiences,
Sendio.Automations,
Sendio.Automations.Templates,
Sendio.Broadcasts,
Sendio.Contacts,
Sendio.ContactProperties,
Sendio.Domains,
Sendio.Emails,
Sendio.Mailboxes,
Sendio.ReceivedEmails,
Sendio.Segments,
Sendio.Templates,
Sendio.Topics,
Sendio.Webhooks
],
"Response Structs": [
Sendio.ApiKeys.ApiKey,
Sendio.Audiences.Audience,
Sendio.Automations.Automation,
Sendio.Automations.Template,
Sendio.Automations.TemplateList,
Sendio.Broadcasts.Broadcast,
Sendio.Contacts.Contact,
Sendio.Contacts.TopicSubscription,
Sendio.ContactProperties.ContactProperty,
Sendio.Domains.Domain,
Sendio.Domains.Domain.Record,
Sendio.Emails.Attachment,
Sendio.Emails.BatchResponse,
Sendio.Emails.Email,
Sendio.Emails.Tag,
Sendio.Mailboxes.Mailbox,
Sendio.Mailboxes.MailboxCredentials,
Sendio.Mailboxes.Credentials,
Sendio.Mailboxes.Credentials.Server,
Sendio.ReceivedEmails.ReceivedEmail,
Sendio.Segments.Segment,
Sendio.Templates.Template,
Sendio.Topics.Topic,
Sendio.Webhooks.Webhook,
Sendio.Empty,
Sendio.Error,
Sendio.List
],
Swoosh: [
Sendio.Swoosh.Adapter
],
"API Client": [
Sendio.Client,
Sendio.Client.ReqClient
],
Utilities: [
Sendio.Util
]
]
end
end