Skip to content

[UIKit] Fix properties in UIConfigurationColorTransformer Type - #16732

Merged
haritha-mohan merged 4 commits into
dotnet:mainfrom
haritha-mohan:gh16665
Nov 16, 2022
Merged

[UIKit] Fix properties in UIConfigurationColorTransformer Type#16732
haritha-mohan merged 4 commits into
dotnet:mainfrom
haritha-mohan:gh16665

Conversation

@haritha-mohan

Copy link
Copy Markdown
Contributor

Changing properties to be internal
Fixes #16665

@haritha-mohan haritha-mohan changed the title [UI Kit] Fix properties in UIConfigurationColorTransformer Type [UIKit] Fix properties in UIConfigurationColorTransformer Type Nov 12, 2022
@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Your code has been reformatted. ⚠️

If this is not desired, add the actions-disable-autoformat label, and revert the reformatting commit.

If files unrelated to your change were modified, try reverting the reformatting commit + merging with the target branch (and push those changes).

Comment thread src/uikit.cs Outdated
[Obsolete ("Use the '_PreferredTint' property instead.")]
[Wrap ("_InternalPreferredTint")]
[Field ("UIConfigurationColorTransformerPreferredTint")]
IntPtr _PreferredTint { get; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of a special case compared to the other fixes you've done.

These fields are supposed to be internal, and then manually exposed (without the underscore) here:

https://github.com/xamarin/xamarin-macios/blob/3b839e15514826b3bd6d61b953eb684c0c897116/src/UIKit/UIConfigurationColorTransformer.cs#L20-L39

but it seems the initial implementation forgot to make these fields internal (but still added the non-underscored public version).

That means the fix is to:

  1. Make them internal in XAMCORE_5_0
  2. Add an Obsolete attribute (in !XAMCORE_5_0) pointing to the non-underscore version (which already exists - see the code I linked to above).

In particular there's no need to add a new and correct implementation, because that already exists.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

Legacy Xamarin (No breaking changes)
  • iOS (no change detected)
  • tvOS (no change detected)
  • watchOS (no change detected)
  • macOS (no change detected)
NET (empty diffs)
  • iOS: (empty diff detected)
  • tvOS: (empty diff detected)
  • MacCatalyst: (empty diff detected)
  • macOS: (empty diff detected)

❗ API diff vs stable (Breaking changes)

Legacy Xamarin (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
.NET (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
Legacy Xamarin (stable) vs .NET

✅ Generator diff

Generator diff is empty

Pipeline on Agent
Hash: 38810e1f05ba540988e6e828f36ce5da101a751d [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) passed 💻

All tests on macOS M1 - Mac Big Sur (11.5) passed.

Pipeline on Agent
Hash: 38810e1f05ba540988e6e828f36ce5da101a751d [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent XAMBOT-1160.Monterey'
Hash: 38810e1f05ba540988e6e828f36ce5da101a751d [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build] Test results 🚀

Test results

✅ All tests passed on VSTS: simulator tests.

🎉 All 223 tests passed 🎉

Tests counts

✅ bcl: All 69 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests: All 1 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 7 tests passed. Html Report (VSDrops) Download
✅ framework: All 8 tests passed. Html Report (VSDrops) Download
✅ generator: All 2 tests passed. Html Report (VSDrops) Download
✅ interdependent_binding_projects: All 7 tests passed. Html Report (VSDrops) Download
✅ install_source: All 1 tests passed. Html Report (VSDrops) Download
✅ introspection: All 8 tests passed. Html Report (VSDrops) Download
✅ linker: All 65 tests passed. Html Report (VSDrops) Download
✅ mac_binding_project: All 1 tests passed. Html Report (VSDrops) Download
✅ mmp: All 2 tests passed. Html Report (VSDrops) Download
✅ mononative: All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch: All 23 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ mtouch: All 1 tests passed. Html Report (VSDrops) Download
✅ xammac: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 8 tests passed. Html Report (VSDrops) Download
✅ xtro: All 2 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: $(GIT_HASH) [PR build]

@haritha-mohan
haritha-mohan merged commit c67f3d0 into dotnet:main Nov 16, 2022
@haritha-mohan
haritha-mohan deleted the gh16665 branch November 16, 2022 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UIKit] Change properties to be internal in type UIConfigurationColorTransformer

4 participants