commit 5021a86256f0cc0fbf498caa5f8579eaa4f7caa1 Author: Jamie Berghmans Date: Sat Dec 28 04:08:10 2019 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f5f6458 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.DS_Store +.theos +packages \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..26287db --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +INSTALL_TARGET_PROCESSES = SpringBoard + +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME = NoCShare + +NoCShare_FILES = Tweak.x +NoCShare_CFLAGS = -fobjc-arc + +include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/NoCShare.plist b/NoCShare.plist new file mode 100644 index 0000000..e5c60ee --- /dev/null +++ b/NoCShare.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.UIKit" ); }; } diff --git a/Tweak.x b/Tweak.x new file mode 100644 index 0000000..8d709aa --- /dev/null +++ b/Tweak.x @@ -0,0 +1,15 @@ +@interface UIActivityContentViewController +- (void) viewDidLoad; +@property NSArray * airDropSlots; +- (void) setAirDropSlots:(NSArray*)arg1; +@end + +%hook UIActivityContentViewController +- (void) viewDidLoad { + self.airDropSlots = [NSMutableArray new]; +} + +- (void) setAirDropSlots:(NSArray*)arg1 { + //Do nothing +} +%end \ No newline at end of file diff --git a/control b/control new file mode 100644 index 0000000..323dc89 --- /dev/null +++ b/control @@ -0,0 +1,9 @@ +Package: com.devvix.nocshare +Name: NoCShare +Depends: mobilesubstrate +Version: 1.0.0 +Architecture: iphoneos-arm +Description: Remove annoying airdrop and contacts from share menu. +Maintainer: Devvix +Author: Devvix +Section: Tweaks