Граф коммитов

176 Коммитов

Автор SHA1 Сообщение Дата
Rolf Bjarne Kvinge 0717ac3c24
Add a new device type for Mac Catalyst. (#92) 2022-04-05 21:00:55 +02:00
Mauro Agnoletti ed2a6046ca Remove net451 target framework from Xamarin.MacDev.csproj
VS projects are now compatible with .NET 4.6.1 so we don't need MacDev.csproj to target 4.5.1 anymore
2021-12-09 16:23:05 -05:00
Rolf Bjarne Kvinge 9e6e29f2a4
[Xamarin.MacDev] Return valid iOS/macOS versions when converting betweeen iOS and macOS versions for Mac Catalyst. (#90)
This allows us to construct better error messages.
2021-09-17 17:20:08 +02:00
emaf 41d91e0de0 Makes TryGetSystemXcode public for VSM
Partial fix for https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1287695

By making this method public we can use it from VSM to understand where the Xcode path is coming from and provide a better experience for the customers.
2021-03-03 20:43:31 -03:00
Rolf Bjarne Kvinge 1e738e9f7f
[Xamarin.MacDev] Extract the code to convert between Mac Catalyst versions to a separate file. (#89)
This way the code can be included as source in the mtouch/mmp/dotnet-linker projets in xamarin-macios.
2021-02-15 14:21:10 +01:00
Rolf Bjarne Kvinge a3bb12c542
[Xamarin.MacDev] Add methods to map between iOS and macOS versions for Mac Catalyst. (#88) 2021-02-11 16:30:38 +01:00
Rolf Bjarne Kvinge 02d6d05be3
[Xamarin.MacDev] Add an AppleSdkVersion struct which replaces IPhoneSdkVersion and MacOSXSdkVersion. (#87)
This reduces code duplication and makes it possible to simplify logic in a few places.
2021-02-11 16:00:28 +01:00
Rolf Bjarne Kvinge e7ec7ef510
[Xamarin.MacDev] Fail gracefully if trying to grab a PList entry from a file that doesn't exist. (#86)
We run into this code path on Mac Catalyst.
2021-02-11 08:30:02 +01:00
Rolf Bjarne Kvinge fae0237704
[Xamarin.MacDev] Add GetAppleDTSettings and GetSdkSettings to the IAppleSdk interface. (#85)
And make the MacOSXSdk and AppleSdk classes implement these new methods,
without changing any of the public API in these classes.

This makes it easier to share code between Xamarin.iOS and Xamarin.Mac, since
the IAppleSdk interface can be used in shared code, while the separate classes
can't.
2021-01-11 14:10:06 +01:00
Rolf Bjarne Kvinge f665e3a0fc
Use what's returned by 'xcode-select -p' as the configured Xcode if none is specified in Visual Studio's settings. (#84)
Use what's returned by 'xcode-select -p' as the configured Xcode if none is
specified in Visual Studio's settings. It looks like this was the intention in
the code, but the code that calls 'xcode-select -p' would never execute,
because we'd only run into it if GetConfiguredSdkLocation returned null/empty,
which it never did because it returned the default location
'/Applications/Xcode.app' if nothing was configured in VSfM. With this change,
GetConfiguredSdkLocation will try to get the system's Xcode location
('xcode-select -p') before returning /Applications/Xcode.app.

Also remove /Developer as a default location, Xcode hasn't been there in many,
many years.

Now the order is:

1. Settings in Visual Studio's Preferences.
2. System's Xcode (xcode-select --print-path).
3. /Applications/Xcode.app

This avoids strange problems if the system's Xcode is not
/Applications/Xcode.app and there's no Xcode configured in Visual Studio's
settings.

Ref: https://github.com/xamarin/xamarin-macios/issues/10003
2020-10-29 20:59:14 +01:00
Manuel de la Pena c490a36fe6
[Xcode12] Bring xcode 12 changes. 2020-09-24 09:43:45 -04:00
Manuel de la Pena ef85617bd2 Merge branch 'd16-8' into main-xcode12 2020-09-24 09:30:54 -04:00
Joaquin Jares fed032b789
Merge pull request #82 from xamarin/dev/joj/policheck
Updating comment for policheck
2020-09-23 14:35:26 -03:00
Joaquin Jares ffad12eef4
Updating comment for policheck
This is referenced on AB#1188585 and AB#1198008
2020-09-23 14:33:57 -03:00
Alex Soto e244776a5a
Merge pull request #81 from xamarin/xcode12
Merge Xcode12 into d16-8
2020-09-18 12:55:29 -04:00
emaf d20cfa6018 [xcode12] Adds Accent Color manifest keys
XSAccentColorAssets will be used as custom key for storing the path to the asset, and NSAccentColorName is the Apple key that contains the name of the asset that will be used as accent color by the OS
2020-08-31 10:41:19 -03:00
Mauro Agnoletti 7ea8326509 Set IndexFileName (Provisioning Profiles.index) based on the current OS platform
For Windows, the file was stored on the Documents folder and we don't store anything in there but in %LocalAppData%\Xamarin
2020-08-14 13:35:59 -03:00
Mauro Agnoletti 8e223b7a70 Set IndexFileName (Provisioning Profiles.index) based on the current OS platform
For Windows, the file was stored on the Documents folder and we don't store anything in there but in %LocalAppData%\Xamarin
2020-08-14 13:27:43 -03:00
Rolf Bjarne Kvinge af50d97218
Add AutoFill CredentialProvider NSExtensionPoint support (#75) (#77)
* Add credential provider to ExtensionPoint enumeration

* Add min version check rule for credential provider ExtensionPoint

* Add trailing comma to make the next entry's diff smaller

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

Co-authored-by: kiddailey <kiddailey@users.noreply.github.com>
2020-07-14 17:47:16 +02:00
Rolf Bjarne Kvinge 8208733cd6
Add AutoFill CredentialProvider NSExtensionPoint support (#75) (#76)
* Add credential provider to ExtensionPoint enumeration

* Add min version check rule for credential provider ExtensionPoint

* Add trailing comma to make the next entry's diff smaller

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>

Co-authored-by: kiddailey <kiddailey@users.noreply.github.com>
2020-07-14 15:27:47 +02:00
kiddailey 5e08f5f2fd
Add AutoFill CredentialProvider NSExtensionPoint support (#75)
* Add credential provider to ExtensionPoint enumeration

* Add min version check rule for credential provider ExtensionPoint

* Add trailing comma to make the next entry's diff smaller

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
2020-07-07 08:05:57 +02:00
Rolf Bjarne Kvinge 7e9075cab0 Skip '5' as a family device value, since we don't know what it means. 2020-06-23 13:03:32 +02:00
Rolf Bjarne Kvinge a1bc6f39b3
[Xamarin.MacDev] Split IAppleSdkVersion.TryParse in two methods. (#73)
Split IAppleSdkVersion.TryParse into two methods, one that outputs the parsed
int array and one that outputs the actual IAppleSdkVersion. This way we can
re-use the actual version validation by using the int array overload when
we're not interested in the actual version output.
2020-06-09 17:19:52 +02:00
Rolf Bjarne Kvinge 45c5a680e2
[Xamarin.MacDev] Add interfaces to bridge Xamarin.iOS- and Xamarin.Mac-specific classes. (#72)
* [Xamarin.MacDev] Add interfaces to bridge Xamarin.iOS- and Xamarin.Mac-specific classes.

* Add IAppleSdk interface to bridge AppleSdk and MacOSXSdk.
* Add IAppleSdkVersion interface to bridge IPhoneSdkVersion and MacOXSdkVersion.

* Use camel case.
2020-04-27 17:32:44 +02:00
Rolf Bjarne Kvinge a0a11aff27
Adjust SDK validation to allow tools/bin and not allow usr/bin. (#71)
Adjust SDK validation to find mtouch in a tools/bin directory (which is where
mtouch resides when shipped in a nuget package), and not look in usr/bin
(mtouch hasn't been there in a long, long time, and then it was very briefly).

Simplify the validation logic to output mtouch's actual path instead of a
value indicating the subdirectory where it was found.

Additionally compute the bin directory to be mtouch's directory, and the lib
directory a sibling of the bin directory.
2020-03-05 16:26:01 +01:00
Rolf Bjarne Kvinge e21e1aaba9
Accept 'tools/buildinfo' as an alternative path to 'buildinfo' due to an nuget bug. (#70)
nuget doesn't like files that start with 'build*' in the root nuget directory
[1], so avoid it by putting 'buildinfo' in 'tools/buildinfo' instead.

[1]: https://github.com/NuGet/Home/issues/8810
2020-02-24 20:59:27 +01:00
Rolf Bjarne Kvinge ce242367cb
Don't look in /Developer/MonoTouch anymore, there's nothing there. (#69) 2020-02-14 20:14:12 +01:00
Emanuel Fernandez Dell'Oca 210c664e56
Adds net451 to Xamarin.MacDev.csproj
VS projects are not compatible with .NET 4.6.1 so we still need MacDev.csproj to target 4.5.1.
2020-01-07 16:30:32 -03:00
Ema 64db365267 [winios] Changes provisioning profiles default path
Adds a default path for Windows, since now we'll need to handle provisioning profiles also on that side for iOS without a Mac.
2020-01-07 12:22:46 -03:00
Rolf Bjarne Kvinge d34430aea5
Switch to short-form projects and build for both net461 and netstandard2.0. (#68)
* Use package references instead of packages.conf in preparation for move to short-form csprojs.

* Move to short-form csproj.

* Build for netstandard2.0.
2020-01-07 09:08:32 +01:00
Rolf Bjarne Kvinge 0f578f51e6
[tests] Upgrade to NUnit 3.12 and use package references. (#65) 2019-12-19 15:20:33 +01:00
Rolf Bjarne Kvinge 55a30e2f7a [tests] Adjust tests to not expect the provisioning profiles in the index in any particular order. (#63) 2019-12-19 09:07:49 -05:00
Rolf Bjarne Kvinge dc270f6890 Make methods that do nothing obsolete and fix a compiler warning. (#67)
Fixes:

> AppleSdkSettings.cs(291,30): warning CS0067: The event 'AppleSdkSettings.Changed' is never used
2019-12-19 09:07:27 -05:00
Rolf Bjarne Kvinge 681aef6365 Remove unused csproj. (#66) 2019-12-18 07:24:48 -05:00
William Kent d78a92f911 Update gitignore (#55) 2019-12-18 07:39:47 +01:00
Kunyi Li ca221c8fd6 Bug 1003788: 10.14 missing from target Mac OS version drop-down menu (#62)
* Added 10.14 and 10.15 to list of Mac OS versions.
2019-10-24 18:19:41 -03:00
Rolf Bjarne Kvinge 0bca924ef4
Merge pull request #60 from rolfbjarne/master-xcode11
Merge remote-tracking branch 'origin/d16-3-xcode11' into master-xcode11
2019-09-16 06:34:47 -07:00
Rolf Bjarne Kvinge 66e6c19605 Merge remote-tracking branch 'origin/d16-3-xcode11' into master-xcode11 2019-09-13 17:42:39 +02:00
emaf d4ba5c29c0 [bug] Adds property to identify if a platform availability was set
Bug: http://work.azdo.io/944720
AB#944720

VSM is no longer checking if a platform was specified to show API avaialbility information, this was done to also show that information when the OS version wasn't specified. That change introduced a new bug, now there's no way to identify if the availability information corresponds to the current platform (i.e. something that's unavailable for watchOS will be also shown as unavailable for iOS). Adding a simple `HasValue` property lets us keep all the logic around `IsSpecified` know if availability information was actually set for a specific platform.

VSM commit that introduced this problem: 10f3c6f337
2019-09-09 21:55:50 -03:00
emaf 16877a4bfe [bug] Adds new macOS version names
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/842556

AB#842556
2019-09-05 19:44:49 -03:00
emaf c7dc1c85fe [bug] Adds new macOS version names
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/842556

AB#842556
2019-09-05 19:42:22 -03:00
Manuel de la Pena 445d943d1c
Merge pull request #54 from wjk/apple-development
Add support for Apple Development certificates
2019-08-27 09:24:08 -04:00
Oleg Demchenko ac76051631
Merge pull request #58 from xamarin/olegoid/d16-3-xcode11-vsts-938452
[vsts-938452] Add altool feature support
2019-08-23 11:29:30 -04:00
Oleg Demchenko 61bbc00d13 [vsts-938452] Add altool feature support 2019-08-23 11:28:38 -04:00
Somesh Chatterjee 188fc34f32
Merge pull request #56 from xamarin/dev/soch/fix_certs
Fix authenticode certs
2019-08-22 11:31:39 -07:00
Somesh Chatterjee 644b7ed8f4 Fix authenticode certs 2019-08-22 11:29:18 -07:00
William Kent ab3ba56d66 Add support for Apple Development certificates 2019-08-20 12:50:14 -04:00
Oleg Demchenko f9216e8cfe
Merge pull request #51 from xamarin/olegoid/altool-feature-support
[vsts-938452] Add `altool` feature support
2019-08-19 12:55:36 -04:00
Oleg Demchenko 3bfa54ebe2
Merge pull request #52 from xamarin/olegoid/d16-3-xcode11-vsts-904676
Backport required for vsmac-xamarin-extensions/pull/295
2019-08-19 09:42:33 -04:00
Oleg Demchenko 5c80aa68a6 [vsts-904676] Add multiple screens manifest keys 2019-08-19 09:32:55 -04:00