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

Added Licorize Service #128

Open
wants to merge 51 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
dd1e629
initial commit
ideashower Jul 6, 2010
812fe20
Revising README for clarity
ideashower Jul 8, 2010
d37fe7b
README typo
ideashower Jul 8, 2010
cbeff26
Modified SHKRequest to interpret a 201 HTTP status code (Created) as …
Jul 9, 2010
9c60e46
Added Instapaper sharer
Jul 9, 2010
1513111
Merge branch 'master' of github.com:ideashower/ShareKit
ideashower Jul 9, 2010
69bbcaa
Cleaned up SHKInstapaper, Modified SHKSharer to support services with…
ideashower Jul 9, 2010
5a8c40d
created tumblr sharer
Jul 10, 2010
fc9d54e
reverting changes from SHKConfig made by fork
ideashower Jul 12, 2010
dcb84c3
removing user pbx files from example project
ideashower Jul 12, 2010
6f1ca7b
New Configuration Options:
ideashower Jul 12, 2010
b7baddd
last minute cleanups before releasing 0.1.5
ideashower Jul 12, 2010
3b18089
- Fixed logout on device
ideashower Jul 13, 2010
1a6b59c
fixed test case in example project
ideashower Jul 13, 2010
5a66c85
Cleanup
ideashower Jul 13, 2010
38bc1f8
full localization support for ShareKit. Added german.
steipete Jul 19, 2010
2f9da86
completed german localization
steipete Jul 19, 2010
a8785b8
add localization for twitter
steipete Jul 19, 2010
560f60e
BUGFIX: filter out sharers that can't share, thus create no button bu…
steipete Jul 26, 2010
8081db8
fix: add single sharer, not class
steipete Jul 26, 2010
3a6a746
New:
ideashower Jul 27, 2010
692b98a
Version 0.2.0
ideashower Jul 27, 2010
bb42f4c
Add on/off for alphabetical ordering items in ShareMenu
Aug 14, 2010
0af9e32
Fix crash due to asking for session for AutoShare when the Sharer is …
Aug 17, 2010
f83bbca
Username/password texfield should not have autocorrection and autocap…
Aug 17, 2010
07bab21
fix: UIImageJPEGRepresentation specification takes in compression rat…
Aug 18, 2010
0f878ea
add localization for example document
steipete Aug 16, 2010
e505e4d
fixed localization in ShareKit example code
steipete Aug 16, 2010
8fd4ecc
SHKTwitter : added img.ly image sharing for
Aug 24, 2010
779093f
fixing crash caused by malformed error message formatting in case of …
adamawolf Aug 6, 2010
b9fb96a
Fix OAMutableURLRequest bugs with parameters
Aug 24, 2010
dd09d50
Fix UIImageJPEGRepresentation only takes in compression ratio from 0.…
Aug 25, 2010
1e55db2
BUGFIX: in facebook if you login->logout->log back in, the post windo…
adamawolf Aug 16, 2010
1b407d8
Added session proxy support for Facebook Connect.
Aug 3, 2010
f084a13
Modified Facebook logout code to work with session proxying.
Aug 3, 2010
4ffde13
Better Error handling for image upload
Aug 24, 2010
83d0c56
Fix bug on image upload url checking
Aug 25, 2010
cf3bdfb
- New: Option to disable 'shared with …' email signature
ideashower Aug 26, 2010
095b2c9
cleanup
ideashower Aug 26, 2010
a41fde8
- Fixed: Offline sharing of images and files
ideashower Aug 26, 2010
bc26043
Missed SHKSwizzle header update
ideashower Aug 27, 2010
7f35b4e
Reverted objc-class import line
ideashower Aug 30, 2010
37a4015
Add Licorize Service
pippolino Nov 14, 2010
18eb324
Add Licorize Service configuration
pippolino Nov 14, 2010
cc2a1e1
Fix configuration instructions
Nov 15, 2010
3a7a558
Fix OAuth urls
Nov 15, 2010
e0e2e9b
Indentetion
Nov 15, 2010
d8976cd
Indentetion
Nov 15, 2010
a966343
Remove debug output
pippolino Nov 15, 2010
b89d911
Add multiple type strip
pippolino Nov 15, 2010
1b61754
Change Text
pippolino Nov 18, 2010
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.pbxuser
*.perspectivev3
*.mode1v3
build
38 changes: 38 additions & 0 deletions Classes/Example/ExampleShareFile.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// ExampleShareFile.h
// ShareKit
//
// Created by Nathan Weiner on 6/29/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import <Foundation/Foundation.h>


@interface ExampleShareFile : UIViewController <UIWebViewDelegate>
{
UIWebView *webView;
}

@property (nonatomic, retain) UIWebView *webView;

@end
83 changes: 83 additions & 0 deletions Classes/Example/ExampleShareFile.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
//
// ExampleShareFile.m
// ShareKit
//
// Created by Nathan Weiner on 6/29/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import "ExampleShareFile.h"
#import "SHK.h"
#import "SHKActionSheet.h"

@implementation ExampleShareFile

@synthesize webView;

- (void)dealloc
{
[webView release];
[super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
{
self.toolbarItems = [NSArray arrayWithObjects:
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share)] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
nil
];
}

return self;
}

- (void)loadView
{
self.webView = [[UIWebView alloc] initWithFrame:CGRectZero];
webView.delegate = self;
webView.scalesPageToFit = YES;
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"example.pdf"]]]];

self.view = webView;
[webView release];
}

- (void)share
{
NSString *filePath = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"example.pdf"];
NSData *file = [NSData dataWithContentsOfFile:filePath];

SHKItem *item = [SHKItem file:file filename:@"Awesome.pdf" mimeType:@"application/pdf" title:@"My Awesome PDF"];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[actionSheet showFromToolbar:self.navigationController.toolbar];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}

@end
38 changes: 38 additions & 0 deletions Classes/Example/ExampleShareImage.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// ExampleShareImage.h
// ShareKit
//
// Created by Nathan Weiner on 6/18/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import <UIKit/UIKit.h>


@interface ExampleShareImage : UIViewController
{
UIImageView *imageView;
}

@property (nonatomic, retain) UIImageView *imageView;

@end
83 changes: 83 additions & 0 deletions Classes/Example/ExampleShareImage.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
//
// ExampleShareImage.m
// ShareKit
//
// Created by Nathan Weiner on 6/18/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import "ExampleShareImage.h"
#import "SHKItem.h"
#import "SHKActionSheet.h"

@implementation ExampleShareImage

@synthesize imageView;

- (void)dealloc
{
[imageView release];
[super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
{
self.toolbarItems = [NSArray arrayWithObjects:
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share)] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
nil
];
}

return self;
}

- (void)loadView
{
[super loadView];

self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"sanFran.jpg"]];

imageView.frame = CGRectMake(0,0,self.view.bounds.size.width,self.view.bounds.size.height);

[self.view addSubview:imageView];

[imageView release];
}

- (void)share
{
SHKItem *item = [SHKItem image:imageView.image title:@"San Francisco"];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];

[actionSheet showFromToolbar:self.navigationController.toolbar];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}

@end
38 changes: 38 additions & 0 deletions Classes/Example/ExampleShareLink.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
//
// ExampleShareLink.h
// ShareKit
//
// Created by Nathan Weiner on 6/17/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import <UIKit/UIKit.h>


@interface ExampleShareLink : UIViewController <UIWebViewDelegate>
{
UIWebView *webView;
}

@property (nonatomic, retain) UIWebView *webView;

@end
79 changes: 79 additions & 0 deletions Classes/Example/ExampleShareLink.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
//
// ExampleShareLink.m
// ShareKit
//
// Created by Nathan Weiner on 6/17/10.

//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
//

#import "ExampleShareLink.h"
#import "SHK.h"

@implementation ExampleShareLink

@synthesize webView;

- (void)dealloc
{
[webView release];
[super dealloc];
}

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])
{
self.toolbarItems = [NSArray arrayWithObjects:
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(share)] autorelease],
[[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease],
nil
];
}

return self;
}

- (void)share
{
SHKItem *item = [SHKItem URL:webView.request.URL title:[webView pageTitle]];
SHKActionSheet *actionSheet = [SHKActionSheet actionSheetForItem:item];
[actionSheet showFromToolbar:self.navigationController.toolbar];
}

- (void)loadView
{
self.webView = [[UIWebView alloc] initWithFrame:CGRectZero];
webView.delegate = self;
webView.scalesPageToFit = YES;
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://apple.com"]]];

self.view = webView;
[webView release];
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}

@end
Loading