-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
finished committing the iOS extension
accidentally added some files in an earlier commit
- Loading branch information
Showing
16 changed files
with
308 additions
and
97 deletions.
There are no files selected for viewing
46 changes: 0 additions & 46 deletions
46
Shellfish/Shellfish.xcodeproj/xcuserdata/tobin.xcuserdatad/xcschemes/Shellfish.xcscheme
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// ActionRequestHandler.swift | ||
// Shellfish Content Blocker | ||
// | ||
// Created by Tobin Juday on 8/24/15. | ||
// Copyright © 2015 Tobin Juday. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import MobileCoreServices | ||
|
||
class ActionRequestHandler: NSObject, NSExtensionRequestHandling { | ||
|
||
func beginRequestWithExtensionContext(context: NSExtensionContext) { | ||
let attachment = NSItemProvider(contentsOfURL: NSBundle.mainBundle().URLForResource("blockerList", withExtension: "json"))! | ||
|
||
let item = NSExtensionItem() | ||
item.attachments = [attachment] | ||
|
||
context.completeRequestReturningItems([item], completionHandler: nil); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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>CFBundleDevelopmentRegion</key> | ||
<string>en</string> | ||
<key>CFBundleDisplayName</key> | ||
<string>Shellfish Content Blocker</string> | ||
<key>CFBundleExecutable</key> | ||
<string>$(EXECUTABLE_NAME)</string> | ||
<key>CFBundleIdentifier</key> | ||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>$(PRODUCT_NAME)</string> | ||
<key>CFBundlePackageType</key> | ||
<string>XPC!</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1</string> | ||
<key>NSExtension</key> | ||
<dict> | ||
<key>NSExtensionPointIdentifier</key> | ||
<string>com.apple.Safari.content-blocker</string> | ||
<key>NSExtensionPrincipalClass</key> | ||
<string>$(PRODUCT_MODULE_NAME).ActionRequestHandler</string> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Binary file added
BIN
+12.4 KB
...xcodeproj/project.xcworkspace/xcuserdata/tobin.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
Oops, something went wrong.