diff --git a/cookie-slayer/cookie-slayer Extension/Info.plist b/cookie-slayer/cookie-slayer Extension/Info.plist new file mode 100644 index 0000000..9ee504d --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Info.plist @@ -0,0 +1,13 @@ + + + + + NSExtension + + NSExtensionPointIdentifier + com.apple.Safari.web-extension + NSExtensionPrincipalClass + $(PRODUCT_MODULE_NAME).SafariWebExtensionHandler + + + diff --git a/cookie-slayer/cookie-slayer Extension/Resources/_locales/en/messages.json b/cookie-slayer/cookie-slayer Extension/Resources/_locales/en/messages.json new file mode 100644 index 0000000..e8bd81c --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/_locales/en/messages.json @@ -0,0 +1,10 @@ +{ + "extension_name": { + "message": "cookie-slayer Extension", + "description": "The display name for the extension." + }, + "extension_description": { + "message": "This is cookie-slayer Extension. You should tell us what your extension does here.", + "description": "Description of what the extension does." + } +} diff --git a/cookie-slayer/cookie-slayer Extension/Resources/background.js b/cookie-slayer/cookie-slayer Extension/Resources/background.js new file mode 100644 index 0000000..06eaadf --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/background.js @@ -0,0 +1,6 @@ +//browser.runtime.onMessage.addListener((request, sender, sendResponse) => { +// console.log("Received request: ", request); +// +// if (request.greeting === "hello") +// sendResponse({ farewell: "goodbye" }); +//}); diff --git a/cookie-slayer/cookie-slayer Extension/Resources/content.js b/cookie-slayer/cookie-slayer Extension/Resources/content.js new file mode 100644 index 0000000..a69e0ad --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/content.js @@ -0,0 +1,71 @@ +//browser.runtime.sendMessage({ greeting: "hello" }).then((response) => { +// console.log("Received response: ", response); +//}); +// +//browser.runtime.onMessage.addListener((request, sender, sendResponse) => { +// console.log("Received request: ", request); +//}); + +const cookieRequestBannerSelectors = [ + '#onetrust-consent-sdk', // onetrust + '#cookie-popup-with-overlay', + '#cookie-information-template-wrapper', + '.cky-consent-container', // cookieyes + '.iubenda-cs-container', // iubenda + '#termly-code-snippet-support', // termly + '.osano-cm-dialog', // osano + '.frame-content__inner', //securityprivacy.ai + '#CybotCookiebotDialog', // goodtimes.io +]; + +const waitForElm = (selector) => { + return new Promise(resolve => { + // if the selector takes longer than 15 seconds to load, we will just assume it will never load + const timeout = setTimeout(() => { + resolve(null); + }, 15000); + if (document.querySelector(selector)) { + return resolve(document.querySelector(selector)); + } + + const observer = new MutationObserver(_mutations => { + if (document.querySelector(selector)) { + observer.disconnect(); + clearTimeout(timeout); + console.log('found selector', selector); + resolve(document.querySelector(selector)); + } + }); + + // If you get "parameter 1 is not of type 'Node'" error, see https://stackoverflow.com/a/77855838/492336 + observer.observe(document.body, { + childList: true, + subtree: true + }); + }); +} + +const hideSelector = async (selector) => { + const bannerEle = await waitForElm(selector); + if (bannerEle) { + bannerEle.remove(); + } + } + +const hideAll = () => { + for (const selector of cookieRequestBannerSelectors) { + // we don't want to wait for each selector since its possible that the + // selector will never be present on the page + void hideSelector(selector); + } + } + +/** + * Check and set a global guard variable. + * If this content script is injected into the same page again, + * it will do nothing next time. + */ +if (!window.hasRunCookieKillerContentScript) { + window.hasRunCookieKillerContentScript = true; + hideAll() +} diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/icon-128.png b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-128.png new file mode 100644 index 0000000..c919eb0 Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-128.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/icon-256.png b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-256.png new file mode 100644 index 0000000..6bd3d20 Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-256.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/icon-48.png b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-48.png new file mode 100644 index 0000000..353e8fb Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-48.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/icon-512.png b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-512.png new file mode 100644 index 0000000..2200828 Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-512.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/icon-64.png b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-64.png new file mode 100644 index 0000000..995689f Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-64.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/icon-96.png b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-96.png new file mode 100644 index 0000000..cb079d2 Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/icon-96.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-16.png b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-16.png new file mode 100644 index 0000000..ad014f6 Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-16.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-19.png b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-19.png new file mode 100644 index 0000000..33eb01e Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-19.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-32.png b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-32.png new file mode 100644 index 0000000..a71914b Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-32.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-38.png b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-38.png new file mode 100644 index 0000000..990e7f4 Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-38.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-48.png b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-48.png new file mode 100644 index 0000000..f4c70ad Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-48.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-72.png b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-72.png new file mode 100644 index 0000000..9bf6d4e Binary files /dev/null and b/cookie-slayer/cookie-slayer Extension/Resources/images/toolbar-icon-72.png differ diff --git a/cookie-slayer/cookie-slayer Extension/Resources/manifest.json b/cookie-slayer/cookie-slayer Extension/Resources/manifest.json new file mode 100644 index 0000000..a8ad1dd --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/manifest.json @@ -0,0 +1,35 @@ +{ + "manifest_version": 3, + "default_locale": "en", + + "name": "__MSG_extension_name__", + "description": "__MSG_extension_description__", + "version": "1.0", + + "icons": { + "48": "images/icon-48.png", + "96": "images/icon-96.png", + "128": "images/icon-128.png", + "256": "images/icon-256.png", + "512": "images/icon-512.png" + }, + + "content_scripts": [{ + "js": [ "content.js" ], + "matches": [ "" ] + }], + + "action": { + "default_popup": "popup.html", + "default_icon": { + "16": "images/toolbar-icon-16.png", + "19": "images/toolbar-icon-19.png", + "32": "images/toolbar-icon-32.png", + "38": "images/toolbar-icon-38.png", + "48": "images/toolbar-icon-48.png", + "72": "images/toolbar-icon-72.png" + } + }, + + "permissions": [""] +} diff --git a/cookie-slayer/cookie-slayer Extension/Resources/popup.css b/cookie-slayer/cookie-slayer Extension/Resources/popup.css new file mode 100644 index 0000000..5b149b9 --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/popup.css @@ -0,0 +1,15 @@ +:root { + color-scheme: light dark; +} + +body { + width: 100px; + padding: 10px; + + font-family: system-ui; + text-align: center; +} + +@media (prefers-color-scheme: dark) { + /* Dark Mode styles go here. */ +} diff --git a/cookie-slayer/cookie-slayer Extension/Resources/popup.html b/cookie-slayer/cookie-slayer Extension/Resources/popup.html new file mode 100644 index 0000000..ac52319 --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/popup.html @@ -0,0 +1,11 @@ + + + + + + + + + Hello World! + + diff --git a/cookie-slayer/cookie-slayer Extension/Resources/popup.js b/cookie-slayer/cookie-slayer Extension/Resources/popup.js new file mode 100644 index 0000000..5c1aa86 --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/Resources/popup.js @@ -0,0 +1 @@ +console.log("Hello World!", browser); diff --git a/cookie-slayer/cookie-slayer Extension/SafariWebExtensionHandler.swift b/cookie-slayer/cookie-slayer Extension/SafariWebExtensionHandler.swift new file mode 100644 index 0000000..98bc5f3 --- /dev/null +++ b/cookie-slayer/cookie-slayer Extension/SafariWebExtensionHandler.swift @@ -0,0 +1,38 @@ +// +// SafariWebExtensionHandler.swift +// cookie-slayer Extension +// +// Created by katie on 5/21/24. +// + +import SafariServices +import os.log + +class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling { + + func beginRequest(with context: NSExtensionContext) { + let request = context.inputItems.first as? NSExtensionItem + + let profile: UUID? + if #available(iOS 17.0, macOS 14.0, *) { + profile = request?.userInfo?[SFExtensionProfileKey] as? UUID + } else { + profile = request?.userInfo?["profile"] as? UUID + } + + let message: Any? + if #available(iOS 17.0, macOS 14.0, *) { + message = request?.userInfo?[SFExtensionMessageKey] + } else { + message = request?.userInfo?["message"] + } + + os_log(.default, "Received message from browser.runtime.sendNativeMessage: %@ (profile: %@)", String(describing: message), profile?.uuidString ?? "none") + + let response = NSExtensionItem() + response.userInfo = [ SFExtensionMessageKey: [ "echo": message ] ] + + context.completeRequest(returningItems: [ response ], completionHandler: nil) + } + +} diff --git a/cookie-slayer/cookie-slayer.xcodeproj/project.pbxproj b/cookie-slayer/cookie-slayer.xcodeproj/project.pbxproj new file mode 100644 index 0000000..9f257c1 --- /dev/null +++ b/cookie-slayer/cookie-slayer.xcodeproj/project.pbxproj @@ -0,0 +1,846 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 02E1EC7C2BFD700A0083A54B /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1EC7B2BFD700A0083A54B /* AppDelegate.swift */; }; + 02E1EC802BFD700A0083A54B /* Base in Resources */ = {isa = PBXBuildFile; fileRef = 02E1EC7F2BFD700A0083A54B /* Base */; }; + 02E1EC822BFD700A0083A54B /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 02E1EC812BFD700A0083A54B /* Icon.png */; }; + 02E1EC842BFD700A0083A54B /* Style.css in Resources */ = {isa = PBXBuildFile; fileRef = 02E1EC832BFD700A0083A54B /* Style.css */; }; + 02E1EC862BFD700A0083A54B /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1EC852BFD700A0083A54B /* SceneDelegate.swift */; }; + 02E1EC882BFD700A0083A54B /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1EC872BFD700A0083A54B /* ViewController.swift */; }; + 02E1EC8B2BFD700A0083A54B /* Base in Resources */ = {isa = PBXBuildFile; fileRef = 02E1EC8A2BFD700A0083A54B /* Base */; }; + 02E1EC8E2BFD700A0083A54B /* Base in Resources */ = {isa = PBXBuildFile; fileRef = 02E1EC8D2BFD700A0083A54B /* Base */; }; + 02E1EC9A2BFD700D0083A54B /* cookie_slayerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1EC992BFD700D0083A54B /* cookie_slayerTests.swift */; }; + 02E1ECA42BFD700D0083A54B /* cookie_slayerUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1ECA32BFD700D0083A54B /* cookie_slayerUITests.swift */; }; + 02E1ECA62BFD700D0083A54B /* cookie_slayerUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1ECA52BFD700D0083A54B /* cookie_slayerUITestsLaunchTests.swift */; }; + 02E1ECAC2BFD700D0083A54B /* cookie-slayer Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 02E1ECAB2BFD700D0083A54B /* cookie-slayer Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 02E1ECB12BFD700D0083A54B /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 02E1ECB02BFD700D0083A54B /* SafariWebExtensionHandler.swift */; }; + 02E1ECB42BFD700D0083A54B /* _locales in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECB32BFD700D0083A54B /* _locales */; }; + 02E1ECB62BFD700D0083A54B /* images in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECB52BFD700D0083A54B /* images */; }; + 02E1ECB82BFD700D0083A54B /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECB72BFD700D0083A54B /* manifest.json */; }; + 02E1ECBA2BFD700D0083A54B /* background.js in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECB92BFD700D0083A54B /* background.js */; }; + 02E1ECBC2BFD700D0083A54B /* content.js in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECBB2BFD700D0083A54B /* content.js */; }; + 02E1ECBE2BFD700D0083A54B /* popup.html in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECBD2BFD700D0083A54B /* popup.html */; }; + 02E1ECC02BFD700D0083A54B /* popup.css in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECBF2BFD700D0083A54B /* popup.css */; }; + 02E1ECC22BFD700D0083A54B /* popup.js in Resources */ = {isa = PBXBuildFile; fileRef = 02E1ECC12BFD700D0083A54B /* popup.js */; }; + 02E1ECC42BFD700E0083A54B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 02E1EC8F2BFD700D0083A54B /* Assets.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 02E1EC962BFD700D0083A54B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 02E1EC702BFD70090083A54B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 02E1EC772BFD700A0083A54B; + remoteInfo = "cookie-slayer"; + }; + 02E1ECA02BFD700D0083A54B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 02E1EC702BFD70090083A54B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 02E1EC772BFD700A0083A54B; + remoteInfo = "cookie-slayer"; + }; + 02E1ECAD2BFD700D0083A54B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 02E1EC702BFD70090083A54B /* Project object */; + proxyType = 1; + remoteGlobalIDString = 02E1ECAA2BFD700D0083A54B; + remoteInfo = "cookie-slayer Extension"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 02E1ECCA2BFD700E0083A54B /* Embed Foundation Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 02E1ECAC2BFD700D0083A54B /* cookie-slayer Extension.appex in Embed Foundation Extensions */, + ); + name = "Embed Foundation Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 02E1EC782BFD700A0083A54B /* cookie-slayer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "cookie-slayer.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 02E1EC7B2BFD700A0083A54B /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 02E1EC7F2BFD700A0083A54B /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = Base; path = ../Base.lproj/Main.html; sourceTree = ""; }; + 02E1EC812BFD700A0083A54B /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Icon.png; sourceTree = ""; }; + 02E1EC832BFD700A0083A54B /* Style.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = Style.css; sourceTree = ""; }; + 02E1EC852BFD700A0083A54B /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 02E1EC872BFD700A0083A54B /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 02E1EC8A2BFD700A0083A54B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 02E1EC8D2BFD700A0083A54B /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 02E1EC8F2BFD700D0083A54B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 02E1EC902BFD700D0083A54B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 02E1EC952BFD700D0083A54B /* cookie-slayerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "cookie-slayerTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 02E1EC992BFD700D0083A54B /* cookie_slayerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = cookie_slayerTests.swift; sourceTree = ""; }; + 02E1EC9F2BFD700D0083A54B /* cookie-slayerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "cookie-slayerUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 02E1ECA32BFD700D0083A54B /* cookie_slayerUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = cookie_slayerUITests.swift; sourceTree = ""; }; + 02E1ECA52BFD700D0083A54B /* cookie_slayerUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = cookie_slayerUITestsLaunchTests.swift; sourceTree = ""; }; + 02E1ECAB2BFD700D0083A54B /* cookie-slayer Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "cookie-slayer Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 02E1ECB02BFD700D0083A54B /* SafariWebExtensionHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SafariWebExtensionHandler.swift; sourceTree = ""; }; + 02E1ECB32BFD700D0083A54B /* _locales */ = {isa = PBXFileReference; lastKnownFileType = folder; path = _locales; sourceTree = ""; }; + 02E1ECB52BFD700D0083A54B /* images */ = {isa = PBXFileReference; lastKnownFileType = folder; path = images; sourceTree = ""; }; + 02E1ECB72BFD700D0083A54B /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = manifest.json; sourceTree = ""; }; + 02E1ECB92BFD700D0083A54B /* background.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = background.js; sourceTree = ""; }; + 02E1ECBB2BFD700D0083A54B /* content.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = content.js; sourceTree = ""; }; + 02E1ECBD2BFD700D0083A54B /* popup.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = popup.html; sourceTree = ""; }; + 02E1ECBF2BFD700D0083A54B /* popup.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = popup.css; sourceTree = ""; }; + 02E1ECC12BFD700D0083A54B /* popup.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = popup.js; sourceTree = ""; }; + 02E1ECC32BFD700D0083A54B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 02E1EC752BFD700A0083A54B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1EC922BFD700D0083A54B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1EC9C2BFD700D0083A54B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1ECA82BFD700D0083A54B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 02E1EC6F2BFD70090083A54B = { + isa = PBXGroup; + children = ( + 02E1EC7A2BFD700A0083A54B /* cookie-slayer */, + 02E1EC982BFD700D0083A54B /* cookie-slayerTests */, + 02E1ECA22BFD700D0083A54B /* cookie-slayerUITests */, + 02E1ECAF2BFD700D0083A54B /* cookie-slayer Extension */, + 02E1EC792BFD700A0083A54B /* Products */, + ); + sourceTree = ""; + }; + 02E1EC792BFD700A0083A54B /* Products */ = { + isa = PBXGroup; + children = ( + 02E1EC782BFD700A0083A54B /* cookie-slayer.app */, + 02E1EC952BFD700D0083A54B /* cookie-slayerTests.xctest */, + 02E1EC9F2BFD700D0083A54B /* cookie-slayerUITests.xctest */, + 02E1ECAB2BFD700D0083A54B /* cookie-slayer Extension.appex */, + ); + name = Products; + sourceTree = ""; + }; + 02E1EC7A2BFD700A0083A54B /* cookie-slayer */ = { + isa = PBXGroup; + children = ( + 02E1EC7B2BFD700A0083A54B /* AppDelegate.swift */, + 02E1EC852BFD700A0083A54B /* SceneDelegate.swift */, + 02E1EC872BFD700A0083A54B /* ViewController.swift */, + 02E1EC892BFD700A0083A54B /* LaunchScreen.storyboard */, + 02E1EC8C2BFD700A0083A54B /* Main.storyboard */, + 02E1EC8F2BFD700D0083A54B /* Assets.xcassets */, + 02E1EC902BFD700D0083A54B /* Info.plist */, + 02E1EC7D2BFD700A0083A54B /* Resources */, + ); + path = "cookie-slayer"; + sourceTree = ""; + }; + 02E1EC7D2BFD700A0083A54B /* Resources */ = { + isa = PBXGroup; + children = ( + 02E1EC7E2BFD700A0083A54B /* Main.html */, + 02E1EC812BFD700A0083A54B /* Icon.png */, + 02E1EC832BFD700A0083A54B /* Style.css */, + ); + path = Resources; + sourceTree = ""; + }; + 02E1EC982BFD700D0083A54B /* cookie-slayerTests */ = { + isa = PBXGroup; + children = ( + 02E1EC992BFD700D0083A54B /* cookie_slayerTests.swift */, + ); + path = "cookie-slayerTests"; + sourceTree = ""; + }; + 02E1ECA22BFD700D0083A54B /* cookie-slayerUITests */ = { + isa = PBXGroup; + children = ( + 02E1ECA32BFD700D0083A54B /* cookie_slayerUITests.swift */, + 02E1ECA52BFD700D0083A54B /* cookie_slayerUITestsLaunchTests.swift */, + ); + path = "cookie-slayerUITests"; + sourceTree = ""; + }; + 02E1ECAF2BFD700D0083A54B /* cookie-slayer Extension */ = { + isa = PBXGroup; + children = ( + 02E1ECB02BFD700D0083A54B /* SafariWebExtensionHandler.swift */, + 02E1ECC32BFD700D0083A54B /* Info.plist */, + 02E1ECB22BFD700D0083A54B /* Resources */, + ); + path = "cookie-slayer Extension"; + sourceTree = ""; + }; + 02E1ECB22BFD700D0083A54B /* Resources */ = { + isa = PBXGroup; + children = ( + 02E1ECB32BFD700D0083A54B /* _locales */, + 02E1ECB52BFD700D0083A54B /* images */, + 02E1ECB72BFD700D0083A54B /* manifest.json */, + 02E1ECB92BFD700D0083A54B /* background.js */, + 02E1ECBB2BFD700D0083A54B /* content.js */, + 02E1ECBD2BFD700D0083A54B /* popup.html */, + 02E1ECBF2BFD700D0083A54B /* popup.css */, + 02E1ECC12BFD700D0083A54B /* popup.js */, + ); + path = Resources; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 02E1EC772BFD700A0083A54B /* cookie-slayer */ = { + isa = PBXNativeTarget; + buildConfigurationList = 02E1ECCB2BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayer" */; + buildPhases = ( + 02E1EC742BFD700A0083A54B /* Sources */, + 02E1EC752BFD700A0083A54B /* Frameworks */, + 02E1EC762BFD700A0083A54B /* Resources */, + 02E1ECCA2BFD700E0083A54B /* Embed Foundation Extensions */, + ); + buildRules = ( + ); + dependencies = ( + 02E1ECAE2BFD700D0083A54B /* PBXTargetDependency */, + ); + name = "cookie-slayer"; + productName = "cookie-slayer"; + productReference = 02E1EC782BFD700A0083A54B /* cookie-slayer.app */; + productType = "com.apple.product-type.application"; + }; + 02E1EC942BFD700D0083A54B /* cookie-slayerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 02E1ECCE2BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayerTests" */; + buildPhases = ( + 02E1EC912BFD700D0083A54B /* Sources */, + 02E1EC922BFD700D0083A54B /* Frameworks */, + 02E1EC932BFD700D0083A54B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 02E1EC972BFD700D0083A54B /* PBXTargetDependency */, + ); + name = "cookie-slayerTests"; + productName = "cookie-slayerTests"; + productReference = 02E1EC952BFD700D0083A54B /* cookie-slayerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 02E1EC9E2BFD700D0083A54B /* cookie-slayerUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 02E1ECD12BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayerUITests" */; + buildPhases = ( + 02E1EC9B2BFD700D0083A54B /* Sources */, + 02E1EC9C2BFD700D0083A54B /* Frameworks */, + 02E1EC9D2BFD700D0083A54B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 02E1ECA12BFD700D0083A54B /* PBXTargetDependency */, + ); + name = "cookie-slayerUITests"; + productName = "cookie-slayerUITests"; + productReference = 02E1EC9F2BFD700D0083A54B /* cookie-slayerUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; + 02E1ECAA2BFD700D0083A54B /* cookie-slayer Extension */ = { + isa = PBXNativeTarget; + buildConfigurationList = 02E1ECC72BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayer Extension" */; + buildPhases = ( + 02E1ECA72BFD700D0083A54B /* Sources */, + 02E1ECA82BFD700D0083A54B /* Frameworks */, + 02E1ECA92BFD700D0083A54B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "cookie-slayer Extension"; + productName = "cookie-slayer Extension"; + productReference = 02E1ECAB2BFD700D0083A54B /* cookie-slayer Extension.appex */; + productType = "com.apple.product-type.app-extension"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 02E1EC702BFD70090083A54B /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1530; + LastUpgradeCheck = 1530; + TargetAttributes = { + 02E1EC772BFD700A0083A54B = { + CreatedOnToolsVersion = 15.3; + }; + 02E1EC942BFD700D0083A54B = { + CreatedOnToolsVersion = 15.3; + TestTargetID = 02E1EC772BFD700A0083A54B; + }; + 02E1EC9E2BFD700D0083A54B = { + CreatedOnToolsVersion = 15.3; + TestTargetID = 02E1EC772BFD700A0083A54B; + }; + 02E1ECAA2BFD700D0083A54B = { + CreatedOnToolsVersion = 15.3; + }; + }; + }; + buildConfigurationList = 02E1EC732BFD70090083A54B /* Build configuration list for PBXProject "cookie-slayer" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 02E1EC6F2BFD70090083A54B; + productRefGroup = 02E1EC792BFD700A0083A54B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 02E1EC772BFD700A0083A54B /* cookie-slayer */, + 02E1EC942BFD700D0083A54B /* cookie-slayerTests */, + 02E1EC9E2BFD700D0083A54B /* cookie-slayerUITests */, + 02E1ECAA2BFD700D0083A54B /* cookie-slayer Extension */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 02E1EC762BFD700A0083A54B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 02E1EC822BFD700A0083A54B /* Icon.png in Resources */, + 02E1EC802BFD700A0083A54B /* Base in Resources */, + 02E1EC842BFD700A0083A54B /* Style.css in Resources */, + 02E1EC8B2BFD700A0083A54B /* Base in Resources */, + 02E1ECC42BFD700E0083A54B /* Assets.xcassets in Resources */, + 02E1EC8E2BFD700A0083A54B /* Base in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1EC932BFD700D0083A54B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1EC9D2BFD700D0083A54B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1ECA92BFD700D0083A54B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 02E1ECBA2BFD700D0083A54B /* background.js in Resources */, + 02E1ECC02BFD700D0083A54B /* popup.css in Resources */, + 02E1ECBE2BFD700D0083A54B /* popup.html in Resources */, + 02E1ECB62BFD700D0083A54B /* images in Resources */, + 02E1ECB82BFD700D0083A54B /* manifest.json in Resources */, + 02E1ECB42BFD700D0083A54B /* _locales in Resources */, + 02E1ECBC2BFD700D0083A54B /* content.js in Resources */, + 02E1ECC22BFD700D0083A54B /* popup.js in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 02E1EC742BFD700A0083A54B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 02E1EC882BFD700A0083A54B /* ViewController.swift in Sources */, + 02E1EC7C2BFD700A0083A54B /* AppDelegate.swift in Sources */, + 02E1EC862BFD700A0083A54B /* SceneDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1EC912BFD700D0083A54B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 02E1EC9A2BFD700D0083A54B /* cookie_slayerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1EC9B2BFD700D0083A54B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 02E1ECA62BFD700D0083A54B /* cookie_slayerUITestsLaunchTests.swift in Sources */, + 02E1ECA42BFD700D0083A54B /* cookie_slayerUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 02E1ECA72BFD700D0083A54B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 02E1ECB12BFD700D0083A54B /* SafariWebExtensionHandler.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 02E1EC972BFD700D0083A54B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 02E1EC772BFD700A0083A54B /* cookie-slayer */; + targetProxy = 02E1EC962BFD700D0083A54B /* PBXContainerItemProxy */; + }; + 02E1ECA12BFD700D0083A54B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 02E1EC772BFD700A0083A54B /* cookie-slayer */; + targetProxy = 02E1ECA02BFD700D0083A54B /* PBXContainerItemProxy */; + }; + 02E1ECAE2BFD700D0083A54B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 02E1ECAA2BFD700D0083A54B /* cookie-slayer Extension */; + targetProxy = 02E1ECAD2BFD700D0083A54B /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 02E1EC7E2BFD700A0083A54B /* Main.html */ = { + isa = PBXVariantGroup; + children = ( + 02E1EC7F2BFD700A0083A54B /* Base */, + ); + name = Main.html; + sourceTree = ""; + }; + 02E1EC892BFD700A0083A54B /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 02E1EC8A2BFD700A0083A54B /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; + 02E1EC8C2BFD700A0083A54B /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 02E1EC8D2BFD700A0083A54B /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 02E1ECC52BFD700E0083A54B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.4; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 02E1ECC62BFD700E0083A54B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.4; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 02E1ECC82BFD700E0083A54B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "cookie-slayer Extension/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "cookie-slayer Extension"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "-framework", + SafariServices, + ); + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayer.Extension"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 02E1ECC92BFD700E0083A54B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "cookie-slayer Extension/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "cookie-slayer Extension"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "-framework", + SafariServices, + ); + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayer.Extension"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 02E1ECCC2BFD700E0083A54B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "cookie-slayer/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "cookie-slayer"; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "-framework", + SafariServices, + "-framework", + WebKit, + ); + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayer"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 02E1ECCD2BFD700E0083A54B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "cookie-slayer/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "cookie-slayer"; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchStoryboardName = LaunchScreen; + INFOPLIST_KEY_UIMainStoryboardFile = Main; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + OTHER_LDFLAGS = ( + "-framework", + SafariServices, + "-framework", + WebKit, + ); + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayer"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 02E1ECCF2BFD700E0083A54B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cookie-slayer.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/cookie-slayer"; + }; + name = Debug; + }; + 02E1ECD02BFD700E0083A54B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayerTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/cookie-slayer.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/cookie-slayer"; + }; + name = Release; + }; + 02E1ECD22BFD700E0083A54B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayerUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "cookie-slayer"; + }; + name = Debug; + }; + 02E1ECD32BFD700E0083A54B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "bruce.cookie-slayerUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "cookie-slayer"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 02E1EC732BFD70090083A54B /* Build configuration list for PBXProject "cookie-slayer" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 02E1ECC52BFD700E0083A54B /* Debug */, + 02E1ECC62BFD700E0083A54B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 02E1ECC72BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayer Extension" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 02E1ECC82BFD700E0083A54B /* Debug */, + 02E1ECC92BFD700E0083A54B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 02E1ECCB2BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayer" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 02E1ECCC2BFD700E0083A54B /* Debug */, + 02E1ECCD2BFD700E0083A54B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 02E1ECCE2BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 02E1ECCF2BFD700E0083A54B /* Debug */, + 02E1ECD02BFD700E0083A54B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 02E1ECD12BFD700E0083A54B /* Build configuration list for PBXNativeTarget "cookie-slayerUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 02E1ECD22BFD700E0083A54B /* Debug */, + 02E1ECD32BFD700E0083A54B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 02E1EC702BFD70090083A54B /* Project object */; +} diff --git a/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/xcuserdata/katie.xcuserdatad/UserInterfaceState.xcuserstate b/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/xcuserdata/katie.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..c495caa Binary files /dev/null and b/cookie-slayer/cookie-slayer.xcodeproj/project.xcworkspace/xcuserdata/katie.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/cookie-slayer/cookie-slayer.xcodeproj/xcuserdata/katie.xcuserdatad/xcschemes/xcschememanagement.plist b/cookie-slayer/cookie-slayer.xcodeproj/xcuserdata/katie.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..c2bec27 --- /dev/null +++ b/cookie-slayer/cookie-slayer.xcodeproj/xcuserdata/katie.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + cookie-slayer.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/cookie-slayer/cookie-slayer/AppDelegate.swift b/cookie-slayer/cookie-slayer/AppDelegate.swift new file mode 100644 index 0000000..58d6d12 --- /dev/null +++ b/cookie-slayer/cookie-slayer/AppDelegate.swift @@ -0,0 +1,24 @@ +// +// AppDelegate.swift +// cookie-slayer +// +// Created by katie on 5/21/24. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + +} diff --git a/cookie-slayer/cookie-slayer/Assets.xcassets/AccentColor.colorset/Contents.json b/cookie-slayer/cookie-slayer/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/cookie-slayer/cookie-slayer/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/cookie-slayer/cookie-slayer/Assets.xcassets/AppIcon.appiconset/Contents.json b/cookie-slayer/cookie-slayer/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..13613e3 --- /dev/null +++ b/cookie-slayer/cookie-slayer/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,13 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/cookie-slayer/cookie-slayer/Assets.xcassets/Contents.json b/cookie-slayer/cookie-slayer/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/cookie-slayer/cookie-slayer/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/cookie-slayer/cookie-slayer/Assets.xcassets/LargeIcon.imageset/Contents.json b/cookie-slayer/cookie-slayer/Assets.xcassets/LargeIcon.imageset/Contents.json new file mode 100644 index 0000000..a19a549 --- /dev/null +++ b/cookie-slayer/cookie-slayer/Assets.xcassets/LargeIcon.imageset/Contents.json @@ -0,0 +1,20 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/cookie-slayer/cookie-slayer/Base.lproj/LaunchScreen.storyboard b/cookie-slayer/cookie-slayer/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..620a70c --- /dev/null +++ b/cookie-slayer/cookie-slayer/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cookie-slayer/cookie-slayer/Base.lproj/Main.html b/cookie-slayer/cookie-slayer/Base.lproj/Main.html new file mode 100644 index 0000000..c4b7414 --- /dev/null +++ b/cookie-slayer/cookie-slayer/Base.lproj/Main.html @@ -0,0 +1,15 @@ + + + + + + + + + + + + cookie-slayer Icon +

