Skip to content

Commit

Permalink
"Objc" rewrite to remove Orion
Browse files Browse the repository at this point in the history
  • Loading branch information
NoWisDev committed Apr 13, 2024
1 parent 476444d commit b786d81
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 799 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
name: Makefile CI

on: workflow_dispatch
#on: workflow_dispatch
on: push

jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@main

- name: Fetch Theos's latest commit
- name: Fetch Orion's latest commit
env:
GH_TOKEN: ${{ github.token }}
run: |
latest_commit=$(gh api -H 'Accept: application/vnd.github.sha' \
/repos/theos/theos/commits/master); echo "latest_commit=$latest_commit" >> $GITHUB_OUTPUT
/repos/theos/orion/commits/master); echo "latest_commit=$latest_commit" >> $GITHUB_OUTPUT
id: commit

- uses: actions/cache@v4
Expand Down
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/

.theos
/packages
.theos/
packages/
.DS_Store
Binary file removed Instakill+Orion.dylib.zip
Binary file not shown.
Binary file removed Instakill.dylib
Binary file not shown.
2 changes: 1 addition & 1 deletion Instakill.plist
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ Filter = { Bundles = ( "net.whatsapp.WhatsApp" ); }; }
{ Filter = { Bundles = ( "com.apple.MobileSMS" ); }; }
674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
TARGET := iphone:clang:15.6:15.6


include $(THEOS)/makefiles/common.mk

TWEAK_NAME = Instakill

Instakill_FILES = $(shell find Sources/Instakill -name '*.swift') $(shell find Sources/InstakillC -name '*.m' -o -name '*.c' -o -name '*.mm' -o -name '*.cpp')
Instakill_SWIFTFLAGS = -ISources/InstakillC/include
Instakill_CFLAGS = -fobjc-arc -ISources/InstakillC/include
Instakill_FILES = Tweak.m Tweak.swift
Instakill_CFLAGS = -fobjc-arc

include $(THEOS_MAKE_PATH)/tweak.mk
Binary file removed Orion.framework/Info.plist
Binary file not shown.
Binary file removed Orion.framework/Orion
Binary file not shown.
88 changes: 0 additions & 88 deletions Package.swift

This file was deleted.

4 changes: 0 additions & 4 deletions README.md

This file was deleted.

7 changes: 0 additions & 7 deletions Sources/InstakillC/Tweak.m

This file was deleted.

Empty file removed Sources/InstakillC/include/Tweak.h
Empty file.
4 changes: 0 additions & 4 deletions Sources/InstakillC/include/module.modulemap

This file was deleted.

6 changes: 6 additions & 0 deletions Tweak.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#import "Instakill-Swift.h"

__attribute__((constructor)) static void init(void) {
Instakill *instaKill = [Instakill new];
[instaKill arm];
}
6 changes: 2 additions & 4 deletions Sources/Instakill/Tweak.x.swift → Tweak.swift
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import Orion
import InstakillC
import UIKit
import Combine

var cancellables = Set<AnyCancellable>()
final class Instakill: Tweak {
init() {
@objc public class Instakill: NSObject, ObservableObject {
@objc public func arm() {
NotificationCenter.default.publisher(for: UIApplication.didEnterBackgroundNotification, object: nil)
.sink { notification in
exit(0)
Expand Down
4 changes: 2 additions & 2 deletions control
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Package: com.now.instakill
Name: Instakill
Version: 0.0.1
Architecture: iphoneos-arm
Description: An awesome Orion tweak!
Description: An awesome MobileSubstrate tweak!
Maintainer: NoW
Author: NoW
Section: Tweaks
Depends: ${ORION}, firmware (>= 12.2)
Depends: mobilesubstrate (>= 0.9.5000)

0 comments on commit b786d81

Please sign in to comment.