From 7b694fc85dfc0eaab8fc04d7991dbb9fb83d83e2 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Fri, 16 Oct 2020 17:30:36 +0200 Subject: [PATCH] add copyright headers to Xamarin example --- .../HelloworldXamarin.Android/MainActivity.cs | 18 ++++++++++++++++- .../Properties/AssemblyInfo.cs | 20 +++++++++++++++++-- .../Resources/Resource.designer.cs | 16 +++++++++++++++ .../HelloworldXamarin.iOS/AppDelegate.cs | 18 ++++++++++++++++- .../HelloworldXamarin.iOS/Main.cs | 18 ++++++++++++++++- .../Properties/AssemblyInfo.cs | 20 +++++++++++++++++-- .../HelloworldXamarin/App.xaml.cs | 18 ++++++++++++++++- .../HelloworldXamarin/AssemblyInfo.cs | 16 +++++++++++++++ .../HelloworldXamarin/MainPage.xaml.cs | 18 ++++++++++++++++- 9 files changed, 153 insertions(+), 9 deletions(-) diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/MainActivity.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/MainActivity.cs index 34027b51815..efe7cf5a504 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/MainActivity.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/MainActivity.cs @@ -1,4 +1,20 @@ -using System; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System; using Android.App; using Android.Content.PM; diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Properties/AssemblyInfo.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Properties/AssemblyInfo.cs index f9db30c42c7..ec1149ee64e 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Properties/AssemblyInfo.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Properties/AssemblyInfo.cs @@ -1,4 +1,20 @@ -using System.Reflection; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; @@ -11,7 +27,7 @@ using Android.App; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("HelloworldXamarin.Android")] -[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] [assembly: ComVisible(false)] diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Resources/Resource.designer.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Resources/Resource.designer.cs index 053852c21b2..23236aea901 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Resources/Resource.designer.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin.Android/Resources/Resource.designer.cs @@ -1,3 +1,19 @@ +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + #pragma warning disable 1591 //------------------------------------------------------------------------------ // diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/AppDelegate.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/AppDelegate.cs index 58b5e0a6130..4adb6aeb345 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/AppDelegate.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/AppDelegate.cs @@ -1,4 +1,20 @@ -using System; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System; using System.Collections.Generic; using System.Linq; diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Main.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Main.cs index 76b1598577f..7e826fb8ce8 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Main.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Main.cs @@ -1,4 +1,20 @@ -using System; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System; using System.Collections.Generic; using System.Linq; diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Properties/AssemblyInfo.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Properties/AssemblyInfo.cs index 2228b4e35ea..8cc293a2ed1 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Properties/AssemblyInfo.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin.iOS/Properties/AssemblyInfo.cs @@ -1,4 +1,20 @@ -using System.Reflection; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; @@ -10,7 +26,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("HelloworldXamarin.iOS")] -[assembly: AssemblyCopyright("Copyright © 2014")] +[assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin/App.xaml.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin/App.xaml.cs index e00af151c40..9ae7a8cb672 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin/App.xaml.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin/App.xaml.cs @@ -1,4 +1,20 @@ -using System; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System; using Xamarin.Forms; using Xamarin.Forms.Xaml; diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin/AssemblyInfo.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin/AssemblyInfo.cs index c859952e34b..b41074c1b7d 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin/AssemblyInfo.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin/AssemblyInfo.cs @@ -1,3 +1,19 @@ +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + using Xamarin.Forms.Xaml; [assembly: XamlCompilation(XamlCompilationOptions.Compile)] \ No newline at end of file diff --git a/examples/csharp/HelloworldXamarin/HelloworldXamarin/MainPage.xaml.cs b/examples/csharp/HelloworldXamarin/HelloworldXamarin/MainPage.xaml.cs index 411896033f1..de4f63de028 100644 --- a/examples/csharp/HelloworldXamarin/HelloworldXamarin/MainPage.xaml.cs +++ b/examples/csharp/HelloworldXamarin/HelloworldXamarin/MainPage.xaml.cs @@ -1,4 +1,20 @@ -using System; +#region Copyright notice and license +// Copyright 2020 The gRPC Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#endregion + +using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq;