I added documentation too, even though I can’t build the docs.
Finally, I changed the section name from “rules” to “smackRules”. It seemed more in keeping with the ADEF style.
This closes out any effort I’m making on this, unless Sierra has feedback or changes they want. With these edits, you can add Smack rules to your application just by edit/build/deploy your application with a few additional lines in your ADEF file. For example, to ensure your MQTT server can talk to internet clients:
app.mqtt @ w
@ app.mqtt w
On most systems, the default label for internet traffic is @ “web”. Giving @ and app.mqtt write access to each other will permit data to flow between remote connections and your sandboxed mqtt server.
Your mileage may vary, depending on your existing networking & smack configurations.