Skip to content

Commit ba197d4

Browse files
authored
Fix Global Usings One Per Project (#3648)
Issues with a single file where invalid usings exist. <!-- Please be sure to read the [Contribute](https://github.com/reactiveui/reactiveui#contribute) section of the README --> **What kind of change does this PR introduce?** <!-- Bug fix, feature, docs update, ... --> Fix **What is the current behavior?** <!-- You can also link to an open issue here. --> A single GlobalUsing file is used **What is the new behavior?** <!-- If this is a feature change --> Multiple GlobalUsing files are used to remove the issue where usings are included that are invalid for some projects **What might this PR break?** none expected **Please check if the PR fulfills these requirements** - [ ] Tests for the changes have been added (for bug fixes / features) - [ ] Docs have been added / updated (for bug fixes / features) **Other information**:
1 parent 0a61f2a commit ba197d4

File tree

113 files changed

+331
-221
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+331
-221
lines changed

src/Directory.build.props

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,6 @@
7070
<None Include="$(MSBuildThisFileDirectory)..\README.md" Pack="true" PackagePath="\" />
7171
</ItemGroup>
7272

73-
<ItemGroup Condition="$(MSBuildProjectName.Contains('Fody')) != 'true'">
74-
<Compile Include="$(MSBuildThisFileDirectory)GlobalUsings.cs" />
75-
</ItemGroup>
76-
7773
<ItemGroup>
7874
<PackageReference Include="Nerdbank.GitVersioning" Version="3.6.133" PrivateAssets="all" />
7975
<PackageReference Include="stylecop.analyzers" Version="1.2.0-beta.507" PrivateAssets="all" />
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright (c) 2023 .NET Foundation and Contributors. All rights reserved.
2+
// Licensed to the .NET Foundation under one or more agreements.
3+
// The .NET Foundation licenses this file to you under the MIT license.
4+
// See the LICENSE file in the project root for full license information.
5+
6+
global using global::Splat;
7+
global using global::System;
8+
global using global::System.Collections.Generic;
9+
global using global::System.ComponentModel;
10+
global using global::System.Diagnostics.CodeAnalysis;
11+
global using global::System.Linq;
12+
global using global::System.Reactive;
13+
global using global::System.Reactive.Linq;
14+
global using global::System.Reactive.Subjects;
15+
global using global::System.Reactive.Threading.Tasks;
16+
global using global::System.Threading.Tasks;

src/ReactiveUI.AndroidSupport/ReactiveAppCompatActivity.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
55

6-
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
8-
96
using Android.App;
107
using Android.Content;
118
using Android.Runtime;
@@ -194,4 +191,4 @@ protected override void Dispose(bool disposing)
194191

195192
base.Dispose(disposing);
196193
}
197-
}
194+
}

src/ReactiveUI.AndroidSupport/ReactiveDialogFragment.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
55

6-
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
8-
96
namespace ReactiveUI.AndroidSupport;
107

118
/// <summary>

src/ReactiveUI.AndroidSupport/ReactiveFragment.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
55

6-
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
8-
96
namespace ReactiveUI.AndroidSupport;
107

118
/// <summary>

src/ReactiveUI.AndroidSupport/ReactiveFragmentActivity.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
55

6-
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
8-
96
using Android.App;
107
using Android.Content;
118
using Android.Support.V4.App;

src/ReactiveUI.AndroidSupport/ReactivePagerAdapter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// See the LICENSE file in the project root for full license information.
55

66
using System.Collections.Specialized;
7-
using System.Diagnostics.CodeAnalysis;
87

98
using Android.Support.V4.View;
109
using Android.Views;

src/ReactiveUI.AndroidSupport/ReactivePreferenceFragment.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
55

6-
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
8-
96
using Android.Runtime;
107
using Android.Support.V7.Preferences;
118

src/ReactiveUI.AndroidSupport/ReactiveRecyclerViewAdapter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
// See the LICENSE file in the project root for full license information.
55

66
using System.Collections.Specialized;
7-
using System.Diagnostics.CodeAnalysis;
87

98
using Android.Support.V7.Widget;
109
using Android.Views;

src/ReactiveUI.AndroidSupport/ReactiveRecyclerViewViewHolder.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// The .NET Foundation licenses this file to you under the MIT license.
44
// See the LICENSE file in the project root for full license information.
55

6-
using System.ComponentModel;
7-
using System.Diagnostics.CodeAnalysis;
86
using System.Reflection;
97
using System.Runtime.Serialization;
108

0 commit comments

Comments
 (0)