[
  {
    "path": ".theos/_/DEBIAN/control",
    "content": "Package: com.greg0109.forwardnotifier\nName: ForwardNotifier\nDepends: mobilesubstrate, sshpass, openssh, applist, preferenceloader, curl\nConflict: com.yourepo.greg0109.forwardnotifier8\nReplaces: com.yourepo.greg0109.forwardnotifier8\nArchitecture: iphoneos-arm\nDescription: Forward Notifications to your PC!\nMaintainer: Greg0109\nAuthor: Greg0109\nSection: Tweaks\nVersion: 1.4.3\nInstalled-Size: 784\n"
  },
  {
    "path": ".theos/_/Library/ControlCenter/Bundles/ForwardNotifierCC.bundle/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleName</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleExecutable</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.greg0109.forwardnotifiercc</string>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>MinimumOSVersion</key>\n\t<string>7.0</string>\n\t<key>UIDeviceFamily</key>\n\t<array>\n\t\t<integer>1</integer>\n\t\t<integer>2</integer>\n\t</array>\n\t<key>NSPrincipalClass</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleSupportedPlatforms</key>\n\t<array>\n\t\t<string>iPhoneOS</string>\n\t</array>\n\t<key>CCSGetModuleSizeAtRuntime</key>\n\t<false/>\n\t<key>CCSModuleSize</key>\n\t<dict>\n\t\t<key>Portrait</key>\n\t\t<dict>\n\t\t\t<key>Height</key>\n\t\t\t<integer>1</integer>\n\t\t\t<key>Width</key>\n\t\t\t<integer>1</integer>\n\t\t</dict>\n\t\t<key>Landscape</key>\n\t\t<dict>\n\t\t\t<key>Height</key>\n\t\t\t<integer>1</integer>\n\t\t\t<key>Width</key>\n\t\t\t<integer>1</integer>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/_/Library/MobileSubstrate/DynamicLibraries/ForwardNotifier.plist",
    "content": "{ Filter = { Bundles = ( \"com.apple.springboard\" ); }; }\n"
  },
  {
    "path": ".theos/_/Library/PreferenceBundles/ForwardNotifier.bundle/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleExecutable</key>\n\t<string>ForwardNotifier</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.greg0109.forwardnotifierprefs</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1.0</string>\n\t<key>NSPrincipalClass</key>\n\t<string>FNPRootListController</string>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/_/Library/PreferenceBundles/ForwardNotifier.bundle/Root.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>items</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>label</key>\n            <string>General Settings</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>This feature makes this device the one that displays the notifications from other device.&#xA;Enable this feature if you would like to receive notifications on this device.&#xA;If this setting is enabled, the other ones should be disabled.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>receiver</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Set Device as Receiver</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Apps selected in the blacklisted section won't get their notifications forwarded.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSLinkCell</string>\n\t\t\t<key>bundle</key>\n\t\t\t<string>AppList</string>\n\t\t\t<key>isController</key>\n\t\t\t<string>1</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Blacklisted Apps</string>\n\t\t\t<key>ALAllowsSelection</key>\n\t\t\t<string>1</string>\n\t\t\t<key>ALSettingsKeyPrefix</key>\n\t\t\t<string></string>\n\t\t\t<key>ALSettingsDefaultValue</key>\n\t\t\t<string>0</string>\n\t\t\t<key>ALSettingsPath</key>\n\t\t\t<string>/var/mobile/Library/Preferences/com.greg0109.forwardnotifierblacklist</string>\n\t\t\t<key>ALSingleEnabledMode</key>\n\t\t\t<false/>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Enable this option to get an error output of the notifications.&#xA;It should only be enabled if the tweak is not working properly.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>errorlog</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Post a notification if something went wrong</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>If this setting is enabled, the device won't send the notifications when is unlocked.&#xA;Disable this if you would like to receive notifications on your PC/iOS device all the time.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<true/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>lockstateenabled</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Disable when unlocked</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Select which OS you would like the notifications to be forwarded:&#xA;- Linux requires a package called \"notify-send\" to be installed.&#xA;- MacOS requires a package \"terminal-notifier\" to be installed.&#xA;- iOS requires this tweak to be installed on the receiver device with the receiver option enabled.&#xA;- Windows requires the Windows Client Tool \"ForwardNotifierReceiver\" to be installed. This feature is not yet supported.&#xA;If you are using the crossplatform server option, the server tool for each OS should be installed on the receiver. That tool can be found in my github.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSegmentCell</string>\n\t\t\t<key>default</key>\n\t\t\t<integer>0</integer>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>pcspecifier</string>\n\t\t\t<key>validValues</key>\n        \t<array>\n\t\t\t\t<integer>0</integer>\n\t\t\t\t<integer>1</integer>\n\t\t\t\t<integer>2</integer>\n\t\t\t\t<integer>3</integer>\n\t\t\t</array>\n\t\t\t<key>validTitles</key>\n\t\t\t<array>\n\t\t\t\t<string>Linux</string>\n\t\t\t\t<string>MacOS</string>\n\t\t\t\t<string>iOS</string>\n\t\t\t\t<string>Windows</string>\n\t\t\t</array>\n\t\t\t<key>alignment</key>\n\t\t\t<string>0</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Notifier Settings</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>If you are using key authentication, make sure the key works before activating. This tweak has been tested with keys in the .pem format</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSegmentCell</string>\n\t\t\t<key>default</key>\n\t\t\t<integer>0</integer>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>methodspecifier</string>\n\t\t\t<key>validValues</key>\n        \t<array>\n\t\t\t\t<integer>0</integer>\n\t\t\t\t<integer>1</integer>\n\t\t\t</array>\n\t\t\t<key>validTitles</key>\n\t\t\t<array>\n\t\t\t\t<string>SSH</string>\n\t\t\t\t<string>Crossplatform Server</string>\n\t\t\t</array>\n\t\t\t<key>alignment</key>\n\t\t\t<string>0</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>IP or Hostaname.local</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>ip</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hostnameip</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>Port. Leave empty if its default (22)</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>port</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide1</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>User</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>user</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide2</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSecureEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>Password or path to Key Authentication File</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>password</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide3</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>keyauthentication</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide4</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Use key authentication</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>This will send a test notification to the PC/iOS Device.&#xA;Please, make sure all the settings are correct and that the CC module is enabled before testing.</string>\n\t\t</dict>\n\t\t<dict>\n      <key>action</key>\n      <string>testnotif</string>\n      <key>cell</key>\n      <string>PSButtonCell</string>\n      <key>label</key>\n      <string>Test Notification</string>\n    </dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>paypal</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Paypal</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Buy me a coffee</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>openTwitter</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Twitter</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Twitter (@Greg_0109)</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>reddit</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Reddit</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Reddit (u/greg0109)</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>sendEmail</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Email</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Email</string>\n\t\t</dict>\n\t</array>\n\t<key>title</key>\n\t<string>ForwardNotifier</string>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/_/Library/PreferenceLoader/Preferences/ForwardNotifier.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>entry</key>\n\t<dict>\n\t\t<key>bundle</key>\n\t\t<string>ForwardNotifier</string>\n\t\t<key>cell</key>\n\t\t<string>PSLinkCell</string>\n\t\t<key>detail</key>\n\t\t<string>FNPRootListController</string>\n\t\t<key>icon</key>\n\t\t<string>icon.png</string>\n\t\t<key>isController</key>\n\t\t<true/>\n\t\t<key>label</key>\n\t\t<string>ForwardNotifier</string>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/build_session",
    "content": ""
  },
  {
    "path": ".theos/fakeroot",
    "content": ""
  },
  {
    "path": ".theos/last_package",
    "content": "./packages/com.greg0109.forwardnotifier_1.4.3_iphoneos-arm.deb\n"
  },
  {
    "path": ".theos/obj/.stamp",
    "content": ""
  },
  {
    "path": ".theos/obj/ForwardNotifier.bundle/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleExecutable</key>\n\t<string>ForwardNotifier</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.greg0109.forwardnotifierprefs</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1.0</string>\n\t<key>NSPrincipalClass</key>\n\t<string>FNPRootListController</string>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/ForwardNotifier.bundle/Root.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>items</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>label</key>\n            <string>General Settings</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>This feature makes this device the one that displays the notifications from other device.&#xA;Enable this feature if you would like to receive notifications on this device.&#xA;If this setting is enabled, the other ones should be disabled.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>receiver</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Set Device as Receiver</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Apps selected in the blacklisted section won't get their notifications forwarded.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSLinkCell</string>\n\t\t\t<key>bundle</key>\n\t\t\t<string>AppList</string>\n\t\t\t<key>isController</key>\n\t\t\t<string>1</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Blacklisted Apps</string>\n\t\t\t<key>ALAllowsSelection</key>\n\t\t\t<string>1</string>\n\t\t\t<key>ALSettingsKeyPrefix</key>\n\t\t\t<string></string>\n\t\t\t<key>ALSettingsDefaultValue</key>\n\t\t\t<string>0</string>\n\t\t\t<key>ALSettingsPath</key>\n\t\t\t<string>/var/mobile/Library/Preferences/com.greg0109.forwardnotifierblacklist</string>\n\t\t\t<key>ALSingleEnabledMode</key>\n\t\t\t<false/>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Enable this option to get an error output of the notifications.&#xA;It should only be enabled if the tweak is not working properly.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>errorlog</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Post a notification if something went wrong</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>If this setting is enabled, the device won't send the notifications when is unlocked.&#xA;Disable this if you would like to receive notifications on your PC/iOS device all the time.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<true/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>lockstateenabled</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Disable when unlocked</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Select which OS you would like the notifications to be forwarded:&#xA;- Linux requires a package called \"notify-send\" to be installed.&#xA;- MacOS requires a package \"terminal-notifier\" to be installed.&#xA;- iOS requires this tweak to be installed on the receiver device with the receiver option enabled.&#xA;- Windows requires the Windows Client Tool \"ForwardNotifierReceiver\" to be installed. This feature is not yet supported.&#xA;If you are using the crossplatform server option, the server tool for each OS should be installed on the receiver. That tool can be found in my github.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSegmentCell</string>\n\t\t\t<key>default</key>\n\t\t\t<integer>0</integer>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>pcspecifier</string>\n\t\t\t<key>validValues</key>\n        \t<array>\n\t\t\t\t<integer>0</integer>\n\t\t\t\t<integer>1</integer>\n\t\t\t\t<integer>2</integer>\n\t\t\t\t<integer>3</integer>\n\t\t\t</array>\n\t\t\t<key>validTitles</key>\n\t\t\t<array>\n\t\t\t\t<string>Linux</string>\n\t\t\t\t<string>MacOS</string>\n\t\t\t\t<string>iOS</string>\n\t\t\t\t<string>Windows</string>\n\t\t\t</array>\n\t\t\t<key>alignment</key>\n\t\t\t<string>0</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Notifier Settings</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>If you are using key authentication, make sure the key works before activating. This tweak has been tested with keys in the .pem format</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSegmentCell</string>\n\t\t\t<key>default</key>\n\t\t\t<integer>0</integer>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>methodspecifier</string>\n\t\t\t<key>validValues</key>\n        \t<array>\n\t\t\t\t<integer>0</integer>\n\t\t\t\t<integer>1</integer>\n\t\t\t</array>\n\t\t\t<key>validTitles</key>\n\t\t\t<array>\n\t\t\t\t<string>SSH</string>\n\t\t\t\t<string>Crossplatform Server</string>\n\t\t\t</array>\n\t\t\t<key>alignment</key>\n\t\t\t<string>0</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>IP or Hostaname.local</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>ip</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hostnameip</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>Port. Leave empty if its default (22)</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>port</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide1</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>User</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>user</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide2</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSecureEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>Password or path to Key Authentication File</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>password</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide3</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>keyauthentication</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide4</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Use key authentication</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>This will send a test notification to the PC/iOS Device.&#xA;Please, make sure all the settings are correct and that the CC module is enabled before testing.</string>\n\t\t</dict>\n\t\t<dict>\n      <key>action</key>\n      <string>testnotif</string>\n      <key>cell</key>\n      <string>PSButtonCell</string>\n      <key>label</key>\n      <string>Test Notification</string>\n    </dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>paypal</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Paypal</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Buy me a coffee</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>openTwitter</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Twitter</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Twitter (@Greg_0109)</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>reddit</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Reddit</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Reddit (u/greg0109)</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>sendEmail</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Email</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Email</string>\n\t\t</dict>\n\t</array>\n\t<key>title</key>\n\t<string>ForwardNotifier</string>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/ForwardNotifierCC.bundle/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleName</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleExecutable</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.greg0109.forwardnotifiercc</string>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>MinimumOSVersion</key>\n\t<string>7.0</string>\n\t<key>UIDeviceFamily</key>\n\t<array>\n\t\t<integer>1</integer>\n\t\t<integer>2</integer>\n\t</array>\n\t<key>NSPrincipalClass</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleSupportedPlatforms</key>\n\t<array>\n\t\t<string>iPhoneOS</string>\n\t</array>\n\t<key>CCSGetModuleSizeAtRuntime</key>\n\t<false/>\n\t<key>CCSModuleSize</key>\n\t<dict>\n\t\t<key>Portrait</key>\n\t\t<dict>\n\t\t\t<key>Height</key>\n\t\t\t<integer>1</integer>\n\t\t\t<key>Width</key>\n\t\t\t<integer>1</integer>\n\t\t</dict>\n\t\t<key>Landscape</key>\n\t\t<dict>\n\t\t\t<key>Height</key>\n\t\t\t<integer>1</integer>\n\t\t\t<key>Width</key>\n\t\t\t<integer>1</integer>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64/FNPRootListController.m.09745f32.Td",
    "content": "/home/glith/Escritorio/forwardnotifier/.theos/obj/arm64/FNPRootListController.m.09745f32.o: \\\n  FNPRootListController.m /home/glith/theos/Prefix.pch \\\n  /home/glith/theos/vendor/include/theos/BackwardsCompat.h \\\n  /home/glith/theos/vendor/include/theos/IOSMacros.h \\\n  /home/glith/theos/vendor/include/HBLog.h FNPRootListController.h \\\n  /home/glith/theos/vendor/include/Preferences/PSListController.h \\\n  /home/glith/theos/vendor/include/Preferences/PSViewController.h \\\n  /home/glith/theos/vendor/include/Preferences/PSSpecifier.h \\\n  /home/glith/theos/vendor/include/Preferences/PSTableCell.h \\\n  /home/glith/theos/include/AppList/AppList.h \\\n  /home/glith/theos/include/AppList/ALApplicationList.h \\\n  /home/glith/theos/include/AppList/ALApplicationTableDataSource.h \\\n  /home/glith/theos/include/AppList/ALValueCell.h \\\n  /home/glith/theos/vendor/include/FrontBoardServices/FBSSystemService.h \\\n  /home/glith/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h \\\n  /home/glith/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSAction.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSDescriptionProviding.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSXPCCoding.h\n\n/home/glith/theos/Prefix.pch:\n\n/home/glith/theos/vendor/include/theos/BackwardsCompat.h:\n\n/home/glith/theos/vendor/include/theos/IOSMacros.h:\n\n/home/glith/theos/vendor/include/HBLog.h:\n\nFNPRootListController.h:\n\n/home/glith/theos/vendor/include/Preferences/PSListController.h:\n\n/home/glith/theos/vendor/include/Preferences/PSViewController.h:\n\n/home/glith/theos/vendor/include/Preferences/PSSpecifier.h:\n\n/home/glith/theos/vendor/include/Preferences/PSTableCell.h:\n\n/home/glith/theos/include/AppList/AppList.h:\n\n/home/glith/theos/include/AppList/ALApplicationList.h:\n\n/home/glith/theos/include/AppList/ALApplicationTableDataSource.h:\n\n/home/glith/theos/include/AppList/ALValueCell.h:\n\n/home/glith/theos/vendor/include/FrontBoardServices/FBSSystemService.h:\n\n/home/glith/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h:\n\n/home/glith/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSAction.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSDescriptionProviding.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSXPCCoding.h:\n"
  },
  {
    "path": ".theos/obj/arm64/FNPRootListController.m.a9e3cd08.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64/FNPRootListController.m.a9e3cd08.o: \\\n  FNPRootListController.m /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h \\\n  FNPRootListController.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSListController.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSViewController.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSSpecifier.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSTableCell.h \\\n  /Users/greg/theos/vendor/include/AppList/AppList.h \\\n  /Users/greg/theos/vendor/include/AppList/ALApplicationList.h \\\n  /Users/greg/theos/vendor/include/AppList/ALApplicationTableDataSource.h \\\n  /Users/greg/theos/vendor/include/AppList/ALValueCell.h \\\n  /Users/greg/theos/vendor/include/FrontBoardServices/FBSSystemService.h \\\n  /Users/greg/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h \\\n  /Users/greg/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSAction.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSDescriptionProviding.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSXPCCoding.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n\nFNPRootListController.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSListController.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSViewController.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSSpecifier.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSTableCell.h:\n\n/Users/greg/theos/vendor/include/AppList/AppList.h:\n\n/Users/greg/theos/vendor/include/AppList/ALApplicationList.h:\n\n/Users/greg/theos/vendor/include/AppList/ALApplicationTableDataSource.h:\n\n/Users/greg/theos/vendor/include/AppList/ALValueCell.h:\n\n/Users/greg/theos/vendor/include/FrontBoardServices/FBSSystemService.h:\n\n/Users/greg/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h:\n\n/Users/greg/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSAction.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSDescriptionProviding.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSXPCCoding.h:\n"
  },
  {
    "path": ".theos/obj/arm64/ForwardNotifier.bundle/ForwardNotifier.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifier</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64/ForwardNotifier.dylib.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifier.dylib</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64/ForwardNotifierCC.bundle/ForwardNotifierCC.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifierCC</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64/ForwardNotifierCC.m.b26de4cf.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64/ForwardNotifierCC.m.b26de4cf.o: \\\n  ForwardNotifierCC.m /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h \\\n  ForwardNotifierCC.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUIToggleModule.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUICAPackageDescription.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUIContentModule-Protocol.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUIContentModuleContentViewController-Protocol.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n\nForwardNotifierCC.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUIToggleModule.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUICAPackageDescription.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUIContentModule-Protocol.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUIContentModuleContentViewController-Protocol.h:\n"
  },
  {
    "path": ".theos/obj/arm64/ForwardNotifierReceiver.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifierReceiver</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64/Tweak.x.10f0f3ca.Td",
    "content": "/home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/.theos/obj/arm64/Tweak.x.10f0f3ca.o: \\\n  /home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/.theos/obj/arm64/Tweak.x.m \\\n  /home/glith/theos/Prefix.pch \\\n  /home/glith/theos/vendor/include/theos/BackwardsCompat.h \\\n  /home/glith/theos/vendor/include/theos/IOSMacros.h \\\n  /home/glith/theos/vendor/include/HBLog.h \\\n  /home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/Tweak.h \\\n  /home/glith/theos/include/NSTask.h \\\n  /home/glith/theos/include/substrate.h\n\n/home/glith/theos/Prefix.pch:\n\n/home/glith/theos/vendor/include/theos/BackwardsCompat.h:\n\n/home/glith/theos/vendor/include/theos/IOSMacros.h:\n\n/home/glith/theos/vendor/include/HBLog.h:\n\n/home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/Tweak.h:\n\n/home/glith/theos/include/NSTask.h:\n\n/home/glith/theos/include/substrate.h:\n"
  },
  {
    "path": ".theos/obj/arm64/Tweak.x.5dac7822.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64/Tweak.x.5dac7822.o: \\\n  /Users/greg/Desktop/forwardnotifier/.theos/obj/arm64/Tweak.x.m \\\n  /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h \\\n  /Users/greg/Desktop/forwardnotifier/Tweak.h \\\n  /Users/greg/theos/include/NSTask.h \\\n  /Users/greg/theos/include/substrate.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n\n/Users/greg/Desktop/forwardnotifier/Tweak.h:\n\n/Users/greg/theos/include/NSTask.h:\n\n/Users/greg/theos/include/substrate.h:\n"
  },
  {
    "path": ".theos/obj/arm64/Tweak.x.653cbd7a.Td",
    "content": "/home/glith/Escritorio/forwardnotifier/.theos/obj/arm64/Tweak.x.653cbd7a.o: \\\n  /home/glith/Escritorio/forwardnotifier/.theos/obj/arm64/Tweak.x.m \\\n  /home/glith/theos/Prefix.pch \\\n  /home/glith/theos/vendor/include/theos/BackwardsCompat.h \\\n  /home/glith/theos/vendor/include/theos/IOSMacros.h \\\n  /home/glith/theos/vendor/include/HBLog.h \\\n  /home/glith/Escritorio/forwardnotifier/Tweak.h \\\n  /home/glith/theos/include/NSTask.h \\\n  /home/glith/theos/include/substrate.h\n\n/home/glith/theos/Prefix.pch:\n\n/home/glith/theos/vendor/include/theos/BackwardsCompat.h:\n\n/home/glith/theos/vendor/include/theos/IOSMacros.h:\n\n/home/glith/theos/vendor/include/HBLog.h:\n\n/home/glith/Escritorio/forwardnotifier/Tweak.h:\n\n/home/glith/theos/include/NSTask.h:\n\n/home/glith/theos/include/substrate.h:\n"
  },
  {
    "path": ".theos/obj/arm64/Tweak.x.m",
    "content": "#line 1 \"Tweak.x\"\n#import \"Tweak.h\"\n\nstruct SBIconImageInfo iconspecs;\n\n\nBOOL receiver;\nBOOL errorlog;\nBOOL lockstateenabled;\nint pcspecifier;\n\n\nint methodspecifier;\nBOOL keyauthentication;\nNSString *user;\nNSString *ip;\nNSString *port;\nNSString *password;\nNSString *command;\nNSString *finalCommand;\nNSArray *arguments;\n\n\nNSString *pc;\nNSString *title;\nNSMutableString *finalTitle;\nNSString *message;\nNSMutableString *finalMessage;\nNSString *bundleID;\nNSString *appName;\nBOOL locked;\n\n\nNSPipe *out;\nstatic BBServer *notificationserver = nil;\n\nstatic void loadPrefs() {\n  NSMutableDictionary *prefs = [NSMutableDictionary dictionaryWithContentsOfFile:@\"/User/Library/Preferences/com.greg0109.forwardnotifierprefs.plist\"];\n  receiver = prefs[@\"receiver\"] ? [prefs[@\"receiver\"] boolValue] : NO;\n  errorlog = prefs[@\"errorlog\"] ? [prefs[@\"errorlog\"] boolValue] : NO;\n  lockstateenabled = prefs[@\"lockstateenabled\"] ? [prefs[@\"lockstateenabled\"] boolValue] : YES;\n  pcspecifier = prefs[@\"pcspecifier\"] ? [prefs[@\"pcspecifier\"] intValue] : 0;\n\n  methodspecifier = prefs[@\"methodspecifier\"] ? [prefs[@\"methodspecifier\"] intValue] : 0;\n  keyauthentication = prefs[@\"keyauthentication\"] ? [prefs[@\"keyauthentication\"] boolValue] : NO;\n  user = prefs[@\"user\"] && !([prefs[@\"user\"] isEqualToString:@\"\"]) ? [prefs[@\"user\"] stringValue] : @\"user\";\n  ip = prefs[@\"ip\"] && !([prefs[@\"ip\"] isEqualToString:@\"\"]) ? [prefs[@\"ip\"] stringValue] : @\"ip\";\n  port = prefs[@\"port\"] && !([prefs[@\"port\"] isEqualToString:@\"\"]) ? [prefs[@\"port\"] stringValue] : @\"22\";\n  password = prefs[@\"password\"] && !([prefs[@\"password\"] isEqualToString:@\"\"]) ? [prefs[@\"password\"] stringValue] : @\"password\";\n  user = [user stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n  ip = [ip stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n  password = [password stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n}\n\nstatic dispatch_queue_t getBBServerQueue() {\n    static dispatch_queue_t queue;\n    static dispatch_once_t predicate;\n    dispatch_once(&predicate, ^{\n        void *handle = dlopen(NULL, RTLD_GLOBAL);\n        if (handle) {\n            dispatch_queue_t __weak *pointer = (__weak dispatch_queue_t *) dlsym(handle, \"__BBServerQueue\");\n            if (pointer) {\n                queue = *pointer;\n            }\n            dlclose(handle);\n        }\n    });\n    return queue;\n}\n\n\n#include <substrate.h>\n#if defined(__clang__)\n#if __has_feature(objc_arc)\n#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained\n#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))\n#define _LOGOS_SELF_CONST const\n#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))\n#else\n#define _LOGOS_SELF_TYPE_NORMAL\n#define _LOGOS_SELF_TYPE_INIT\n#define _LOGOS_SELF_CONST\n#define _LOGOS_RETURN_RETAINED\n#endif\n#else\n#define _LOGOS_SELF_TYPE_NORMAL\n#define _LOGOS_SELF_TYPE_INIT\n#define _LOGOS_SELF_CONST\n#define _LOGOS_RETURN_RETAINED\n#endif\n\n@class BBAction; @class SBApplicationController; @class SpringBoard; @class SBLockStateAggregator; @class BBBulletin; @class SBIconController; @class BBServer; \nstatic BBServer* (*_logos_orig$_ungrouped$BBServer$initWithQueue$)(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id) _LOGOS_RETURN_RETAINED; static BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id) _LOGOS_RETURN_RETAINED; static BBServer* (*_logos_orig$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$)(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id, id, id, id, id, id, id, id, id) _LOGOS_RETURN_RETAINED; static BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id, id, id, id, id, id, id, id, id) _LOGOS_RETURN_RETAINED; static void (*_logos_orig$_ungrouped$BBServer$dealloc)(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL); static void _logos_method$_ungrouped$BBServer$dealloc(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL); \nstatic __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBIconController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"SBIconController\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$BBBulletin(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"BBBulletin\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBApplicationController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"SBApplicationController\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBLockStateAggregator(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"SBLockStateAggregator\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$BBAction(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"BBAction\"); } return _klass; }\n#line 70 \"Tweak.x\"\n\nstatic BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$(_LOGOS_SELF_TYPE_INIT BBServer* __unused self, SEL __unused _cmd, id arg1) _LOGOS_RETURN_RETAINED {\n    notificationserver = _logos_orig$_ungrouped$BBServer$initWithQueue$(self, _cmd, arg1);\n    return notificationserver;\n}\nstatic BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$(_LOGOS_SELF_TYPE_INIT BBServer* __unused self, SEL __unused _cmd, id arg1, id arg2, id arg3, id arg4, id arg5, id arg6, id arg7, id arg8, id arg9) _LOGOS_RETURN_RETAINED {\n    notificationserver = _logos_orig$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$(self, _cmd, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);\n    return notificationserver;\n}\nstatic void _logos_method$_ungrouped$BBServer$dealloc(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {\n  if (notificationserver == self) {\n    notificationserver = nil;\n  }\n  _logos_orig$_ungrouped$BBServer$dealloc(self, _cmd);\n}\n\n\nvoid testnotif(NSString *titletest, NSString *messagetest) {\n  BBBulletin *bulletin = [[_logos_static_class_lookup$BBBulletin() alloc] init];\n\n  bulletin.title = titletest;\n  bulletin.message = messagetest;\n  bulletin.sectionID = @\"com.apple.Preferences\";\n  bulletin.bulletinID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.recordID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.publisherBulletinID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.date = [NSDate date];\n  bulletin.defaultAction = [_logos_static_class_lookup$BBAction() actionWithLaunchBundleID:@\"prefs:root=ForwardNotifier\" callblock:nil];\n  dispatch_sync(getBBServerQueue(), ^{\n    [notificationserver publishBulletin:bulletin destinations:14];\n  });\n}\n\nBOOL isItLocked() {\n  if (lockstateenabled) {\n    locked = [[_logos_static_class_lookup$SBLockStateAggregator() sharedInstance] lockState];\n  } else {\n    locked = TRUE;\n  }\n  return locked;\n}\n\nvoid sanitizeText() { \n  finalTitle = [@\"\" mutableCopy];\n  for (int i=0; i<title.length; i++) {\n      NSString *charSelected = [title substringWithRange:NSMakeRange(i, 1)];\n      if ([charSelected isEqualToString:@\" \"]) {\n          charSelected = @\" \";\n      } else {\n        charSelected = [NSString stringWithFormat:@\"\\\\%@\",charSelected];\n      }\n      [finalTitle appendString:charSelected];\n  }\n  finalMessage = [@\"\" mutableCopy];\n  for (int i=0; i<message.length; i++) {\n      NSString *charSelected = [message substringWithRange:NSMakeRange(i, 1)];\n      if ([charSelected isEqualToString:@\" \"]) {\n          charSelected = @\" \";\n      } else {\n        charSelected = [NSString stringWithFormat:@\"\\\\%@\",charSelected];\n      }\n      [finalMessage appendString:charSelected];\n  }\n}\n\nvoid pushnotif(BOOL override) {\n  if (!override) {\n    isItLocked();\n  } else {\n    locked = TRUE;\n  }\n  if (methodspecifier == 0) { \n      if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"] && (locked)) {\n      dispatch_queue_t sendnotif = dispatch_queue_create(\"Send Notif\", NULL);\n      dispatch_async(sendnotif, ^{\n        pc = [NSString stringWithFormat:@\"%@@%@\",user,ip];\n        sanitizeText();\n        if (pcspecifier == 0) { \n          finalCommand = [NSString stringWithFormat:@\"\\\"$(echo %@)\\\" \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"notify-send -i applications-development %@\",finalCommand];\n          NSLog(@\"ForwardNotifier: %@\", command);\n        } else if (pcspecifier == 1) { \n          finalCommand = [NSString stringWithFormat:@\"-title \\\"$(echo %@)\\\" -message \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"/usr/local/bin/terminal-notifier -sound pop %@\",finalCommand];\n        } else if (pcspecifier == 2) { \n          finalCommand = [NSString stringWithFormat:@\"\\\"$(echo %@)\\\" \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"ForwardNotifierReceiver %@\",finalCommand];\n        } else if (pcspecifier == 3) { \n          finalCommand = [NSString stringWithFormat:@\"-title \\\"$(echo %@)\\\" -message \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"ForwardNotifierReceiver %@\",finalCommand];\n        }\n        if (keyauthentication) {\n          if ([port isEqual:@\"22\"]) {\n            arguments = @[@\"-i\",password,pc,command];\n          } else {\n            arguments = @[@\"-i\",password,pc,@\"-p\",port,command];\n          }\n          NSTask *task = [[NSTask alloc] init];\n          [task setLaunchPath:@\"/usr/bin/ssh\"];\n          [task setArguments:arguments];\n          out = [NSPipe pipe];\n          [task setStandardError:out];\n          [task launch];\n          [task waitUntilExit];\n        } else {\n          if ([port isEqual:@\"22\"]) {\n            arguments = @[@\"-p\",password,@\"ssh\",@\"-o\",@\"StrictHostKeyChecking=no\",pc,command];\n          } else {\n            arguments = @[@\"-p\",password,@\"ssh\",@\"-o\",@\"StrictHostKeyChecking=no\",pc,@\"-p\",port,command];\n          }\n          NSTask *task = [[NSTask alloc] init];\n          [task setLaunchPath:@\"/usr/bin/sshpass\"];\n          [task setArguments:arguments];\n          out = [NSPipe pipe];\n          [task setStandardError:out];\n          [task launch];\n          [task waitUntilExit];\n        }\n        NSFileHandle * read = [out fileHandleForReading];\n        NSData * dataRead = [read readDataToEndOfFile];\n        NSString *erroroutput = [[NSString alloc] initWithData:dataRead encoding:NSUTF8StringEncoding];\n        if ([erroroutput length] > 2 && errorlog) {\n          testnotif(@\"ForwardNotifier Error\",erroroutput);\n        }\n      });\n    }\n  } else if (methodspecifier == 1) { \n    \n    SBApplicationIcon *icon = [((SBIconController *)[_logos_static_class_lookup$SBIconController() sharedInstance]).model expectedIconForDisplayIdentifier:bundleID];\n    UIImage *image = nil;\n  \ticonspecs.size = CGSizeMake(60, 60);\n  \ticonspecs.scale = [UIScreen mainScreen].scale;\n  \ticonspecs.continuousCornerRadius = 12;\n  \timage = [icon generateIconImageWithInfo:iconspecs];\n    NSData *iconData = UIImagePNGRepresentation(image);\n    NSString *iconBase64;\n    if (![title isEqualToString:@\"ForwardNotifier Test\"]) {\n      iconBase64 = [iconData base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];\n    } else {\n      iconBase64 = forwardNotifierIconBase64;\n    }\n    \n    NSData *titleData = [title dataUsingEncoding: NSUTF8StringEncoding];\n    NSString *titleBase64 = [titleData base64EncodedStringWithOptions:0];\n    NSData *messageData = [message dataUsingEncoding: NSUTF8StringEncoding];\n    NSString *messageBase64 = [messageData base64EncodedStringWithOptions:0];\n    if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"] && (locked)) {\n      dispatch_queue_t sendnotif = dispatch_queue_create(\"Send Notif\", NULL);\n      dispatch_async(sendnotif, ^{\n        title = [title stringByReplacingOccurrencesOfString:@\"\\\"\" withString:@\"\\\\\"\"\\\"\"];\n        message = [message stringByReplacingOccurrencesOfString:@\"\\\"\" withString:@\"\\\\\"\"\\\"\"];\n        if (pcspecifier == 0) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"Linux\\\", \\\"img\\\": \\\"%@\\\", \\\"appname\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64,appName];\n        } else if (pcspecifier == 1) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"MacOS\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        } else if (pcspecifier == 2) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"iOS\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        } else if (pcspecifier == 3) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"Windows\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        }\n        NSTask *task = [[NSTask alloc] init];\n        [task setLaunchPath:@\"/usr/bin/curl\"];\n        [task setArguments:@[@\"-sS\",[NSString stringWithFormat:@\"%@:8000\",ip],@\"-d\",command ]];\n        out = [NSPipe pipe];\n        [task setStandardError:out];\n        [task launch];\n        [task waitUntilExit];\n        NSFileHandle * read = [out fileHandleForReading];\n        NSData * dataRead = [read readDataToEndOfFile];\n        NSString *erroroutput = [[NSString alloc] initWithData:dataRead encoding:NSUTF8StringEncoding];\n        if ([erroroutput length] > 2 && errorlog) {\n          if ([erroroutput containsString:@\"curl\"] && ![erroroutput containsString:@\"Empty reply\"]) {\n            testnotif(@\"ForwardNotifier Error\",erroroutput);\n          }\n        }\n      });\n    }\n  }\n}\n\nstatic void (*_logos_orig$sender$BBServer$publishBulletin$destinations$)(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL, BBBulletin *, unsigned long long); static void _logos_method$sender$BBServer$publishBulletin$destinations$(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL, BBBulletin *, unsigned long long); static void (*_logos_orig$sender$SpringBoard$applicationDidFinishLaunching$)(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$sender$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); \n\nstatic void _logos_method$sender$BBServer$publishBulletin$destinations$(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BBBulletin * arg1, unsigned long long arg2) {\n  _logos_orig$sender$BBServer$publishBulletin$destinations$(self, _cmd, arg1, arg2);\n  title = arg1.content.title;\n  message = arg1.content.message;\n  bundleID = arg1.sectionID;\n  SBApplication *app = [[_logos_static_class_lookup$SBApplicationController() sharedInstance] applicationWithBundleIdentifier:bundleID];\n  appName = app.displayName;\n  if (([title length] != 0) || ([message length] != 0)) {\n    if ([title length] == 0) {\n      title = app.displayName;\n    }\n    if (![title containsString:@\"ForwardNotifier\"] && [arg1.date timeIntervalSinceNow] > -2) { \n      NSMutableDictionary *applist = [[NSMutableDictionary alloc] initWithContentsOfFile:@\"/var/mobile/Library/Preferences/com.greg0109.forwardnotifierblacklist\"];\n      if (![applist valueForKey:arg1.sectionID] || [[NSString stringWithFormat:@\"%@\",[applist valueForKey:arg1.sectionID]] isEqual:@\"0\"]) {\n        pushnotif(FALSE);\n      }\n    } else if ([title isEqualToString:@\"ForwardNotifier Test\"]) {\n      pushnotif(TRUE);\n    }\n  }\n}\n\n\n\nstatic void _logos_method$sender$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1) {\n  [[NSDistributedNotificationCenter defaultCenter] addObserverForName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) {\n    NSString *titlenotif = notification.userInfo[@\"title\"];\n    NSString *messagenotif = notification.userInfo[@\"message\"];\n    if ([titlenotif isEqualToString:@\"ActivateForwardNotifier\"]) {\n      if ([messagenotif isEqualToString:@\"true\"]) {\n        [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n      } else if ([messagenotif isEqualToString:@\"false\"]) {\n        [[NSUserDefaults standardUserDefaults] setBool:FALSE forKey:@\"ForwardNotifier-Status\"];\n      }\n    } else {\n      [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n      title = @\"ForwardNotifier Test\";\n      message = @\"This is a test notification\";\n      testnotif(title,message);\n    }\n  }];\n  _logos_orig$sender$SpringBoard$applicationDidFinishLaunching$(self, _cmd, arg1);\n}\n\n\n\nstatic void (*_logos_orig$devicereceiver$SpringBoard$applicationDidFinishLaunching$)(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$devicereceiver$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); \n\nstatic void _logos_method$devicereceiver$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1) {\n  [[NSDistributedNotificationCenter defaultCenter] addObserverForName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) {\n      NSString *titlenotif = notification.userInfo[@\"title\"];\n      NSString *messagenotif = notification.userInfo[@\"message\"];\n      testnotif(titlenotif,messagenotif);\n  }];\n  _logos_orig$devicereceiver$SpringBoard$applicationDidFinishLaunching$(self, _cmd, arg1);\n}\n\n\n\nstatic __attribute__((constructor)) void _logosLocalCtor_5c40de68(int __unused argc, char __unused **argv, char __unused **envp) {\n  loadPrefs();\n  CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR(\"com.greg0109.forwardnotifierprefs.settingschanged\"), NULL, CFNotificationSuspensionBehaviorCoalesce);\n  {Class _logos_class$_ungrouped$BBServer = objc_getClass(\"BBServer\"); { MSHookMessageEx(_logos_class$_ungrouped$BBServer, @selector(initWithQueue:), (IMP)&_logos_method$_ungrouped$BBServer$initWithQueue$, (IMP*)&_logos_orig$_ungrouped$BBServer$initWithQueue$);}{ MSHookMessageEx(_logos_class$_ungrouped$BBServer, @selector(initWithQueue:dataProviderManager:syncService:dismissalSyncCache:observerListener:utilitiesListener:conduitListener:systemStateListener:settingsListener:), (IMP)&_logos_method$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$, (IMP*)&_logos_orig$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$);}{ MSHookMessageEx(_logos_class$_ungrouped$BBServer, sel_registerName(\"dealloc\"), (IMP)&_logos_method$_ungrouped$BBServer$dealloc, (IMP*)&_logos_orig$_ungrouped$BBServer$dealloc);}}\n  if (receiver) {\n    {Class _logos_class$devicereceiver$SpringBoard = objc_getClass(\"SpringBoard\"); { MSHookMessageEx(_logos_class$devicereceiver$SpringBoard, @selector(applicationDidFinishLaunching:), (IMP)&_logos_method$devicereceiver$SpringBoard$applicationDidFinishLaunching$, (IMP*)&_logos_orig$devicereceiver$SpringBoard$applicationDidFinishLaunching$);}}\n  } else {\n    {Class _logos_class$sender$BBServer = objc_getClass(\"BBServer\"); { MSHookMessageEx(_logos_class$sender$BBServer, @selector(publishBulletin:destinations:), (IMP)&_logos_method$sender$BBServer$publishBulletin$destinations$, (IMP*)&_logos_orig$sender$BBServer$publishBulletin$destinations$);}Class _logos_class$sender$SpringBoard = objc_getClass(\"SpringBoard\"); { MSHookMessageEx(_logos_class$sender$SpringBoard, @selector(applicationDidFinishLaunching:), (IMP)&_logos_method$sender$SpringBoard$applicationDidFinishLaunching$, (IMP*)&_logos_orig$sender$SpringBoard$applicationDidFinishLaunching$);}}\n  }\n}\n"
  },
  {
    "path": ".theos/obj/arm64/main.m.f318108f.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64/main.m.f318108f.o: \\\n  main.m /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/FNPRootListController.m.2caf96a5.Td",
    "content": "/home/glith/Escritorio/forwardnotifier/.theos/obj/arm64e/FNPRootListController.m.2caf96a5.o: \\\n  FNPRootListController.m /home/glith/theos/Prefix.pch \\\n  /home/glith/theos/vendor/include/theos/BackwardsCompat.h \\\n  /home/glith/theos/vendor/include/theos/IOSMacros.h \\\n  /home/glith/theos/vendor/include/HBLog.h FNPRootListController.h \\\n  /home/glith/theos/vendor/include/Preferences/PSListController.h \\\n  /home/glith/theos/vendor/include/Preferences/PSViewController.h \\\n  /home/glith/theos/vendor/include/Preferences/PSSpecifier.h \\\n  /home/glith/theos/vendor/include/Preferences/PSTableCell.h \\\n  /home/glith/theos/include/AppList/AppList.h \\\n  /home/glith/theos/include/AppList/ALApplicationList.h \\\n  /home/glith/theos/include/AppList/ALApplicationTableDataSource.h \\\n  /home/glith/theos/include/AppList/ALValueCell.h \\\n  /home/glith/theos/vendor/include/FrontBoardServices/FBSSystemService.h \\\n  /home/glith/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h \\\n  /home/glith/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSAction.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSDescriptionProviding.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h \\\n  /home/glith/theos/vendor/include/BaseBoard/BSXPCCoding.h\n\n/home/glith/theos/Prefix.pch:\n\n/home/glith/theos/vendor/include/theos/BackwardsCompat.h:\n\n/home/glith/theos/vendor/include/theos/IOSMacros.h:\n\n/home/glith/theos/vendor/include/HBLog.h:\n\nFNPRootListController.h:\n\n/home/glith/theos/vendor/include/Preferences/PSListController.h:\n\n/home/glith/theos/vendor/include/Preferences/PSViewController.h:\n\n/home/glith/theos/vendor/include/Preferences/PSSpecifier.h:\n\n/home/glith/theos/vendor/include/Preferences/PSTableCell.h:\n\n/home/glith/theos/include/AppList/AppList.h:\n\n/home/glith/theos/include/AppList/ALApplicationList.h:\n\n/home/glith/theos/include/AppList/ALApplicationTableDataSource.h:\n\n/home/glith/theos/include/AppList/ALValueCell.h:\n\n/home/glith/theos/vendor/include/FrontBoardServices/FBSSystemService.h:\n\n/home/glith/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h:\n\n/home/glith/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSAction.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSDescriptionProviding.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h:\n\n/home/glith/theos/vendor/include/BaseBoard/BSXPCCoding.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/FNPRootListController.m.f07d197f.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64e/FNPRootListController.m.f07d197f.o: \\\n  FNPRootListController.m /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h \\\n  FNPRootListController.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSListController.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSViewController.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSSpecifier.h \\\n  /Users/greg/theos/vendor/include/Preferences/PSTableCell.h \\\n  /Users/greg/theos/vendor/include/AppList/AppList.h \\\n  /Users/greg/theos/vendor/include/AppList/ALApplicationList.h \\\n  /Users/greg/theos/vendor/include/AppList/ALApplicationTableDataSource.h \\\n  /Users/greg/theos/vendor/include/AppList/ALValueCell.h \\\n  /Users/greg/theos/vendor/include/FrontBoardServices/FBSSystemService.h \\\n  /Users/greg/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h \\\n  /Users/greg/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSAction.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSDescriptionProviding.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h \\\n  /Users/greg/theos/vendor/include/BaseBoard/BSXPCCoding.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n\nFNPRootListController.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSListController.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSViewController.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSSpecifier.h:\n\n/Users/greg/theos/vendor/include/Preferences/PSTableCell.h:\n\n/Users/greg/theos/vendor/include/AppList/AppList.h:\n\n/Users/greg/theos/vendor/include/AppList/ALApplicationList.h:\n\n/Users/greg/theos/vendor/include/AppList/ALApplicationTableDataSource.h:\n\n/Users/greg/theos/vendor/include/AppList/ALValueCell.h:\n\n/Users/greg/theos/vendor/include/FrontBoardServices/FBSSystemService.h:\n\n/Users/greg/theos/vendor/include/SpringBoardServices/SBSRestartRenderServerAction.h:\n\n/Users/greg/theos/vendor/include/SpringBoardServices/SBSRelaunchAction.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSAction.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSDescriptionProviding.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSSettingDescriptionProvider.h:\n\n/Users/greg/theos/vendor/include/BaseBoard/BSXPCCoding.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/ForwardNotifier.bundle/ForwardNotifier.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifier</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64e/ForwardNotifier.dylib.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifier.dylib</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64e/ForwardNotifierCC.bundle/ForwardNotifierCC.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifierCC</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64e/ForwardNotifierCC.m.98cdb3a4.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64e/ForwardNotifierCC.m.98cdb3a4.o: \\\n  ForwardNotifierCC.m /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h \\\n  ForwardNotifierCC.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUIToggleModule.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUICAPackageDescription.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUIContentModule-Protocol.h \\\n  /Users/greg/theos/include/ControlCenterUIKit/CCUIContentModuleContentViewController-Protocol.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n\nForwardNotifierCC.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUIToggleModule.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUICAPackageDescription.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUIContentModule-Protocol.h:\n\n/Users/greg/theos/include/ControlCenterUIKit/CCUIContentModuleContentViewController-Protocol.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/ForwardNotifierReceiver.dSYM/Contents/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n\t<dict>\n\t\t<key>CFBundleDevelopmentRegion</key>\n\t\t<string>English</string>\n\t\t<key>CFBundleIdentifier</key>\n\t\t<string>com.apple.xcode.dsym.ForwardNotifierReceiver</string>\n\t\t<key>CFBundleInfoDictionaryVersion</key>\n\t\t<string>6.0</string>\n\t\t<key>CFBundlePackageType</key>\n\t\t<string>dSYM</string>\n\t\t<key>CFBundleSignature</key>\n\t\t<string>????</string>\n\t\t<key>CFBundleShortVersionString</key>\n\t\t<string>1.0</string>\n\t\t<key>CFBundleVersion</key>\n\t\t<string>1</string>\n\t</dict>\n</plist>\n"
  },
  {
    "path": ".theos/obj/arm64e/Tweak.x.586144b7.Td",
    "content": "/home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/.theos/obj/arm64e/Tweak.x.586144b7.o: \\\n  /home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/.theos/obj/arm64e/Tweak.x.m \\\n  /home/glith/theos/Prefix.pch \\\n  /home/glith/theos/vendor/include/theos/BackwardsCompat.h \\\n  /home/glith/theos/vendor/include/theos/IOSMacros.h \\\n  /home/glith/theos/vendor/include/HBLog.h \\\n  /home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/Tweak.h \\\n  /home/glith/theos/include/NSTask.h \\\n  /home/glith/theos/include/substrate.h\n\n/home/glith/theos/Prefix.pch:\n\n/home/glith/theos/vendor/include/theos/BackwardsCompat.h:\n\n/home/glith/theos/vendor/include/theos/IOSMacros.h:\n\n/home/glith/theos/vendor/include/HBLog.h:\n\n/home/glith/Documentos/Coding/PrivateTweaks/forwardnotifier/Tweak.h:\n\n/home/glith/theos/include/NSTask.h:\n\n/home/glith/theos/include/substrate.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/Tweak.x.6472c773.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64e/Tweak.x.6472c773.o: \\\n  /Users/greg/Desktop/forwardnotifier/.theos/obj/arm64e/Tweak.x.m \\\n  /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h \\\n  /Users/greg/Desktop/forwardnotifier/Tweak.h \\\n  /Users/greg/theos/include/NSTask.h \\\n  /Users/greg/theos/include/substrate.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n\n/Users/greg/Desktop/forwardnotifier/Tweak.h:\n\n/Users/greg/theos/include/NSTask.h:\n\n/Users/greg/theos/include/substrate.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/Tweak.x.9020a7f1.Td",
    "content": "/home/glith/Escritorio/forwardnotifier/.theos/obj/arm64e/Tweak.x.9020a7f1.o: \\\n  /home/glith/Escritorio/forwardnotifier/.theos/obj/arm64e/Tweak.x.m \\\n  /home/glith/theos/Prefix.pch \\\n  /home/glith/theos/vendor/include/theos/BackwardsCompat.h \\\n  /home/glith/theos/vendor/include/theos/IOSMacros.h \\\n  /home/glith/theos/vendor/include/HBLog.h \\\n  /home/glith/Escritorio/forwardnotifier/Tweak.h \\\n  /home/glith/theos/include/NSTask.h \\\n  /home/glith/theos/include/substrate.h\n\n/home/glith/theos/Prefix.pch:\n\n/home/glith/theos/vendor/include/theos/BackwardsCompat.h:\n\n/home/glith/theos/vendor/include/theos/IOSMacros.h:\n\n/home/glith/theos/vendor/include/HBLog.h:\n\n/home/glith/Escritorio/forwardnotifier/Tweak.h:\n\n/home/glith/theos/include/NSTask.h:\n\n/home/glith/theos/include/substrate.h:\n"
  },
  {
    "path": ".theos/obj/arm64e/Tweak.x.m",
    "content": "#line 1 \"Tweak.x\"\n#import \"Tweak.h\"\n\nstruct SBIconImageInfo iconspecs;\n\n\nBOOL receiver;\nBOOL errorlog;\nBOOL lockstateenabled;\nint pcspecifier;\n\n\nint methodspecifier;\nBOOL keyauthentication;\nNSString *user;\nNSString *ip;\nNSString *port;\nNSString *password;\nNSString *command;\nNSString *finalCommand;\nNSArray *arguments;\n\n\nNSString *pc;\nNSString *title;\nNSMutableString *finalTitle;\nNSString *message;\nNSMutableString *finalMessage;\nNSString *bundleID;\nNSString *appName;\nBOOL locked;\n\n\nNSPipe *out;\nstatic BBServer *notificationserver = nil;\n\nstatic void loadPrefs() {\n  NSMutableDictionary *prefs = [NSMutableDictionary dictionaryWithContentsOfFile:@\"/User/Library/Preferences/com.greg0109.forwardnotifierprefs.plist\"];\n  receiver = prefs[@\"receiver\"] ? [prefs[@\"receiver\"] boolValue] : NO;\n  errorlog = prefs[@\"errorlog\"] ? [prefs[@\"errorlog\"] boolValue] : NO;\n  lockstateenabled = prefs[@\"lockstateenabled\"] ? [prefs[@\"lockstateenabled\"] boolValue] : YES;\n  pcspecifier = prefs[@\"pcspecifier\"] ? [prefs[@\"pcspecifier\"] intValue] : 0;\n\n  methodspecifier = prefs[@\"methodspecifier\"] ? [prefs[@\"methodspecifier\"] intValue] : 0;\n  keyauthentication = prefs[@\"keyauthentication\"] ? [prefs[@\"keyauthentication\"] boolValue] : NO;\n  user = prefs[@\"user\"] && !([prefs[@\"user\"] isEqualToString:@\"\"]) ? [prefs[@\"user\"] stringValue] : @\"user\";\n  ip = prefs[@\"ip\"] && !([prefs[@\"ip\"] isEqualToString:@\"\"]) ? [prefs[@\"ip\"] stringValue] : @\"ip\";\n  port = prefs[@\"port\"] && !([prefs[@\"port\"] isEqualToString:@\"\"]) ? [prefs[@\"port\"] stringValue] : @\"22\";\n  password = prefs[@\"password\"] && !([prefs[@\"password\"] isEqualToString:@\"\"]) ? [prefs[@\"password\"] stringValue] : @\"password\";\n  user = [user stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n  ip = [ip stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n  password = [password stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n}\n\nstatic dispatch_queue_t getBBServerQueue() {\n    static dispatch_queue_t queue;\n    static dispatch_once_t predicate;\n    dispatch_once(&predicate, ^{\n        void *handle = dlopen(NULL, RTLD_GLOBAL);\n        if (handle) {\n            dispatch_queue_t __weak *pointer = (__weak dispatch_queue_t *) dlsym(handle, \"__BBServerQueue\");\n            if (pointer) {\n                queue = *pointer;\n            }\n            dlclose(handle);\n        }\n    });\n    return queue;\n}\n\n\n#include <substrate.h>\n#if defined(__clang__)\n#if __has_feature(objc_arc)\n#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained\n#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))\n#define _LOGOS_SELF_CONST const\n#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))\n#else\n#define _LOGOS_SELF_TYPE_NORMAL\n#define _LOGOS_SELF_TYPE_INIT\n#define _LOGOS_SELF_CONST\n#define _LOGOS_RETURN_RETAINED\n#endif\n#else\n#define _LOGOS_SELF_TYPE_NORMAL\n#define _LOGOS_SELF_TYPE_INIT\n#define _LOGOS_SELF_CONST\n#define _LOGOS_RETURN_RETAINED\n#endif\n\n@class BBServer; @class SpringBoard; @class SBLockStateAggregator; @class SBApplicationController; @class SBIconController; @class BBAction; @class BBBulletin; \nstatic BBServer* (*_logos_orig$_ungrouped$BBServer$initWithQueue$)(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id) _LOGOS_RETURN_RETAINED; static BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id) _LOGOS_RETURN_RETAINED; static BBServer* (*_logos_orig$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$)(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id, id, id, id, id, id, id, id, id) _LOGOS_RETURN_RETAINED; static BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$(_LOGOS_SELF_TYPE_INIT BBServer*, SEL, id, id, id, id, id, id, id, id, id) _LOGOS_RETURN_RETAINED; static void (*_logos_orig$_ungrouped$BBServer$dealloc)(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL); static void _logos_method$_ungrouped$BBServer$dealloc(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL); \nstatic __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBLockStateAggregator(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"SBLockStateAggregator\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$BBBulletin(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"BBBulletin\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBApplicationController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"SBApplicationController\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$SBIconController(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"SBIconController\"); } return _klass; }static __inline__ __attribute__((always_inline)) __attribute__((unused)) Class _logos_static_class_lookup$BBAction(void) { static Class _klass; if(!_klass) { _klass = objc_getClass(\"BBAction\"); } return _klass; }\n#line 70 \"Tweak.x\"\n\nstatic BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$(_LOGOS_SELF_TYPE_INIT BBServer* __unused self, SEL __unused _cmd, id arg1) _LOGOS_RETURN_RETAINED {\n    notificationserver = _logos_orig$_ungrouped$BBServer$initWithQueue$(self, _cmd, arg1);\n    return notificationserver;\n}\nstatic BBServer* _logos_method$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$(_LOGOS_SELF_TYPE_INIT BBServer* __unused self, SEL __unused _cmd, id arg1, id arg2, id arg3, id arg4, id arg5, id arg6, id arg7, id arg8, id arg9) _LOGOS_RETURN_RETAINED {\n    notificationserver = _logos_orig$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$(self, _cmd, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);\n    return notificationserver;\n}\nstatic void _logos_method$_ungrouped$BBServer$dealloc(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) {\n  if (notificationserver == self) {\n    notificationserver = nil;\n  }\n  _logos_orig$_ungrouped$BBServer$dealloc(self, _cmd);\n}\n\n\nvoid testnotif(NSString *titletest, NSString *messagetest) {\n  BBBulletin *bulletin = [[_logos_static_class_lookup$BBBulletin() alloc] init];\n\n  bulletin.title = titletest;\n  bulletin.message = messagetest;\n  bulletin.sectionID = @\"com.apple.Preferences\";\n  bulletin.bulletinID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.recordID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.publisherBulletinID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.date = [NSDate date];\n  bulletin.defaultAction = [_logos_static_class_lookup$BBAction() actionWithLaunchBundleID:@\"prefs:root=ForwardNotifier\" callblock:nil];\n  dispatch_sync(getBBServerQueue(), ^{\n    [notificationserver publishBulletin:bulletin destinations:14];\n  });\n}\n\nBOOL isItLocked() {\n  if (lockstateenabled) {\n    locked = [[_logos_static_class_lookup$SBLockStateAggregator() sharedInstance] lockState];\n  } else {\n    locked = TRUE;\n  }\n  return locked;\n}\n\nvoid sanitizeText() { \n  finalTitle = [@\"\" mutableCopy];\n  for (int i=0; i<title.length; i++) {\n      NSString *charSelected = [title substringWithRange:NSMakeRange(i, 1)];\n      if ([charSelected isEqualToString:@\" \"]) {\n          charSelected = @\" \";\n      } else {\n        charSelected = [NSString stringWithFormat:@\"\\\\%@\",charSelected];\n      }\n      [finalTitle appendString:charSelected];\n  }\n  finalMessage = [@\"\" mutableCopy];\n  for (int i=0; i<message.length; i++) {\n      NSString *charSelected = [message substringWithRange:NSMakeRange(i, 1)];\n      if ([charSelected isEqualToString:@\" \"]) {\n          charSelected = @\" \";\n      } else {\n        charSelected = [NSString stringWithFormat:@\"\\\\%@\",charSelected];\n      }\n      [finalMessage appendString:charSelected];\n  }\n}\n\nvoid pushnotif(BOOL override) {\n  if (!override) {\n    isItLocked();\n  } else {\n    locked = TRUE;\n  }\n  if (methodspecifier == 0) { \n      if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"] && (locked)) {\n      dispatch_queue_t sendnotif = dispatch_queue_create(\"Send Notif\", NULL);\n      dispatch_async(sendnotif, ^{\n        pc = [NSString stringWithFormat:@\"%@@%@\",user,ip];\n        sanitizeText();\n        if (pcspecifier == 0) { \n          finalCommand = [NSString stringWithFormat:@\"\\\"$(echo %@)\\\" \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"notify-send -i applications-development %@\",finalCommand];\n          NSLog(@\"ForwardNotifier: %@\", command);\n        } else if (pcspecifier == 1) { \n          finalCommand = [NSString stringWithFormat:@\"-title \\\"$(echo %@)\\\" -message \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"/usr/local/bin/terminal-notifier -sound pop %@\",finalCommand];\n        } else if (pcspecifier == 2) { \n          finalCommand = [NSString stringWithFormat:@\"\\\"$(echo %@)\\\" \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"ForwardNotifierReceiver %@\",finalCommand];\n        } else if (pcspecifier == 3) { \n          finalCommand = [NSString stringWithFormat:@\"-title \\\"$(echo %@)\\\" -message \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"ForwardNotifierReceiver %@\",finalCommand];\n        }\n        if (keyauthentication) {\n          if ([port isEqual:@\"22\"]) {\n            arguments = @[@\"-i\",password,pc,command];\n          } else {\n            arguments = @[@\"-i\",password,pc,@\"-p\",port,command];\n          }\n          NSTask *task = [[NSTask alloc] init];\n          [task setLaunchPath:@\"/usr/bin/ssh\"];\n          [task setArguments:arguments];\n          out = [NSPipe pipe];\n          [task setStandardError:out];\n          [task launch];\n          [task waitUntilExit];\n        } else {\n          if ([port isEqual:@\"22\"]) {\n            arguments = @[@\"-p\",password,@\"ssh\",@\"-o\",@\"StrictHostKeyChecking=no\",pc,command];\n          } else {\n            arguments = @[@\"-p\",password,@\"ssh\",@\"-o\",@\"StrictHostKeyChecking=no\",pc,@\"-p\",port,command];\n          }\n          NSTask *task = [[NSTask alloc] init];\n          [task setLaunchPath:@\"/usr/bin/sshpass\"];\n          [task setArguments:arguments];\n          out = [NSPipe pipe];\n          [task setStandardError:out];\n          [task launch];\n          [task waitUntilExit];\n        }\n        NSFileHandle * read = [out fileHandleForReading];\n        NSData * dataRead = [read readDataToEndOfFile];\n        NSString *erroroutput = [[NSString alloc] initWithData:dataRead encoding:NSUTF8StringEncoding];\n        if ([erroroutput length] > 2 && errorlog) {\n          testnotif(@\"ForwardNotifier Error\",erroroutput);\n        }\n      });\n    }\n  } else if (methodspecifier == 1) { \n    \n    SBApplicationIcon *icon = [((SBIconController *)[_logos_static_class_lookup$SBIconController() sharedInstance]).model expectedIconForDisplayIdentifier:bundleID];\n    UIImage *image = nil;\n  \ticonspecs.size = CGSizeMake(60, 60);\n  \ticonspecs.scale = [UIScreen mainScreen].scale;\n  \ticonspecs.continuousCornerRadius = 12;\n  \timage = [icon generateIconImageWithInfo:iconspecs];\n    NSData *iconData = UIImagePNGRepresentation(image);\n    NSString *iconBase64;\n    if (![title isEqualToString:@\"ForwardNotifier Test\"]) {\n      iconBase64 = [iconData base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];\n    } else {\n      iconBase64 = forwardNotifierIconBase64;\n    }\n    \n    NSData *titleData = [title dataUsingEncoding: NSUTF8StringEncoding];\n    NSString *titleBase64 = [titleData base64EncodedStringWithOptions:0];\n    NSData *messageData = [message dataUsingEncoding: NSUTF8StringEncoding];\n    NSString *messageBase64 = [messageData base64EncodedStringWithOptions:0];\n    if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"] && (locked)) {\n      dispatch_queue_t sendnotif = dispatch_queue_create(\"Send Notif\", NULL);\n      dispatch_async(sendnotif, ^{\n        title = [title stringByReplacingOccurrencesOfString:@\"\\\"\" withString:@\"\\\\\"\"\\\"\"];\n        message = [message stringByReplacingOccurrencesOfString:@\"\\\"\" withString:@\"\\\\\"\"\\\"\"];\n        if (pcspecifier == 0) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"Linux\\\", \\\"img\\\": \\\"%@\\\", \\\"appname\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64,appName];\n        } else if (pcspecifier == 1) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"MacOS\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        } else if (pcspecifier == 2) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"iOS\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        } else if (pcspecifier == 3) { \n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"Windows\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        }\n        NSTask *task = [[NSTask alloc] init];\n        [task setLaunchPath:@\"/usr/bin/curl\"];\n        [task setArguments:@[@\"-sS\",[NSString stringWithFormat:@\"%@:8000\",ip],@\"-d\",command ]];\n        out = [NSPipe pipe];\n        [task setStandardError:out];\n        [task launch];\n        [task waitUntilExit];\n        NSFileHandle * read = [out fileHandleForReading];\n        NSData * dataRead = [read readDataToEndOfFile];\n        NSString *erroroutput = [[NSString alloc] initWithData:dataRead encoding:NSUTF8StringEncoding];\n        if ([erroroutput length] > 2 && errorlog) {\n          if ([erroroutput containsString:@\"curl\"] && ![erroroutput containsString:@\"Empty reply\"]) {\n            testnotif(@\"ForwardNotifier Error\",erroroutput);\n          }\n        }\n      });\n    }\n  }\n}\n\nstatic void (*_logos_orig$sender$BBServer$publishBulletin$destinations$)(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL, BBBulletin *, unsigned long long); static void _logos_method$sender$BBServer$publishBulletin$destinations$(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST, SEL, BBBulletin *, unsigned long long); static void (*_logos_orig$sender$SpringBoard$applicationDidFinishLaunching$)(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$sender$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); \n\nstatic void _logos_method$sender$BBServer$publishBulletin$destinations$(_LOGOS_SELF_TYPE_NORMAL BBServer* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BBBulletin * arg1, unsigned long long arg2) {\n  _logos_orig$sender$BBServer$publishBulletin$destinations$(self, _cmd, arg1, arg2);\n  title = arg1.content.title;\n  message = arg1.content.message;\n  bundleID = arg1.sectionID;\n  SBApplication *app = [[_logos_static_class_lookup$SBApplicationController() sharedInstance] applicationWithBundleIdentifier:bundleID];\n  appName = app.displayName;\n  if (([title length] != 0) || ([message length] != 0)) {\n    if ([title length] == 0) {\n      title = app.displayName;\n    }\n    if (![title containsString:@\"ForwardNotifier\"] && [arg1.date timeIntervalSinceNow] > -2) { \n      NSMutableDictionary *applist = [[NSMutableDictionary alloc] initWithContentsOfFile:@\"/var/mobile/Library/Preferences/com.greg0109.forwardnotifierblacklist\"];\n      if (![applist valueForKey:arg1.sectionID] || [[NSString stringWithFormat:@\"%@\",[applist valueForKey:arg1.sectionID]] isEqual:@\"0\"]) {\n        pushnotif(FALSE);\n      }\n    } else if ([title isEqualToString:@\"ForwardNotifier Test\"]) {\n      pushnotif(TRUE);\n    }\n  }\n}\n\n\n\nstatic void _logos_method$sender$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1) {\n  [[NSDistributedNotificationCenter defaultCenter] addObserverForName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) {\n    NSString *titlenotif = notification.userInfo[@\"title\"];\n    NSString *messagenotif = notification.userInfo[@\"message\"];\n    if ([titlenotif isEqualToString:@\"ActivateForwardNotifier\"]) {\n      if ([messagenotif isEqualToString:@\"true\"]) {\n        [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n      } else if ([messagenotif isEqualToString:@\"false\"]) {\n        [[NSUserDefaults standardUserDefaults] setBool:FALSE forKey:@\"ForwardNotifier-Status\"];\n      }\n    } else {\n      [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n      title = @\"ForwardNotifier Test\";\n      message = @\"This is a test notification\";\n      testnotif(title,message);\n    }\n  }];\n  _logos_orig$sender$SpringBoard$applicationDidFinishLaunching$(self, _cmd, arg1);\n}\n\n\n\nstatic void (*_logos_orig$devicereceiver$SpringBoard$applicationDidFinishLaunching$)(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$devicereceiver$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST, SEL, id); \n\nstatic void _logos_method$devicereceiver$SpringBoard$applicationDidFinishLaunching$(_LOGOS_SELF_TYPE_NORMAL SpringBoard* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1) {\n  [[NSDistributedNotificationCenter defaultCenter] addObserverForName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) {\n      NSString *titlenotif = notification.userInfo[@\"title\"];\n      NSString *messagenotif = notification.userInfo[@\"message\"];\n      testnotif(titlenotif,messagenotif);\n  }];\n  _logos_orig$devicereceiver$SpringBoard$applicationDidFinishLaunching$(self, _cmd, arg1);\n}\n\n\n\nstatic __attribute__((constructor)) void _logosLocalCtor_5c40de68(int __unused argc, char __unused **argv, char __unused **envp) {\n  loadPrefs();\n  CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR(\"com.greg0109.forwardnotifierprefs.settingschanged\"), NULL, CFNotificationSuspensionBehaviorCoalesce);\n  {Class _logos_class$_ungrouped$BBServer = objc_getClass(\"BBServer\"); { MSHookMessageEx(_logos_class$_ungrouped$BBServer, @selector(initWithQueue:), (IMP)&_logos_method$_ungrouped$BBServer$initWithQueue$, (IMP*)&_logos_orig$_ungrouped$BBServer$initWithQueue$);}{ MSHookMessageEx(_logos_class$_ungrouped$BBServer, @selector(initWithQueue:dataProviderManager:syncService:dismissalSyncCache:observerListener:utilitiesListener:conduitListener:systemStateListener:settingsListener:), (IMP)&_logos_method$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$, (IMP*)&_logos_orig$_ungrouped$BBServer$initWithQueue$dataProviderManager$syncService$dismissalSyncCache$observerListener$utilitiesListener$conduitListener$systemStateListener$settingsListener$);}{ MSHookMessageEx(_logos_class$_ungrouped$BBServer, sel_registerName(\"dealloc\"), (IMP)&_logos_method$_ungrouped$BBServer$dealloc, (IMP*)&_logos_orig$_ungrouped$BBServer$dealloc);}}\n  if (receiver) {\n    {Class _logos_class$devicereceiver$SpringBoard = objc_getClass(\"SpringBoard\"); { MSHookMessageEx(_logos_class$devicereceiver$SpringBoard, @selector(applicationDidFinishLaunching:), (IMP)&_logos_method$devicereceiver$SpringBoard$applicationDidFinishLaunching$, (IMP*)&_logos_orig$devicereceiver$SpringBoard$applicationDidFinishLaunching$);}}\n  } else {\n    {Class _logos_class$sender$BBServer = objc_getClass(\"BBServer\"); { MSHookMessageEx(_logos_class$sender$BBServer, @selector(publishBulletin:destinations:), (IMP)&_logos_method$sender$BBServer$publishBulletin$destinations$, (IMP*)&_logos_orig$sender$BBServer$publishBulletin$destinations$);}Class _logos_class$sender$SpringBoard = objc_getClass(\"SpringBoard\"); { MSHookMessageEx(_logos_class$sender$SpringBoard, @selector(applicationDidFinishLaunching:), (IMP)&_logos_method$sender$SpringBoard$applicationDidFinishLaunching$, (IMP*)&_logos_orig$sender$SpringBoard$applicationDidFinishLaunching$);}}\n  }\n}\n"
  },
  {
    "path": ".theos/obj/arm64e/main.m.0135e4e0.Td",
    "content": "/Users/greg/Desktop/forwardnotifier/.theos/obj/arm64e/main.m.0135e4e0.o: \\\n  main.m /Users/greg/theos/Prefix.pch \\\n  /Users/greg/theos/vendor/include/theos/BackwardsCompat.h \\\n  /Users/greg/theos/vendor/include/theos/IOSMacros.h \\\n  /Users/greg/theos/vendor/include/HBLog.h \\\n  /Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h\n\n/Users/greg/theos/Prefix.pch:\n\n/Users/greg/theos/vendor/include/theos/BackwardsCompat.h:\n\n/Users/greg/theos/vendor/include/theos/IOSMacros.h:\n\n/Users/greg/theos/vendor/include/HBLog.h:\n\n/Users/greg/theos/vendor/include/CoreFoundation/CFLogUtilities.h:\n"
  },
  {
    "path": "ForwardNotifier Client Tools/Crossplatform Server/ForwardNotifierServer.py",
    "content": "#!/usr/bin/env python3\nfrom http.server import BaseHTTPRequestHandler, HTTPServer\nimport json\nimport platform\nimport subprocess\nimport base64\nimport requests\nimport re\nimport time\n\nif platform.system() == \"Windows\":\n    from PIL import Image  # convert to ico\n    from win10toast import ToastNotifier\n    toaster = ToastNotifier()\n\nport = 8000\n\nforwardnotifiericon = \"iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAASJXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZppdmOpskb/M4o7BLqgGQ4EsNabwRv+3YFkZdpplzNvZbpsqaQjDkTzNSC3////jvsP/ySV7LLUVnopnn+55x4HT5p//Ov3b/D5/r3/0ni+F96/7l5vRF5KduXjf+vz9TB4XX584O0eYb5/3bXnO7E9BwqvgR8zsDvb8/XzJHk9Pl4P+TlQ348npbf681TncyB9Xnin8vzNr2k9Huz/3bsXKlFawo1SjDuF5O/f9phBevwOfgt/Yyrx7RX+uftSew5GQN4t7+3R+58D9C7Ib8/cx+i/nn0IfhzP19OHWJZnjHjy6RtBPryeXreJ78rh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CiAgICAgIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6Y2M1MmU0ZTktMWZlMS00N2Y4LWFiYTktNDFjNzE1YzA2YjZiIgogICAgICBzdEV2dDpzb2Z0d2FyZUFnZW50PSJHaW1wIDIuMTAgKExpbnV4KSIKICAgICAgc3RFdnQ6d2hlbj0iKzAyOjAwIi8+CiAgICA8L3JkZjpTZXE+CiAgIDwveG1wTU06SGlzdG9yeT4KICAgPHBsdXM6SW1hZ2VTdXBwbGllcj4KICAgIDxyZGY6U2VxLz4KICAgPC9wbHVzOkltYWdlU3VwcGxpZXI+CiAgIDxwbHVzOkltYWdlQ3JlYXRvcj4KICAgIDxyZGY6U2VxLz4KICAgPC9wbHVzOkltYWdlQ3JlYXRvcj4KICAgPHBsdXM6Q29weXJpZ2h0T3duZXI+CiAgICA8cmRmOlNlcS8+CiAgIDwvcGx1czpDb3B5cmlnaHRPd25lcj4KICAgPHBsdXM6TGljZW5zb3I+CiAgICA8cmRmOlNlcS8+CiAgIDwvcGx1czpMaWNlbnNvcj4KICA8L3JkZjpEZXNjcmlwdGlvbj4KIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PlljaEQAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfkBhoSIR/v0N5nAAAEHUlEQVRo3uWbX0wcVRSHv5kdlt0VsdFqSqNsokWMlRpjtWqphIAvjdSkKQkx8UWTNtpEoQm++GBMTEzFCI3xyRceKmrEql1ropS2KChNFSqQpsSGZheKlMVYkP03O7PXh90KdRe7mzDDzPB7vDM3d749955z7t1zJVbQ9oOfU1axowbYC+wEqgA31pIKjAIDwLE/fj/b98uHjTlflHI1NnSE6oD3gW3YSyPAoUBzee//gu75IOQSOm1AC/ZWuyTTevzVcj0LtKFj0gXiU2AfzlA3gqZASxpWXmoXbQ6CBNiHRNsNFs2syZM4U/WB5vJeqaalh1J/5W82dDx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+0gpAAAAAElFTkSuQmCC\"\n\nversion = \"1.0.4\"\niconpath = {\n    \"Windows\": \"/temp/ForwardNotifierIcon\",\n    \"Linux\": \"/tmp/ForwardNotifierIcon\",\n    \"Darwin\": \"/tmp/ForwardNotifierIcon\", #mac\n    \"MacOS\": \"/tmp/ForwardNotifierIcon\"\n}\n\ntries = 0\ndef checkforupadate():\n    global tries\n    try:\n        url = \"https://raw.githubusercontent.com/Greg0109/ForwardNotifier/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/ForwardNotifierServer.py\"\n        r = requests.get(url).text\n        m = re.search(r'version = .+', r)\n        ver = m.group(0).split(\"=\")[1].replace('\"', \"\").replace(\" \", \"\")\n        if ver != version:\n            sendnotif(\"Update availabe!\",\n                      \"Run the install script again to update ForwardNotifier\", platform.system(), \"ForwardNotifier\", forwardnotifiericon)\n    except requests.exceptions.ConnectionError:\n        if tries < 5:\n            sendnotif(\"Couldn't access github\", \"Trying again in 5 seconds.\", platform.system(), \"ForwardNotifier\", forwardnotifiericon)\n            time.sleep(5)\n            tries += 1\n            checkforupadate()\n        else:\n            sendnotif(\"Couldn't access github\", \"Please check your internet connection or contact the developer.\", platform.system(), \"ForwardNotifier\", forwardnotifiericon)\n\n\n# send os with the request since it's known by the sender\ndef sendnotif(Title, Message, OS, appname=None, icon=None):\n    # system = platform.system()\n    try:\n        try:  # Try to decode\n            Title = base64.b64decode(Title.encode(\"utf-8\")).decode(\"utf-8\")\n        except:\n            print(\"Title is not base64\")\n        try:  # Try to decode\n            Message = base64.b64decode(Message.encode(\"utf-8\")).decode(\"utf-8\")\n        except:\n            print(\"Message is not base64\")\n        if icon:\n            print(\"Theres an icon!\")\n            icon = base64.decodebytes(icon.encode(\"utf-8\"))\n            if OS == \"Linux\":\n                imageFile = \"/tmp/\"+appname\n                open(imageFile, \"wb\").write(icon)\n            else:\n                open(iconpath[OS], \"wb\").write(icon) # send img to correct path\n\n        print(\"Sending notification:\")\n        print(\"Title: \", Title)\n        print(\"Message: \", Message)\n        print(\"App Name: \", appname)\n\n        if OS == \"Windows\":\n            if icon:\n                # try:  # Try to decode\n                filename = iconpath[OS]\n                img = Image.open(filename)\n                img.save(iconpath[OS] + '.ico', format = 'ICO')\n                toaster.show_toast(Title,\n                                    Message,\n                                    icon_path=iconpath[OS] + \".ico\",\n                                    duration=5,\n                                    threaded=True)\n                # except:  # icon not base64 aka ignore\n                #     toaster.show_toast(Title,\n                #                        Message,\n                #                        duration=5,\n                #                        threaded=True)\n            else:\n                toaster.show_toast(Title,\n                                Message,\n                                duration=5,\n                                threaded=True)\n        elif OS == \"Linux\":\n            if icon:\n                imageFile = \"/tmp/\"+appname\n                subprocess.call(\n                    [\"notify-send\", \"-i\", imageFile, Title, Message])\n            else:\n                subprocess.call(\n                    [\"notify-send\", \"-i\", \"applications-development\", Title, Message])\n        elif OS == \"Darwin\" or OS == \"MacOS\": # macos\n            if icon:\n                subprocess.call([\"/usr/local/bin/terminal-notifier\",\n                                \"-sound\", \"pop\", \"-appIcon\", iconpath[OS], \"-title\", Title, \"-message\", Message])\n            else:\n                subprocess.call([\"/usr/local/bin/terminal-notifier\",\n                    \"-sound\", \"pop\", \"-title\", Title, \"-message\", Message])\n    except:\n        sendnotif(\"Error\", \"unknown error while sending notification\", platform.system())\n\n\ndef checkbody(body):  # checking the body for a post request, wont be a problem since we send it\n    try:\n        try:\n            body = json.loads(body)\n        except:\n            return [False, \"Unable to parse json\"]\n\n        if \"Title\" not in body:\n            return [False, \"No 'Title' in body\"]\n\n        if \"Message\" not in body:\n            return [False, \"No 'Message' in body\"]\n\n        if \"OS\" not in body:\n            return [False, \"No 'OS' in body\"]\n\n        if \"img\" in body:\n            try:\n                base64.decodebytes(body[\"img\"].encode(\"utf-8\"))\n            except:\n                return [False, \"Img not base64\"]\n\n\n        return [True]\n    except:\n        return [False, \"unknown error\"]\n\n\nclass S(BaseHTTPRequestHandler):\n    def send_res(self, args, code=200, Success=True):\n\n        self.send_response(code)\n        self.send_header('Content-type', 'text/html')\n        self.send_header('Access-Control-Allow-Origin', '*')\n        self.end_headers()\n        out = {\n            \"Success\": Success,\n            \"value\": args\n        }\n        print(\"Sending: \", json.dumps(out).encode('utf-8'))\n        self.wfile.write(json.dumps(out).encode('utf-8'))\n\n    def do_GET(self):\n\n        print(\"\\nPath:\", self.path)\n        print(self.headers)\n\n        self.send_res(\n            \"Send a Post with a title and a message in a json format\")\n\n    def do_POST(self):\n        # <--- Gets the size of data\n        content_length = int(self.headers['Content-Length'])\n        # <--- Gets the data itself\n        post_data = self.rfile.read(content_length)\n        # print(json.loads(post_data.decode('utf-8')))\n        print(\"\\nPath:\", str(self.path),\n              \"\\nHeaders:\\n\" + str(self.headers))\n        print(content_length)\n        if content_length > 0:\n            try:\n                body = post_data.decode('utf-8')\n                print(\"Body:\\n\" + post_data.decode('utf-8'), \"\\n\")\n            except UnicodeEncodeError as e:\n                print(\"ForwardNotifierReciver Error:\", e)\n                sendnotif(\"ForwardNotifierReciver Error:\",\n                          \"invalid characters\", platform.system())\n            if checkbody(body)[0] == True:  # all good\n\n                body = json.loads(body)\n                if \"img\" in  body:\n                    if \"appname\" in body:\n                        sendnotif(body[\"Title\"], body[\"Message\"],\n                                  body[\"OS\"], body[\"appname\"], body[\"img\"])  # sends the body\n                    else:\n                        sendnotif(body[\"Title\"], body[\"Message\"],\n                                  body[\"OS\"], body[\"img\"])\n                else:\n                    sendnotif(body[\"Title\"], body[\"Message\"],\n                              body[\"OS\"])  # sends the body\n\n                self.send_res(\"Sent!\")\n\n            else:  # Body is wrong\n\n                print(checkbody(body)[1])  # send the error\n                self.send_res(checkbody(body)[1], Success=False, code=400)\n\n        else:\n            self.send_res(\n                \"POST request for {} . Please send a body\".format(self.path), Success=False)\n\n\ndef run(server_class=HTTPServer, handler_class=S, port=port):\n    server_address = ('', port)\n    httpd = server_class(server_address, handler_class)\n    print('Starting httpd on port', port, '...')\n    checkforupadate()\n    try:\n        httpd.serve_forever()\n    except KeyboardInterrupt:\n        pass\n    httpd.server_close()\n    print('\\nStopping httpd...')\n\n\nif __name__ == '__main__':\n    from sys import argv\n\n    if len(argv) == 2:\n        run(port=int(argv[1]))\n    else:\n        run()\n"
  },
  {
    "path": "ForwardNotifier Client Tools/Crossplatform Server/Linux Autoinstall/ForwardNotifierInstaller.bash",
    "content": "#!/bin/bash\ncheckroot=$(whoami)\nif [[ $checkroot != \"root\" ]]; then\n\techo \"This script needs to be executed as root\"\n\texit\nfi\ncheckapt=$(which apt-get)\ncheckpacman=$(which pacman)\nif [[ ! -z \"$checkapt\" ]]; then\n\tmanager=\"apt-get install\"\n\techo \"You are using apt-get\"\nelif [[ ! -z \"$checkpacman\" ]]; then\n\tmanager=\"pacman -S\"\n\techo \"You are using pacman\"\nelse\n\techo \"Package Manager not recognized\"\n\texit\nfi\nuser=$(awk -F'[/:]' '{if ($3 >= 1000 && $3 != 65534) print $1}' /etc/passwd)\necho \"Select your user account (type the number):\"\niter=0\nfor username in \"${user[@]}\"\ndo\n\techo \"$iter: $username\"\n\titer=$(( iter + 1 ))\ndone\nread answer\nuser=\"${user[$answer]}\"\necho \"user is $user\"\n\necho \"Checking python3 installation....\"\ncheck=$( which python3 )\nif [[ -z \"$check\" ]]; then\n    sudo $manager python3\nelse\n    echo \"Python3 is installed\"\nfi\n\necho \"Installing python modules...\"\ncheckmodules=$(pip3 freeze)\ncheckrequests=$(echo $checkmodules | grep -i requests)\nif [[ -z $checkrequests ]]; then\n\tpip3 install requests\nfi\n\necho \"Checking python script installation.....\"\nserverinstalled=$( ls /usr/bin | grep ForwardNotifierServer)\nif [[ -z $serverinstalled ]]; then\n\techo \"Installing the python script....\"\n\twget https://raw.githubusercontent.com/Greg0109/ForwardNotifier/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/ForwardNotifierServer.py\n\tif [[ $? -ne 0 ]]; then\n\t\techo \"Something went wrong with the download, please make sure your internet connection is on\"\n\t\texit\n\tfi\n\tsudo mv ForwardNotifierServer.py /usr/bin/\n\techo \"Python script installed\"\nelse\n\techo \"Python script is installed, updating.....\"\n\tsudo rm /usr/bin/ForwardNotifierServer.py\n\twget https://raw.githubusercontent.com/Greg0109/ForwardNotifier/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/ForwardNotifierServer.py\n\tif [[ $? -ne 0 ]]; then\n\t\techo \"Something went wrong with the download, please make sure your internet connection is on\"\n\t\texit\n\tfi\n\tsudo mv ForwardNotifierServer.py /usr/bin/\n\techo \"Python script updated\"\nfi\n\necho \"Checking service installation...\"\nservice=$(ls /etc/systemd/system | grep ForwardNotifierServer)\nif [[ -z $service ]]; then\n\techo \"Setting up the service...\"\nsudo cat <<EOF >> /etc/systemd/system/ForwardNotifierServer.service\n[Unit]\nDescription=ForwardNotifierServer\nRequires=network-online.target\n\n[Service]\nUser=$user\nExecStart=$check /usr/bin/ForwardNotifierServer.py\nType=simple\nRemainAfterExit=yes\nEnvironment=\"DISPLAY=:0\" \"XAUTHORITY=/home/$user/.Xauthority\"\n\n[Install]\nWantedBy=multi-user.target\nEOF\n\tsudo systemctl daemon-reload\n\tsudo systemctl enable ForwardNotifierServer.service\n\tsudo systemctl start ForwardNotifierServer.service\n\techo \"Service set up, installation done!\"\nelse\n\tsudo systemctl daemon-reload\n\tsudo systemctl enable ForwardNotifierServer.service\n\tsudo systemctl start ForwardNotifierServer.service\n\techo \"Service installed\"\nfi\necho \"Checking notify-send installation....\"\nnotifier=$(which notify-send)\nif [[ -z \"$notifier\" ]]; then\n\tsudo $manager libnotify-bin #sudo pacman -S libnotify\nelse\n\techo \"Notify-send installed\"\nfi\n\nhost=$(hostname)\necho \"\"\necho \"----------------------------\"\necho \"\"\necho \"This is your hostname: $host.local\"\necho \"You can also use your PC's ip address\"\necho \"Enjoy!\"\n"
  },
  {
    "path": "ForwardNotifier Client Tools/Crossplatform Server/Mac Autoinstall/ForwardNotifierInstaller.bash",
    "content": "#!/bin/bash\necho \"Checking for brew installation...\"\n\nbrewinstallation=$(ls /usr/local/bin | grep brew)\nif [[ -z $brewinstallation ]]; then\n\techo \"Installing brew.....\"\n\t/bin/bash -c \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)\"\nelse\n\techo \"Brew is already installed\"\nfi\n\necho \"Installing wget...\"\nbrew install wget\n\necho \"Checking for terminal-notifier installation...\"\nterminalnotifierinstallation=$(ls /usr/local/bin | grep terminal-notifier)\nif [[ -z $terminalnotifierinstallation ]]; then\n\techo \"Installing terminal-notifier.....\"\n\tbrew install terminal-notifier\nelse\n\techo \"Terminal-notifier already installed\"\nfi\n\necho \"Checking python3 installation....\"\ncheck=$( which python3 )\nif [[ -z \"$check\" ]]; then\n    brew install python3\nelse\n    echo \"Python3 is installed\"\nfi\n\necho \"Installing python modules...\"\ncheckmodules=$(pip3 freeze)\ncheckrequests=$(echo $checkmodules | grep -i requests)\nif [[ -z $checkrequests ]]; then\n\tpip3 install requests\nfi\n\necho \"Checking python script installation.....\"\nserverinstalled=$( ls ~/ | grep ForwardNotifierServer)\nif [[ -z $serverinstalled ]]; then\n\techo \"Installing the python script....\"\n\twget https://raw.githubusercontent.com/Greg0109/ForwardNotifier/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/ForwardNotifierServer.py\n\tif [[ $? -ne 0 ]]; then\n\t\techo \"Something went wrong with the download, please make sure your internet connection is on\"\n\t\texit\n\tfi\n\tsudo mv ForwardNotifierServer.py ~/\n\tserverpath=$(echo ~/ForwardNotifierServer.py)\nsudo cat <<EOF >> ~/Library/LaunchAgents/ForwardNotifierServer.plist\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n    <key>Label</key>\n    <string>ForwardNotifierServer</string>\n    <key>ProgramArguments</key>\n    <array>\n        <string>$check</string>\n        <string>$serverpath</string>\n    </array>\n    <key>KeepAlive</key>\n    <true/>\n</dict>\n</plist>\nEOF\n\tsudo chown root:wheel ~/Library/LaunchAgents/ForwardNotifierServer.plist\n\tsudo chmod 644 ~/Library/LaunchAgents/ForwardNotifierServer.plist\n\tsudo launchctl load ~/Library/LaunchAgents/ForwardNotifierServer.plist\n\tsudo launchctl start ~/Library/LaunchAgents/ForwardNotifierServer.plist\nelse\n\n\techo \"Python script is installed, updating.....\"\n\tsudo rm ~/ForwardNotifierServer.py\n\twget https://raw.githubusercontent.com/Greg0109/ForwardNotifier/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/ForwardNotifierServer.py\n\tif [[ $? -ne 0 ]]; then\n\t\techo \"Something went wrong with the download, please make sure your internet connection is on\"\n\t\texit\n\tfi\n\tsudo mv ForwardNotifierServer.py ~/\n\tsudo launchctl stop ~/Library/LaunchAgents/ForwardNotifierServer.plist\n\tsudo launchctl load ~/Library/LaunchAgents/ForwardNotifierServer.plist\n\tsudo launchctl start ~/Library/LaunchAgents/ForwardNotifierServer.plist\n\techo \"Python script updated\"\nfi\n\n\nhost=$(hostname)\necho \"\"\necho \"----------------------------\"\necho \"\"\necho \"This is your hostname: $host\"\necho \"You can also use your PC's ip address\"\necho \"Enjoy!\"\n\necho \"Reboot is required, press any key to reboot, or type \\\"cancel\\\" to reboot later:\"\nread reboot\nif [[ $reboot != \"cancel\" ]]; then\n    sudo reboot\nfi\n"
  },
  {
    "path": "ForwardNotifier Client Tools/Crossplatform Server/Windows Autoinstall/Program.cs",
    "content": "﻿using System.IO;\r\nusing System;\r\nusing System.Net;\r\nusing System.Threading;\r\nusing System.Diagnostics;\r\nusing System.Security.Principal;\r\nusing System.Linq.Expressions;\r\nusing System.Net.Http.Headers;\r\nusing System.Reflection;\r\n\r\nnamespace ForwardNotifierSetup\r\n{\r\n    class Program\r\n    {\r\n        static string PythonDirectory = \"\";\r\n\r\n        static bool DownloadCompleted = false;\r\n\r\n        static bool IsBusy = false;\r\n\r\n        static void Main(string[] args)\r\n        {\r\n            Console.Clear();\r\n            Console.SetCursorPosition(0, 0);\r\n            if (IsAdministrator())\r\n            {\r\n                if (args.Length == 0)\r\n                {\r\n                    NoArgsMain();\r\n                }\r\n                else if (args.Length == 2)\r\n                {\r\n                    if (args[0] == \"-pd\" && Directory.Exists(args[1]))\r\n                    {\r\n                        PythonDirectory = args[1];\r\n                        Console.WriteLine(\"Downloading necessary modules, please wait...\");\r\n                        DownloadModules();\r\n                        Console.WriteLine(\"Done, unzipping packages.\");\r\n                        GetServerPy();\r\n                    }\r\n\r\n                    else if (args[0] == \"-uninstall\" && args[1] == \"-py\")\r\n                    {\r\n                        try\r\n                        {\r\n                            Console.WriteLine(\"Uninstalling server. . .\");\r\n                            Process[] p = Process.GetProcessesByName(\"Python\");\r\n                            foreach (var i in p)\r\n                                i.Kill();\r\n                            File.Delete($\"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\StartUp\\\\Server.pyw\");\r\n                            Console.WriteLine(\"Downloading python to uninstall python.\");\r\n                            DownloadPython();\r\n                            Console.WriteLine(\"Uninstalling. . .\");\r\n                            Process pr = Process.Start(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + \"\\\\python-setup.exe\", \"/uninstall\");\r\n                            pr.WaitForExit();\r\n                            Console.WriteLine(\"Done uninstalling!\");\r\n\r\n                        }\r\n                        catch (Exception)\r\n                        {\r\n                            Console.WriteLine(\"Unable to uninstall. . .\");\r\n                        }\r\n                    }\r\n                }\r\n                else if (args.Length == 1)\r\n                {\r\n                    if (args[0] == \"-uninstall\")\r\n                    {\r\n                        try\r\n                        {\r\n                            Console.WriteLine(\"Uninstalling server. . .\");\r\n                            Process[] p = Process.GetProcessesByName(\"Python\");\r\n                            foreach (var i in p)\r\n                                i.Kill();\r\n                            File.Delete($\"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\StartUp\\\\Server.pyw\");\r\n                            Console.WriteLine(\"Successfully uninstalled!\");\r\n                        }\r\n                        catch (Exception)\r\n                        {\r\n                            Console.WriteLine(\"Unable to uninstall. . .\");\r\n                        }\r\n                        Console.ReadKey(true);\r\n                    }\r\n                }\r\n            }\r\n            else\r\n            {\r\n                Console.WriteLine(\"Please run this program as administrator...\");\r\n                Console.ReadKey(true);\r\n            }\r\n        }\r\n\r\n        static void NoArgsMain()\r\n        {\r\n            Console.WriteLine(\"Installing ForwardNotifier. . .\");\r\n            Console.WriteLine(\"Checking if python is installed.\");\r\n\r\n            string userApps = $@\"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Programs\";\r\n\r\n            if (!Directory.Exists(userApps + \"\\\\Python\"))\r\n            {\r\n                DownloadPython();\r\n            }\r\n\r\n            try\r\n            {\r\n                DirectoryInfo directories = new DirectoryInfo(userApps + @\"\\Python\");\r\n                foreach (var i in directories.GetDirectories())\r\n                {\r\n                    if (i.Name == \"Launcher\")\r\n                        continue;\r\n                    else\r\n                    {\r\n                        PythonDirectory = i.FullName;\r\n                        break;\r\n                    }\r\n                }\r\n            }\r\n            catch (Exception)\r\n            {\r\n                Console.WriteLine(\"Python directory not found. Press any key to run python setup else exit and contact dev.\");\r\n                Console.ReadKey(true);\r\n                Console.Clear();\r\n                DownloadPython();\r\n                DirectoryInfo directories = new DirectoryInfo(userApps + @\"\\Python\");\r\n                foreach (var i in directories.GetDirectories())\r\n                {\r\n                    if (i.Name == \"Launcher\")\r\n                        continue;\r\n                    else\r\n                    {\r\n                        PythonDirectory = i.FullName;\r\n                        break;\r\n                    }\r\n                }\r\n            }\r\n            Console.WriteLine(\"Downloading necessary modules, please wait...\");\r\n            DownloadModules();\r\n            Console.WriteLine(\"Done, unzipping packages.\");\r\n            GetServerPy();\r\n        }\r\n\r\n        static void GetServerPy()\r\n        {\r\n            using (WebClient client = new WebClient())\r\n            {\r\n                client.DownloadFile(\"https://raw.githubusercontent.com/Greg0109/ForwardNotifier/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/ForwardNotifierServer.py\", $\"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\StartUp\\\\Server.pyw\");\r\n            }\r\n            try\r\n            {\r\n                Process.Start($\"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}\\\\Microsoft\\\\Windows\\\\Start Menu\\\\Programs\\\\StartUp\\\\Server.pyw\");\r\n            }\r\n            catch (System.ComponentModel.Win32Exception)\r\n            {\r\n                Console.WriteLine(\"Unable to start the file. No big deal, just reboot and it will work!\");\r\n            }\r\n            Console.WriteLine(\"Done!\");\r\n            Console.ReadKey(true);\r\n        }\r\n\r\n        static void DownloadModules()\r\n        {\r\n            ProcessStartInfo psi = new ProcessStartInfo();\r\n            psi.FileName = PythonDirectory + @\"\\Scripts\\pip.exe\";\r\n            psi.Arguments = \"install win10toast\";\r\n            psi.UseShellExecute = false;\r\n            Process p = new Process();\r\n            p.StartInfo = psi;\r\n            p.Start();\r\n            p.WaitForExit();\r\n        }\r\n\r\n        static void DownloadPython()\r\n        {\r\n            Console.WriteLine(\"Python is not installed, installing python... please wait.\");\r\n            using (WebClient client = new WebClient())\r\n            {\r\n                Console.CursorVisible = false;\r\n                client.DownloadProgressChanged += Client_DownloadProgressChanged;\r\n                client.DownloadFileCompleted += Client_DownloadFileCompleted;\r\n                client.DownloadFileAsync(new Uri(Environment.Is64BitOperatingSystem ? \"https://www.python.org/ftp/python/3.8.3/python-3.8.3-amd64.exe\" : \"https://www.python.org/ftp/python/3.8.3/python-3.8.3.exe\"), Path.Combine(Directory.GetCurrentDirectory(), \"python-setup.exe\"));\r\n                while (!DownloadCompleted)\r\n                    Thread.Sleep(1000);\r\n            }\r\n            Console.CursorVisible = true;\r\n            Console.WriteLine(\"Download completed. Running installer.\");\r\n            ProcessStartInfo psi = new ProcessStartInfo();\r\n            psi.FileName = Path.Combine(Directory.GetCurrentDirectory(), \"python-setup.exe\");\r\n            psi.UseShellExecute = true;\r\n            psi.Arguments = \"/passive InstallLauncherAllUsers=0 PrependPath=1 Include_pip=1 Include_test=0\";\r\n            Process p = new Process();\r\n            p.StartInfo = psi;\r\n            p.Start();\r\n            p.WaitForExit();\r\n        }\r\n\r\n        private static void Client_DownloadFileCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)\r\n        {\r\n            DownloadCompleted = true;\r\n            Console.SetCursorPosition(0, 3);\r\n        }\r\n\r\n        private static void Client_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)\r\n        {\r\n            if (!IsBusy)\r\n            {\r\n                IsBusy = true;\r\n                Console.SetCursorPosition(0, 3);\r\n                if (e.ProgressPercentage < 10)\r\n                {\r\n                    Console.Write(\"[          ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 20)\r\n                {\r\n                    Console.Write(\"[#         ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 30)\r\n                {\r\n                    Console.Write(\"[##        ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 40)\r\n                {\r\n                    Console.Write(\"[###       ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 50)\r\n                {\r\n                    Console.Write(\"[####      ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 60)\r\n                {\r\n                    Console.Write(\"[#####     ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 70)\r\n                {\r\n                    Console.Write(\"[######    ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 80)\r\n                {\r\n                    Console.Write(\"[#######   ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 90)\r\n                {\r\n                    Console.Write(\"[########  ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else if (e.ProgressPercentage < 100)\r\n                {\r\n                    Console.Write(\"[######### ] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                else\r\n                {\r\n                    Console.Write(\"[##########] \" + e.ProgressPercentage + \"%\");\r\n                }\r\n                IsBusy = false;\r\n            }\r\n        }\r\n\r\n        public static bool IsAdministrator()\r\n        {\r\n            return (new WindowsPrincipal(WindowsIdentity.GetCurrent()))\r\n                      .IsInRole(WindowsBuiltInRole.Administrator);\r\n        }\r\n    }\r\n}\r\n"
  },
  {
    "path": "ForwardNotifier.plist",
    "content": "{ Filter = { Bundles = ( \"com.apple.springboard\" ); }; }\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "Makefile",
    "content": "ARCHS = arm64 arm64e\nFINALPACKAGE = 1\nGO_EASY_ON_ME = 1\n\nINSTALL_TARGET_PROCESSES = SpringBoard\n\ninclude $(THEOS)/makefiles/common.mk\n\nTWEAK_NAME = ForwardNotifier\n\nForwardNotifier_FILES = Tweak.x\nForwardNotifier_CFLAGS = -fobjc-arc\n\ninclude $(THEOS_MAKE_PATH)/tweak.mk\nSUBPROJECTS += forwardnotifier\nSUBPROJECTS += forwardnotifiercc\nSUBPROJECTS += forwardnotifierreceiver\ninclude $(THEOS_MAKE_PATH)/aggregate.mk\n"
  },
  {
    "path": "README.md",
    "content": "# ForwardNotifier\nForward your notifications from your iOS device to your PC/iOS device!\n\n\nHi! This tweak forwards your notifications to your PC (Windows, Mac or Linux!) or iOS device (tested on iOS 9-13 for the receiver part)\n\nUp uptil now it only worked using SSH, but now, I am introducing the crossplatform server! A python script that creates a https server on your machine that listens to ForwardNotifier calls to display those notifications on your PC. (**Crossplatform server doesn't work on iOS devices, if you want to use an iOS device as a receiver you must use SSH. Instructions down below**).\n\n**Read both methods (SSH and Crossplatform server) to decide which method you prefer to use. If one method does not work for you, you can try the other method**.\n\n**If you are a beginner, I suggest you use the Crossplatform Server, it's much more user friendly. The SSH tutorial and Crossplatform tutorial are down below.**\n\n# SSH Setup for the Receiver\n## DO NOT USE THE SSH OPTION IF YOU STILL HAVE A VERSION THAT SUPPORTS IT. IT HAS A MAJOR BUG THAT COULD BE USED TO RUN TERMINAL COMMANDS ON YOUR COMPUTER\n### MacOS\n\nFor MacOS you need a tool called “terminal-notifier”. It’s free and there are several tutorials on how to install it. Like this [one](https://brewinstall.org/install-terminal-notifier-on-mac-with-brew/)\n\nTo enable ssh on a Mac, follow this [tutorial](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&cad=rja&uact=8&ved=2ahUKEwi6pbvMidzpAhURahQKHQYaBvsQFjACegQIDBAG&url=https%3A%2F%2Fosxdaily.com%2F2011%2F09%2F30%2Fremote-login-ssh-server-mac-os-x%2F&usg=AOvVaw3qUh4DI6uMFzS8KsyDa5Wm)\n\n### Linux\n\nFor Linux you need a tool called “notify-send”. It comes preinstalled on several distros (most of Ubuntu flavors have it).\nTo enable ssh on Linux, install openssh-server\n\n### Windows\n\nFor windows there’s a custom [tool](https://github.com/Greg0109/ForwardNotifier/tree/master/ForwardNotifier%20Client%20Tools/Windows%20SSH%20Client%20tool) (Although it is advised to use the Crossplatform server if using windows. It works better, is much more stable and it's more user friendly)\n\nYou also need OpenSSH server to be installed and working (**Please install openssh from [Powershell](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse#installing-openssh-with-powershell), in our testing it has proved to be more effective and it causes less errors**)\n\n**Please, make sure the SSH service is up and running [SSH Service Configuration](https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse#initial-configuration-of-ssh-server)**\n\n**To use the tool, you need to download both .exe files and put them in Documents/ForwardNotifier, then, open the \"SetEnvironmentVariable.exe\" and it will set everything up.\nDo not remove those .exe files, they are needed for it to work!\nYou might need a reboot upon installation.**\n\n### iOS\n\nOn iOS you only need to have ForwardNotifier installed on both devices!\n\nNotifications can be disabled when device is unlocked.\n\n# Crossplatform Server Setup for the Receiver\n\nTo install the crossplatform server, you only need to install the provided Autoinstall packages. These installers will check and install all necessary dependencies for this program to work. **The Crossplatform server will autolaunch on every boot of the system**. Follow the instructions for each specific OS down below:\n\n[MacOS](https://github.com/Greg0109/ForwardNotifier/blob/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/Mac%20Autoinstall/ForwardNotifierInstaller.bash): Place the script anywhere you want on your Mac and launch it on terminal, like so \"./ForwardNotifierInstaller\" (Do not use sudo).\n\n[Windows](https://github.com/Greg0109/ForwardNotifier/blob/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/Windows%20Autoinstall/ForwardNotifierSetup.exe): Execute it as administrator as you would any other .exe file\n\n[Linux](https://github.com/Greg0109/ForwardNotifier/blob/master/ForwardNotifier%20Client%20Tools/Crossplatform%20Server/Linux%20Autoinstall/ForwardNotifierInstaller.bash): Place the script anywhere you want on your Linux machine and launch it on terminal, like so \"sudo ./ForwardNotifierInstaller\" (please, use sudo).\n\nIf there's a \"permissions error\" while trying to use the MacOS or Linux tool, give the script permissions by using \"chmod +x ForwardNotifierInstaller\" in terminal on the same directory as the script.\n\n# Where to find user and hostname\n\n### In MacOS and Linux:\n\nif you open terminal and type \"users\" you will get the users.\nAlso if you type \"hostname\", you will get the hostname.\nHostname needs a .local at the end.\n\n**Password on all cases are the same as your main accounts on your devices**\n\n### In Windows:\nIn Windows the username is the same as your username for your account.\n\nIP can be found if you type \"ipconfig\" on cmd\n\n**Password on all cases are the same as your main accounts on your devices**\n\n### In iOS:\nUser is \"root\" or \"mobile\"\nHostname can be found if you open terminal, the first line where it usually says \"*s-iphone\"\n\nYou can also use your local ip instead of a hostname\n\n**The default iOS password for SSH is \"alpine\" but you should definitely change your SSH password**\n\n# ForwardNotifier sender setup\n## Steps:\n\n-Once the receivers have been setup, go to the tweak settings and fill out the SSH information there.\n\n-**Make sure the user and hostname/ip are correct. Keep in mind that the crossplatform server only requires the hostname information**\n\n-Enable the necessary switches\n\n-**In order to activate the tweak, you need to activate the CC module and make sure its enabled. CC module can be found in the CC settings, if it's not there, you might need to install a third party CC module enabler like CCSupport**\n\n# Additional Information\n\nSince this tweak relies on a CC module to enable or disable it, it only supports iOS 11-13, but, I’ve tested the receiver from iOS 9-13 and it works without problems.\n\n**Don't forget to insert your password!**\n\n**If you prefer to use Key authentication, then make sure the key is working properly before using it. I've tested this tweak with keys using the .pem format**\n\n# Troubleshooting\n\nIf the ssh fails, you will get a notification on your sender device with the title \"ForwardNotifier Error\". This will have the output of the error as a message. It will point you in the direction of where the error happened.\n\nIf you don't get that message and the notifications are still not displayed on the receiver, then something is wrong on the receiver end.\n\n\nOther than that, there’s nothing more to it! Enjoy!\n\n# Special thanks!\n\nThanks [u/LavamasterYT](https://www.reddit.com/u/LavamasterYT/?utm_source=share&utm_medium=ios_app&utm_name=iossmf) for making the SSH Windows Tool and the Windows Installation Package for the Crossplatform Server\n\n\nThanks to [u/tokilokit](https://www.reddit.com/u/tokilokit/?utm_source=share&utm_medium=ios_app&utm_name=iossmf) for the idea and development of the python script used for the Crossplatform server. His [GitHub](https://github.com/tokfrans03).\n"
  },
  {
    "path": "Tweak.h",
    "content": "#import <UIKit/UIKit.h>\n#import <Foundation/Foundation.h>\n#import <UIKit/UIControl.h>\n#import <dlfcn.h>\n#include <NSTask.h>\n\n@interface NSDistributedNotificationCenter : NSNotificationCenter\n+ (instancetype)defaultCenter;\n- (void)postNotificationName:(NSString *)name object:(NSString *)object userInfo:(NSDictionary *)userInfo;\n@end\n\n@interface JBBulletinManager : NSObject\n  +(id)sharedInstance;\n  -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message bundleID:(NSString *)bundleID;\n  -(id)showBulletinWithTitle:(NSString *)title message:(NSString *)message bundleID:(NSString *)bundleID hasSound:(BOOL)hasSound soundID:(int)soundID vibrateMode:(int)vibrate soundPath:(NSString *)soundPath attachmentImage:(UIImage *)attachmentImage overrideBundleImage:(UIImage *)overrideBundleImage;\n@end\n\n@interface SpringBoard\n-(void)applicationDidFinishLaunching:(id)arg1 ;\n@end\n\n@interface BBAction : NSObject\n\n+(id)actionWithLaunchURL:(id)arg1 callblock:(/*^block*/id)arg2 ;\n+(id)actionWithLaunchBundleID:(id)arg1 callblock:(/*^block*/id)arg2 ;\n+(id)actionWithCallblock:(/*^block*/id)arg1 ;\n+(id)actionWithAppearance:(id)arg1 ;\n+(id)actionWithLaunchURL:(id)arg1 ;\n+(id)actionWithActivatePluginName:(id)arg1 activationContext:(id)arg2 ;\n+(id)actionWithIdentifier:(id)arg1 ;\n+(id)actionWithIdentifier:(id)arg1 title:(id)arg2 ;\n+(id)actionWithLaunchBundleID:(id)arg1 ;\n@end\n\n@class BBContent;\n@interface BBContent : NSObject\n@property (nonatomic,retain) NSString * message;\n@property (nonatomic,retain) NSString * title;\n@end\n\n@interface BBSectionIcon : NSObject\n@end\n\n@interface BBBulletin : NSObject\n@property (nonatomic,retain) NSString * message;\n@property (nonatomic,retain) NSString * title;\n@property (nonatomic,retain) NSString * sectionID;\n@property (nonatomic,retain) BBSectionIcon * icon;\n@property (nonatomic,retain) NSString * bulletinID;\n@property (nonatomic,retain) NSString * recordID;\n@property (nonatomic,retain) NSString * publisherBulletinID;\n@property (nonatomic,retain) NSString * sectionDisplayName;\n@property (nonatomic,retain) NSDate * date;\n@property (nonatomic,copy) BBAction * defaultAction;\n@property (nonatomic,retain) BBContent * content;\n@end\n\n@interface BBServer\n-(void)publishBulletin:(id)arg1 destinations:(unsigned long long)arg2 ;\n@end\n\n@interface SBLockStateAggregator : NSObject\n+(id)sharedInstance;\n-(unsigned long long)lockState;\n@end\n\ntypedef struct SBIconImageInfo {\n\tCGSize size;\n\tdouble scale;\n\tdouble continuousCornerRadius;\n} SBIconImageInfo;\n\n@interface SBApplicationIcon : NSObject\n// iOS 12 and below\n- (UIImage *)generateIconImage:(int)arg1;\n// iOS 13\n- (id)generateIconImageWithInfo:(SBIconImageInfo)arg1;\n@end\n\n@interface SBIconModel : NSObject\n- (SBApplicationIcon *)expectedIconForDisplayIdentifier:(id)arg1;\n@end\n\n@interface SBIconController : UIViewController\n@property (nonatomic, retain) SBIconModel *model;\n+ (id)sharedInstance;\n@end\n\n@interface SBApplication : NSObject\n+(id)sharedInstance;\n-(NSString *)displayName;\n@end\n\n@interface SBApplicationController : NSObject\n-(id)applicationWithBundleIdentifier:(id)arg1 ;\n@end\n\nNSString *forwardNotifierIconBase64 = @\"iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAYAAADhu0ooAAASJXpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZppdmOpskb/M4o7BLqgGQ4EsNabwRv+3YFkZdpplzNvZbpsqaQjDkTzNSC3////jvsP/ySV7LLUVnopnn+55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AogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/PlljaEQAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfkBhoSIR/v0N5nAAAEHUlEQVRo3uWbX0wcVRSHv5kdlt0VsdFqSqNsokWMlRpjtWqphIAvjdSkKQkx8UWTNtpEoQm++GBMTEzFCI3xyRceKmrEql1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JKAvRpZ3LZFjjSL95x52mnQLOxQVvHo/wTEURCU3wzXgSzcQTe1P/OZqLCz4xaarmmrprM7K5UmXS9a5O16hMuqjX6RqQgWPrAPRLeSE43ke6ctmpGlkIjp9ZN2WsMkCmBr3dgZDt1+vrl1dgtwLdDoLsRqI1KwUMNPt1IdHkEMu2C4mmwGs5Lg8sl+OvgyxX3etf49v8iK0u+ESnh/t6330u54v/ANPdaJCn+0gpAAAAAElFTkSuQmCC\";\n"
  },
  {
    "path": "Tweak.x",
    "content": "#import \"Tweak.h\"\n\nstruct SBIconImageInfo iconspecs;\n\n//Settings\nBOOL receiver;\nBOOL errorlog;\nBOOL lockstateenabled;\nint pcspecifier;\n\n//Settings\nint methodspecifier;\nBOOL keyauthentication;\nNSString *user;\nNSString *ip;\nNSString *port;\nNSString *password;\nNSString *command;\nNSString *finalCommand;\nNSArray *arguments;\n\n//Notifications\nNSString *pc;\nNSString *title;\nNSMutableString *finalTitle;\nNSString *message;\nNSMutableString *finalMessage;\nNSString *bundleID;\nNSString *appName;\nBOOL locked;\n\n//For the error output\nNSPipe *out;\nstatic BBServer *notificationserver = nil;\n\nstatic void loadPrefs() {\n  NSMutableDictionary *prefs = [NSMutableDictionary dictionaryWithContentsOfFile:@\"/User/Library/Preferences/com.greg0109.forwardnotifierprefs.plist\"];\n  receiver = prefs[@\"receiver\"] ? [prefs[@\"receiver\"] boolValue] : NO;\n  errorlog = prefs[@\"errorlog\"] ? [prefs[@\"errorlog\"] boolValue] : NO;\n  lockstateenabled = prefs[@\"lockstateenabled\"] ? [prefs[@\"lockstateenabled\"] boolValue] : YES;\n  pcspecifier = prefs[@\"pcspecifier\"] ? [prefs[@\"pcspecifier\"] intValue] : 0;\n\n  methodspecifier = prefs[@\"methodspecifier\"] ? [prefs[@\"methodspecifier\"] intValue] : 0;\n  keyauthentication = prefs[@\"keyauthentication\"] ? [prefs[@\"keyauthentication\"] boolValue] : NO;\n  user = prefs[@\"user\"] && !([prefs[@\"user\"] isEqualToString:@\"\"]) ? [prefs[@\"user\"] stringValue] : @\"user\";\n  ip = prefs[@\"ip\"] && !([prefs[@\"ip\"] isEqualToString:@\"\"]) ? [prefs[@\"ip\"] stringValue] : @\"ip\";\n  port = prefs[@\"port\"] && !([prefs[@\"port\"] isEqualToString:@\"\"]) ? [prefs[@\"port\"] stringValue] : @\"22\";\n  password = prefs[@\"password\"] && !([prefs[@\"password\"] isEqualToString:@\"\"]) ? [prefs[@\"password\"] stringValue] : @\"password\";\n  user = [user stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n  ip = [ip stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n  password = [password stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n}\n\nstatic dispatch_queue_t getBBServerQueue() {\n    static dispatch_queue_t queue;\n    static dispatch_once_t predicate;\n    dispatch_once(&predicate, ^{\n        void *handle = dlopen(NULL, RTLD_GLOBAL);\n        if (handle) {\n            dispatch_queue_t __weak *pointer = (__weak dispatch_queue_t *) dlsym(handle, \"__BBServerQueue\");\n            if (pointer) {\n                queue = *pointer;\n            }\n            dlclose(handle);\n        }\n    });\n    return queue;\n}\n\n%hook BBServer\n-(id)initWithQueue:(id)arg1 {\n    notificationserver = %orig;\n    return notificationserver;\n}\n-(id)initWithQueue:(id)arg1 dataProviderManager:(id)arg2 syncService:(id)arg3 dismissalSyncCache:(id)arg4 observerListener:(id)arg5 utilitiesListener:(id)arg6 conduitListener:(id)arg7 systemStateListener:(id)arg8 settingsListener:(id)arg9 {\n    notificationserver = %orig;\n    return notificationserver;\n}\n- (void)dealloc {\n  if (notificationserver == self) {\n    notificationserver = nil;\n  }\n  %orig;\n}\n%end\n\nvoid testnotif(NSString *titletest, NSString *messagetest) {\n  BBBulletin *bulletin = [[%c(BBBulletin) alloc] init];\n\n  bulletin.title = titletest;\n  bulletin.message = messagetest;\n  bulletin.sectionID = @\"com.apple.Preferences\";\n  bulletin.bulletinID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.recordID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.publisherBulletinID = [[NSProcessInfo processInfo] globallyUniqueString];\n  bulletin.date = [NSDate date];\n  bulletin.defaultAction = [%c(BBAction) actionWithLaunchBundleID:@\"prefs:root=ForwardNotifier\" callblock:nil];\n  dispatch_sync(getBBServerQueue(), ^{\n    [notificationserver publishBulletin:bulletin destinations:14];\n  });\n}\n\nBOOL isItLocked() {\n  if (lockstateenabled) {\n    locked = [[%c(SBLockStateAggregator) sharedInstance] lockState];\n  } else {\n    locked = TRUE;\n  }\n  return locked;\n}\n\nvoid sanitizeText() { //Thanks Tom for the idea of using \\ everywhere :P\n  finalTitle = [@\"\" mutableCopy];\n  for (int i=0; i<title.length; i++) {\n      NSString *charSelected = [title substringWithRange:NSMakeRange(i, 1)];\n      if ([charSelected isEqualToString:@\" \"]) {\n          charSelected = @\" \";\n      } else {\n        charSelected = [NSString stringWithFormat:@\"\\\\%@\",charSelected];\n      }\n      [finalTitle appendString:charSelected];\n  }\n  finalMessage = [@\"\" mutableCopy];\n  for (int i=0; i<message.length; i++) {\n      NSString *charSelected = [message substringWithRange:NSMakeRange(i, 1)];\n      if ([charSelected isEqualToString:@\" \"]) {\n          charSelected = @\" \";\n      } else {\n        charSelected = [NSString stringWithFormat:@\"\\\\%@\",charSelected];\n      }\n      [finalMessage appendString:charSelected];\n  }\n}\n\nvoid pushnotif(BOOL override) {\n  if (!override) {\n    isItLocked();\n  } else {\n    locked = TRUE;\n  }\n  if (methodspecifier == 0) { // SSH\n      if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"] && (locked)) {\n      dispatch_queue_t sendnotif = dispatch_queue_create(\"Send Notif\", NULL);\n      dispatch_async(sendnotif, ^{\n        pc = [NSString stringWithFormat:@\"%@@%@\",user,ip];\n        sanitizeText();\n        if (pcspecifier == 0) { // Linux\n          finalCommand = [NSString stringWithFormat:@\"\\\"$(echo %@)\\\" \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"notify-send -i applications-development %@\",finalCommand];\n          NSLog(@\"ForwardNotifier: %@\", command);\n        } else if (pcspecifier == 1) { // MacOS\n          finalCommand = [NSString stringWithFormat:@\"-title \\\"$(echo %@)\\\" -message \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"/usr/local/bin/terminal-notifier -sound pop %@\",finalCommand];\n        } else if (pcspecifier == 2) { // iOS\n          finalCommand = [NSString stringWithFormat:@\"\\\"$(echo %@)\\\" \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"ForwardNotifierReceiver %@\",finalCommand];\n        } else if (pcspecifier == 3) { // Windows\n          finalCommand = [NSString stringWithFormat:@\"-title \\\"$(echo %@)\\\" -message \\\"$(echo %@)\\\"\", finalTitle, finalMessage];\n          command = [NSString stringWithFormat:@\"ForwardNotifierReceiver %@\",finalCommand];\n        }\n        if (keyauthentication) {\n          if ([port isEqual:@\"22\"]) {\n            arguments = @[@\"-i\",password,pc,command];\n          } else {\n            arguments = @[@\"-i\",password,pc,@\"-p\",port,command];\n          }\n          NSTask *task = [[NSTask alloc] init];\n          [task setLaunchPath:@\"/usr/bin/ssh\"];\n          [task setArguments:arguments];\n          out = [NSPipe pipe];\n          [task setStandardError:out];\n          [task launch];\n          [task waitUntilExit];\n        } else {\n          if ([port isEqual:@\"22\"]) {\n            arguments = @[@\"-p\",password,@\"ssh\",@\"-o\",@\"StrictHostKeyChecking=no\",pc,command];\n          } else {\n            arguments = @[@\"-p\",password,@\"ssh\",@\"-o\",@\"StrictHostKeyChecking=no\",pc,@\"-p\",port,command];\n          }\n          NSTask *task = [[NSTask alloc] init];\n          [task setLaunchPath:@\"/usr/bin/sshpass\"];\n          [task setArguments:arguments];\n          out = [NSPipe pipe];\n          [task setStandardError:out];\n          [task launch];\n          [task waitUntilExit];\n        }\n        NSFileHandle * read = [out fileHandleForReading];\n        NSData * dataRead = [read readDataToEndOfFile];\n        NSString *erroroutput = [[NSString alloc] initWithData:dataRead encoding:NSUTF8StringEncoding];\n        if ([erroroutput length] > 2 && errorlog) {\n          testnotif(@\"ForwardNotifier Error\",erroroutput);\n        }\n      });\n    }\n  } else if (methodspecifier == 1) { // Crossplatform Server\n    // Get Icon data\n    SBApplicationIcon *icon = [((SBIconController *)[%c(SBIconController) sharedInstance]).model expectedIconForDisplayIdentifier:bundleID];\n    UIImage *image = nil;\n  \ticonspecs.size = CGSizeMake(60, 60);\n  \ticonspecs.scale = [UIScreen mainScreen].scale;\n  \ticonspecs.continuousCornerRadius = 12;\n  \timage = [icon generateIconImageWithInfo:iconspecs];\n    NSData *iconData = UIImagePNGRepresentation(image);\n    NSString *iconBase64;\n    if (![title isEqualToString:@\"ForwardNotifier Test\"]) {\n      iconBase64 = [iconData base64EncodedStringWithOptions:NSDataBase64EncodingEndLineWithLineFeed];\n    } else {\n      iconBase64 = forwardNotifierIconBase64;\n    }\n    // Base64 both title and message\n    NSData *titleData = [title dataUsingEncoding: NSUTF8StringEncoding];\n    NSString *titleBase64 = [titleData base64EncodedStringWithOptions:0];\n    NSData *messageData = [message dataUsingEncoding: NSUTF8StringEncoding];\n    NSString *messageBase64 = [messageData base64EncodedStringWithOptions:0];\n    if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"] && (locked)) {\n      dispatch_queue_t sendnotif = dispatch_queue_create(\"Send Notif\", NULL);\n      dispatch_async(sendnotif, ^{\n        title = [title stringByReplacingOccurrencesOfString:@\"\\\"\" withString:@\"\\\\\"\"\\\"\"];\n        message = [message stringByReplacingOccurrencesOfString:@\"\\\"\" withString:@\"\\\\\"\"\\\"\"];\n        if (pcspecifier == 0) { // Linux\n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"Linux\\\", \\\"img\\\": \\\"%@\\\", \\\"appname\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64,appName];\n        } else if (pcspecifier == 1) { // MacOS\n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"MacOS\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        } else if (pcspecifier == 2) { // iOS\n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"iOS\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        } else if (pcspecifier == 3) { // Windows\n          command = [NSString stringWithFormat:@\"{\\\"Title\\\": \\\"%@\\\", \\\"Message\\\": \\\"%@\\\", \\\"OS\\\": \\\"Windows\\\", \\\"img\\\": \\\"%@\\\"}\",titleBase64,messageBase64,iconBase64];\n        }\n        NSTask *task = [[NSTask alloc] init];\n        [task setLaunchPath:@\"/usr/bin/curl\"];\n        [task setArguments:@[@\"-sS\",[NSString stringWithFormat:@\"%@:8000\",ip],@\"-d\",command ]];\n        out = [NSPipe pipe];\n        [task setStandardError:out];\n        [task launch];\n        [task waitUntilExit];\n        NSFileHandle * read = [out fileHandleForReading];\n        NSData * dataRead = [read readDataToEndOfFile];\n        NSString *erroroutput = [[NSString alloc] initWithData:dataRead encoding:NSUTF8StringEncoding];\n        if ([erroroutput length] > 2 && errorlog) {\n          if ([erroroutput containsString:@\"curl\"] && ![erroroutput containsString:@\"Empty reply\"]) {\n            testnotif(@\"ForwardNotifier Error\",erroroutput);\n          }\n        }\n      });\n    }\n  }\n}\n\n%group sender\n%hook BBServer\n-(void)publishBulletin:(BBBulletin *)arg1 destinations:(unsigned long long)arg2 {\n  %orig;\n  title = arg1.content.title;\n  message = arg1.content.message;\n  bundleID = arg1.sectionID;\n  SBApplication *app = [[%c(SBApplicationController) sharedInstance] applicationWithBundleIdentifier:bundleID];\n  appName = app.displayName;\n  if (([title length] != 0) || ([message length] != 0)) {\n    if ([title length] == 0) {\n      title = app.displayName;\n    }\n    if (![title containsString:@\"ForwardNotifier\"] && [arg1.date timeIntervalSinceNow] > -2) { //This helps avoid the notifications to get forwarded again after a respring, which makes them avoid respring loops. If notifications are 2 seconds old, then won't get forwarded.\n      NSMutableDictionary *applist = [[NSMutableDictionary alloc] initWithContentsOfFile:@\"/var/mobile/Library/Preferences/com.greg0109.forwardnotifierblacklist\"];\n      if (![applist valueForKey:arg1.sectionID] || [[NSString stringWithFormat:@\"%@\",[applist valueForKey:arg1.sectionID]] isEqual:@\"0\"]) {\n        pushnotif(FALSE);\n      }\n    } else if ([title isEqualToString:@\"ForwardNotifier Test\"]) {\n      pushnotif(TRUE);\n    }\n  }\n}\n%end\n\n%hook SpringBoard\n-(void)applicationDidFinishLaunching:(id)arg1 {\n  [[NSDistributedNotificationCenter defaultCenter] addObserverForName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) {\n    NSString *titlenotif = notification.userInfo[@\"title\"];\n    NSString *messagenotif = notification.userInfo[@\"message\"];\n    if ([titlenotif isEqualToString:@\"ActivateForwardNotifier\"]) {\n      if ([messagenotif isEqualToString:@\"true\"]) {\n        [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n      } else if ([messagenotif isEqualToString:@\"false\"]) {\n        [[NSUserDefaults standardUserDefaults] setBool:FALSE forKey:@\"ForwardNotifier-Status\"];\n      }\n    } else {\n      [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n      title = @\"ForwardNotifier Test\";\n      message = @\"This is a test notification\";\n      testnotif(title,message);\n    }\n  }];\n  %orig;\n}\n%end\n%end\n\n%group devicereceiver\n%hook SpringBoard\n-(void)applicationDidFinishLaunching:(id)arg1 {\n  [[NSDistributedNotificationCenter defaultCenter] addObserverForName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil queue:[NSOperationQueue mainQueue] usingBlock:^(NSNotification *notification) {\n      NSString *titlenotif = notification.userInfo[@\"title\"];\n      NSString *messagenotif = notification.userInfo[@\"message\"];\n      testnotif(titlenotif,messagenotif);\n  }];\n  %orig;\n}\n%end\n%end\n\n%ctor {\n  loadPrefs();\n  CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR(\"com.greg0109.forwardnotifierprefs.settingschanged\"), NULL, CFNotificationSuspensionBehaviorCoalesce);\n  %init();\n  if (receiver) {\n    %init(devicereceiver);\n  } else {\n    %init(sender);\n  }\n}\n"
  },
  {
    "path": "control",
    "content": "Package: com.greg0109.forwardnotifier\nName: ForwardNotifier\nDepends: mobilesubstrate, sshpass, openssh, applist, preferenceloader, curl\nConflict: com.yourepo.greg0109.forwardnotifier8\nReplaces: com.yourepo.greg0109.forwardnotifier8\nVersion: 1.4.3\nArchitecture: iphoneos-arm\nDescription: Forward Notifications to your PC!\nMaintainer: Greg0109\nAuthor: Greg0109\nSection: Tweaks\n"
  },
  {
    "path": "forwardnotifier/.theos/build_session",
    "content": ""
  },
  {
    "path": "forwardnotifier/.theos/obj/.stamp",
    "content": ""
  },
  {
    "path": "forwardnotifier/FNPRootListController.h",
    "content": "#import <Preferences/PSListController.h>\n#import <Preferences/PSSpecifier.h>\n#import <AppList/AppList.h>\n#import <FrontBoardServices/FBSSystemService.h>\n#import <SpringBoardServices/SBSRestartRenderServerAction.h>\n\n@interface FNPRootListController : PSListController\n@property (nonatomic,retain) NSMutableDictionary *savedSpecifiers;\n@end\n\ntypedef struct SBIconImageInfo {\n\tCGSize size;\n\tdouble scale;\n\tdouble continuousCornerRadius;\n} SBIconImageInfo;\n\n@interface FBSSystemService (ForwardNotifier)\n+(id)sharedService;\n-(void)sendActions:(id)arg1 withResult:(/*^block*/id)arg2 ;\n@end\n\n@interface SBSRelaunchAction (ForwardNotifier)\n@property (nonatomic,copy,readonly) NSString * reason;\n@property (nonatomic,readonly) unsigned long long options;\n@property (nonatomic,retain,readonly) NSURL * targetURL;\n+(id)actionWithReason:(id)arg1 options:(unsigned long long)arg2 targetURL:(id)arg3 ;\n-(unsigned long long)options;\n-(NSString *)reason;\n-(id)initWithReason:(id)arg1 options:(unsigned long long)arg2 targetURL:(id)arg3 ;\n-(NSURL *)targetURL;\n@end\n\n\n@interface NSDistributedNotificationCenter : NSNotificationCenter\n+ (instancetype)defaultCenter;\n- (void)postNotificationName:(NSString *)name object:(NSString *)object userInfo:(NSDictionary *)userInfo;\n@end\n\n@interface OBButtonTray : UIView\n- (void)addButton:(id)arg1;\n- (void)addCaptionText:(id)arg1;;\n@end\n\n@interface OBBoldTrayButton : UIButton\n-(void)setTitle:(id)arg1 forState:(unsigned long long)arg2;\n+(id)buttonWithType:(long long)arg1;\n@end\n\n@interface OBWelcomeController : UIViewController\n- (OBButtonTray *)buttonTray;\n- (id)initWithTitle:(id)arg1 detailText:(id)arg2 icon:(id)arg3;\n- (void)addBulletedListItemWithTitle:(id)arg1 description:(id)arg2 image:(id)arg3;\n@end\n\nOBWelcomeController *welcomeController;\n\n@interface UIImage (Private)\n+ (id)_applicationIconImageForBundleIdentifier:(id)arg1 format:(int)arg2 scale:(double)arg3;\n@end\n"
  },
  {
    "path": "forwardnotifier/FNPRootListController.m",
    "content": "#include \"FNPRootListController.h\"\n\nint __isOSVersionAtLeast(int major, int minor, int patch) { NSOperatingSystemVersion version; version.majorVersion = major; version.minorVersion = minor; version.patchVersion = patch; return [[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:version]; }\n\n@implementation FNPRootListController\n\n- (NSArray *)specifiers {\n\tif (!_specifiers) {\n\t\t_specifiers = [self loadSpecifiersFromPlistName:@\"Root\" target:self];\n\t\tNSArray *chosenIDs = @[@\"hide1\",@\"hide2\",@\"hide3\",@\"hide4\"];\n\t\tself.savedSpecifiers = (!self.savedSpecifiers) ? [[NSMutableDictionary alloc] init] : self.savedSpecifiers;\n\t\tfor(PSSpecifier *specifier in _specifiers) {\n\t\t\tif ([chosenIDs containsObject:[specifier propertyForKey:@\"id\"]]) {\n\t\t\t\t[self.savedSpecifiers setObject:specifier forKey:[specifier propertyForKey:@\"id\"]];\n\t\t\t}\n\t\t}\n\t}\n\treturn _specifiers;\n}\n\n- (void)viewDidLoad {\n    [super viewDidLoad];\n\t\tif (![[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-FirstUse\"] isEqual:@\"1\"]) {\n\t\t\tif (@available(iOS 13, *)){\n\t\t\t\t[self updateController];\n\t\t\t} else {\n\t\t\t\tUIAlertController* alert = [UIAlertController alertControllerWithTitle:@\"This tweak relies on a CC module!\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t message:@\"To enable or disable ForwardNotifier, you need to use the CC module. We recomend CC support to enable third party modules. This alert and any other that show up on settings will only show up once.\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t preferredStyle:UIAlertControllerStyleAlert];\n\t\t\t\tUIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@\"OK\" style:UIAlertActionStyleDefault\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t handler:^(UIAlertAction * action) {}];\n\t\t\t\t[alert addAction:defaultAction];\n\t\t\t\t[self presentViewController:alert animated:YES completion:nil];\n\t\t\t\t[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-FirstUse\"];\n\t\t  }\n\t\t}\n\t\t((UITableView *)[self.view.subviews objectAtIndex:0]).keyboardDismissMode = UIScrollViewKeyboardDismissModeOnDrag;\n   if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"HideSSH\"] isEqual:@\"1\"]) {\n     [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide1\"]] animated:YES];\n\t\t [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide2\"]] animated:YES];\n\t\t [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide3\"]] animated:YES];\n\t\t [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide4\"]] animated:YES];\n   }\n\t if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"HideSSH\"] isEqual:@\"0\"]) {\n\t\t UIAlertController* alert = [UIAlertController alertControllerWithTitle:@\"Possible exploit warning while using SSH\"\n \t\t\t\t\t\t\t\t\t\t\t message:@\"While the text has been sanitized to avoid possible execution of commands, the text is sent 'as is' and this presents a possible security risk.\\nIt is advised to use the Crossplatform Server as it's more secure\"\n \t\t\t\t\t\t\t\t\t\t\t preferredStyle:UIAlertControllerStyleAlert];\n \t\tUIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@\"OK\" style:UIAlertActionStyleDefault\n \t\t\t\t\t\t\t\t\t\t\t\t\t handler:^(UIAlertAction * action) {}];\n \t\t[alert addAction:defaultAction];\n \t\t[self presentViewController:alert animated:YES completion:nil];\n   }\n}\n\n-(void)reloadSpecifiers {\n\t[super reloadSpecifiers];\n\t//This will look the exact same as step 5, where we only check if specifiers need to be removed\n\tif ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"HideSSH\"] isEqual:@\"1\"]) {\n\t\t[self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide1\"]] animated:YES];\n\t\t[self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide2\"]] animated:YES];\n\t\t[self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide3\"]] animated:YES];\n\t\t[self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide4\"]] animated:YES];\n\t}\n}\n\n- (id)readPreferenceValue:(PSSpecifier*)specifier {\n\tNSString *path = [NSString stringWithFormat:@\"/User/Library/Preferences/%@.plist\", specifier.properties[@\"defaults\"]];\n\tNSMutableDictionary *settings = [NSMutableDictionary dictionary];\n\t[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];\n\treturn (settings[specifier.properties[@\"key\"]]) ?: specifier.properties[@\"default\"];\n}\n- (void)setPreferenceValue:(id)value specifier:(PSSpecifier*)specifier {\n\t\tNSString *path = [NSString stringWithFormat:@\"/User/Library/Preferences/%@.plist\", specifier.properties[@\"defaults\"]];\n\t\tNSMutableDictionary *settings = [NSMutableDictionary dictionary];\n\t\t[settings addEntriesFromDictionary:[NSDictionary dictionaryWithContentsOfFile:path]];\n\t\t[settings setObject:value forKey:specifier.properties[@\"key\"]];\n\t\t[settings writeToFile:path atomically:YES];\n\t\tCFStringRef notificationName = (__bridge CFStringRef)specifier.properties[@\"PostNotification\"];\n\t\tif (notificationName) {\n\t\t\tCFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), notificationName, NULL, NULL, YES);\n\t\t}\n    if ([[NSString stringWithFormat:@\"%@\",value] isEqual:@\"3\"] && [[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"pcspecifier\"]) {\n\t\t\tif (![[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-PCSpecifierWindows\"] isEqual:@\"1\"]) {\n\t\t\t\tif (@available(iOS 13,*)) {} else {\n\t        UIAlertController* alert = [UIAlertController alertControllerWithTitle:@\"Crossplatform use is advised!\"\n\t                           message:@\"Windows SSH support is buggy at the moment. Crossplatform server use is advised.\"\n\t                           preferredStyle:UIAlertControllerStyleAlert];\n\t        UIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@\"OK\" style:UIAlertActionStyleDefault\n\t                               handler:^(UIAlertAction * action) {}];\n\t        [alert addAction:defaultAction];\n\t        [self presentViewController:alert animated:YES completion:nil];\n\t\t\t\t\t[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-PCSpecifierWindows\"];\n\t\t\t\t}\n\t\t\t}\n    } else if ([[NSString stringWithFormat:@\"%@\",value] isEqual:@\"2\"] && [[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"pcspecifier\"]) {\n\t\t\tif (![[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-PCSpecifieriOS\"] isEqual:@\"1\"]) {\n\t\t\t\tif (@available(iOS 13,*)) {} else {\n\t\t\t\t\tUIAlertController* alert = [UIAlertController alertControllerWithTitle:@\"iOS only supports SSH\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t message:@\"Since the crossplatform server uses python3, iOS as a receiver only supports SSH at the moment.\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t preferredStyle:UIAlertControllerStyleAlert];\n\t\t\t\t\tUIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@\"OK\" style:UIAlertActionStyleDefault\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t handler:^(UIAlertAction * action) {}];\n\t\t\t\t\t[alert addAction:defaultAction];\n\t\t\t\t\t[self presentViewController:alert animated:YES completion:nil];\n\t\t\t\t\t[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-PCSpecifieriOS\"];\n\t\t\t\t}\n\t\t\t}\n\t\t} else if ([[NSString stringWithFormat:@\"%@\",value] isEqual:@\"1\"] && [[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"methodspecifier\"]) {\n\t\t\t[self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide1\"]] animated:YES];\n \t\t [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide2\"]] animated:YES];\n \t\t [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide3\"]] animated:YES];\n \t\t [self removeContiguousSpecifiers:@[self.savedSpecifiers[@\"hide4\"]] animated:YES];\n\t\t\t[[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"HideSSH\"];\n\t\t} else if ([[NSString stringWithFormat:@\"%@\",value] isEqual:@\"0\"] && [[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"methodspecifier\"]) {\n\t\t\t[self insertContiguousSpecifiers:@[self.savedSpecifiers[@\"hide1\"]] afterSpecifierID:@\"hostnameip\" animated:YES];\n\t\t\t[self insertContiguousSpecifiers:@[self.savedSpecifiers[@\"hide2\"]] afterSpecifierID:@\"hide1\" animated:YES];\n\t\t\t[self insertContiguousSpecifiers:@[self.savedSpecifiers[@\"hide3\"]] afterSpecifierID:@\"hide2\" animated:YES];\n\t\t\t[self insertContiguousSpecifiers:@[self.savedSpecifiers[@\"hide4\"]] afterSpecifierID:@\"hide3\" animated:YES];\n\t\t\t[[NSUserDefaults standardUserDefaults] setBool:FALSE forKey:@\"HideSSH\"];\n\t\t\tUIAlertController* alert = [UIAlertController alertControllerWithTitle:@\"Possible exploit warning while using SSH\"\n\t\t\t\t\t\t\t\t\t\t\t\t message:@\"While the text has been sanitized to avoid possible execution of commands, the text is sent 'as is' and this presents a possible security risk.\\nIt is advised to use the Crossplatform Server as it's more secure\"\n\t\t\t\t\t\t\t\t\t\t\t\t preferredStyle:UIAlertControllerStyleAlert];\n\t\t\tUIAlertAction* defaultAction = [UIAlertAction actionWithTitle:@\"OK\" style:UIAlertActionStyleDefault\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t handler:^(UIAlertAction * action) {}];\n\t\t\t[alert addAction:defaultAction];\n\t\t\t[self presentViewController:alert animated:YES completion:nil];\n\t\t}\n\n\t\tif ([[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"receiver\"] || [[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"password\"] || [[NSString stringWithFormat:@\"%@\",specifier.properties[@\"key\"]] isEqual:@\"chargingenabled\"]) {\n\t\t\tUIBarButtonItem *button = [[UIBarButtonItem alloc] initWithTitle:@\"Respring\" style:UIBarButtonItemStylePlain target:self action:@selector(killall)];\n\t\t\tself.navigationItem.rightBarButtonItem = button;\n\t\t}\n}\n\n-(void)updateController {\n\tif (@available(iOS 13,*)) {\n\t\tUIImage *iconImage = [UIImage imageNamed:@\"IconWelcome\" inBundle:[NSBundle bundleForClass:[self class]] compatibleWithTraitCollection:nil];\n    welcomeController = [[OBWelcomeController alloc] initWithTitle:@\"ForwardNotifier!\" detailText:@\"Please, be sure to follow the github instructions carefully and enjoy the tweak!\" icon:iconImage];\n\n    [welcomeController addBulletedListItemWithTitle:@\"This tweak relies on a CC module!\" description:@\"To enable or disable ForwardNotifier, you need to use the CC module. We recommend CC support to enable third party modules.\" image:[UIImage systemImageNamed:@\"1.circle.fill\"]];\n    [welcomeController addBulletedListItemWithTitle:@\"Use of the Crossplatform server is advised\" description:@\"The use of the crossplatform server is advised, as it brings more features and will have more support. Besides, it only requires the IP or hostname! No username or password is required.\" image:[UIImage systemImageNamed:@\"2.circle.fill\"]];\n    [welcomeController addBulletedListItemWithTitle:@\"Windows\" description:@\"If you are using windows, please use the crossplatform server, as SSH on windows is not reliable enough.\" image:[UIImage systemImageNamed:@\"3.circle.fill\"]];\n    [welcomeController addBulletedListItemWithTitle:@\"iOS\" description:@\"Using iOS as the receiver only works over SSH at the moment. Crossplatform support for iOS receiver is being researched.\" image:[UIImage systemImageNamed:@\"4.circle.fill\"]];\n    [welcomeController addBulletedListItemWithTitle:@\"Support\" description:@\"If you are experiencing bugs, please read the github instructions carefuly, there is a link at the buttom of the preferences page. If you still need help, contact me via the links at the bottom of the preferences page.\" image:[UIImage systemImageNamed:@\"5.circle.fill\"]];\n\n\t\t//welcomeController.buttonTray.effectView.effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleSystemChromeMaterial];\n    UIVisualEffectView *effectWelcomeView = [[UIVisualEffectView alloc] initWithFrame:welcomeController.viewIfLoaded.bounds];\n    effectWelcomeView.effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleSystemChromeMaterial];\n    [welcomeController.viewIfLoaded insertSubview:effectWelcomeView atIndex:0];\n    welcomeController.viewIfLoaded.backgroundColor = [UIColor clearColor];\n    OBBoldTrayButton* continueButton = [OBBoldTrayButton buttonWithType:1];\n    [continueButton addTarget:self action:@selector(dismissWelcomeController) forControlEvents:UIControlEventTouchUpInside];\n    [continueButton setTitle:@\"Let's Go!\" forState:UIControlStateNormal];\n    [continueButton setClipsToBounds:YES];\n    [continueButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];\n    [continueButton.layer setCornerRadius:15];\n    [welcomeController.buttonTray addButton:continueButton];\n\n    welcomeController.modalPresentationStyle = UIModalPresentationPageSheet;\n    welcomeController.modalInPresentation = YES;\n    welcomeController.view.tintColor = [UIColor systemBlueColor];\n    [self presentViewController:welcomeController animated:YES completion:nil];\n\t}\n}\n\n-(void)dismissWelcomeController { // Say goodbye to your controller. :(\n    [welcomeController dismissViewControllerAnimated:YES completion:nil];\n}\n\n- (void)killall {\n\t\tNSURL *relaunchURL = [NSURL URLWithString:@\"prefs:root=ForwardNotifier\"];\n\t\tSBSRelaunchAction *restartAction;\n    restartAction = [NSClassFromString(@\"SBSRelaunchAction\") actionWithReason:@\"RestartRenderServer\" options:SBSRelaunchActionOptionsFadeToBlackTransition targetURL:relaunchURL];\n    [[NSClassFromString(@\"FBSSystemService\") sharedService] sendActions:[NSSet setWithObject:restartAction] withResult:nil];\n}\n\n- (void)paypal {\n    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"https://www.paypal.me/greg0109\"] options:@{} completionHandler:nil];\n}\n\n- (void)openTwitter {\n\t\t[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"https://twitter.com/greg_0109\"] options:@{} completionHandler:nil];\n}\n\n- (void)reddit {\n\t\t[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"http://www.reddit.com/user/greg0109/\"] options:@{} completionHandler:nil];\n}\n\n- (void)sendEmail {\n\t\t[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"mailto:greg.rabago@gmail.com?subject=ForwardNotifier\"] options:@{} completionHandler:nil];\n}\n\n-(void)testnotif {\n\t[[NSDistributedNotificationCenter defaultCenter] postNotificationName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil userInfo:nil];\n}\n\n@end\n"
  },
  {
    "path": "forwardnotifier/Makefile",
    "content": "ARCHS = arm64 arm64e\nGO_EASY_ON_ME = 1\n\ninclude $(THEOS)/makefiles/common.mk\n\nBUNDLE_NAME = ForwardNotifier\n\nForwardNotifier_FILES = FNPRootListController.m\nForwardNotifier_INSTALL_PATH = /Library/PreferenceBundles\nForwardNotifier_FRAMEWORKS = UIKit\nForwardNotifier_PRIVATE_FRAMEWORKS = Preferences OnBoardingKit\nForwardNotifier_CFLAGS = -fobjc-arc\n\ninclude $(THEOS_MAKE_PATH)/bundle.mk\n\ninternal-stage::\n\t$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)\n\t$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/ForwardNotifier.plist$(ECHO_END)\n"
  },
  {
    "path": "forwardnotifier/Resources/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleExecutable</key>\n\t<string>ForwardNotifier</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.greg0109.forwardnotifierprefs</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0.0</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1.0</string>\n\t<key>NSPrincipalClass</key>\n\t<string>FNPRootListController</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "forwardnotifier/Resources/Root.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>items</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>label</key>\n            <string>General Settings</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>This feature makes this device the one that displays the notifications from other device.&#xA;Enable this feature if you would like to receive notifications on this device.&#xA;If this setting is enabled, the other ones should be disabled.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>receiver</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Set Device as Receiver</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Apps selected in the blacklisted section won't get their notifications forwarded.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSLinkCell</string>\n\t\t\t<key>bundle</key>\n\t\t\t<string>AppList</string>\n\t\t\t<key>isController</key>\n\t\t\t<string>1</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Blacklisted Apps</string>\n\t\t\t<key>ALAllowsSelection</key>\n\t\t\t<string>1</string>\n\t\t\t<key>ALSettingsKeyPrefix</key>\n\t\t\t<string></string>\n\t\t\t<key>ALSettingsDefaultValue</key>\n\t\t\t<string>0</string>\n\t\t\t<key>ALSettingsPath</key>\n\t\t\t<string>/var/mobile/Library/Preferences/com.greg0109.forwardnotifierblacklist</string>\n\t\t\t<key>ALSingleEnabledMode</key>\n\t\t\t<false/>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Enable this option to get an error output of the notifications.&#xA;It should only be enabled if the tweak is not working properly.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>errorlog</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Post a notification if something went wrong</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>If this setting is enabled, the device won't send the notifications when is unlocked.&#xA;Disable this if you would like to receive notifications on your PC/iOS device all the time.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<true/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>lockstateenabled</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Disable when unlocked</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>Select which OS you would like the notifications to be forwarded:&#xA;- Linux requires a package called \"notify-send\" to be installed.&#xA;- MacOS requires a package \"terminal-notifier\" to be installed.&#xA;- iOS requires this tweak to be installed on the receiver device with the receiver option enabled.&#xA;- Windows requires the Windows Client Tool \"ForwardNotifierReceiver\" to be installed. This feature is not yet supported.&#xA;If you are using the crossplatform server option, the server tool for each OS should be installed on the receiver. That tool can be found in my github.</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSegmentCell</string>\n\t\t\t<key>default</key>\n\t\t\t<integer>0</integer>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>pcspecifier</string>\n\t\t\t<key>validValues</key>\n        \t<array>\n\t\t\t\t<integer>0</integer>\n\t\t\t\t<integer>1</integer>\n\t\t\t\t<integer>2</integer>\n\t\t\t\t<integer>3</integer>\n\t\t\t</array>\n\t\t\t<key>validTitles</key>\n\t\t\t<array>\n\t\t\t\t<string>Linux</string>\n\t\t\t\t<string>MacOS</string>\n\t\t\t\t<string>iOS</string>\n\t\t\t\t<string>Windows</string>\n\t\t\t</array>\n\t\t\t<key>alignment</key>\n\t\t\t<string>0</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Notifier Settings</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>If you are using key authentication, make sure the key works before activating. This tweak has been tested with keys in the .pem format</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSegmentCell</string>\n\t\t\t<key>default</key>\n\t\t\t<integer>0</integer>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>methodspecifier</string>\n\t\t\t<key>validValues</key>\n        \t<array>\n\t\t\t\t<integer>0</integer>\n\t\t\t\t<integer>1</integer>\n\t\t\t</array>\n\t\t\t<key>validTitles</key>\n\t\t\t<array>\n\t\t\t\t<string>SSH</string>\n\t\t\t\t<string>Crossplatform Server</string>\n\t\t\t</array>\n\t\t\t<key>alignment</key>\n\t\t\t<string>0</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>IP or Hostaname.local</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>ip</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hostnameip</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>Port. Leave empty if its default (22)</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>port</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide1</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>User</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>user</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide2</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSecureEditTextCell</string>\n\t\t\t<key>placeholder</key>\n\t\t\t<string>Password or path to Key Authentication File</string>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>password</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide3</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSSwitchCell</string>\n\t\t\t<key>default</key>\n\t\t\t<false/>\n\t\t\t<key>defaults</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs</string>\n\t\t\t<key>key</key>\n\t\t\t<string>keyauthentication</string>\n\t\t\t<key>id</key>\n\t\t\t<string>hide4</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Use key authentication</string>\n\t\t\t<key>PostNotification</key>\n\t\t\t<string>com.greg0109.forwardnotifierprefs.settingschanged</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t\t<key>footerText</key>\n\t\t\t<string>This will send a test notification to the PC/iOS Device.&#xA;Please, make sure all the settings are correct and that the CC module is enabled before testing.</string>\n\t\t</dict>\n\t\t<dict>\n      <key>action</key>\n      <string>testnotif</string>\n      <key>cell</key>\n      <string>PSButtonCell</string>\n      <key>label</key>\n      <string>Test Notification</string>\n    </dict>\n\t\t<dict>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSGroupCell</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>paypal</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Paypal</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Buy me a coffee</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>openTwitter</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Twitter</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Twitter (@Greg_0109)</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>reddit</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Reddit</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Reddit (u/greg0109)</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>action</key>\n\t\t\t<string>sendEmail</string>\n\t\t\t<key>cell</key>\n\t\t\t<string>PSButtonCell</string>\n\t\t\t<key>icon</key>\n\t\t\t<string>Email</string>\n\t\t\t<key>label</key>\n\t\t\t<string>Email</string>\n\t\t</dict>\n\t</array>\n\t<key>title</key>\n\t<string>ForwardNotifier</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "forwardnotifier/entry.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>entry</key>\n\t<dict>\n\t\t<key>bundle</key>\n\t\t<string>ForwardNotifier</string>\n\t\t<key>cell</key>\n\t\t<string>PSLinkCell</string>\n\t\t<key>detail</key>\n\t\t<string>FNPRootListController</string>\n\t\t<key>icon</key>\n\t\t<string>icon.png</string>\n\t\t<key>isController</key>\n\t\t<true/>\n\t\t<key>label</key>\n\t\t<string>ForwardNotifier</string>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "forwardnotifiercc/ForwardNotifierCC.h",
    "content": "#import <ControlCenterUIKit/CCUIToggleModule.h>\n\n@interface ForwardNotifierCC : CCUIToggleModule {\n  BOOL _selected;\n}\n\n@end\n"
  },
  {
    "path": "forwardnotifiercc/ForwardNotifierCC.m",
    "content": "#import \"ForwardNotifierCC.h\"\n\n@implementation ForwardNotifierCC\n\n//Return the icon of your module here\n- (UIImage *)iconGlyph {\n\treturn [UIImage imageNamed:@\"Icon\" inBundle:[NSBundle bundleForClass:[self class]] compatibleWithTraitCollection:nil];\n}\n\n//Return the color selection color of your module here\n- (UIColor *)selectedColor {\n\treturn [UIColor blackColor];\n}\n\n- (BOOL)isSelected {\n  if ([[[NSUserDefaults standardUserDefaults] stringForKey:@\"ForwardNotifier-Status\"] isEqual:@\"1\"]) {\n    return TRUE;\n  } else {\n    return FALSE;\n  }\n}\n\n- (void)setSelected:(BOOL)selected {\n\t_selected = selected;\n  [super refreshState];\n  if(_selected) {\n    [[NSUserDefaults standardUserDefaults] setBool:TRUE forKey:@\"ForwardNotifier-Status\"];\n  } else {\n    [[NSUserDefaults standardUserDefaults] setBool:FALSE forKey:@\"ForwardNotifier-Status\"];\n  }\n}\n\n@end\n"
  },
  {
    "path": "forwardnotifiercc/Makefile",
    "content": "ARCHS = arm64 arm64e\nGO_EASY_ON_ME = 1\n\ninclude $(THEOS)/makefiles/common.mk\n\nBUNDLE_NAME = ForwardNotifierCC\nForwardNotifierCC_BUNDLE_EXTENSION = bundle\nForwardNotifierCC_FILES = ForwardNotifierCC.m\nForwardNotifierCC_PRIVATE_FRAMEWORKS = ControlCenterUIKit\nForwardNotifierCC_INSTALL_PATH = /Library/ControlCenter/Bundles/\n\nafter-install::\n\tinstall.exec \"killall -9 SpringBoard\"\n\ninclude $(THEOS_MAKE_PATH)/bundle.mk\n"
  },
  {
    "path": "forwardnotifiercc/Resources/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleName</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleExecutable</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>com.greg0109.forwardnotifiercc</string>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>English</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundlePackageType</key>\n\t<string>BNDL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>MinimumOSVersion</key>\n\t<string>7.0</string>\n\t<key>UIDeviceFamily</key>\n\t<array>\n\t\t<integer>1</integer>\n\t\t<integer>2</integer>\n\t</array>\n\t<key>NSPrincipalClass</key>\n\t<string>ForwardNotifierCC</string>\n\t<key>CFBundleSupportedPlatforms</key>\n\t<array>\n\t\t<string>iPhoneOS</string>\n\t</array>\n\t<key>CCSGetModuleSizeAtRuntime</key>\n\t<false/>\n\t<key>CCSModuleSize</key>\n\t<dict>\n\t\t<key>Portrait</key>\n\t\t<dict>\n\t\t\t<key>Height</key>\n\t\t\t<integer>1</integer>\n\t\t\t<key>Width</key>\n\t\t\t<integer>1</integer>\n\t\t</dict>\n\t\t<key>Landscape</key>\n\t\t<dict>\n\t\t\t<key>Height</key>\n\t\t\t<integer>1</integer>\n\t\t\t<key>Width</key>\n\t\t\t<integer>1</integer>\n\t\t</dict>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "forwardnotifiercc/control",
    "content": "Package: com.greg0109.forwardnotifiercc\nName: ForwardNotifierCC\nDepends: mobilesubstrate\nVersion: 1.0\nArchitecture: iphoneos-arm\nDescription: CC Module for ForwardNotifier!\nMaintainer: Greg0109\nAuthor: Greg0109\nSection: Control Center (Modules)\n"
  },
  {
    "path": "forwardnotifierreceiver/Makefile",
    "content": "ARCHS = arm64 arm64e\nGO_EASY_ON_ME = 1\n\ninclude $(THEOS)/makefiles/common.mk\n\nTOOL_NAME = ForwardNotifierReceiver\n\nForwardNotifierReceiver_FILES = main.m\nForwardNotifierReceiver_CFLAGS = -fobjc-arc\n\ninclude $(THEOS_MAKE_PATH)/tool.mk\n"
  },
  {
    "path": "forwardnotifierreceiver/main.m",
    "content": "#include <stdio.h>\n#import <Foundation/Foundation.h>\n\n@interface NSDistributedNotificationCenter : NSNotificationCenter\n+ (instancetype)defaultCenter;\n- (void)postNotificationName:(NSString *)name object:(NSString *)object userInfo:(NSDictionary *)userInfo;\n@end\n\n\nint main(int argc, char **argv, char **envp) {\n\tNSString *title = [NSString stringWithUTF8String:argv[1]];\n\tNSString *message = [NSString stringWithUTF8String:argv[2]];\n\tif ([title isEqualToString:@\"ActivateForwardNotifier\"]) {\n\t\tif ([message isEqualToString:@\"true\"]) {\n\t\t\tprintf(\"ForwardNotifier Activated!\");\n\t\t} else if ([message isEqualToString:@\"false\"]) {\n\t\t\tprintf(\"ForwardNotifier Deactivated!\");\n\t\t}\n\t}\n\t[[NSDistributedNotificationCenter defaultCenter] postNotificationName:@\"com.greg0109.forwardnotifierreceiver/notification\" object:nil userInfo:@{@\"title\" : title, @\"message\" : message}];\n\treturn 0;\n}\n"
  }
]