Skip to content

Commit

Permalink
Merge branch 'ldev'
Browse files Browse the repository at this point in the history
  • Loading branch information
arjpar committed Jan 22, 2025
2 parents 8e13902 + f7147c7 commit ab298ba
Show file tree
Hide file tree
Showing 161 changed files with 7,445 additions and 4,762 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00C356262D2EEFE000BACCE7"
BuildableName = "WebShield Ads.appex"
BlueprintName = "WebShield Ads"
BuildableName = "WebShieldAds.appex"
BlueprintName = "WebShieldAds"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "006FC39B2D3095DD0091056F"
BuildableName = "WebShield Advanced.appex"
BlueprintName = "WebShield Advanced"
BuildableName = "WebShieldAdvanced.appex"
BlueprintName = "WebShieldAdvanced"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down Expand Up @@ -55,8 +55,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "006FC39B2D3095DD0091056F"
BuildableName = "WebShield Advanced.appex"
BlueprintName = "WebShield Advanced"
BuildableName = "WebShieldAdvanced.appex"
BlueprintName = "WebShieldAdvanced"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</MacroExpansion>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718C42D3453FF00FD22A7"
BuildableName = "WebShield Annoyances.appex"
BlueprintName = "WebShield Annoyances"
BuildableName = "WebShieldAnnoyances.appex"
BlueprintName = "WebShieldAnnoyances"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E7189C2D3453CF00FD22A7"
BuildableName = "WebShield Cookies.appex"
BlueprintName = "WebShield Cookies"
BuildableName = "WebShieldCookies.appex"
BlueprintName = "WebShieldCookies"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E719002D34545D00FD22A7"
BuildableName = "WebShield Custom.appex"
BlueprintName = "WebShield Custom"
BuildableName = "WebShieldCustom.appex"
BlueprintName = "WebShieldCustom"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718EC2D34543F00FD22A7"
BuildableName = "WebShield Experimental.appex"
BlueprintName = "WebShield Experimental"
BuildableName = "WebShieldExperimental.appex"
BlueprintName = "WebShieldExperimental"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718882D3453BC00FD22A7"
BuildableName = "WebShield Multipurpose.appex"
BlueprintName = "WebShield Multipurpose"
BuildableName = "WebShieldMultipurpose.appex"
BlueprintName = "WebShieldMultipurpose"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718602D3452EC00FD22A7"
BuildableName = "WebShield Privacy.appex"
BlueprintName = "WebShield Privacy"
BuildableName = "WebShieldPrivacy.appex"
BlueprintName = "WebShieldPrivacy"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718D82D34542600FD22A7"
BuildableName = "WebShield Regional.appex"
BlueprintName = "WebShield Regional"
BuildableName = "WebShieldRegional.appex"
BlueprintName = "WebShieldRegional"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718742D3453A700FD22A7"
BuildableName = "WebShield Security.appex"
BlueprintName = "WebShield Security"
BuildableName = "WebShieldSecurity.appex"
BlueprintName = "WebShieldSecurity"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "00E718B02D3453E600FD22A7"
BuildableName = "WebShield Social.appex"
BlueprintName = "WebShield Social"
BuildableName = "WebShieldSocial.appex"
BlueprintName = "WebShieldSocial"
ReferencedContainer = "container:WebShield.xcodeproj">
</BuildableReference>
</BuildActionEntry>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Release"
buildConfiguration = "Debug"
selectedDebuggerIdentifier = ""
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
launchStyle = "0"
Expand Down
44 changes: 33 additions & 11 deletions WebShieldAds/Info.plist
Original file line number Diff line number Diff line change
@@ -1,15 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.Safari.content-blocker</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).ContentBlockerRequestHandler</string>
</dict>
<key>NSHumanReadableDescription</key>
<string>Declarative wide-spectrum content blocking for WebShield for the "ads" category.</string>
</dict>
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>$(APP_DISPLAY_NAME)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.Safari.content-blocker</string>
<key>NSExtensionPrincipalClass</key>
<string>$(PRODUCT_MODULE_NAME).ContentBlockerRequestHandler</string>
</dict>
<key>NSHumanReadableDescription</key>
<string>Block annoying cookie and tracking consent notices while keeping your privacy.</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions WebShieldAds/Source/ContentBlockerRequestHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ final class ContentBlockerRequestHandler: NSObject, NSExtensionRequestHandling {
forSecurityApplicationGroupIdentifier: requiredPart)
else {
logger.log(
"Error: Could not get container URL for group \(requiredPart, privacy: .public)")
"Error: Could not get container URL for group \(requiredPart)")
context.completeRequest(returningItems: nil, completionHandler: nil)
return
}

logger.log("Successfully got container URL for group \(requiredPart, privacy: .public)")
logger.log("Successfully got container URL for group \(requiredPart)")

let blockerlistURL = containerURL.appendingPathComponent(
"ads.json")
Expand Down
22 changes: 22 additions & 0 deletions WebShieldAdvanced/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,28 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleDisplayName</key>
<string>$(APP_DISPLAY_NAME)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down
16 changes: 8 additions & 8 deletions WebShieldAdvanced/Resources/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"extension_name": {
"message": "WebShield Advanced",
"description": "The display name for the extension."
},
"extension_description": {
"message": "Ad-blocker for complex ads.",
"description": "Description of what the extension does."
}
"extension_name": {
"message": "WebShield Advanced",
"description": "The display name for the extension."
},
"extension_description": {
"message": "Ad-blocker for complex ads.",
"description": "Description of what the extension does."
}
}
Loading

0 comments on commit ab298ba

Please sign in to comment.