diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5e02830..4678670 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,4 +11,4 @@ jobs: - uses: actions/setup-node@v2 - - run: npx prettier --check ".github/" "Shared (Extension)/blockerList.json" + - run: npx prettier --check ".github/" "Extension/blockerList.json" diff --git a/.github/workflows/xcode.yml b/.github/workflows/xcode.yml index f72c770..6481706 100644 --- a/.github/workflows/xcode.yml +++ b/.github/workflows/xcode.yml @@ -4,13 +4,7 @@ on: [push, pull_request] jobs: build: - strategy: - matrix: - scheme: - # - "Ka-Block (iOS)" - - "Ka-Block (macOS)" - - runs-on: macos-11.0 + runs-on: macos-latest steps: - uses: actions/checkout@v1 @@ -19,4 +13,4 @@ jobs: run: xcodebuild -version -sdk - name: Build - run: xcodebuild -project Ka-Block.xcodeproj -scheme "${{ matrix.scheme }}" build ENABLE_HARDENED_RUNTIME=NO CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY= + run: xcodebuild -project Ka-Block.xcodeproj -scheme "Ka-Block" build ENABLE_HARDENED_RUNTIME=NO CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY= diff --git a/Shared (App)/Assets.xcassets/AccentColor.colorset/Contents.json b/App/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/AccentColor.colorset/Contents.json rename to App/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/1024x1024-1.png b/App/Assets.xcassets/AppIcon.appiconset/1024x1024-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/1024x1024-1.png rename to App/Assets.xcassets/AppIcon.appiconset/1024x1024-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/1024x1024.png b/App/Assets.xcassets/AppIcon.appiconset/1024x1024.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/1024x1024.png rename to App/Assets.xcassets/AppIcon.appiconset/1024x1024.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/128x128.png b/App/Assets.xcassets/AppIcon.appiconset/128x128.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/128x128.png rename to App/Assets.xcassets/AppIcon.appiconset/128x128.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/16x16.png b/App/Assets.xcassets/AppIcon.appiconset/16x16.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/16x16.png rename to App/Assets.xcassets/AppIcon.appiconset/16x16.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/256x256-1.png b/App/Assets.xcassets/AppIcon.appiconset/256x256-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/256x256-1.png rename to App/Assets.xcassets/AppIcon.appiconset/256x256-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/256x256.png b/App/Assets.xcassets/AppIcon.appiconset/256x256.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/256x256.png rename to App/Assets.xcassets/AppIcon.appiconset/256x256.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29-1.png b/App/Assets.xcassets/AppIcon.appiconset/29x29-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29-1.png rename to App/Assets.xcassets/AppIcon.appiconset/29x29-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29.png b/App/Assets.xcassets/AppIcon.appiconset/29x29.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29.png rename to App/Assets.xcassets/AppIcon.appiconset/29x29.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29@2x-1.png b/App/Assets.xcassets/AppIcon.appiconset/29x29@2x-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29@2x-1.png rename to App/Assets.xcassets/AppIcon.appiconset/29x29@2x-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29@2x.png b/App/Assets.xcassets/AppIcon.appiconset/29x29@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/29x29@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29@3x.png b/App/Assets.xcassets/AppIcon.appiconset/29x29@3x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/29x29@3x.png rename to App/Assets.xcassets/AppIcon.appiconset/29x29@3x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/32x32-1.png b/App/Assets.xcassets/AppIcon.appiconset/32x32-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/32x32-1.png rename to App/Assets.xcassets/AppIcon.appiconset/32x32-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/32x32.png b/App/Assets.xcassets/AppIcon.appiconset/32x32.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/32x32.png rename to App/Assets.xcassets/AppIcon.appiconset/32x32.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40.png b/App/Assets.xcassets/AppIcon.appiconset/40x40.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40.png rename to App/Assets.xcassets/AppIcon.appiconset/40x40.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40@2x-1.png b/App/Assets.xcassets/AppIcon.appiconset/40x40@2x-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40@2x-1.png rename to App/Assets.xcassets/AppIcon.appiconset/40x40@2x-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40@2x.png b/App/Assets.xcassets/AppIcon.appiconset/40x40@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/40x40@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40@3x.png b/App/Assets.xcassets/AppIcon.appiconset/40x40@3x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/40x40@3x.png rename to App/Assets.xcassets/AppIcon.appiconset/40x40@3x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/50x50.png b/App/Assets.xcassets/AppIcon.appiconset/50x50.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/50x50.png rename to App/Assets.xcassets/AppIcon.appiconset/50x50.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/50x50@2x.png b/App/Assets.xcassets/AppIcon.appiconset/50x50@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/50x50@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/50x50@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/512x512-1.png b/App/Assets.xcassets/AppIcon.appiconset/512x512-1.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/512x512-1.png rename to App/Assets.xcassets/AppIcon.appiconset/512x512-1.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/512x512.png b/App/Assets.xcassets/AppIcon.appiconset/512x512.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/512x512.png rename to App/Assets.xcassets/AppIcon.appiconset/512x512.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/57x57.png b/App/Assets.xcassets/AppIcon.appiconset/57x57.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/57x57.png rename to App/Assets.xcassets/AppIcon.appiconset/57x57.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/57x57@2x.png b/App/Assets.xcassets/AppIcon.appiconset/57x57@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/57x57@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/57x57@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/60x60@2x.png b/App/Assets.xcassets/AppIcon.appiconset/60x60@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/60x60@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/60x60@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/60x60@3x.png b/App/Assets.xcassets/AppIcon.appiconset/60x60@3x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/60x60@3x.png rename to App/Assets.xcassets/AppIcon.appiconset/60x60@3x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/64x64.png b/App/Assets.xcassets/AppIcon.appiconset/64x64.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/64x64.png rename to App/Assets.xcassets/AppIcon.appiconset/64x64.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/72x72.png b/App/Assets.xcassets/AppIcon.appiconset/72x72.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/72x72.png rename to App/Assets.xcassets/AppIcon.appiconset/72x72.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/72x72@2x.png b/App/Assets.xcassets/AppIcon.appiconset/72x72@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/72x72@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/72x72@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/76x76.png b/App/Assets.xcassets/AppIcon.appiconset/76x76.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/76x76.png rename to App/Assets.xcassets/AppIcon.appiconset/76x76.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/76x76@2x.png b/App/Assets.xcassets/AppIcon.appiconset/76x76@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/76x76@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/76x76@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/83.5x83.5@2x.png b/App/Assets.xcassets/AppIcon.appiconset/83.5x83.5@2x.png similarity index 100% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/83.5x83.5@2x.png rename to App/Assets.xcassets/AppIcon.appiconset/83.5x83.5@2x.png diff --git a/Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json b/App/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 98% rename from Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json rename to App/Assets.xcassets/AppIcon.appiconset/Contents.json index fcb3114..7e1f33f 100644 --- a/Shared (App)/Assets.xcassets/AppIcon.appiconset/Contents.json +++ b/App/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -205,10 +205,6 @@ "idiom" : "mac", "scale" : "2x", "size" : "512x512" - }, - { - "idiom" : "mac", - "size" : "1024x1024" } ], "info" : { diff --git a/Shared (App)/Assets.xcassets/Contents.json b/App/Assets.xcassets/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/Contents.json rename to App/Assets.xcassets/Contents.json diff --git a/Shared (App)/Assets.xcassets/LargeIcon.imageset/Contents.json b/App/Assets.xcassets/LargeIcon.imageset/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/LargeIcon.imageset/Contents.json rename to App/Assets.xcassets/LargeIcon.imageset/Contents.json diff --git a/Shared (App)/Assets.xcassets/LogoDisabledColor.colorset/Contents.json b/App/Assets.xcassets/LogoDisabledColor.colorset/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/LogoDisabledColor.colorset/Contents.json rename to App/Assets.xcassets/LogoDisabledColor.colorset/Contents.json diff --git a/Shared (App)/Assets.xcassets/LogoEnabledColor.colorset/Contents.json b/App/Assets.xcassets/LogoEnabledColor.colorset/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/LogoEnabledColor.colorset/Contents.json rename to App/Assets.xcassets/LogoEnabledColor.colorset/Contents.json diff --git a/Shared (App)/Assets.xcassets/LowerBackgroundColor.colorset/Contents.json b/App/Assets.xcassets/LowerBackgroundColor.colorset/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/LowerBackgroundColor.colorset/Contents.json rename to App/Assets.xcassets/LowerBackgroundColor.colorset/Contents.json diff --git a/Shared (App)/Assets.xcassets/UpperBackgroundColor.colorset/Contents.json b/App/Assets.xcassets/UpperBackgroundColor.colorset/Contents.json similarity index 100% rename from Shared (App)/Assets.xcassets/UpperBackgroundColor.colorset/Contents.json rename to App/Assets.xcassets/UpperBackgroundColor.colorset/Contents.json diff --git a/Shared (App)/ContentBlockerState.swift b/App/ContentBlockerState.swift similarity index 100% rename from Shared (App)/ContentBlockerState.swift rename to App/ContentBlockerState.swift diff --git a/Shared (App)/HomeScreen.swift b/App/HomeScreen.swift similarity index 100% rename from Shared (App)/HomeScreen.swift rename to App/HomeScreen.swift diff --git a/iOS (App)/KaBlockApp.swift b/App/KaBlockApp.swift similarity index 59% rename from iOS (App)/KaBlockApp.swift rename to App/KaBlockApp.swift index f29ba27..d64736a 100644 --- a/iOS (App)/KaBlockApp.swift +++ b/App/KaBlockApp.swift @@ -7,6 +7,13 @@ struct KaBlockApp: App { var body: some Scene { WindowGroup { HomeScreen(isEnabled: contentBlockerState.isEnabled) + #if os(macOS) + .frame(width: 375, height: 640) + #endif } + #if os(macOS) + .windowResizability(.contentSize) + .windowStyle(.hiddenTitleBar) + #endif } } diff --git a/iOS (App)/Localizable.strings b/App/Localizable.strings similarity index 100% rename from iOS (App)/Localizable.strings rename to App/Localizable.strings diff --git a/Shared (App)/Logo.swift b/App/Logo.swift similarity index 97% rename from Shared (App)/Logo.swift rename to App/Logo.swift index 250c489..c00fef8 100644 --- a/Shared (App)/Logo.swift +++ b/App/Logo.swift @@ -10,6 +10,7 @@ struct Logo: View { Circle() .stroke(stateColor, lineWidth: 0.1) + .position() Circle() .foregroundColor(Color.white) diff --git a/Shared (Extension)/ContentBlockerRequestHandler.swift b/Extension/ContentBlockerRequestHandler.swift similarity index 100% rename from Shared (Extension)/ContentBlockerRequestHandler.swift rename to Extension/ContentBlockerRequestHandler.swift diff --git a/Shared (Extension)/Info.plist b/Extension/Info.plist similarity index 100% rename from Shared (Extension)/Info.plist rename to Extension/Info.plist diff --git a/Shared (Extension)/blockerList.json b/Extension/blockerList.json similarity index 100% rename from Shared (Extension)/blockerList.json rename to Extension/blockerList.json diff --git a/Ka-Block.xcodeproj/project.pbxproj b/Ka-Block.xcodeproj/project.pbxproj index b03633f..83de230 100644 --- a/Ka-Block.xcodeproj/project.pbxproj +++ b/Ka-Block.xcodeproj/project.pbxproj @@ -7,25 +7,15 @@ objects = { /* Begin PBXBuildFile section */ - 03346D6926B08EA2004A268E /* Ka-Block! Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 03346D6826B08EA2004A268E /* Ka-Block! Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; - 03346D7326B08EA2004A268E /* Ka-Block! Extension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 03346D7226B08EA2004A268E /* Ka-Block! Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + 03346D6926B08EA2004A268E /* Ka-Block! Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 03346D6826B08EA2004A268E /* Ka-Block! Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 03346D8226B08EA2004A268E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 03346D3A26B08EA2004A268E /* Assets.xcassets */; }; - 03346D8326B08EA2004A268E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 03346D3A26B08EA2004A268E /* Assets.xcassets */; }; 036A5C6E26C44E1500A76915 /* HomeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036A5C6D26C44E1500A76915 /* HomeScreen.swift */; }; - 036A5C6F26C44E1500A76915 /* HomeScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 036A5C6D26C44E1500A76915 /* HomeScreen.swift */; }; - 036C97812738520300170DF1 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 036C9780273851FF00170DF1 /* Localizable.strings */; }; 036C97832738522600170DF1 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 036C977F273851FD00170DF1 /* Localizable.strings */; }; - 037870CA26EA98FD00075102 /* KaBlockApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 037870C826EA98DD00075102 /* KaBlockApp.swift */; }; 0381081326CC50D9008A912C /* ContentBlockerState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0381081226CC50D9008A912C /* ContentBlockerState.swift */; }; - 0381081426CC50D9008A912C /* ContentBlockerState.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0381081226CC50D9008A912C /* ContentBlockerState.swift */; }; 0397975D26BC86460014BF79 /* Logo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0397975C26BC86460014BF79 /* Logo.swift */; }; - 0397975E26BC86460014BF79 /* Logo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0397975C26BC86460014BF79 /* Logo.swift */; }; - 03AB920026BB211E00C6DFFD /* ContentBlockerRequestHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03AB91F726BB20CE00C6DFFD /* ContentBlockerRequestHandler.swift */; }; 03AB920126BB211E00C6DFFD /* ContentBlockerRequestHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03AB91F726BB20CE00C6DFFD /* ContentBlockerRequestHandler.swift */; }; - 03AB920226BB231200C6DFFD /* blockerList.json in Resources */ = {isa = PBXBuildFile; fileRef = 03AB91F526BB20CE00C6DFFD /* blockerList.json */; }; 03AB920326BB231500C6DFFD /* blockerList.json in Resources */ = {isa = PBXBuildFile; fileRef = 03AB91F526BB20CE00C6DFFD /* blockerList.json */; }; - 03AB922726BB254800C6DFFD /* KaBlockApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03AB922626BB254800C6DFFD /* KaBlockApp.swift */; platformFilter = ios; }; - 03E41C022737270700F87ACB /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03AB91F226BB20CE00C6DFFD /* Cocoa.framework */; }; + 03AB922726BB254800C6DFFD /* KaBlockApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03AB922626BB254800C6DFFD /* KaBlockApp.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -36,36 +26,18 @@ remoteGlobalIDString = 03346D6726B08EA2004A268E; remoteInfo = "Ka-Block Extension (iOS)"; }; - 03346D7426B08EA2004A268E /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 03346D2E26B08EA1004A268E /* Project object */; - proxyType = 1; - remoteGlobalIDString = 03346D7126B08EA2004A268E; - remoteInfo = "Ka-Block Extension (macOS)"; - }; /* End PBXContainerItemProxy section */ /* Begin PBXCopyFilesBuildPhase section */ - 03346D9B26B08EA2004A268E /* Embed App Extensions */ = { + 03346D9B26B08EA2004A268E /* Embed Foundation Extensions */ = { isa = PBXCopyFilesBuildPhase; buildActionMask = 2147483647; dstPath = ""; dstSubfolderSpec = 13; files = ( - 03346D6926B08EA2004A268E /* Ka-Block! Extension.appex in Embed App Extensions */, + 03346D6926B08EA2004A268E /* Ka-Block! Extension.appex in Embed Foundation Extensions */, ); - name = "Embed App Extensions"; - runOnlyForDeploymentPostprocessing = 0; - }; - 03346DA226B08EA2004A268E /* Embed App Extensions */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 13; - files = ( - 03346D7326B08EA2004A268E /* Ka-Block! Extension.appex in Embed App Extensions */, - ); - name = "Embed App Extensions"; + name = "Embed Foundation Extensions"; runOnlyForDeploymentPostprocessing = 0; }; /* End PBXCopyFilesBuildPhase section */ @@ -73,17 +45,12 @@ /* Begin PBXFileReference section */ 03346D3A26B08EA2004A268E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 03346D4A26B08EA2004A268E /* Ka-Block!.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Ka-Block!.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - 03346D5C26B08EA2004A268E /* Ka-Block!.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Ka-Block!.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 03346D6826B08EA2004A268E /* Ka-Block! Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Ka-Block! Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; - 03346D7226B08EA2004A268E /* Ka-Block! Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "Ka-Block! Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; 036A5C6D26C44E1500A76915 /* HomeScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeScreen.swift; sourceTree = ""; }; 036C977F273851FD00170DF1 /* Localizable.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; path = Localizable.strings; sourceTree = ""; }; - 036C9780273851FF00170DF1 /* Localizable.strings */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; path = Localizable.strings; sourceTree = ""; }; - 037870C826EA98DD00075102 /* KaBlockApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KaBlockApp.swift; sourceTree = ""; }; 0381081226CC50D9008A912C /* ContentBlockerState.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentBlockerState.swift; sourceTree = ""; }; 0381081526CC5794008A912C /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 0397975C26BC86460014BF79 /* Logo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Logo.swift; sourceTree = ""; }; - 03AB91F226BB20CE00C6DFFD /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; }; 03AB91F526BB20CE00C6DFFD /* blockerList.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = blockerList.json; sourceTree = ""; }; 03AB91F726BB20CE00C6DFFD /* ContentBlockerRequestHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentBlockerRequestHandler.swift; sourceTree = ""; }; 03AB922626BB254800C6DFFD /* KaBlockApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KaBlockApp.swift; sourceTree = ""; }; @@ -97,13 +64,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 03346D5926B08EA2004A268E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; 03346D6526B08EA2004A268E /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -111,131 +71,75 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 03346D6F26B08EA2004A268E /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 03E41C022737270700F87ACB /* Cocoa.framework in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ 03346D2D26B08EA1004A268E = { isa = PBXGroup; children = ( - 03346D3226B08EA1004A268E /* Shared (App) */, - 03346D3B26B08EA2004A268E /* Shared (Extension) */, - 037870CB26EA993100075102 /* iOS (App) */, - 037870C726EA98D400075102 /* macOS (App) */, - 03AB91F126BB20CE00C6DFFD /* Frameworks */, + 03346D3226B08EA1004A268E /* App */, + 03346D3B26B08EA2004A268E /* Extension */, 03346D4B26B08EA2004A268E /* Products */, ); sourceTree = ""; }; - 03346D3226B08EA1004A268E /* Shared (App) */ = { + 03346D3226B08EA1004A268E /* App */ = { isa = PBXGroup; children = ( 03346D3A26B08EA2004A268E /* Assets.xcassets */, + 03AB922626BB254800C6DFFD /* KaBlockApp.swift */, 0381081226CC50D9008A912C /* ContentBlockerState.swift */, 036A5C6D26C44E1500A76915 /* HomeScreen.swift */, 0397975C26BC86460014BF79 /* Logo.swift */, + 036C977F273851FD00170DF1 /* Localizable.strings */, ); - path = "Shared (App)"; + path = App; sourceTree = ""; }; - 03346D3B26B08EA2004A268E /* Shared (Extension) */ = { + 03346D3B26B08EA2004A268E /* Extension */ = { isa = PBXGroup; children = ( 03AB91F726BB20CE00C6DFFD /* ContentBlockerRequestHandler.swift */, 03AB91F526BB20CE00C6DFFD /* blockerList.json */, 0381081526CC5794008A912C /* Info.plist */, ); - path = "Shared (Extension)"; + path = Extension; sourceTree = ""; }; 03346D4B26B08EA2004A268E /* Products */ = { isa = PBXGroup; children = ( 03346D4A26B08EA2004A268E /* Ka-Block!.app */, - 03346D5C26B08EA2004A268E /* Ka-Block!.app */, 03346D6826B08EA2004A268E /* Ka-Block! Extension.appex */, - 03346D7226B08EA2004A268E /* Ka-Block! Extension.appex */, ); name = Products; sourceTree = ""; }; - 037870C726EA98D400075102 /* macOS (App) */ = { - isa = PBXGroup; - children = ( - 037870C826EA98DD00075102 /* KaBlockApp.swift */, - 036C9780273851FF00170DF1 /* Localizable.strings */, - ); - path = "macOS (App)"; - sourceTree = ""; - }; - 037870CB26EA993100075102 /* iOS (App) */ = { - isa = PBXGroup; - children = ( - 03AB922626BB254800C6DFFD /* KaBlockApp.swift */, - 036C977F273851FD00170DF1 /* Localizable.strings */, - ); - path = "iOS (App)"; - sourceTree = ""; - }; - 03AB91F126BB20CE00C6DFFD /* Frameworks */ = { - isa = PBXGroup; - children = ( - 03AB91F226BB20CE00C6DFFD /* Cocoa.framework */, - ); - name = Frameworks; - sourceTree = ""; - }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - 03346D4926B08EA2004A268E /* Ka-Block (iOS) */ = { + 03346D4926B08EA2004A268E /* Ka-Block */ = { isa = PBXNativeTarget; - buildConfigurationList = 03346D9C26B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block (iOS)" */; + buildConfigurationList = 03346D9C26B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block" */; buildPhases = ( 03346D4626B08EA2004A268E /* Sources */, 03346D4726B08EA2004A268E /* Frameworks */, 03346D4826B08EA2004A268E /* Resources */, - 03346D9B26B08EA2004A268E /* Embed App Extensions */, + 03346D9B26B08EA2004A268E /* Embed Foundation Extensions */, ); buildRules = ( ); dependencies = ( 03346D6B26B08EA2004A268E /* PBXTargetDependency */, ); - name = "Ka-Block (iOS)"; + name = "Ka-Block"; productName = "Ka-Block (iOS)"; productReference = 03346D4A26B08EA2004A268E /* Ka-Block!.app */; productType = "com.apple.product-type.application"; }; - 03346D5B26B08EA2004A268E /* Ka-Block (macOS) */ = { - isa = PBXNativeTarget; - buildConfigurationList = 03346DA326B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block (macOS)" */; - buildPhases = ( - 03346D5826B08EA2004A268E /* Sources */, - 03346D5926B08EA2004A268E /* Frameworks */, - 03346D5A26B08EA2004A268E /* Resources */, - 03346DA226B08EA2004A268E /* Embed App Extensions */, - ); - buildRules = ( - ); - dependencies = ( - 03346D7526B08EA2004A268E /* PBXTargetDependency */, - ); - name = "Ka-Block (macOS)"; - productName = "Ka-Block (macOS)"; - productReference = 03346D5C26B08EA2004A268E /* Ka-Block!.app */; - productType = "com.apple.product-type.application"; - }; - 03346D6726B08EA2004A268E /* Ka-Block Extension (iOS) */ = { + 03346D6726B08EA2004A268E /* Ka-Block Extension */ = { isa = PBXNativeTarget; - buildConfigurationList = 03346D9826B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block Extension (iOS)" */; + buildConfigurationList = 03346D9826B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block Extension" */; buildPhases = ( 03346D6426B08EA2004A268E /* Sources */, 03346D6526B08EA2004A268E /* Frameworks */, @@ -245,28 +149,11 @@ ); dependencies = ( ); - name = "Ka-Block Extension (iOS)"; + name = "Ka-Block Extension"; productName = "Ka-Block Extension (iOS)"; productReference = 03346D6826B08EA2004A268E /* Ka-Block! Extension.appex */; productType = "com.apple.product-type.app-extension"; }; - 03346D7126B08EA2004A268E /* Ka-Block Extension (macOS) */ = { - isa = PBXNativeTarget; - buildConfigurationList = 03346D9F26B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block Extension (macOS)" */; - buildPhases = ( - 03346D6E26B08EA2004A268E /* Sources */, - 03346D6F26B08EA2004A268E /* Frameworks */, - 03346D7026B08EA2004A268E /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "Ka-Block Extension (macOS)"; - productName = "Ka-Block Extension (macOS)"; - productReference = 03346D7226B08EA2004A268E /* Ka-Block! Extension.appex */; - productType = "com.apple.product-type.app-extension"; - }; /* End PBXNativeTarget section */ /* Begin PBXProject section */ @@ -275,20 +162,14 @@ attributes = { BuildIndependentTargetsInParallel = 1; LastSwiftUpdateCheck = 1300; - LastUpgradeCheck = 1310; + LastUpgradeCheck = 1530; TargetAttributes = { 03346D4926B08EA2004A268E = { CreatedOnToolsVersion = 13.0; }; - 03346D5B26B08EA2004A268E = { - CreatedOnToolsVersion = 13.0; - }; 03346D6726B08EA2004A268E = { CreatedOnToolsVersion = 13.0; }; - 03346D7126B08EA2004A268E = { - CreatedOnToolsVersion = 13.0; - }; }; }; buildConfigurationList = 03346D3126B08EA1004A268E /* Build configuration list for PBXProject "Ka-Block" */; @@ -304,10 +185,8 @@ projectDirPath = ""; projectRoot = ""; targets = ( - 03346D4926B08EA2004A268E /* Ka-Block (iOS) */, - 03346D5B26B08EA2004A268E /* Ka-Block (macOS) */, - 03346D6726B08EA2004A268E /* Ka-Block Extension (iOS) */, - 03346D7126B08EA2004A268E /* Ka-Block Extension (macOS) */, + 03346D4926B08EA2004A268E /* Ka-Block */, + 03346D6726B08EA2004A268E /* Ka-Block Extension */, ); }; /* End PBXProject section */ @@ -322,15 +201,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 03346D5A26B08EA2004A268E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 03346D8326B08EA2004A268E /* Assets.xcassets in Resources */, - 036C97812738520300170DF1 /* Localizable.strings in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 03346D6626B08EA2004A268E /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -339,14 +209,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 03346D7026B08EA2004A268E /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 03AB920226BB231200C6DFFD /* blockerList.json in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXResourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -361,17 +223,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 03346D5826B08EA2004A268E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 0381081426CC50D9008A912C /* ContentBlockerState.swift in Sources */, - 036A5C6F26C44E1500A76915 /* HomeScreen.swift in Sources */, - 037870CA26EA98FD00075102 /* KaBlockApp.swift in Sources */, - 0397975E26BC86460014BF79 /* Logo.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; 03346D6426B08EA2004A268E /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -380,27 +231,14 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - 03346D6E26B08EA2004A268E /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 03AB920026BB211E00C6DFFD /* ContentBlockerRequestHandler.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ 03346D6B26B08EA2004A268E /* PBXTargetDependency */ = { isa = PBXTargetDependency; - target = 03346D6726B08EA2004A268E /* Ka-Block Extension (iOS) */; + target = 03346D6726B08EA2004A268E /* Ka-Block Extension */; targetProxy = 03346D6A26B08EA2004A268E /* PBXContainerItemProxy */; }; - 03346D7526B08EA2004A268E /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = 03346D7126B08EA2004A268E /* Ka-Block Extension (macOS) */; - targetProxy = 03346D7426B08EA2004A268E /* PBXContainerItemProxy */; - }; /* End PBXTargetDependency section */ /* Begin XCBuildConfiguration section */ @@ -439,9 +277,11 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 8; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_DYNAMIC_NO_PIC = NO; GCC_NO_COMMON_BLOCKS = YES; @@ -457,6 +297,8 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 4.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; @@ -501,9 +343,11 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 8; + DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = YES; GCC_C_LANGUAGE_STANDARD = gnu11; GCC_NO_COMMON_BLOCKS = YES; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; @@ -513,6 +357,8 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + MACOSX_DEPLOYMENT_TARGET = 13.0; MARKETING_VERSION = 4.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; @@ -527,14 +373,13 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = "Shared (Extension)/Info.plist"; + INFOPLIST_FILE = Extension/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; INFOPLIST_KEY_CFBundleExecutable = "Ka-Block! Extension"; INFOPLIST_KEY_CFBundleName = "Ka-Block! Extension"; INFOPLIST_KEY_CFBundleVersion = 1; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -544,7 +389,9 @@ PRODUCT_NAME = "Ka-Block! Extension"; SDKROOT = iphoneos; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,6"; @@ -557,14 +404,13 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = "Shared (Extension)/Info.plist"; + INFOPLIST_FILE = Extension/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; INFOPLIST_KEY_CFBundleExecutable = "Ka-Block! Extension"; INFOPLIST_KEY_CFBundleName = "Ka-Block! Extension"; INFOPLIST_KEY_CFBundleVersion = 1; INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; INFOPLIST_KEY_NSHumanReadableCopyright = ""; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -574,7 +420,9 @@ PRODUCT_NAME = "Ka-Block! Extension"; SDKROOT = iphoneos; SKIP_INSTALL = YES; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2,6"; @@ -591,6 +439,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; INFOPLIST_KEY_CFBundleExecutable = "Ka-Block!"; INFOPLIST_KEY_CFBundleName = "Ka-Block!"; INFOPLIST_KEY_CFBundleVersion = 1; @@ -598,7 +447,6 @@ INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -610,7 +458,9 @@ PRODUCT_BUNDLE_IDENTIFIER = com.kablock.ios; PRODUCT_NAME = "Ka-Block!"; SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -626,6 +476,7 @@ CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = ""; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; INFOPLIST_KEY_CFBundleExecutable = "Ka-Block!"; INFOPLIST_KEY_CFBundleName = "Ka-Block!"; INFOPLIST_KEY_CFBundleVersion = 1; @@ -633,7 +484,6 @@ INFOPLIST_KEY_UILaunchScreen_Generation = YES; INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; - IPHONEOS_DEPLOYMENT_TARGET = 14.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", @@ -645,7 +495,9 @@ PRODUCT_BUNDLE_IDENTIFIER = com.kablock.ios; PRODUCT_NAME = "Ka-Block!"; SDKROOT = iphoneos; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; SUPPORTS_MACCATALYST = NO; + SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -653,138 +505,6 @@ }; name = Release; }; - 03346DA026B08EA2004A268E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - ENABLE_APP_SANDBOX = YES; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_USER_SELECTED_FILES = readonly; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = "Shared (Extension)/Info.plist"; - INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; - INFOPLIST_KEY_CFBundleExecutable = "Ka-Block! Extension"; - INFOPLIST_KEY_CFBundleName = "Ka-Block! Extension"; - INFOPLIST_KEY_CFBundleVersion = 1; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@executable_path/../../../../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 11.0; - PRODUCT_BUNDLE_IDENTIFIER = com.kablock.ios.KaBlockContentBlocker; - PRODUCT_NAME = "Ka-Block! Extension"; - SDKROOT = macosx; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 03346DA126B08EA2004A268E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - ENABLE_APP_SANDBOX = YES; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_USER_SELECTED_FILES = readonly; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_FILE = "Shared (Extension)/Info.plist"; - INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; - INFOPLIST_KEY_CFBundleExecutable = "Ka-Block! Extension"; - INFOPLIST_KEY_CFBundleName = "Ka-Block! Extension"; - INFOPLIST_KEY_CFBundleVersion = 1; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; - INFOPLIST_KEY_NSHumanReadableCopyright = ""; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - "@executable_path/../../../../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 11.0; - PRODUCT_BUNDLE_IDENTIFIER = com.kablock.ios.KaBlockContentBlocker; - PRODUCT_NAME = "Ka-Block! Extension"; - SDKROOT = macosx; - SKIP_INSTALL = YES; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; - 03346DA426B08EA2004A268E /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - ENABLE_APP_SANDBOX = YES; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_USER_SELECTED_FILES = readonly; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; - INFOPLIST_KEY_CFBundleExecutable = "Ka-Block!"; - INFOPLIST_KEY_CFBundleName = "Ka-Block!"; - INFOPLIST_KEY_CFBundleVersion = 1; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; - INFOPLIST_KEY_NSPrincipalClass = NSApplication; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 11.0; - OTHER_LDFLAGS = ( - "-framework", - WebKit, - ); - PRODUCT_BUNDLE_IDENTIFIER = com.kablock.ios; - PRODUCT_NAME = "Ka-Block!"; - SDKROOT = macosx; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - 03346DA526B08EA2004A268E /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - ENABLE_APP_SANDBOX = YES; - ENABLE_HARDENED_RUNTIME = YES; - ENABLE_USER_SELECTED_FILES = readonly; - GENERATE_INFOPLIST_FILE = YES; - INFOPLIST_KEY_CFBundleDisplayName = "Ka-Block!"; - INFOPLIST_KEY_CFBundleExecutable = "Ka-Block!"; - INFOPLIST_KEY_CFBundleName = "Ka-Block!"; - INFOPLIST_KEY_CFBundleVersion = 1; - INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities"; - INFOPLIST_KEY_NSPrincipalClass = NSApplication; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 11.0; - OTHER_LDFLAGS = ( - "-framework", - WebKit, - ); - PRODUCT_BUNDLE_IDENTIFIER = com.kablock.ios; - PRODUCT_NAME = "Ka-Block!"; - SDKROOT = macosx; - SWIFT_EMIT_LOC_STRINGS = YES; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ @@ -797,7 +517,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 03346D9826B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block Extension (iOS)" */ = { + 03346D9826B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block Extension" */ = { isa = XCConfigurationList; buildConfigurations = ( 03346D9926B08EA2004A268E /* Debug */, @@ -806,7 +526,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 03346D9C26B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block (iOS)" */ = { + 03346D9C26B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block" */ = { isa = XCConfigurationList; buildConfigurations = ( 03346D9D26B08EA2004A268E /* Debug */, @@ -815,24 +535,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - 03346D9F26B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block Extension (macOS)" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 03346DA026B08EA2004A268E /* Debug */, - 03346DA126B08EA2004A268E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 03346DA326B08EA2004A268E /* Build configuration list for PBXNativeTarget "Ka-Block (macOS)" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 03346DA426B08EA2004A268E /* Debug */, - 03346DA526B08EA2004A268E /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; /* End XCConfigurationList section */ }; rootObject = 03346D2E26B08EA1004A268E /* Project object */; diff --git a/macOS (App)/KaBlockApp.swift b/macOS (App)/KaBlockApp.swift deleted file mode 100644 index 4c20b73..0000000 --- a/macOS (App)/KaBlockApp.swift +++ /dev/null @@ -1,58 +0,0 @@ -import SwiftUI - -@main -struct KaBlockApp: App { - @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate - - @ObservedObject var contentBlockerState = ContentBlockerState(withIdentifier: "com.kablock.ios.KaBlockContentBlocker") - - var body: some Scene { - WindowGroup { - HomeScreen(isEnabled: contentBlockerState.isEnabled) - .frame(width: 375, height: 640) - .background(NonResizableWindow()) - } - .windowStyle(HiddenTitleBarWindowStyle()) - } -} - -struct NonResizableWindow: NSViewRepresentable { - func makeNSView(context _: Context) -> NSView { - let view = NSView() - DispatchQueue.main.async { - guard let window = view.window else { return } - window.styleMask = [.closable, .titled, .fullSizeContentView] - window.collectionBehavior = [.fullScreenNone] - - if let menu = window.menu { - let appMenuItem = menu.item(withTitle: "Ka-Block!")! - let fileMenuItem = menu.item(withTitle: "File")! - - menu.items = [appMenuItem, fileMenuItem] - - appMenuItem.submenu!.items = [ - appMenuItem.submenu!.item(withTitle: "About Ka-Block!")!, - NSMenuItem.separator(), - appMenuItem.submenu!.item(withTitle: "Quit Ka-Block!")!, - ] - - fileMenuItem.submenu!.items = [ - fileMenuItem.submenu!.item(withTitle: "Close")!, - ] - } - } - return view - } - - func updateNSView(_: NSView, context _: Context) {} -} - -class AppDelegate: NSObject, NSApplicationDelegate { - func applicationDidFinishLaunching(_: Notification) { - NSWindow.allowsAutomaticWindowTabbing = false - } - - func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool { - true - } -} diff --git a/macOS (App)/Localizable.strings b/macOS (App)/Localizable.strings deleted file mode 100644 index be421e1..0000000 --- a/macOS (App)/Localizable.strings +++ /dev/null @@ -1,2 +0,0 @@ -"instructions-enabled" = "Ad blocking is enabled.\nYou’re all set!"; -"instructions-disabled" = "Enable Ka-Block! in\nSettings → Safari → Extensions\nto enjoy a faster web.";