Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use UnDEAD XML dependency since std.xml got removed from phobos, add … #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 26 additions & 8 deletions dub.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
{
"name": "qrcode",
"description": "QRCode writen in D programming lanuage.",
"copyright": "Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd",
"authors": [ "donglei" ],
"license": "Apache-2.0",
"dependencies": {
"dmagick": "~>0.2.1"
}
"authors": [
"donglei"
],
"configurations": [
{
"dependencies": {
"dmagick": "~>0.2.1"
},
"name": "default",
"targetType": "library"
},
{
"excludedSourceFiles": [
"source/qrcode/renderer/image/png.d"
],
"name": "nopng",
"targetType": "library"
}
],
"copyright": "Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd",
"dependencies": {
"undead": "~>1.1.8"
},
"description": "QRCode writen in D programming lanuage.",
"license": "Apache-2.0",
"name": "qrcode"
}
5 changes: 4 additions & 1 deletion source/qrcode/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ public import qrcode.renderer.text.plain;
public import qrcode.renderer.image.abstractrender;
public import qrcode.renderer.image.svg;
public import qrcode.renderer.image.eps;
public import qrcode.renderer.image.png;

version(Have_dmagick){
public import qrcode.renderer.image.png;
}
public import qrcode.renderer.image.decorator.decoratorinterface;
public import qrcode.renderer.image.decorator.finderpattern;
6 changes: 3 additions & 3 deletions source/qrcode/renderer/image/svg.d
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import qrcode.renderer.image.abstractrender;
import qrcode.renderer.color.colorinterface;


import std.xml,std.conv, std.format;
import std.conv, std.format;
import undead.xml;
/**
* SVG backend.
*/
Expand Down Expand Up @@ -100,7 +101,6 @@ class Svg : AbstractRenderer
use.tag.attr["xlink:href"] = this.getRectPrototypeId(colorId);
use.tag.attr["xmlns:xmi"] = "http://www.w3.org/1999/xlink";


this.svg ~= use;
}
/**
Expand Down Expand Up @@ -145,4 +145,4 @@ class Svg : AbstractRenderer
this.prototypeIds[colorId] = "#" ~ id;
return this.prototypeIds[colorId];
}
}
}