Don't presume to be able to figure out whether we should get back network info or not, so just remove the corresponding assert. Fixes https://github.com/xamarin/xamarin-macios/issues/12278.
This commit is contained in:
Родитель
8bd702ca10
Коммит
6253a88198
|
@ -74,13 +74,13 @@ namespace MonoTouchFixtures.SystemConfiguration {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
Assert.AreEqual (StatusCode.OK, status, "Status");
|
Assert.AreEqual (StatusCode.OK, status, "Status");
|
||||||
// To get a non-null dictionary back, starting in iOS 12, we must (https://developer.apple.com/documentation/systemconfiguration/1614126-cncopycurrentnetworkinfo)
|
// It's quite complex to figure out whether we should get a dictionary back or not.
|
||||||
// * Use core location, and request (and get) authorization to use location information
|
// References:
|
||||||
// * Add the 'com.apple.developer.networking.wifi-info' entitlement
|
// * https://github.com/xamarin/xamarin-macios/commit/24331f35dd67d19f3ed9aca7b8b21827ce0823c0
|
||||||
// We're not using custom entitlements when building for device, which means that we can't make this work at the moment.
|
// * https://github.com/xamarin/xamarin-macios/issues/11504
|
||||||
// So just assert that we get null if running on iOS 12+.
|
// * https://github.com/xamarin/xamarin-macios/issues/12278
|
||||||
// Also assert that we get null in all other cases as well, since we link with the iOS 13+ SDK.
|
// * https://developer.apple.com/documentation/systemconfiguration/1614126-cncopycurrentnetworkinfo
|
||||||
Assert.IsNull (dict, "Dictionary");
|
// So don't assert anything about the dictionary.
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче