# Xcode | |||||
# | |||||
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |||||
## Build generated | |||||
build/ | |||||
DerivedData/ | |||||
## Various settings | |||||
*.pbxuser | |||||
!default.pbxuser | |||||
*.mode1v3 | |||||
!default.mode1v3 | |||||
*.mode2v3 | |||||
!default.mode2v3 | |||||
*.perspectivev3 | |||||
!default.perspectivev3 | |||||
xcuserdata/ | |||||
## Other | |||||
*.moved-aside | |||||
*.xccheckout | |||||
*.xcscmblueprint | |||||
## Obj-C/Swift specific | |||||
*.hmap | |||||
*.ipa | |||||
*.dSYM.zip | |||||
*.dSYM | |||||
# CocoaPods | |||||
# | |||||
# We recommend against adding the Pods directory to your .gitignore. However | |||||
# you should judge for yourself, the pros and cons are mentioned at: | |||||
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control | |||||
# | |||||
# Pods/ | |||||
# Carthage | |||||
# | |||||
# Add this line if you want to avoid checking in source code from Carthage dependencies. | |||||
# Carthage/Checkouts | |||||
Carthage/Build | |||||
# fastlane | |||||
# | |||||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | |||||
# screenshots whenever they are needed. | |||||
# For more information about the recommended setup visit: | |||||
# https://docs.fastlane.tools/best-practices/source-control/#source-control | |||||
fastlane/report.xml | |||||
fastlane/Preview.html | |||||
fastlane/screenshots | |||||
fastlane/test_output | |||||
# Code Injection | |||||
# | |||||
# After new code Injection tools there's a generated folder /iOSInjectionProject | |||||
# https://github.com/johnno1962/injectionforxcode | |||||
iOSInjectionProject/ | |||||
/.theos |
ARCHS = armv7 arm64 | |||||
ARCHS = armv7 arm64 arm64e | |||||
include $(THEOS)/makefiles/common.mk | include $(THEOS)/makefiles/common.mk | ||||
TWEAK_NAME = InstantAssistant | TWEAK_NAME = InstantAssistant |
%hook OPAVoicePlateController | %hook OPAVoicePlateController | ||||
-(OPAVoicePlateController *)init{ | -(OPAVoicePlateController *)init{ | ||||
OPAVoicePlateController *origself = %orig; | OPAVoicePlateController *origself = %orig; | ||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil]; | |||||
[self didTapOnGlifView]; | |||||
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.2 * NSEC_PER_SEC)); | |||||
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ | |||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(didTapOnGlifView) name:UIApplicationDidBecomeActiveNotification object:nil]; | |||||
[self didTapOnGlifView]; | |||||
}); | |||||
return origself; | return origself; | ||||
} | } | ||||
%end | %end |
Package: com.gilshahar7.instantassistant | Package: com.gilshahar7.instantassistant | ||||
Name: InstantAssistant | Name: InstantAssistant | ||||
Depends: mobilesubstrate | Depends: mobilesubstrate | ||||
Version: 1.1 | |||||
Version: 1.3 | |||||
Architecture: iphoneos-arm | Architecture: iphoneos-arm | ||||
Description: Always launches the Google Assistant in "listening mode" | Description: Always launches the Google Assistant in "listening mode" | ||||
Maintainer: gilshahar7 | Maintainer: gilshahar7 |