Skip to content

Commit

Permalink
Cleanup whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
treacher committed May 15, 2016
1 parent 2d6a5db commit 25a5932
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Assets/Extensions/FrispGames/Social/ScreenshotSharer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ public class ScreenshotSharer : MonoBehaviour {
private static readonly ScreenshotSharer _singleton = new ScreenshotSharer ();

private ScreenshotSharer() {}

public static ScreenshotSharer Instance() {
return _singleton;
}
public IEnumerator PostScreenshot(string title, string message) {

public IEnumerator PostScreenshot(string title, string message) {
yield return new WaitForEndOfFrame();
// Create a texture the size of the screen, RGB24 format
int width = Screen.width;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Plugins/iOS/FrispGames/Social/FGSocial.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@interface FGSocial : NSObject
@interface FGSocial : NSObject
- (void) share:(NSString*)text media: (NSString*) media;
@end
8 changes: 4 additions & 4 deletions Assets/Plugins/iOS/FrispGames/Social/FGSocial.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ @implementation FGSocial

- (void) share:(NSString *)text media:(NSString *) media {
UIActivityViewController *socialViewController;

// Create image from image data
NSData *imageData = [[NSData alloc] initWithBase64EncodedString:media options: 0];
UIImage *image = [[UIImage alloc] initWithData:imageData];

socialViewController = [[UIActivityViewController alloc] initWithActivityItems:@[text, image] applicationActivities:nil];

UIViewController *rootViewController = [[[[UIApplication sharedApplication]delegate] window] rootViewController];
if (IPAD) {
CGRect midScreen = CGRectMake(rootViewController.view.frame.size.width/2, rootViewController.view.frame.size.height/4, 0, 0);
Expand All @@ -26,7 +26,7 @@ - (void) share:(NSString *)text media:(NSString *) media {
void _Share(char* text, char* encodedMedia) {
NSString *status = [NSString stringWithUTF8String: text];
NSString *media = [NSString stringWithUTF8String: encodedMedia];

[[[FGSocial alloc] init] share:status media:media];
}
}
Expand Down

0 comments on commit 25a5932

Please sign in to comment.