From 8f4b197945522a1c8f37ac8fc350c2ff512f17c9 Mon Sep 17 00:00:00 2001 From: Praveen Perera Date: Sun, 9 Feb 2020 13:03:04 -0500 Subject: [PATCH] Make Jason library an optional dependency Since the user can select their own json library we should make the Jason dependency optional. If not Jason will always be pulled in even if the user uses a different dependency for json encoding/decoding. --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index d2c1e56..0eac9b7 100644 --- a/mix.exs +++ b/mix.exs @@ -34,7 +34,7 @@ defmodule ExTwitter.Mixfile do def deps do [ {:oauther, "~> 1.1"}, - {:jason, "~> 1.1"}, + {:jason, "~> 1.1", optional: true}, {:exvcr, "~> 0.8", only: :test}, {:excoveralls, "~> 0.7", only: :test}, {:meck, "~> 0.8.13", only: [:dev, :test]},