From 00cf2bc3601c84452ce5d8ad7329e516c1bad808 Mon Sep 17 00:00:00 2001 From: Nico Verbruggen Date: Sat, 11 Jul 2020 11:18:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20Internet=20Access=20Policy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PHP Monitor.xcodeproj/project.pbxproj | 24 ++++++++++--- phpmon/IAP/InternetAccessPolicy.plist | 47 +++++++++++++++++++++++++ phpmon/IAP/InternetAccessPolicy.strings | 2 ++ 3 files changed, 69 insertions(+), 4 deletions(-) create mode 100644 phpmon/IAP/InternetAccessPolicy.plist create mode 100644 phpmon/IAP/InternetAccessPolicy.strings diff --git a/PHP Monitor.xcodeproj/project.pbxproj b/PHP Monitor.xcodeproj/project.pbxproj index babc472..deb9dcb 100644 --- a/PHP Monitor.xcodeproj/project.pbxproj +++ b/PHP Monitor.xcodeproj/project.pbxproj @@ -7,6 +7,8 @@ objects = { /* Begin PBXBuildFile section */ + C405A4D024B9B9140062FAFA /* InternetAccessPolicy.strings in Resources */ = {isa = PBXBuildFile; fileRef = C405A4CE24B9B9130062FAFA /* InternetAccessPolicy.strings */; }; + C405A4D124B9B9140062FAFA /* InternetAccessPolicy.plist in Resources */ = {isa = PBXBuildFile; fileRef = C405A4CF24B9B9140062FAFA /* InternetAccessPolicy.plist */; }; C41C1B3722B0097F00E7CF16 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = C41C1B3622B0097F00E7CF16 /* AppDelegate.swift */; }; C41C1B3B22B0098000E7CF16 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C41C1B3A22B0098000E7CF16 /* Assets.xcassets */; }; C41C1B3E22B0098000E7CF16 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = C41C1B3C22B0098000E7CF16 /* Main.storyboard */; }; @@ -27,6 +29,8 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + C405A4CE24B9B9130062FAFA /* InternetAccessPolicy.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; path = InternetAccessPolicy.strings; sourceTree = ""; }; + C405A4CF24B9B9140062FAFA /* InternetAccessPolicy.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = InternetAccessPolicy.plist; sourceTree = ""; }; C41C1B3322B0097F00E7CF16 /* PHP Monitor.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "PHP Monitor.app"; sourceTree = BUILT_PRODUCTS_DIR; }; C41C1B3622B0097F00E7CF16 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; C41C1B3A22B0098000E7CF16 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; @@ -61,6 +65,15 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + C405A4CD24B9B9070062FAFA /* IAP */ = { + isa = PBXGroup; + children = ( + C405A4CF24B9B9140062FAFA /* InternetAccessPolicy.plist */, + C405A4CE24B9B9130062FAFA /* InternetAccessPolicy.strings */, + ); + path = IAP; + sourceTree = ""; + }; C41C1B2A22B0097F00E7CF16 = { isa = PBXGroup; children = ( @@ -91,6 +104,7 @@ C41C1B4022B0098000E7CF16 /* phpmon.entitlements */, C41C1B3A22B0098000E7CF16 /* Assets.xcassets */, C473319E2470923A009A0597 /* Localizable.strings */, + C405A4CD24B9B9070062FAFA /* IAP */, ); path = phpmon; sourceTree = ""; @@ -220,7 +234,9 @@ files = ( C41C1B3B22B0098000E7CF16 /* Assets.xcassets in Resources */, C41C1B3E22B0098000E7CF16 /* Main.storyboard in Resources */, + C405A4D124B9B9140062FAFA /* InternetAccessPolicy.plist in Resources */, C473319F2470923A009A0597 /* Localizable.strings in Resources */, + C405A4D024B9B9140062FAFA /* InternetAccessPolicy.strings in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -385,7 +401,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_TEAM = 8M54J5J787; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = phpmon/Info.plist; @@ -393,7 +409,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 2.1; + MARKETING_VERSION = 2.2; PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -409,7 +425,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 23; + CURRENT_PROJECT_VERSION = 24; DEVELOPMENT_TEAM = 8M54J5J787; ENABLE_HARDENED_RUNTIME = YES; INFOPLIST_FILE = phpmon/Info.plist; @@ -417,7 +433,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 2.1; + MARKETING_VERSION = 2.2; PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/phpmon/IAP/InternetAccessPolicy.plist b/phpmon/IAP/InternetAccessPolicy.plist new file mode 100644 index 0000000..2c7c2e3 --- /dev/null +++ b/phpmon/IAP/InternetAccessPolicy.plist @@ -0,0 +1,47 @@ + + + + + ApplicationDescription + PHP Monitor is a tool that shows the active PHP version in your menu bar and gives you easy access to certain PHP service actions and config files. + DeveloperName + Nico Verbruggen + Website + https://github.com/nicoverbruggen/phpmon + Connections + + + IsIncoming + + Host + registry.npmjs.org + NetworkProtocol + TCP + Port + 80, 443 + Relevance + Essential + Purpose + PHP Monitor directly invokes Homebrew which contacts the NPM Registry. + DenyConsequences + If you deny these connections, PHP Monitor might not be able to complete its preset set of instructions, causing version switching to fail. + + + IsIncoming + + Host + github.com, api.github.com + NetworkProtocol + TCP + Port + 443 + Relevance + Essential + Purpose + PHP Monitor directly invokes Homebrew which contacts GitHub. + DenyConsequences + If you deny these connections, PHP Monitor might not be able to complete its preset set of instructions, causing version switching to fail. + + + + diff --git a/phpmon/IAP/InternetAccessPolicy.strings b/phpmon/IAP/InternetAccessPolicy.strings new file mode 100644 index 0000000..baf1ad1 --- /dev/null +++ b/phpmon/IAP/InternetAccessPolicy.strings @@ -0,0 +1,2 @@ +// Top-level, general application description: +"ApplicationDescription" = "PHP Monitor is a tool that shows the active PHP version in your menu bar and gives you easy access to certain PHP service actions and config files.";