Reorganize sources

This commit is contained in:
Shadowfacts 2018-09-03 17:04:47 -04:00
parent b3f5ba7341
commit ac5de9e273
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
34 changed files with 134 additions and 66 deletions

View File

@ -1,14 +0,0 @@
import UIKit
let regex = try! NSRegularExpression(pattern: ":[a-zA-Z0-9_]+:", options: [])
func stripCustomEmoji(from string: String) -> String {
let range = NSRange(location: 0, length: string.utf16.count)
return regex.stringByReplacingMatches(in: string, options: [], range: range, withTemplate: "")
}
let result = stripCustomEmoji(from: ":sparkles_nb: 🦑 :dizzy_trans:")
stripCustomEmoji(from: ":dizzy_trans:")
stripCustomEmoji(from: " 🦑 :dizzy_trans:")
stripCustomEmoji(from: " :dizzy_trans:")

View File

@ -1,4 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<playground version='5.0' target-platform='ios' executeOnSourceChanges='false'>
<timeline fileName='timeline.xctimeline'/>
</playground>

View File

@ -129,7 +129,6 @@
D663626721360E2C00C9CBA2 /* PreferencesTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesTableViewController.swift; sourceTree = "<group>"; }; D663626721360E2C00C9CBA2 /* PreferencesTableViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesTableViewController.swift; sourceTree = "<group>"; };
D66362692136163000C9CBA2 /* PreferencesAdaptive.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesAdaptive.swift; sourceTree = "<group>"; }; D66362692136163000C9CBA2 /* PreferencesAdaptive.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreferencesAdaptive.swift; sourceTree = "<group>"; };
D663626B21361C6700C9CBA2 /* Account+Preferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Account+Preferences.swift"; sourceTree = "<group>"; }; D663626B21361C6700C9CBA2 /* Account+Preferences.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Account+Preferences.swift"; sourceTree = "<group>"; };
D663626D213629B300C9CBA2 /* MyPlayground.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = MyPlayground.playground; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
D663626E213632A000C9CBA2 /* Compose.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Compose.storyboard; sourceTree = "<group>"; }; D663626E213632A000C9CBA2 /* Compose.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Compose.storyboard; sourceTree = "<group>"; };
D66362702136338600C9CBA2 /* ComposeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComposeViewController.swift; sourceTree = "<group>"; }; D66362702136338600C9CBA2 /* ComposeViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComposeViewController.swift; sourceTree = "<group>"; };
D66362722136FFC600C9CBA2 /* UITextView+Placeholder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITextView+Placeholder.swift"; sourceTree = "<group>"; }; D66362722136FFC600C9CBA2 /* UITextView+Placeholder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UITextView+Placeholder.swift"; sourceTree = "<group>"; };
@ -194,6 +193,135 @@
/* End PBXFrameworksBuildPhase section */ /* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */ /* Begin PBXGroup section */
D641C780213DD7C4004B4513 /* Screens */ = {
isa = PBXGroup;
children = (
D641C782213DD7F0004B4513 /* Main */,
D641C783213DD7FE004B4513 /* Onboarding */,
D641C781213DD7DD004B4513 /* Timeline */,
D641C784213DD819004B4513 /* Profile */,
D641C785213DD83B004B4513 /* Conversation */,
D641C786213DD852004B4513 /* Notifications */,
D641C787213DD862004B4513 /* Compose */,
D641C788213DD86D004B4513 /* Large Image */,
D641C789213DD87E004B4513 /* Preferences */,
);
path = Screens;
sourceTree = "<group>";
};
D641C781213DD7DD004B4513 /* Timeline */ = {
isa = PBXGroup;
children = (
D6F953ED21251A0700CF0F2B /* Timeline.storyboard */,
D6F953EB212519E700CF0F2B /* TimelineTableViewController.swift */,
);
path = Timeline;
sourceTree = "<group>";
};
D641C782213DD7F0004B4513 /* Main */ = {
isa = PBXGroup;
children = (
D6D4DDD3212518A000E1C4BB /* Main.storyboard */,
04DACE8B212CB14B009840C4 /* MainTabBarViewController.swift */,
);
path = Main;
sourceTree = "<group>";
};
D641C783213DD7FE004B4513 /* Onboarding */ = {
isa = PBXGroup;
children = (
D64D0AAE2128D954005A6F37 /* Onboarding.storyboard */,
D64D0AB02128D9AE005A6F37 /* OnboardingViewController.swift */,
);
path = Onboarding;
sourceTree = "<group>";
};
D641C784213DD819004B4513 /* Profile */ = {
isa = PBXGroup;
children = (
D667E5E2213499F70057A976 /* Profile.storyboard */,
D667E5E621349D4C0057A976 /* ProfileTableViewController.swift */,
);
path = Profile;
sourceTree = "<group>";
};
D641C785213DD83B004B4513 /* Conversation */ = {
isa = PBXGroup;
children = (
D667E5F22135BC260057A976 /* Conversation.storyboard */,
D667E5F42135BCD50057A976 /* ConversationViewController.swift */,
);
path = Conversation;
sourceTree = "<group>";
};
D641C786213DD852004B4513 /* Notifications */ = {
isa = PBXGroup;
children = (
D641C770213CA9EC004B4513 /* Notifications.storyboard */,
D641C772213CAA25004B4513 /* NotificationsTableViewController.swift */,
);
path = Notifications;
sourceTree = "<group>";
};
D641C787213DD862004B4513 /* Compose */ = {
isa = PBXGroup;
children = (
D663626E213632A000C9CBA2 /* Compose.storyboard */,
D66362702136338600C9CBA2 /* ComposeViewController.swift */,
);
path = Compose;
sourceTree = "<group>";
};
D641C788213DD86D004B4513 /* Large Image */ = {
isa = PBXGroup;
children = (
D646C954213B364600269FB5 /* Transitions */,
D6C94D862139E62700CB5196 /* LargeImageViewController.swift */,
D6C94D842139DFD800CB5196 /* LargeImage.storyboard */,
);
path = "Large Image";
sourceTree = "<group>";
};
D641C789213DD87E004B4513 /* Preferences */ = {
isa = PBXGroup;
children = (
D663626721360E2C00C9CBA2 /* PreferencesTableViewController.swift */,
D663626521360DD700C9CBA2 /* Preferences.storyboard */,
);
path = Preferences;
sourceTree = "<group>";
};
D641C78A213DD926004B4513 /* Status */ = {
isa = PBXGroup;
children = (
D667E5E02134937B0057A976 /* StatusTableViewCell.xib */,
D6BED173212667E900F02DA0 /* StatusTableViewCell.swift */,
D663625C2135C74800C9CBA2 /* ConversationMainStatusTableViewCell.xib */,
D663625E2135C75500C9CBA2 /* ConversationMainStatusTableViewCell.swift */,
);
path = Status;
sourceTree = "<group>";
};
D641C78B213DD92F004B4513 /* Profile Header */ = {
isa = PBXGroup;
children = (
D667E5E821349EE50057A976 /* ProfileHeaderTableViewCell.xib */,
D667E5EA21349EF80057A976 /* ProfileHeaderTableViewCell.swift */,
);
path = "Profile Header";
sourceTree = "<group>";
};
D641C78C213DD937004B4513 /* Notifications */ = {
isa = PBXGroup;
children = (
D641C778213CAC56004B4513 /* ActionNotificationTableViewCell.xib */,
D641C776213CAA9E004B4513 /* ActionNotificationTableViewCell.swift */,
D641C77A213CB017004B4513 /* FollowNotificationTableViewCell.xib */,
D641C77C213CB024004B4513 /* FollowNotificationTableViewCell.swift */,
);
path = Notifications;
sourceTree = "<group>";
};
D646C954213B364600269FB5 /* Transitions */ = { D646C954213B364600269FB5 /* Transitions */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
@ -233,19 +361,12 @@
children = ( children = (
D64A0CD22132153900640E3B /* HTMLContentLabel.swift */, D64A0CD22132153900640E3B /* HTMLContentLabel.swift */,
D667E5EE2134C39F0057A976 /* StatusContentLabel.swift */, D667E5EE2134C39F0057A976 /* StatusContentLabel.swift */,
D667E5E02134937B0057A976 /* StatusTableViewCell.xib */,
D6BED173212667E900F02DA0 /* StatusTableViewCell.swift */,
D667E5E821349EE50057A976 /* ProfileHeaderTableViewCell.xib */,
D667E5EA21349EF80057A976 /* ProfileHeaderTableViewCell.swift */,
D663625C2135C74800C9CBA2 /* ConversationMainStatusTableViewCell.xib */,
D663625E2135C75500C9CBA2 /* ConversationMainStatusTableViewCell.swift */,
D6333B762138D94E00CE884A /* ComposeMediaView.swift */,
D6C94D882139E6EC00CB5196 /* AttachmentView.swift */, D6C94D882139E6EC00CB5196 /* AttachmentView.swift */,
D641C778213CAC56004B4513 /* ActionNotificationTableViewCell.xib */, D6333B762138D94E00CE884A /* ComposeMediaView.swift */,
D641C776213CAA9E004B4513 /* ActionNotificationTableViewCell.swift */,
D641C77A213CB017004B4513 /* FollowNotificationTableViewCell.xib */,
D641C77C213CB024004B4513 /* FollowNotificationTableViewCell.swift */,
D641C77E213DC78A004B4513 /* InlineTextAttachment.swift */, D641C77E213DC78A004B4513 /* InlineTextAttachment.swift */,
D641C78A213DD926004B4513 /* Status */,
D641C78B213DD92F004B4513 /* Profile Header */,
D641C78C213DD937004B4513 /* Notifications */,
); );
path = Views; path = Views;
sourceTree = "<group>"; sourceTree = "<group>";
@ -253,7 +374,6 @@
D6D4DDC3212518A000E1C4BB = { D6D4DDC3212518A000E1C4BB = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
D663626D213629B300C9CBA2 /* MyPlayground.playground */,
D6BED16E212663DA00F02DA0 /* SwiftSoup.framework */, D6BED16E212663DA00F02DA0 /* SwiftSoup.framework */,
D6F953E6212519A400CF0F2B /* MastodonKit.framework */, D6F953E6212519A400CF0F2B /* MastodonKit.framework */,
D6D4DDCE212518A000E1C4BB /* Tusker */, D6D4DDCE212518A000E1C4BB /* Tusker */,
@ -283,9 +403,8 @@
D663626021360A9600C9CBA2 /* Preferences */, D663626021360A9600C9CBA2 /* Preferences */,
D667E5F62135C2ED0057A976 /* Extensions */, D667E5F62135C2ED0057A976 /* Extensions */,
D6F953F121251A2F00CF0F2B /* Controllers */, D6F953F121251A2F00CF0F2B /* Controllers */,
D6F953E9212519B800CF0F2B /* View Controllers */, D641C780213DD7C4004B4513 /* Screens */,
D6BED1722126661300F02DA0 /* Views */, D6BED1722126661300F02DA0 /* Views */,
D6F953EA212519BE00CF0F2B /* Storyboards */,
D6D4DDD6212518A200E1C4BB /* Assets.xcassets */, D6D4DDD6212518A200E1C4BB /* Assets.xcassets */,
D6D4DDD8212518A200E1C4BB /* LaunchScreen.storyboard */, D6D4DDD8212518A200E1C4BB /* LaunchScreen.storyboard */,
D6D4DDDB212518A200E1C4BB /* Info.plist */, D6D4DDDB212518A200E1C4BB /* Info.plist */,
@ -311,39 +430,6 @@
path = TuskerUITests; path = TuskerUITests;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
D6F953E9212519B800CF0F2B /* View Controllers */ = {
isa = PBXGroup;
children = (
D646C954213B364600269FB5 /* Transitions */,
D6F953EB212519E700CF0F2B /* TimelineTableViewController.swift */,
D64D0AB02128D9AE005A6F37 /* OnboardingViewController.swift */,
04DACE8B212CB14B009840C4 /* MainTabBarViewController.swift */,
D667E5E621349D4C0057A976 /* ProfileTableViewController.swift */,
D667E5F42135BCD50057A976 /* ConversationViewController.swift */,
D663626721360E2C00C9CBA2 /* PreferencesTableViewController.swift */,
D66362702136338600C9CBA2 /* ComposeViewController.swift */,
D6C94D862139E62700CB5196 /* LargeImageViewController.swift */,
D641C772213CAA25004B4513 /* NotificationsTableViewController.swift */,
);
path = "View Controllers";
sourceTree = "<group>";
};
D6F953EA212519BE00CF0F2B /* Storyboards */ = {
isa = PBXGroup;
children = (
D6D4DDD3212518A000E1C4BB /* Main.storyboard */,
D6F953ED21251A0700CF0F2B /* Timeline.storyboard */,
D64D0AAE2128D954005A6F37 /* Onboarding.storyboard */,
D667E5E2213499F70057A976 /* Profile.storyboard */,
D667E5F22135BC260057A976 /* Conversation.storyboard */,
D663626521360DD700C9CBA2 /* Preferences.storyboard */,
D663626E213632A000C9CBA2 /* Compose.storyboard */,
D6C94D842139DFD800CB5196 /* LargeImage.storyboard */,
D641C770213CA9EC004B4513 /* Notifications.storyboard */,
);
path = Storyboards;
sourceTree = "<group>";
};
D6F953F121251A2F00CF0F2B /* Controllers */ = { D6F953F121251A2F00CF0F2B /* Controllers */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (