diff --git a/.gitignore b/.gitignore index 9468769..772ffd1 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,4 @@ node_modules/ .DS_Store .history /build +.vscode diff --git a/BUILDME.md b/BUILDME.md index 5fe4e84..7afe7be 100644 --- a/BUILDME.md +++ b/BUILDME.md @@ -19,6 +19,7 @@ ## Production builds If you are creating production builds for publishing, there are a few other things to consider: * before building, make sure to update the version everywhere (ex. version.js, manifest.json), and ensure the README and CHANGELOG are up to date (incl. version) and committed. +* set `debug` to false in version.js * clear the `build` folder and use `yarn build --production` to minifiy and disable sourcemaps * create the `xdx` file by zipping the _contents_ of the build folder, and renaming with a `.xdx` extension. * once the plugin is submitted, tag the commit with it's version number (ex. `v1.0.0`) \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fe993bd..30548de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.3] - 2020-06-01 +### Added +- n/a + +### Changed +- fixed a RTE caused by empty Groups +- made image names a bit more resilient in cases where XD breaks our hashing +- only export a SingleChildScrollView for text fields with overflow in XD +- minor refactoring + +### Removed +- n/a + + ## [0.1.2] - 2020-05-25 ### Added - added robust 'Combine Shapes' feature on Groups diff --git a/manifest.json b/manifest.json index abae732..ff0b87f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "6eaf77ea", "name": "XD to Flutter", - "version": "0.1.2", + "version": "0.1.3", "icons": [ { "width": 24, diff --git a/src/utils/debug.js b/src/utils/debug.js index 3105bc6..517484f 100644 --- a/src/utils/debug.js +++ b/src/utils/debug.js @@ -11,9 +11,10 @@ written permission of Adobe. const xd = require("scenegraph"); const { formatDart } = require("../lib/dart_style"); +const version = require("../version"); function trace(...rest) { - false && console.log(...rest); + version.debug && console.log(...rest); } exports.trace = trace; diff --git a/src/version.js b/src/version.js index 5970ea8..d7e4be5 100644 --- a/src/version.js +++ b/src/version.js @@ -9,4 +9,5 @@ then your use, modification, or distribution of it requires the prior written permission of Adobe. */ -exports.version = "0.1.2"; \ No newline at end of file +exports.debug = false; +exports.version = "0.1.3"; \ No newline at end of file