From 10faeb88c7b6d129ba22cdb02cbada8a7024eb0a Mon Sep 17 00:00:00 2001 From: Nick Bourdakos Date: Tue, 25 Apr 2023 12:56:05 -0400 Subject: [PATCH] Add usage descriptions to iOS sample app --- .../Example/iOS Example.xcodeproj/project.pbxproj | 8 ++++++++ .../NearbyConnections/Example/iOS-Example-Info.plist | 10 ++++++++++ third_party/absl | 2 +- third_party/depot_tools | 2 +- .../google-toolbox-for-mac/google-toolbox-for-mac | 2 +- third_party/gtest | 2 +- third_party/mbedtls | 2 +- third_party/protobuf | 2 +- 8 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 connections/swift/NearbyConnections/Example/iOS-Example-Info.plist diff --git a/connections/swift/NearbyConnections/Example/iOS Example.xcodeproj/project.pbxproj b/connections/swift/NearbyConnections/Example/iOS Example.xcodeproj/project.pbxproj index aaab107c..88e1bf7c 100644 --- a/connections/swift/NearbyConnections/Example/iOS Example.xcodeproj/project.pbxproj +++ b/connections/swift/NearbyConnections/Example/iOS Example.xcodeproj/project.pbxproj @@ -31,6 +31,7 @@ 23252B5729D739E400BB0370 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 23252B5929D739E500BB0370 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 23252B5C29D739E500BB0370 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 236C727829F83A1F00E54333 /* iOS-Example-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = "iOS-Example-Info.plist"; sourceTree = SOURCE_ROOT; }; 23D1FD2329D8A73200620802 /* Config.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Config.swift; sourceTree = ""; }; 23D1FD2529D8A9FF00620802 /* DiscoveredEndpoint.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DiscoveredEndpoint.swift; sourceTree = ""; }; 23D1FD2729D8AA2200620802 /* ConnectionRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConnectionRequest.swift; sourceTree = ""; }; @@ -78,6 +79,7 @@ 23252B5429D739E400BB0370 /* iOS Example */ = { isa = PBXGroup; children = ( + 236C727829F83A1F00E54333 /* iOS-Example-Info.plist */, 23F6A71429D7B0AB00558F56 /* Model */, 23252B5529D739E400BB0370 /* HelloConnectionsApp.swift */, 23252B5729D739E400BB0370 /* ContentView.swift */, @@ -345,6 +347,9 @@ DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "iOS-Example-Info.plist"; + INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "This app demonstrates Nearby Connections. Supply a value for this string to explain how the user benefits when they allow the app to use Bluetooth."; + INFOPLIST_KEY_NSLocalNetworkUsageDescription = "This app demonstrates Nearby Connections. Supply a value for this string to explain how the user benefits when they allow the app to use Local Network."; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; @@ -374,6 +379,9 @@ DEVELOPMENT_TEAM = ""; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "iOS-Example-Info.plist"; + INFOPLIST_KEY_NSBluetoothAlwaysUsageDescription = "This app demonstrates Nearby Connections. Supply a value for this string to explain how the user benefits when they allow the app to use Bluetooth."; + INFOPLIST_KEY_NSLocalNetworkUsageDescription = "This app demonstrates Nearby Connections. Supply a value for this string to explain how the user benefits when they allow the app to use Local Network."; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; INFOPLIST_KEY_UILaunchScreen_Generation = YES; diff --git a/connections/swift/NearbyConnections/Example/iOS-Example-Info.plist b/connections/swift/NearbyConnections/Example/iOS-Example-Info.plist new file mode 100644 index 00000000..7954f507 --- /dev/null +++ b/connections/swift/NearbyConnections/Example/iOS-Example-Info.plist @@ -0,0 +1,10 @@ + + + + + NSBonjourServices + + _307BEAB11028._tcp + + + diff --git a/third_party/absl b/third_party/absl index 29273402..9336be04 160000 --- a/third_party/absl +++ b/third_party/absl @@ -1 +1 @@ -Subproject commit 2927340217c37328319b5869285a6dcdbc13e7a7 +Subproject commit 9336be04a242237cd41a525bedfcf3be1bb55377 diff --git a/third_party/depot_tools b/third_party/depot_tools index 95a28c5a..e1197f06 160000 --- a/third_party/depot_tools +++ b/third_party/depot_tools @@ -1 +1 @@ -Subproject commit 95a28c5a14cf0c7040794e10e9404b270784010c +Subproject commit e1197f06a8f45c0328d341b30e337d3a4b609716 diff --git a/third_party/google-toolbox-for-mac/google-toolbox-for-mac b/third_party/google-toolbox-for-mac/google-toolbox-for-mac index 1b2da5e6..33941504 160000 --- a/third_party/google-toolbox-for-mac/google-toolbox-for-mac +++ b/third_party/google-toolbox-for-mac/google-toolbox-for-mac @@ -1 +1 @@ -Subproject commit 1b2da5e6e6b5edb1fa1427cc77e23f04069c04ad +Subproject commit 339415048005a9eba957357a02459a977a2e3007 diff --git a/third_party/gtest b/third_party/gtest index 8fa9461c..d61d4d8e 160000 --- a/third_party/gtest +++ b/third_party/gtest @@ -1 +1 @@ -Subproject commit 8fa9461cc28e053d66f17132808d287ae51575e2 +Subproject commit d61d4d8e64c08a662055e82904bbf90e108a704f diff --git a/third_party/mbedtls b/third_party/mbedtls index 6a327a5f..3e0418fe 160000 --- a/third_party/mbedtls +++ b/third_party/mbedtls @@ -1 +1 @@ -Subproject commit 6a327a5fdc2786cb50b4dbe5e3a75884a1f8435a +Subproject commit 3e0418fe502b2a2194e118d362efdfc0e558be73 diff --git a/third_party/protobuf b/third_party/protobuf index 53515ead..4812107b 160000 --- a/third_party/protobuf +++ b/third_party/protobuf @@ -1 +1 @@ -Subproject commit 53515eadce8d732bc0b2d0f0c8ec20ddd55ef86b +Subproject commit 4812107b9d0fb9fdcca933766c237c38f2150379