diff --git a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Info.plist b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Info.plist
index 2366078..a69544a 100644
--- a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Info.plist
+++ b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Info.plist
@@ -17,7 +17,7 @@
CFBundlePackageType
BNDL
CFBundleShortVersionString
- 1.7.4
+ 1.7.6
CFBundleSignature
????
CFBundleSupportedPlatforms
diff --git a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/MacOS/Fluid b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/MacOS/Fluid
index f94cd96..5339d9d 100755
Binary files a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/MacOS/Fluid and b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/MacOS/Fluid differ
diff --git a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/Assets.car b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/Assets.car
index fc79109..51b4874 100644
Binary files a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/Assets.car and b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/Assets.car differ
diff --git a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/MCSPluginController.h b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/MCSPluginController.h
index 66843d6..dbdd7f2 100644
--- a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/MCSPluginController.h
+++ b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/MCSPluginController.h
@@ -56,9 +56,6 @@ extern NSString *const MCSPluginNotificationDocumentWindowKey;
+ (NSAlert*) alertWithTitle:(NSString*)title information:(NSString*)information;
- - (void) applicationDidBecomeActive;
-
-
- (void) allDocumentsDidClose;
- (void) currentDocumentDidChange:(NSNotification*)notification;
diff --git a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/SketchRuntime.h b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/SketchRuntime.h
index 5799130..5558c8b 100644
--- a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/SketchRuntime.h
+++ b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/Headers/SketchRuntime.h
@@ -216,7 +216,7 @@
- (MSLayer*) addLayerOfType:(NSString*)type;
- - (BOOL) resizeRoot:(BOOL)recursive;
+ - (BOOL) resizeToFitChildrenWithOption:(long long)arg1;
@end
@@ -279,12 +279,6 @@
@property (nonatomic, copy) NSAttributedString *attributedStringValue;
- - (NSTextStorage*) createTextStorage;
-
- - (NSTextContainer*) createTextContainer;
-
- - (NSLayoutManager*) createLayoutManager;
-
@end
#define MSShapeGroup_Class GetClass(@"MSShapeGroup")
diff --git a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/MCSketchPluginFramework b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/MCSketchPluginFramework
index 9f970b1..07a0a21 100755
Binary files a/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/MCSketchPluginFramework and b/Fluid.sketchplugin/Contents/Resources/Fluid.bundle/Contents/Resources/MCSketchPluginFramework.framework/Versions/A/MCSketchPluginFramework differ
diff --git a/Fluid.sketchplugin/Contents/Sketch/commands.js b/Fluid.sketchplugin/Contents/Sketch/commands.js
index 8ac1c76..1be0ae8 100644
--- a/Fluid.sketchplugin/Contents/Sketch/commands.js
+++ b/Fluid.sketchplugin/Contents/Sketch/commands.js
@@ -1,5 +1,17 @@
@import "main.js"
+// -------
+// ACTIONS
+// -------
+
+function selectionDidChange(ctx){
+ getPluginController(ctx).currentSelectionDidChange();
+};
+
+function artboardDidChange(ctx){
+ getPluginController(ctx).currentDocumentDidChange();
+};
+
// --------
// COMMANDS
// --------
diff --git a/Fluid.sketchplugin/Contents/Sketch/manifest.json b/Fluid.sketchplugin/Contents/Sketch/manifest.json
index 47cc93b..a4070ef 100644
--- a/Fluid.sketchplugin/Contents/Sketch/manifest.json
+++ b/Fluid.sketchplugin/Contents/Sketch/manifest.json
@@ -3,14 +3,27 @@
"description": "Auto Layout-like constraints in Sketch",
"author": "Matt Curtis",
"homepage": "https://github.com/matt-curtis/Fluid-for-Sketch",
- "version": "1.7.4",
+ "version": "1.7.6",
"identifier": "com.matt-curtis.sketch.constraints",
"updateURL": "https://raw.githubusercontent.com/matt-curtis/Fluid-for-Sketch/master/Fluid.sketchplugin/Contents/Sketch/manifest.json",
+ "appcast": "https://api.sketchpacks.com/v1/plugins/com.matt-curtis.sketch.constraints/appcast",
+
"compatibleVersion": 3,
"bundleVersion": 1,
"commands": [
+ {
+ "name": "Actions",
+ "script": "dynamicCommands.js",
+ "handlers" : {
+ "actions": {
+ "SelectionChanged.finish": "selectionDidChange",
+ "ArtboardChanged.finish": "artboardDidChange"
+ }
+ }
+ },
+
{
"name": "Show/Hide Toolbar",
"identifier": "command_toggleToolbarVisiblity",
diff --git a/README.md b/README.md
index 276a502..dc828c8 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# :droplet: Fluid for Sketch 1.7.5
+# :droplet: Fluid for Sketch 1.7.6
> *A collaborative project brought to you by [Matt Curtis](https://twitter.com/matt_sven) & [Cat Noone](https://twitter.com/imcatnoone)*
Fluid is a Sketch plugin that provides a means to create more constraint-based, responsive designs. It is based on Auto Layout constraints.
-:package: [Download Plugin (.zip)](https://github.com/matt-curtis/Fluid-for-Sketch/releases/download/v1.7.5/Fluid.sketchplugin.zip) | :star: [Changelog](https://github.com/matt-curtis/Fluid-for-Sketch/releases) | :arrow_down: [Download the Demo Sketch Document](https://github.com/matt-curtis/Fluid-for-Sketch/raw/master/Constraint%20Demos.sketch)
+:package: [Download Plugin (.zip)](https://github.com/matt-curtis/Fluid-for-Sketch/releases/download/v1.7.6/Fluid.sketchplugin.zip) | :star: [Changelog](https://github.com/matt-curtis/Fluid-for-Sketch/releases) | :arrow_down: [Download the Demo Sketch Document](https://github.com/matt-curtis/Fluid-for-Sketch/raw/master/Constraint%20Demos.sketch)
--- | --- | ---
---
@@ -15,7 +15,7 @@ Fluid is a Sketch plugin that provides a means to create more constraint-based,
### Using Sketchpacks
-[![Install PLUGIN NAME with Sketchpacks](http://sketchpacks-com.s3.amazonaws.com/assets/badges/sketchpacks-badge-install.png "Install PLUGIN NAME with Sketchpacks")](https://sketchpacks.com/matt-curtis/fluid-for-sketch/install)
+[![Install Fluid for Sketch with Sketchpacks](http://sketchpacks-com.s3.amazonaws.com/assets/badges/sketchpacks-badge-install.png "Install Fluid for Sketch with Sketchpacks")](https://sketchpacks.com/matt-curtis/fluid-for-sketch/install)
### Using Sketch Runner