Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preview Force Touch Shortcut added #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions AppReviewTimes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
TargetAttributes = {
A38211151C8308EA00F14747 = {
CreatedOnToolsVersion = 7.2;
DevelopmentTeam = 9P257W983B;
};
A382112E1C8308EA00F14747 = {
CreatedOnToolsVersion = 7.2;
Expand Down Expand Up @@ -590,27 +591,29 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_IDENTITY = "iPhone Developer: [email protected] (TGK383SZ25)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: [email protected] (TGK383SZ25)";
INFOPLIST_FILE = AppReviewTimes/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = xyz.shubhamsorte.AppReviewTimes;
PRODUCT_BUNDLE_IDENTIFIER = ykl7.darkarmy.appreviewtimes;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "cbfd7ed9-cd62-4419-bb20-5bf2b833d210";
PROVISIONING_PROFILE = "799909fc-af69-474c-97df-f5ef61f9fd42";
};
name = Debug;
};
A38211451C8308EA00F14747 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_IDENTITY = "iPhone Developer: [email protected] (TGK383SZ25)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: [email protected] (TGK383SZ25)";
INFOPLIST_FILE = AppReviewTimes/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = xyz.shubhamsorte.AppReviewTimes;
PRODUCT_BUNDLE_IDENTIFIER = ykl7.darkarmy.appreviewtimes;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "cbfd7ed9-cd62-4419-bb20-5bf2b833d210";
PROVISIONING_PROFILE = "799909fc-af69-474c-97df-f5ef61f9fd42";
};
name = Release;
};
Expand Down Expand Up @@ -665,25 +668,29 @@
A3B587BF1C836FDD00A849BB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = daysToday/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = xyz.shubhamsorte.AppReviewTimes.daysToday;
PRODUCT_BUNDLE_IDENTIFIER = ykl7.darkarmy.appreviewtimes.widget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "cbfd7ed9-cd62-4419-bb20-5bf2b833d210";
PROVISIONING_PROFILE = "";
SKIP_INSTALL = YES;
};
name = Debug;
};
A3B587C01C836FDD00A849BB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = daysToday/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = xyz.shubhamsorte.AppReviewTimes.daysToday;
PRODUCT_BUNDLE_IDENTIFIER = ykl7.darkarmy.appreviewtimes.widget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "cbfd7ed9-cd62-4419-bb20-5bf2b833d210";
PROVISIONING_PROFILE = "";
SKIP_INSTALL = YES;
};
name = Release;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0720"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A382112E1C8308EA00F14747"
BuildableName = "AppReviewTimesTests.xctest"
BlueprintName = "AppReviewTimesTests"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211391C8308EA00F14747"
BuildableName = "AppReviewTimesUITests.xctest"
BlueprintName = "AppReviewTimesUITests"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0720"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A3B587B01C836FDD00A849BB"
BuildableName = "daysToday.appex"
BlueprintName = "daysToday"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A3B587B01C836FDD00A849BB"
BuildableName = "daysToday.appex"
BlueprintName = "daysToday"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "A38211151C8308EA00F14747"
BuildableName = "AppReviewTimes.app"
BlueprintName = "AppReviewTimes"
ReferencedContainer = "container:AppReviewTimes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>AppReviewTimes.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>daysToday.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>A38211151C8308EA00F14747</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>A382112E1C8308EA00F14747</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>A38211391C8308EA00F14747</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>A3B587B01C836FDD00A849BB</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
21 changes: 20 additions & 1 deletion AppReviewTimes/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ @interface AppDelegate ()
@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

// force touch stuff

UIMutableApplicationShortcutItem *shortcutToMain = [[UIMutableApplicationShortcutItem alloc] initWithType:@"com.da.appreviewtimes" localizedTitle:@"Look It Up"];
[application setShortcutItems:@[shortcutToMain]];

return YES;
}

Expand All @@ -42,4 +49,16 @@ - (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

# pragma mark - Handling force touch shortcuts

- (void)application:(UIApplication *)application performActionForShortcutItem:(UIApplicationShortcutItem *)shortcutItem completionHandler:(void (^)(BOOL))completionHandler
{

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];

UIViewController *mainVC = [storyboard instantiateViewControllerWithIdentifier:@"mainVC"];

self.window.rootViewController = mainVC;
}

@end
4 changes: 2 additions & 2 deletions AppReviewTimes/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15A284" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
Expand All @@ -9,7 +9,7 @@
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
<viewController storyboardIdentifier="mainVC" id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
Expand Down