You can turn on cookie-slayer’s Safari extension in Settings.

+ + diff --git a/cookie-slayer/cookie-slayer/Base.lproj/Main.storyboard b/cookie-slayer/cookie-slayer/Base.lproj/Main.storyboard new file mode 100644 index 0000000..618dfce --- /dev/null +++ b/cookie-slayer/cookie-slayer/Base.lproj/Main.storyboard @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cookie-slayer/cookie-slayer/Info.plist b/cookie-slayer/cookie-slayer/Info.plist new file mode 100644 index 0000000..dd3c9af --- /dev/null +++ b/cookie-slayer/cookie-slayer/Info.plist @@ -0,0 +1,25 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + UISceneStoryboardFile + Main + + + + + + diff --git a/cookie-slayer/cookie-slayer/Resources/Icon.png b/cookie-slayer/cookie-slayer/Resources/Icon.png new file mode 100644 index 0000000..423b491 Binary files /dev/null and b/cookie-slayer/cookie-slayer/Resources/Icon.png differ diff --git a/cookie-slayer/cookie-slayer/Resources/Style.css b/cookie-slayer/cookie-slayer/Resources/Style.css new file mode 100644 index 0000000..4cefc75 --- /dev/null +++ b/cookie-slayer/cookie-slayer/Resources/Style.css @@ -0,0 +1,29 @@ +* { + -webkit-user-select: none; + -webkit-user-drag: none; + cursor: default; +} + +:root { + color-scheme: light dark; + + --spacing: 20px; +} + +html { + height: 100%; +} + +body { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + + gap: var(--spacing); + margin: 0 calc(var(--spacing) * 2); + height: 100%; + + font: -apple-system-short-body; + text-align: center; +} diff --git a/cookie-slayer/cookie-slayer/SceneDelegate.swift b/cookie-slayer/cookie-slayer/SceneDelegate.swift new file mode 100644 index 0000000..8f014ac --- /dev/null +++ b/cookie-slayer/cookie-slayer/SceneDelegate.swift @@ -0,0 +1,18 @@ +// +// SceneDelegate.swift +// cookie-slayer +// +// Created by katie on 5/21/24. +// + +import UIKit + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + guard let _ = (scene as? UIWindowScene) else { return } + } + +} diff --git a/cookie-slayer/cookie-slayer/ViewController.swift b/cookie-slayer/cookie-slayer/ViewController.swift new file mode 100644 index 0000000..f8703da --- /dev/null +++ b/cookie-slayer/cookie-slayer/ViewController.swift @@ -0,0 +1,34 @@ +// +// ViewController.swift +// cookie-slayer +// +// Created by katie on 5/21/24. +// + +import UIKit +import WebKit + +class ViewController: UIViewController, WKNavigationDelegate, WKScriptMessageHandler { + + @IBOutlet var webView: WKWebView! + + override func viewDidLoad() { + super.viewDidLoad() + + self.webView.navigationDelegate = self + self.webView.scrollView.isScrollEnabled = false + + self.webView.configuration.userContentController.add(self, name: "controller") + + self.webView.loadFileURL(Bundle.main.url(forResource: "Main", withExtension: "html")!, allowingReadAccessTo: Bundle.main.resourceURL!) + } + + func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { + // Override point for customization. + } + + func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) { + // Override point for customization. + } + +} diff --git a/cookie-slayer/cookie-slayerTests/cookie_slayerTests.swift b/cookie-slayer/cookie-slayerTests/cookie_slayerTests.swift new file mode 100644 index 0000000..cbd97e1 --- /dev/null +++ b/cookie-slayer/cookie-slayerTests/cookie_slayerTests.swift @@ -0,0 +1,36 @@ +// +// cookie_slayerTests.swift +// cookie-slayerTests +// +// Created by katie on 5/21/24. +// + +import XCTest +@testable import cookie_slayer + +final class cookie_slayerTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/cookie-slayer/cookie-slayerUITests/cookie_slayerUITests.swift b/cookie-slayer/cookie-slayerUITests/cookie_slayerUITests.swift new file mode 100644 index 0000000..cfdefc8 --- /dev/null +++ b/cookie-slayer/cookie-slayerUITests/cookie_slayerUITests.swift @@ -0,0 +1,41 @@ +// +// cookie_slayerUITests.swift +// cookie-slayerUITests +// +// Created by katie on 5/21/24. +// + +import XCTest + +final class cookie_slayerUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +} diff --git a/cookie-slayer/cookie-slayerUITests/cookie_slayerUITestsLaunchTests.swift b/cookie-slayer/cookie-slayerUITests/cookie_slayerUITestsLaunchTests.swift new file mode 100644 index 0000000..98b419a --- /dev/null +++ b/cookie-slayer/cookie-slayerUITests/cookie_slayerUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// cookie_slayerUITestsLaunchTests.swift +// cookie-slayerUITests +// +// Created by katie on 5/21/24. +// + +import XCTest + +final class cookie_slayerUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}