Skip to main content

mix.exs

defmodule RevenueCat.MixProject do
  use Mix.Project

  def project do
    [
      app: :revenue_cat,
      version: "0.1.0",
      elixir: "~> 1.15",
      start_permanent: Mix.env() == :prod,
      deps: deps(),
      description:
        "RevenueCat V2 client for entitlement checks and customer deletion, with optional Ecto webhook helpers",
      package: package(),
      source_url: "https://github.com/metacircu1ar/revenue_cat",
      docs: [main: "readme", extras: ["README.md", "CHANGELOG.md"]]
    ]
  end

  def application do
    [extra_applications: [:logger]]
  end

  defp deps do
    [
      {:ecto, "~> 3.13", optional: true},
      {:ecto_sql, "~> 3.13", only: :test},
      {:jason, "~> 1.4"},
      {:postgrex, "~> 0.21", only: :test},
      {:req, "~> 0.5"},
      {:plug, "~> 1.0", only: :test},
      {:ex_doc, "~> 0.30", only: :dev, runtime: false}
    ]
  end

  defp package do
    [
      files: ~w(lib mix.exs README.md CHANGELOG.md LICENSE .formatter.exs),
      licenses: ["MIT"],
      links: %{
        "GitHub" => "https://github.com/metacircu1ar/revenue_cat"
      }
    ]
  end
end