Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alexruperez committed Feb 1, 2016
1 parent 9532d7d commit 050c9ea
Show file tree
Hide file tree
Showing 119 changed files with 19,207 additions and 201 deletions.
28 changes: 16 additions & 12 deletions ARWebServerActivity.podspec
@@ -1,13 +1,17 @@
Pod::Spec.new do |spec|
spec.name = 'ARWebServerActivity'
spec.version = '0.0.1'
spec.license = 'MIT'
spec.summary = 'A UIActivity subclass that share files via GCDWebServer with Twitter Bootstrap UI.'
spec.homepage = 'https://github.com/alexruperez/ARWebServerActivity'
spec.author = 'Alex Ruperez'
spec.platform = :ios, '6.0'
spec.source = { :git => 'https://github.com/alexruperez/ARWebServerActivity.git', :tag => 'v0.0.1' }
spec.source_files = 'ARWebServerActivity/*.{h,m}'
spec.resources = 'ARWebServerActivity/ARWebServerActivity.bundle'
spec.requires_arc = true
Pod::Spec.new do |s|
s.name = 'ARWebServerActivity'
s.version = '1.0.1'
s.license = 'MIT'
s.summary = 'A UIActivity subclass that share files via GCDWebServer with Twitter Bootstrap UI.'
s.homepage = 'https://github.com/alexruperez/ARWebServerActivity'
s.screenshots = "https://raw.githubusercontent.com/alexruperez/ARWebServerActivity/master/screenshot.png"
s.author = { "Alex Rupérez" => "contact@alexruperez.com" }
s.social_media_url = "http://twitter.com/alexruperez"
s.platform = :ios, '6.0'
s.source = { :git => 'https://github.com/alexruperez/ARWebServerActivity.git', :tag => s.version.to_s }
s.source_files = 'ARWebServerActivity/*.{h,m,swift}'
s.resources = 'ARWebServerActivity/ARWebServerActivity.bundle'
s.requires_arc = true
s.frameworks = "UIKit", "CoreGraphics"
s.dependency 'GCDWebServer/WebUploader', '~> 3.3'
end
2 changes: 1 addition & 1 deletion ARWebServerActivity/ARWebServerActivity.h
Expand Up @@ -8,7 +8,7 @@

#import <UIKit/UIKit.h>

#import "GCDWebUploader.h"
#import <GCDWebServer/GCDWebUploader.h>

@interface ARWebServerActivity : UIActivity

Expand Down
4 changes: 2 additions & 2 deletions ARWebServerActivity/ARWebServerActivity.m
Expand Up @@ -77,7 +77,7 @@ - (BOOL)start
[options setObject:self.bonjourName forKey:GCDWebServerOption_BonjourName];
}

return [self.webUploader startWithOptions:options];
return [self.webUploader startWithOptions:options error:nil];
}

- (void)stop
Expand Down Expand Up @@ -113,7 +113,7 @@ - (UIImage *)activityImage
filename = [filename stringByAppendingString:@"-iOS6"];
}

return [UIImage imageNamed:filename];
return [UIImage imageNamed:filename inBundle:[NSBundle bundleForClass:self.class] compatibleWithTraitCollection:nil];
}

- (NSString *)activityTitle
Expand Down
246 changes: 73 additions & 173 deletions ARWebServerActivityExample.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0510"
LastUpgradeVersion = "0720"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -23,10 +23,10 @@
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -48,17 +48,21 @@
ReferencedContainer = "container:ARWebServerActivityExample.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D53CE7A21901811D000B96C4"
Expand All @@ -71,12 +75,13 @@
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "D53CE7A21901811D000B96C4"
Expand Down
Expand Up @@ -4,7 +4,7 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>ARWebServerActivityExample.xcscheme</key>
<key>ARWebServerActivityExample.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
Expand Down
11 changes: 9 additions & 2 deletions ARWebServerActivityExample/ARViewController.m
Expand Up @@ -7,7 +7,7 @@
//

#import "ARViewController.h"
#import "ARWebServerActivity.h"
#import <ARWebServerActivity/ARWebServerActivity.h>

@interface ARViewController ()

Expand All @@ -27,11 +27,18 @@ - (void)viewDidLoad
[self.view addSubview:showActivitiesButton];
}

- (void)showActivities:(id)sender
- (void)showActivities:(UIButton *)button
{
ARWebServerActivity *webServerActivity = [[ARWebServerActivity alloc] init];

UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[@"Hello World!", [UIImage imageNamed:[NSString stringWithFormat:@"%@.bundle/%@", webServerActivity.activityType, webServerActivity.activityType]], [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:[[NSString stringWithFormat:@"%@.bundle/%@", webServerActivity.activityType, webServerActivity.activityType] stringByAppendingString:@"@2x~ipad"] ofType:@"png"]], [NSURL URLWithString:@"http://humanstxt.org/humans.txt"], [@"data" dataUsingEncoding:NSUTF8StringEncoding], @{@"key": @[@"value1", @"value2"]}, @[@"value1", @"value2"]] applicationActivities:@[webServerActivity]];

if ([activityViewController respondsToSelector:NSSelectorFromString(@"popoverPresentationController")])
{
activityViewController.popoverPresentationController.sourceView = button;
activityViewController.popoverPresentationController.sourceRect = button.bounds;
}

[self presentViewController:activityViewController animated:YES completion:nil];
}

Expand Down
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.alexruperez.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down Expand Up @@ -40,5 +40,10 @@
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
</dict>
</plist>
@@ -1,20 +1,50 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "57x57",
"scale" : "1x"
},
{
"idiom" : "iphone",
"size" : "57x57",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "29x29",
Expand All @@ -35,6 +65,26 @@
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "50x50",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "50x50",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "72x72",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "72x72",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
Expand All @@ -44,6 +94,11 @@
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
}
],
"info" : {
Expand Down
6 changes: 6 additions & 0 deletions ARWebServerActivityExample/Images.xcassets/Contents.json
@@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}
@@ -1,5 +1,29 @@
{
"images" : [
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "736h",
"scale" : "3x"
},
{
"orientation" : "landscape",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "736h",
"scale" : "3x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"minimum-system-version" : "8.0",
"subtype" : "667h",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
Expand All @@ -10,9 +34,9 @@
{
"orientation" : "portrait",
"idiom" : "iphone",
"subtype" : "retina4",
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"subtype" : "retina4",
"scale" : "2x"
},
{
Expand Down Expand Up @@ -42,6 +66,73 @@
"extent" : "full-screen",
"minimum-system-version" : "7.0",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "iphone",
"extent" : "full-screen",
"subtype" : "retina4",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "1x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "1x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "2x"
},
{
"orientation" : "portrait",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "to-status-bar",
"scale" : "2x"
},
{
"orientation" : "landscape",
"idiom" : "ipad",
"extent" : "full-screen",
"scale" : "2x"
}
],
"info" : {
Expand Down
3 changes: 3 additions & 0 deletions Podfile
@@ -0,0 +1,3 @@
source 'https://github.com/CocoaPods/Specs.git'

pod "ARWebServerActivity", :path => "./"

0 comments on commit 050c9ea

Please sign in to comment.