From a08a42077cab689386ead63ba14bbe2ae8e1369d Mon Sep 17 00:00:00 2001 From: Nick Bourdakos Date: Wed, 10 Apr 2024 10:39:10 -0700 Subject: [PATCH] PR #2404: Add license header to all source files Imported from GitHub PR https://github.com/google/nearby/pull/2404 Copybara import of the project: -- a6fbb3c396321c0b9012b787323f5f2ff652fd8f by Nick Bourdakos : Add license header to all source files Merging this change closes #2404 PiperOrigin-RevId: 623540004 --- connections/c/expand_version_template.bzl | 14 ++++++++++++++ connections/v3/BUILD | 14 ++++++++++++++ embedded/build.sh | 14 ++++++++++++++ fastpair/common/BUILD | 14 ++++++++++++++ fastpair/crypto/BUILD | 14 ++++++++++++++ fastpair/dataparser/BUILD | 14 ++++++++++++++ fastpair/internal/BUILD | 14 ++++++++++++++ fastpair/internal/impl/windows/BUILD | 14 ++++++++++++++ fastpair/internal/test/BUILD | 14 ++++++++++++++ fastpair/proto/BUILD | 14 ++++++++++++++ fastpair/repository/BUILD | 14 ++++++++++++++ fastpair/rust/bluetooth/src/api/mod.rs | 14 ++++++++++++++ fastpair/rust/demo/analysis_options.yaml | 14 ++++++++++++++ fastpair/rust/demo/pubspec.yaml | 14 ++++++++++++++ fastpair/rust/demo/windows/CMakeLists.txt | 14 ++++++++++++++ .../rust/demo/windows/flutter/CMakeLists.txt | 14 ++++++++++++++ fastpair/rust/demo/windows/runner/CMakeLists.txt | 14 ++++++++++++++ internal/base/BUILD | 14 ++++++++++++++ internal/data/BUILD | 14 ++++++++++++++ internal/interop/BUILD | 14 ++++++++++++++ internal/network/BUILD | 14 ++++++++++++++ internal/platform/thread_check_nocompile_test.py | 14 ++++++++++++++ internal/proto/BUILD | 14 ++++++++++++++ internal/proto/messaging.proto | 14 ++++++++++++++ internal/weave/BUILD | 14 ++++++++++++++ internal/weave/sockets/BUILD | 14 ++++++++++++++ minimum_os.bzl | 14 ++++++++++++++ presence/proto/BUILD | 14 ++++++++++++++ presence/proto/presence_frame.proto | 14 ++++++++++++++ sharing/BUILD | 14 ++++++++++++++ .../com/google/nearby/sharedemo/MainActivity.kt | 16 ++++++++++++++++ .../com/google/nearby/sharedemo/MainViewModel.kt | 16 ++++++++++++++++ .../com/google/nearby/sharedemo/ShareTarget.kt | 16 ++++++++++++++++ .../google/nearby/sharedemo/ui/theme/Theme.kt | 16 ++++++++++++++++ sharing/certificates/BUILD | 14 ++++++++++++++ sharing/contacts/BUILD | 14 ++++++++++++++ sharing/proto/BUILD | 14 ++++++++++++++ sharing/proto/wire_format.proto | 14 ++++++++++++++ 38 files changed, 540 insertions(+) diff --git a/connections/c/expand_version_template.bzl b/connections/c/expand_version_template.bzl index b7184905..827898ee 100644 --- a/connections/c/expand_version_template.bzl +++ b/connections/c/expand_version_template.bzl @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + """Rule for specialized expansion of template files. This performs a simple search over the template file for the keys $VERSION and $VS_VERSION and replaces them with the corresponding values, derived from the version provided. Supports make variables. diff --git a/connections/v3/BUILD b/connections/v3/BUILD index 3cba27a1..f6bc70a4 100644 --- a/connections/v3/BUILD +++ b/connections/v3/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + cc_library( name = "v3_types", srcs = [ diff --git a/embedded/build.sh b/embedded/build.sh index f23c12e0..7c2f68cd 100755 --- a/embedded/build.sh +++ b/embedded/build.sh @@ -1,4 +1,18 @@ #!/bin/sh +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + # # Parameters: # ${1} architecture (default: gLinux) diff --git a/fastpair/common/BUILD b/fastpair/common/BUILD index c377b405..ab62e395 100644 --- a/fastpair/common/BUILD +++ b/fastpair/common/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/fastpair/crypto/BUILD b/fastpair/crypto/BUILD index 674826a6..ffa91bf5 100644 --- a/fastpair/crypto/BUILD +++ b/fastpair/crypto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + cc_library( name = "crypto", srcs = [ diff --git a/fastpair/dataparser/BUILD b/fastpair/dataparser/BUILD index 76f520e6..dea9c0be 100644 --- a/fastpair/dataparser/BUILD +++ b/fastpair/dataparser/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/fastpair/internal/BUILD b/fastpair/internal/BUILD index 65041ef1..646418a8 100644 --- a/fastpair/internal/BUILD +++ b/fastpair/internal/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/fastpair/internal/impl/windows/BUILD b/fastpair/internal/impl/windows/BUILD index ce11070e..06ba234b 100644 --- a/fastpair/internal/impl/windows/BUILD +++ b/fastpair/internal/impl/windows/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/fastpair/internal/test/BUILD b/fastpair/internal/test/BUILD index 0830d4fc..86c35257 100644 --- a/fastpair/internal/test/BUILD +++ b/fastpair/internal/test/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/fastpair/proto/BUILD b/fastpair/proto/BUILD index 3a214a90..deec2ea6 100644 --- a/fastpair/proto/BUILD +++ b/fastpair/proto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") diff --git a/fastpair/repository/BUILD b/fastpair/repository/BUILD index 1f1afc60..52569105 100644 --- a/fastpair/repository/BUILD +++ b/fastpair/repository/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/fastpair/rust/bluetooth/src/api/mod.rs b/fastpair/rust/bluetooth/src/api/mod.rs index 0e410749..64c382d0 100644 --- a/fastpair/rust/bluetooth/src/api/mod.rs +++ b/fastpair/rust/bluetooth/src/api/mod.rs @@ -1,3 +1,17 @@ +// Copyright 2023 Google LLC +// +// 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 +// +// https://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. + mod adapter; mod device; diff --git a/fastpair/rust/demo/analysis_options.yaml b/fastpair/rust/demo/analysis_options.yaml index 61b6c4de..6c5d26c5 100644 --- a/fastpair/rust/demo/analysis_options.yaml +++ b/fastpair/rust/demo/analysis_options.yaml @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + # This file configures the analyzer, which statically analyzes Dart code to # check for errors, warnings, and lints. # diff --git a/fastpair/rust/demo/pubspec.yaml b/fastpair/rust/demo/pubspec.yaml index 3ae724d4..1264ee3c 100644 --- a/fastpair/rust/demo/pubspec.yaml +++ b/fastpair/rust/demo/pubspec.yaml @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + name: demo description: FLutter UI demo for Fast Pair Windows written in Rust. # The following line prevents the package from being accidentally published to diff --git a/fastpair/rust/demo/windows/CMakeLists.txt b/fastpair/rust/demo/windows/CMakeLists.txt index 172a9862..c08df44a 100644 --- a/fastpair/rust/demo/windows/CMakeLists.txt +++ b/fastpair/rust/demo/windows/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + # Project-level configuration. cmake_minimum_required(VERSION 3.14) project(demo LANGUAGES CXX) diff --git a/fastpair/rust/demo/windows/flutter/CMakeLists.txt b/fastpair/rust/demo/windows/flutter/CMakeLists.txt index 930d2071..1230e03e 100644 --- a/fastpair/rust/demo/windows/flutter/CMakeLists.txt +++ b/fastpair/rust/demo/windows/flutter/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + # This file controls Flutter-level build steps. It should not be edited. cmake_minimum_required(VERSION 3.14) diff --git a/fastpair/rust/demo/windows/runner/CMakeLists.txt b/fastpair/rust/demo/windows/runner/CMakeLists.txt index 394917c0..f498e23e 100644 --- a/fastpair/rust/demo/windows/runner/CMakeLists.txt +++ b/fastpair/rust/demo/windows/runner/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + cmake_minimum_required(VERSION 3.14) project(runner LANGUAGES CXX) diff --git a/internal/base/BUILD b/internal/base/BUILD index 4bc8608d..585a4ca0 100644 --- a/internal/base/BUILD +++ b/internal/base/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/internal/data/BUILD b/internal/data/BUILD index 578e1e30..9eb465ac 100644 --- a/internal/data/BUILD +++ b/internal/data/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") diff --git a/internal/interop/BUILD b/internal/interop/BUILD index 20f4a349..3ab295db 100644 --- a/internal/interop/BUILD +++ b/internal/interop/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + cc_library( name = "authentication_transport_interface", hdrs = [ diff --git a/internal/network/BUILD b/internal/network/BUILD index edcc9a1b..564d85d7 100644 --- a/internal/network/BUILD +++ b/internal/network/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/internal/platform/thread_check_nocompile_test.py b/internal/platform/thread_check_nocompile_test.py index 82604049..5773f512 100644 --- a/internal/platform/thread_check_nocompile_test.py +++ b/internal/platform/thread_check_nocompile_test.py @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + """Negative tests for thread safety analysis in executors implementation.""" from google3.testing.pybase import fake_target_util diff --git a/internal/proto/BUILD b/internal/proto/BUILD index 3ee3b2c2..e5e391cc 100644 --- a/internal/proto/BUILD +++ b/internal/proto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + # NOTE: gRPC libraries not needed. load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") diff --git a/internal/proto/messaging.proto b/internal/proto/messaging.proto index 5be1effc..8aa949f9 100644 --- a/internal/proto/messaging.proto +++ b/internal/proto/messaging.proto @@ -1,3 +1,17 @@ +// Copyright 2023 Google LLC +// +// 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 +// +// https://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. + syntax = "proto3"; package google.internal.communications.instantmessaging.v1; diff --git a/internal/weave/BUILD b/internal/weave/BUILD index 4fe40458..62bda5fa 100644 --- a/internal/weave/BUILD +++ b/internal/weave/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + cc_library( name = "weave", srcs = [ diff --git a/internal/weave/sockets/BUILD b/internal/weave/sockets/BUILD index 15f0d2d7..fd957f14 100644 --- a/internal/weave/sockets/BUILD +++ b/internal/weave/sockets/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + cc_library( name = "sockets", srcs = [ diff --git a/minimum_os.bzl b/minimum_os.bzl index d708b89f..c7ad06b6 100644 --- a/minimum_os.bzl +++ b/minimum_os.bzl @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + """Minimum OS version definitions and related test setup""" IOS_MINIMUM_OS = "13.7" diff --git a/presence/proto/BUILD b/presence/proto/BUILD index e58b730c..6831e1ed 100644 --- a/presence/proto/BUILD +++ b/presence/proto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# 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 +# +# https://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. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") diff --git a/presence/proto/presence_frame.proto b/presence/proto/presence_frame.proto index cf0336ea..1f18cbcd 100644 --- a/presence/proto/presence_frame.proto +++ b/presence/proto/presence_frame.proto @@ -1,3 +1,17 @@ +// Copyright 2023 Google LLC +// +// 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 +// +// https://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. + syntax = "proto2"; package nearby.presence; diff --git a/sharing/BUILD b/sharing/BUILD index a75a09a0..1e9fbbdc 100644 --- a/sharing/BUILD +++ b/sharing/BUILD @@ -1,3 +1,17 @@ +# Copyright 2024 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainActivity.kt b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainActivity.kt index f4b7672e..c15d265c 100644 --- a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainActivity.kt +++ b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainActivity.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2024 Google LLC + * + * 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 + * + * https://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. + */ + package com.google.nearby.sharedemo import android.app.PendingIntent diff --git a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainViewModel.kt b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainViewModel.kt index 0cd48102..980e9203 100644 --- a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainViewModel.kt +++ b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/MainViewModel.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2024 Google LLC + * + * 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 + * + * https://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. + */ + package com.google.nearby.sharedemo import android.app.PendingIntent diff --git a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ShareTarget.kt b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ShareTarget.kt index 2b3c843f..3fd97fc7 100644 --- a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ShareTarget.kt +++ b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ShareTarget.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2024 Google LLC + * + * 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 + * + * https://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. + */ + package com.google.nearby.sharedemo import androidx.compose.foundation.clickable diff --git a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ui/theme/Theme.kt b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ui/theme/Theme.kt index ced49795..7c641062 100644 --- a/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ui/theme/Theme.kt +++ b/sharing/android/example/app/src/main/java/com/google/nearby/sharedemo/ui/theme/Theme.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2024 Google LLC + * + * 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 + * + * https://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. + */ + package com.google.nearby.sharedemo.ui.theme import android.app.Activity diff --git a/sharing/certificates/BUILD b/sharing/certificates/BUILD index ad5f1940..26b5291d 100644 --- a/sharing/certificates/BUILD +++ b/sharing/certificates/BUILD @@ -1,3 +1,17 @@ +# Copyright 2024 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/sharing/contacts/BUILD b/sharing/contacts/BUILD index 4d27456d..15281ead 100644 --- a/sharing/contacts/BUILD +++ b/sharing/contacts/BUILD @@ -1,3 +1,17 @@ +# Copyright 2024 Google LLC +# +# 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 +# +# https://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. + licenses(["notice"]) cc_library( diff --git a/sharing/proto/BUILD b/sharing/proto/BUILD index 6dd6e6b6..30f5465d 100644 --- a/sharing/proto/BUILD +++ b/sharing/proto/BUILD @@ -1,3 +1,17 @@ +# Copyright 2023 Google LLC +# +# 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 +# +# https://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. + load("@rules_cc//cc:defs.bzl", "cc_proto_library") load("@rules_proto//proto:defs.bzl", "proto_library") diff --git a/sharing/proto/wire_format.proto b/sharing/proto/wire_format.proto index 167ca963..9f5189f3 100644 --- a/sharing/proto/wire_format.proto +++ b/sharing/proto/wire_format.proto @@ -1,3 +1,17 @@ +// Copyright 2023 Google LLC +// +// 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 +// +// https://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. + syntax = "proto2"; package nearby.sharing.service.proto;