Current section
Files
Jump to
Current section
Files
device_check
mix.exs
mix.exs
defmodule DeviceCheck.MixProject do
use Mix.Project
@version "0.3.0"
@source_url "https://github.com/dl-alexandre/device_check"
def project do
[
app: :device_check,
version: @version,
elixir: "~> 1.19",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
source_url: @source_url
]
end
def application do
[
extra_applications: [:logger, :crypto, :public_key],
mod: {DeviceCheck.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:req, "~> 0.5"},
{:jose, "~> 1.11"},
{:bypass, "~> 2.1", only: :test},
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false}
]
end
defp description do
"Elixir client for the Apple DeviceCheck API (validate device tokens, query state, update bits)."
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE .formatter.exs)
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md", "LICENSE"],
source_ref: "v#{@version}",
groups_for_modules: [
Auth: [DeviceCheck.Token, DeviceCheck.TokenCache],
HTTP: [DeviceCheck.Client, DeviceCheck.Config],
Device: [DeviceCheck],
Errors: [DeviceCheck.Error]
]
]
end
end