Skip to content
Browse files

Add Activator.app

  • Loading branch information...
1 parent aa0843c commit 2101deeb49e5f6302a710604dc3e599bf5b60969 @rpetrich committed Jul 17, 2011
View
34 Activator.m
@@ -0,0 +1,34 @@
+#import <UIKit/UIKit.h>
+#import "libactivator.h"
+
+int main(int argc, char *argv[])
+{
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+ int retVal = UIApplicationMain(argc, argv, nil, @"ActivatorApplicationDelegate");
+ [pool release];
+ return retVal;
+}
+
+@interface ActivatorApplicationDelegate : NSObject <UIApplicationDelegate> {
+@private
+ UIWindow *window;
+ UINavigationController *navigationController;
+ UIViewController *viewController;
+}
+@end
+
+@implementation ActivatorApplicationDelegate
+
+- (void)applicationDidFinishLaunching:(UIApplication *)application
+{
+ viewController = [[LARootSettingsController alloc] init];
+ navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
+ window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
+ if ([window respondsToSelector:@selector(setRootViewController:)])
+ [window setRootViewController:navigationController];
+ else
+ [window addSubview:navigationController.view];
+ [window makeKeyAndVisible];
+}
+
+@end
View
5 LASettingsViewController.m
@@ -76,5 +76,10 @@ - (void)purgeMemoryForReason:(int)reason
// Do Nothing
}
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
+{
+ return (interfaceOrientation == UIInterfaceOrientationPortrait)
+ || ([UIDevice instancesRespondToSelector:@selector(userInterfaceIdiom)] && ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad));
+}
@end
View
10 Makefile
@@ -6,18 +6,23 @@ else
# libactivator.dylib (/usr/lib)
LIBRARY_NAME = libactivator
-libactivator_OBJC_FILES = Events.m LAEvent.m LAApplicationListener.m LASimpleListener.m LARemoteListener.m LAListener.m ListenerSettingsViewController.m libactivator.m LAToggleListener.m LASettingsViewController.m ActivatorEventViewHeader.m LAWebSettingsController.m LARootSettingsController.m LAModeSettingsController.m LAEventSettingsController.m LAEventGroupSettingsController.m LAEventDataSource.m LADefaultEventDataSource.m LASpringBoardActivator.m LAListenerTableViewDataSource.m LAMenuListener.m LAMenuSettingsController.m LAMenuItemsController.m LAMenuListenerSelectionController.m
+libactivator_FILES = Events.m LAEvent.m LAApplicationListener.m LASimpleListener.m LARemoteListener.m LAListener.m ListenerSettingsViewController.m libactivator.m LAToggleListener.m LASettingsViewController.m ActivatorEventViewHeader.m LAWebSettingsController.m LARootSettingsController.m LAModeSettingsController.m LAEventSettingsController.m LAEventGroupSettingsController.m LAEventDataSource.m LADefaultEventDataSource.m LASpringBoardActivator.m LAListenerTableViewDataSource.m LAMenuListener.m LAMenuSettingsController.m LAMenuItemsController.m LAMenuListenerSelectionController.m
libactivator_FRAMEWORKS = UIKit CoreGraphics QuartzCore
libactivator_PRIVATE_FRAMEWORKS = AppSupport GraphicsServices
# LibActivator.bundle (/System/Library/PreferenceBundles)
BUNDLE_NAME = LibActivator
-LibActivator_OBJC_FILES = Preferences.m ActivatorAdController.m
+LibActivator_FILES = Preferences.m ActivatorAdController.m
LibActivator_INSTALL_PATH = /System/Library/PreferenceBundles
LibActivator_FRAMEWORKS = UIKit CoreGraphics QuartzCore
LibActivator_PRIVATE_FRAMEWORKS = Preferences
LibActivator_LDFLAGS = -L$(FW_OBJ_DIR) -lactivator
+# Activator.app (/Applications)
+APPLICATION_NAME = Activator
+Activator_FILES = Activator.m
+Activator_LDFLAGS = -L$(FW_OBJ_DIR) -lactivator
+
ADDITIONAL_CFLAGS = -std=c99
OPTFLAG = -Os
TARGET_IPHONEOS_DEPLOYMENT_VERSION = 3.0
@@ -38,6 +43,7 @@ TARGET_IPHONEOS_DEPLOYMENT_VERSION := 3.0
include framework/makefiles/common.mk
include framework/makefiles/library.mk
include framework/makefiles/bundle.mk
+include framework/makefiles/application.mk
include Localization/makefiles/common.mk
internal-stage::
View
BIN layout/Applications/Activator.app/Default-Landscape.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN layout/Applications/Activator.app/Default-Portrait.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1 layout/Applications/Activator.app/Default.png
View
1 layout/Applications/Activator.app/Default@2x.png
View
32 layout/Applications/Activator.app/Info.plist
@@ -0,0 +1,32 @@
+{
+ CFBundleExecutable = Activator;
+ CFBundleIconFile = "Icon.png";
+ CFBundleIconFiles = (
+ "iPadAppIcon.png",
+ "icon.png",
+ "icon@2x.png",
+ );
+ CFBundleIdentifier = "libactivator";
+ "CFBundleInfoDictionaryVersion" = "6.0";
+ CFBundlePackageType = APPL;
+ CFBundleSignature = "????";
+ "CFBundleSupportedPlatforms" = (
+ iPhoneOS,
+ );
+ CFBundleVersion = "1.0";
+ DTPlatformName = iphoneos;
+ DTSDKName = "iphoneos3.0";
+ LSRequiresIPhoneOS = YES;
+ MinimumOSVersion = "3.0";
+ UIStatusBarStyle = UIStatusBarStyleDefault;
+ UIDeviceFamily = (
+ 1,
+ 2
+ );
+ "UISupportedInterfaceOrientations~ipad" = (
+ UIInterfaceOrientationPortrait,
+ UIInterfaceOrientationPortraitUpsideDown,
+ UIInterfaceOrientationLandscapeLeft,
+ UIInterfaceOrientationLandscapeRight
+ );
+}
View
BIN layout/Applications/Activator.app/iPadAppIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN layout/Applications/Activator.app/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN layout/Applications/Activator.app/icon@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2101dee

Please sign in to comment.
Something went wrong with that request. Please try again.