diff --git a/ArduinoJson.cpp b/ArduinoJson.cpp deleted file mode 100644 index bcdba190..00000000 --- a/ArduinoJson.cpp +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright Benoit Blanchon 2014-2015 -// MIT License -// -// Arduino JSON library -// https://github.com/bblanchon/ArduinoJson - -#ifdef ARDUINO - -// This file is here to help the Arduino IDE find the other files. - -#include "src/Arduino/Print.cpp" -#include "src/DynamicJsonBuffer.cpp" -#include "src/Internals/IndentedPrint.cpp" -#include "src/Internals/JsonParser.cpp" -#include "src/Internals/List.cpp" -#include "src/Internals/Prettyfier.cpp" -#include "src/Internals/QuotedString.cpp" -#include "src/Internals/StringBuilder.cpp" -#include "src/JsonArray.cpp" -#include "src/JsonBuffer.cpp" -#include "src/JsonObject.cpp" -#include "src/JsonVariant.cpp" - -#endif diff --git a/ArduinoJson.h b/ArduinoJson.h deleted file mode 100644 index 36ca6591..00000000 --- a/ArduinoJson.h +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright Benoit Blanchon 2014-2015 -// MIT License -// -// Arduino JSON library -// https://github.com/bblanchon/ArduinoJson - -#ifdef ARDUINO - -// This file is here to help the Arduino IDE find the other files. - -#include "include/ArduinoJson.h" - -#endif diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a7a2f4f..70e0ba6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,8 @@ v5.0 (currently under development) ---- * Added support of `String` class (issue #55, #56, #70, #77) -* Redesigned `JsonVariant` to leverage converting constructors instead of assignment operators. +* Redesigned `JsonVariant` to leverage converting constructors instead of assignment operators +* Switched to new library layout (requires Arduino 1.0.6 or above) **BREAKING CHANGES**: - `JsonObject::add()` was renamed to `set()` diff --git a/library.properties b/library.properties new file mode 100644 index 00000000..7bfc420c --- /dev/null +++ b/library.properties @@ -0,0 +1,8 @@ +name=ArduinoJson +version=5.0.0 +author=Benoit Blanchon +maintainer=Benoit Blanchon +sentence=An efficient and elegant JSON library for Arduino. +paragraph=Like this project? Please star it on GitHub! +url=https://github.com/bblanchon/ArduinoJson +architectures=* diff --git a/scripts/build-arduino-package.sh b/scripts/build-arduino-package.sh index f91481a4..a28d0023 100755 --- a/scripts/build-arduino-package.sh +++ b/scripts/build-arduino-package.sh @@ -15,9 +15,8 @@ rm -f $OUTPUT ArduinoJson/examples \ ArduinoJson/include \ ArduinoJson/keywords.txt \ + ArduinoJson/library.properties \ ArduinoJson/LICENSE.md \ ArduinoJson/README.md \ ArduinoJson/src \ - ArduinoJson/ArduinoJson.h \ - ArduinoJson/ArduinoJson.cpp \ - -x!ArduinoJson/src/CMakeLists.txt \ No newline at end of file + -x!ArduinoJson/src/CMakeLists.txt diff --git a/src/ArduinoJson.h b/src/ArduinoJson.h new file mode 100644 index 00000000..033b4e08 --- /dev/null +++ b/src/ArduinoJson.h @@ -0,0 +1,13 @@ +// Copyright Benoit Blanchon 2014-2015 +// MIT License +// +// Arduino JSON library +// https://github.com/bblanchon/ArduinoJson + +// About this file +// --------------- +// This file is here to please the Arduino IDE. It must be present in the src/ +// for the IDE to find it. Feel free to ignore this file if your working in +// another environment + +#include "../include/ArduinoJson.h"