Skip to content
Snippets Groups Projects
Commit f6f24997 authored by Spotlight's avatar Spotlight
Browse files

Initial commit with Swift™

parents
No related branches found
No related tags found
No related merge requests found
Showing
with 325 additions and 0 deletions
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
## Build generated
build/
DerivedData/
## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/
## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint
## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts
Carthage/Build
# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode
iOSInjectionProject/
Screenshottr/config.h
[submodule "SKQueue"]
path = SKQueue
url = git@github.com:daniel-pedersen/SKQueue.git
Podfile 0 → 100644
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'Screenshottr' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Screenshottr
pod 'GoogleAPIClientForREST'
pod 'GoogleAPIClientForREST/Storage'
pod 'GTMAppAuth'
target 'ScreenshottrTests' do
inherit! :search_paths
# Pods for testing
end
target 'ScreenshottrUITests' do
inherit! :search_paths
# Pods for testing
end
end
PODS:
- AppAuth (0.9.1)
- GoogleAPIClientForREST (1.3.0):
- GoogleAPIClientForREST/Core (= 1.3.0)
- GTMSessionFetcher (>= 1.1.7)
- GoogleAPIClientForREST/Core (1.3.0):
- GTMSessionFetcher (>= 1.1.7)
- GoogleAPIClientForREST/Storage (1.3.0):
- GoogleAPIClientForREST/Core
- GTMSessionFetcher (>= 1.1.7)
- GTMAppAuth (0.6.1):
- AppAuth (~> 0.9.0)
- GTMSessionFetcher (~> 1.1)
- GTMSessionFetcher (1.1.10):
- GTMSessionFetcher/Full (= 1.1.10)
- GTMSessionFetcher/Core (1.1.10)
- GTMSessionFetcher/Full (1.1.10):
- GTMSessionFetcher/Core (= 1.1.10)
DEPENDENCIES:
- GoogleAPIClientForREST
- GoogleAPIClientForREST/Storage
- GTMAppAuth
SPEC CHECKSUMS:
AppAuth: f7d9a2ce4ffe79a62a8b0c1d0938e88d9809b846
GoogleAPIClientForREST: bf724227a6ad1459aab09b73800aad9184a0f64c
GTMAppAuth: ae710e1e53431e2bcdd57f9f92daa16a58a2947d
GTMSessionFetcher: 30d874b96d0d76028f61fbd122801e3f030d47db
PODFILE CHECKSUM: e6d5603a978b5198ff969b053fa16e28d49f3361
COCOAPODS: 1.3.1
Subproject commit b6dcd7532f90b0c3abbe624d271f64ac7f393ddf
This diff is collapsed.
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:Screenshottr.xcodeproj">
</FileRef>
</Workspace>
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4279D57F1F4686AB00558889"
BuildableName = "Screenshottr.app"
BlueprintName = "Screenshottr"
ReferencedContainer = "container:Screenshottr.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4279D58E1F4686AE00558889"
BuildableName = "ScreenshottrTests.xctest"
BlueprintName = "ScreenshottrTests"
ReferencedContainer = "container:Screenshottr.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4279D5991F4686AE00558889"
BuildableName = "ScreenshottrUITests.xctest"
BlueprintName = "ScreenshottrUITests"
ReferencedContainer = "container:Screenshottr.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4279D57F1F4686AB00558889"
BuildableName = "Screenshottr.app"
BlueprintName = "Screenshottr"
ReferencedContainer = "container:Screenshottr.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4279D57F1F4686AB00558889"
BuildableName = "Screenshottr.app"
BlueprintName = "Screenshottr"
ReferencedContainer = "container:Screenshottr.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4279D57F1F4686AB00558889"
BuildableName = "Screenshottr.app"
BlueprintName = "Screenshottr"
ReferencedContainer = "container:Screenshottr.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
<?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>SchemeUserState</key>
<dict>
<key>Screenshottr.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>4279D57F1F4686AB00558889</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>4279D58E1F4686AE00558889</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>4279D5991F4686AE00558889</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:SKQueue/SKQueue.xcodeproj">
</FileRef>
<FileRef
location = "group:Screenshottr.xcodeproj">
</FileRef>
<FileRef
location = "group:Pods/Pods.xcodeproj">
</FileRef>
</Workspace>
//
// AppDelegate.swift
// Screenshottr
//
// Created by Spotlight on 8/17/17.
// Copyright © 2017 JOS Computing. All rights reserved.
//
import Cocoa
import SKQueue
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
let statusItem = NSStatusBar.system().statusItem(withLength: NSVariableStatusItemLength)
let gcpAuthHandler = GCPAuthHandler()
func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
statusItem.image = NSImage(named: "status_icon")
statusItem.toolTip = "Control-click to quit"
gcpAuthHandler.signInIfNeeded()
// Set up file watching
let queue = SKQueue(delegate: UploadReceiver())
queue?.addPath(NSSearchPathForDirectoriesInDomains(.desktopDirectory, .userDomainMask, true)[0], notifyingAbout: .Write)
}
func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}
}
class UploadReceiver: SKQueueDelegate {
func receivedNotification(_ notification: SKQueueNotification, path: String, queue: SKQueue) {
UploadManager().handleUpload(path: path)
}
}
Screenshottr/Assets.xcassets/AppIcon.appiconset/1024.png

72.2 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/124.png

8.51 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/16.png

1.15 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/256-1.png

17.9 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/256.png

17.9 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/32px-1.png

2.05 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/32px.png

2.05 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/512-1.png

39.9 KiB

Screenshottr/Assets.xcassets/AppIcon.appiconset/512.png

39.9 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment