Table of contents:

What is it?

Powercuts is a library which allows tweak developers to easily create new actions for Shortcuts app. Those actions can then be run like any other action, from Shortcuts or Personal Automations. As a developer, you can either create actions for your existing tweaks or create new actions (pack), in minutes! Then, register this action to PowercutsManager in SpringBoard. Done!

Install Powercuts

Get the latest Powercuts version from my repo https://repo.anthopak.dev or from Chariz.

Integrate in a Theos project

You can integrate Powercuts into any existing/new project.

  1. Copy libpowercuts headers to $THEOS/include/libpowercuts (get them from the link below)
  2. Copy libpowercuts.dylib (get it from the link below) to $THEOS/lib for rootful builds, or to $THEOS/lib/iphone/rootless for rootless builds.
  3. In your project Makefile, add TWEAKNAME_LIBRARIES = powercuts
  4. You can now use #import <libpowercuts/libpowercuts.h> anywhere you need
  5. (Optional) Only if you want to force having Powercuts to install your tweak, add com.anthopak.powercuts to the Depends field in your control file. If you don’t do it (i.e. you want Powercuts to be optional), make sure to make this integration in a new subproject.

Files:

headers.zip