Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
alexruperez committed Nov 24, 2014
0 parents commit 3ece0a7
Show file tree
Hide file tree
Showing 111 changed files with 13,002 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .gitignore
@@ -0,0 +1,32 @@
# OS X
.DS_Store

# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa

# Bundler
.bundle

# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Note: if you ignore the Pods directory, make sure to uncomment
# `pod install` in .travis.yml
#
# Pods/
9 changes: 9 additions & 0 deletions .travis.yml
@@ -0,0 +1,9 @@
# reference: http://www.objc.io/issue-6/travis-ci.html

language: objective-c
# before_install: cd Example && pod install && cd -
before_install:
- brew update
- if brew outdated | grep -qx xctool; then brew upgrade xctool; fi
script:
- xctool test -workspace Example/ARHomeScreenShortcuts.xcworkspace -scheme ARHomeScreenShortcuts -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO
24 changes: 24 additions & 0 deletions ARHomeScreenShortcuts.podspec
@@ -0,0 +1,24 @@
Pod::Spec.new do |s|
s.name = "ARHomeScreenShortcuts"
s.version = "0.1.0"
s.summary = "Installs home screen shortcuts to features of your app."
s.description = <<-DESC
ARHomeScreenShortcuts installs home screen shortcuts to features of your app like [OneTap](https://itunes.apple.com/us/app/onetap/id502840938) or [Facebook Groups](https://itunes.apple.com/us/app/facebook-groups/id931735837).
DESC
s.homepage = "https://github.com/alexruperez/ARHomeScreenShortcuts"
# s.screenshots = "https://raw.githubusercontent.com/alexruperez/ARHomeScreenShortcuts/master/screenshot.png"
s.license = 'MIT'
s.author = { "alexruperez" => "contact@alexruperez.com" }
s.source = { :git => "https://github.com/alexruperez/ARHomeScreenShortcuts.git", :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/alexruperez'

s.platform = :ios, '7.0'
s.requires_arc = true

s.source_files = 'Pod/Classes'
s.resource_bundles = {
'ARHomeScreenShortcuts' => ['Pod/Assets/*.png', 'Pod/Assets/*.html']
}

s.dependency 'GCDWebServer', '~> 3.2'
end
591 changes: 591 additions & 0 deletions Example/ARHomeScreenShortcuts.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

@@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0600"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ARHomeScreenShortcuts.app"
BlueprintName = "ARHomeScreenShortcuts"
ReferencedContainer = "container:ARHomeScreenShortcuts.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F5AD195388D20070C39A"
BuildableName = "Tests.xctest"
BlueprintName = "Tests"
ReferencedContainer = "container:ARHomeScreenShortcuts.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ARHomeScreenShortcuts.app"
BlueprintName = "ARHomeScreenShortcuts"
ReferencedContainer = "container:ARHomeScreenShortcuts.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ARHomeScreenShortcuts.app"
BlueprintName = "ARHomeScreenShortcuts"
ReferencedContainer = "container:ARHomeScreenShortcuts.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "6003F589195388D20070C39A"
BuildableName = "ARHomeScreenShortcuts.app"
BlueprintName = "ARHomeScreenShortcuts"
ReferencedContainer = "container:ARHomeScreenShortcuts.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
10 changes: 10 additions & 0 deletions Example/ARHomeScreenShortcuts.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions Example/ARHomeScreenShortcuts/ARAppDelegate.h
@@ -0,0 +1,15 @@
//
// ARAppDelegate.h
// ARHomeScreenShortcuts
//
// Created by alexruperez on 11/19/2014.
// Copyright (c) 2014 alexruperez. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ARAppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end
52 changes: 52 additions & 0 deletions Example/ARHomeScreenShortcuts/ARAppDelegate.m
@@ -0,0 +1,52 @@
//
// ARAppDelegate.m
// ARHomeScreenShortcuts
//
// Created by alexruperez on 11/19/2014.
// Copyright (c) 2014 alexruperez. All rights reserved.
//

#import "ARAppDelegate.h"

@implementation ARAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
return YES;
}

- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
{
[[NSNotificationCenter defaultCenter] postNotificationName:@"openURL" object:url];

return YES;
}

- (void)applicationWillResignActive:(UIApplication *)application
{
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

- (void)applicationDidEnterBackground:(UIApplication *)application
{
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

@end
62 changes: 62 additions & 0 deletions Example/ARHomeScreenShortcuts/ARHomeScreenShortcuts-Info.plist
@@ -0,0 +1,62 @@
<?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>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>ARShortcuts</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.alexruperez.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLName</key>
<string>com.alexruperez.ARHomeScreenShortcuts</string>
<key>CFBundleURLSchemes</key>
<array>
<string>arshortcuts</string>
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIMainStoryboardFile~ipad</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
16 changes: 16 additions & 0 deletions Example/ARHomeScreenShortcuts/ARHomeScreenShortcuts-Prefix.pch
@@ -0,0 +1,16 @@
//
// Prefix header
//
// The contents of this file are implicitly included at the beginning of every source file.
//

#import <Availability.h>

#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif

#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif
36 changes: 36 additions & 0 deletions Example/ARHomeScreenShortcuts/ARHomeScreenShortcuts.html
@@ -0,0 +1,36 @@
<!DOCTYPE HTML>
<html>

<head>
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="apple-mobile-web-app-capable" content="no" />
<title><ARHSS_HEAD_TITLE></title>
<link rel="apple-touch-icon-precomposed" href="data:image/png;base64,<ARHSS_B64_ICON>" />
</head>

<body>
<a id="redirect" href="<ARHSS_FULL_SCHEME>"></a>
<REPLACEMENT_EXAMPLE>
</body>

</html>

<script type="text/javascript">
function jump() {
var e = document.getElementById('redirect');
var ev = document.createEvent('MouseEvents');
ev.initEvent('click', true, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
e.dispatchEvent(ev);
window.close();
}
if (("standalone" in window.navigator) && window.navigator.standalone) {
jump();
} else {
var time = <ARHSS_TIME_INTERVAL>;
var timeout = new Date().getTime() / 1000;
if (timeout > time + 8) {
jump();
}
}
</script>
14 changes: 14 additions & 0 deletions Example/ARHomeScreenShortcuts/ARViewController.h
@@ -0,0 +1,14 @@
//
// ARViewController.h
// ARHomeScreenShortcuts
//
// Created by alexruperez on 11/19/2014.
// Copyright (c) 2014 alexruperez. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBookUI/AddressBookUI.h>

@interface ARViewController : ABPeoplePickerNavigationController

@end

0 comments on commit 3ece0a7

Please sign in to comment.