Skip to content

Commit

Permalink
Support Sketch v50
Browse files Browse the repository at this point in the history
  • Loading branch information
utom committed May 13, 2018
1 parent 123abd4 commit 9c2a5ff
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>17A405</string>
<string>17D102</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>17A405</string>
<string>17D102</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand Down
Binary file not shown.
8 changes: 5 additions & 3 deletions Sketch Measure.sketchplugin/Contents/Sketch/library/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ SM.extend({
border.position = 1;
}

sharedStyles.addSharedStyleWithName_firstInstance(name, style);
const s = MSSharedStyle.alloc().initWithName_firstInstance(name, style);
sharedStyles.addSharedObject(s);
}

return (style.newInstance)? style.newInstance(): style;
Expand All @@ -678,7 +679,8 @@ SM.extend({
text.setTextAlignment(alignment);

style = text.style();
sharedStyles.addSharedStyleWithName_firstInstance(name, style);
const s = MSSharedStyle.alloc().initWithName_firstInstance(name, style);
sharedStyles.addSharedObject(s);
this.removeLayer(text);
}

Expand Down Expand Up @@ -3064,7 +3066,7 @@ SM.extend({

if(layer && this.is(layer, MSLayerGroup) && /NOTE\#/.exec(layer.name())){
var textLayer = layer.children()[3];
log(textLayer)

data.notes.push({
rect: this.rectToJSON(textLayer.absoluteRect(), artboardRect),
note: this.toHTMLEncode(this.emojiToEntities(textLayer.stringValue())).replace(/\n/g, "<br>")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"identifier": "com.utom.measure",
"appcast": "https://raw.githubusercontent.com/utom/sketch-measure/master/appcast.xml",
"homepage": "http://utom.design/measure/",
"version": "2.7.4",
"version": "2.7.5",
"description" : "Make it a fun to create spec for developers and teammates",
"authorEmail" : "utombox@gmail.com",
"name" : "Sketch Measure"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"identifier": "com.utom.measure",
"appcast": "https://raw.githubusercontent.com/utom/sketch-measure/master/appcast.xml",
"homepage": "http://utom.design/measure/",
"version": "2.7.4",
"version": "2.7.5",
"description" : "Make it a fun to create spec for developers and teammates",
"authorEmail" : "utombox@gmail.com",
"name" : "Sketch Measure"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
"identifier": "com.utom.measure",
"appcast": "https://raw.githubusercontent.com/utom/sketch-measure/master/appcast.xml",
"homepage": "http://utom.design/measure/",
"version": "2.7.4",
"version": "2.7.5",
"description" : "Make it a fun to create spec for developers and teammates",
"authorEmail" : "utombox@gmail.com",
"name" : "Sketch Measure"
Expand Down
2 changes: 1 addition & 1 deletion Sketch Measure.sketchplugin/Contents/Sketch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"identifier": "com.utom.measure",
"appcast": "https://raw.githubusercontent.com/utom/sketch-measure/master/appcast.xml",
"homepage": "http://utom.design/measure/",
"version": "2.7.4",
"version": "2.7.5",
"description" : "Make it a fun to create spec for developers and teammates",
"authorEmail" : "utombox@gmail.com",
"name" : "Sketch Measure"
Expand Down
13 changes: 12 additions & 1 deletion appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
<link>http://utom.design/measure/appcast.xml</link>
<description>Make it a fun to create spec for developers and teammates</description>
<language>en</language>
<item>
<title>Version 2.7.5</title>
<description>
<![CDATA[
<ul>
<li>Support Sketch v50</li>
</ul>
]]>
</description>
<enclosure url="https://github.com/utom/sketch-measure/archive/master.zip" sparkle:version="2.7.5" type="application/octet-stream" />
</item>
<item>
<title>Version 2.7.4</title>
<description>
Expand All @@ -14,7 +25,7 @@
</ul>
]]>
</description>
<enclosure url="https://github.com/utom/sketch-measure/archive/master.zip" sparkle:version="2.7.4" type="application/octet-stream" />
<enclosure url="https://github.com/utom/sketch-measure/archive/2.7.4.zip" sparkle:version="2.7.4" type="application/octet-stream" />
</item>
<item>
<title>Version 2.7</title>
Expand Down

0 comments on commit 9c2a5ff

Please sign in to comment.