From f472097a9f321762c08ab47924c46cb120942068 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 12:12:54 +0200 Subject: [PATCH 1/7] license notice update in source files --- .../example/lib/cutout_overlay.dart | 16 +++++++++ .../qrscanner_zxing/example/lib/main.dart | 16 +++++++++ .../qrscanner_zxing/lib/qrscanner_zxing.dart | 16 +++++++++ .../lib/qrscanner_zxing_method_channel.dart | 16 +++++++++ .../qrscanner_zxing_platform_interface.dart | 16 +++++++++ .../lib/qrscanner_zxing_view.dart | 16 +++++++++ .../qrscanner_zxing_method_channel_test.dart | 16 +++++++++ .../test/qrscanner_zxing_test.dart | 16 +++++++++ helper/authenticator-helper.py | 14 ++++++++ helper/helper/__init__.py | 34 ++++++------------- helper/helper/base.py | 34 ++++++------------- helper/helper/device.py | 34 ++++++------------- helper/helper/fido.py | 34 ++++++------------- helper/helper/management.py | 34 ++++++------------- helper/helper/oath.py | 34 ++++++------------- helper/helper/qr.py | 14 ++++++++ helper/helper/yubiotp.py | 34 ++++++------------- helper/shell.py | 14 ++++++++ .../android/beta_welcome_dialog_test.dart | 16 +++++++++ integration_test/android/constants.dart | 16 +++++++++ integration_test/android/test_driver.dart | 16 +++++++++ integration_test/android/util.dart | 16 +++++++++ integration_test/approved_yubikeys.dart | 16 +++++++++ integration_test/desktop/util.dart | 16 +++++++++ integration_test/management_test.dart | 16 +++++++++ integration_test/oath_test.dart | 16 +++++++++ integration_test/oath_test_util.dart | 16 +++++++++ integration_test/reset_key.dart | 16 +++++++++ integration_test/test_util.dart | 16 +++++++++ lib/about_page.dart | 16 +++++++++ lib/android/app_methods.dart | 16 +++++++++ lib/android/devices.dart | 16 +++++++++ lib/android/init.dart | 16 +++++++++ lib/android/keys.dart | 16 +++++++++ lib/android/logger.dart | 16 +++++++++ lib/android/management/state.dart | 16 +++++++++ lib/android/oath/otp_auth_link_handler.dart | 16 +++++++++ lib/android/oath/state.dart | 16 +++++++++ .../qr_scanner/qr_scanner_overlay_view.dart | 16 +++++++++ .../qr_scanner_permissions_view.dart | 16 +++++++++ .../qr_scanner/qr_scanner_provider.dart | 16 +++++++++ .../qr_scanner/qr_scanner_scan_status.dart | 16 +++++++++ .../qr_scanner/qr_scanner_ui_view.dart | 16 +++++++++ lib/android/qr_scanner/qr_scanner_util.dart | 16 +++++++++ lib/android/qr_scanner/qr_scanner_view.dart | 16 +++++++++ lib/android/state.dart | 16 +++++++++ lib/android/tap_request_dialog.dart | 16 +++++++++ lib/android/views/android_settings_page.dart | 16 +++++++++ lib/android/views/beta_dialog.dart | 16 +++++++++ lib/android/window_state_provider.dart | 16 +++++++++ lib/app/app.dart | 16 +++++++++ lib/app/logging.dart | 16 +++++++++ lib/app/message.dart | 16 +++++++++ lib/app/models.dart | 16 +++++++++ lib/app/models.freezed.dart | 16 +++++++++ lib/app/shortcuts.dart | 16 +++++++++ lib/app/state.dart | 16 +++++++++ lib/app/views/app_failure_page.dart | 16 +++++++++ lib/app/views/app_loading_screen.dart | 16 +++++++++ lib/app/views/app_page.dart | 16 +++++++++ lib/app/views/device_avatar.dart | 16 +++++++++ lib/app/views/device_button.dart | 16 +++++++++ lib/app/views/device_error_screen.dart | 16 +++++++++ lib/app/views/device_images.dart | 16 +++++++++ lib/app/views/device_picker_dialog.dart | 16 +++++++++ lib/app/views/device_utils.dart | 16 +++++++++ lib/app/views/graphics.dart | 16 +++++++++ lib/app/views/keys.dart | 16 +++++++++ lib/app/views/main_drawer.dart | 16 +++++++++ lib/app/views/main_page.dart | 16 +++++++++ lib/app/views/message_page.dart | 16 +++++++++ lib/app/views/user_interaction.dart | 16 +++++++++ lib/cancellation_exception.dart | 16 +++++++++ lib/core/models.dart | 16 +++++++++ lib/core/models.freezed.dart | 16 +++++++++ lib/core/models.g.dart | 16 +++++++++ lib/core/state.dart | 16 +++++++++ lib/desktop/devices.dart | 16 +++++++++ lib/desktop/fido/state.dart | 16 +++++++++ lib/desktop/init.dart | 16 +++++++++ lib/desktop/management/state.dart | 16 +++++++++ lib/desktop/models.dart | 16 +++++++++ lib/desktop/models.freezed.dart | 16 +++++++++ lib/desktop/models.g.dart | 16 +++++++++ lib/desktop/oath/state.dart | 16 +++++++++ lib/desktop/qr_scanner.dart | 16 +++++++++ lib/desktop/rpc.dart | 16 +++++++++ lib/desktop/state.dart | 16 +++++++++ lib/error_page.dart | 16 +++++++++ lib/fido/models.dart | 16 +++++++++ lib/fido/models.freezed.dart | 16 +++++++++ lib/fido/models.g.dart | 16 +++++++++ lib/fido/state.dart | 16 +++++++++ lib/fido/views/add_fingerprint_dialog.dart | 16 +++++++++ lib/fido/views/delete_credential_dialog.dart | 16 +++++++++ lib/fido/views/delete_fingerprint_dialog.dart | 16 +++++++++ lib/fido/views/fido_screen.dart | 16 +++++++++ lib/fido/views/locked_page.dart | 16 +++++++++ lib/fido/views/pin_dialog.dart | 16 +++++++++ lib/fido/views/rename_fingerprint_dialog.dart | 16 +++++++++ lib/fido/views/reset_dialog.dart | 16 +++++++++ lib/fido/views/unlocked_page.dart | 16 +++++++++ lib/main.dart | 16 +++++++++ lib/management/models.dart | 16 +++++++++ lib/management/models.freezed.dart | 16 +++++++++ lib/management/models.g.dart | 16 +++++++++ lib/management/state.dart | 16 +++++++++ lib/management/views/keys.dart | 16 +++++++++ lib/management/views/management_screen.dart | 16 +++++++++ lib/oath/keys.dart | 16 +++++++++ lib/oath/models.dart | 16 +++++++++ lib/oath/models.freezed.dart | 16 +++++++++ lib/oath/models.g.dart | 16 +++++++++ lib/oath/state.dart | 16 +++++++++ lib/oath/views/account_dialog.dart | 16 +++++++++ lib/oath/views/account_list.dart | 16 +++++++++ lib/oath/views/account_mixin.dart | 16 +++++++++ lib/oath/views/account_view.dart | 16 +++++++++ lib/oath/views/add_account_page.dart | 16 +++++++++ lib/oath/views/delete_account_dialog.dart | 16 +++++++++ lib/oath/views/manage_password_dialog.dart | 16 +++++++++ lib/oath/views/oath_screen.dart | 16 +++++++++ lib/oath/views/rename_account_dialog.dart | 16 +++++++++ lib/oath/views/reset_dialog.dart | 16 +++++++++ lib/oath/views/unlock_form.dart | 16 +++++++++ lib/oath/views/utils.dart | 16 +++++++++ lib/settings_page.dart | 16 +++++++++ lib/theme.dart | 16 +++++++++ lib/version.dart | 16 +++++++++ lib/widgets/choice_filter_chip.dart | 16 +++++++++ lib/widgets/circle_timer.dart | 16 +++++++++ lib/widgets/custom_icons.dart | 16 +++++++++ lib/widgets/file_drop_target.dart | 16 +++++++++ lib/widgets/list_title.dart | 16 +++++++++ lib/widgets/menu_list_tile.dart | 16 +++++++++ lib/widgets/progress_circle.dart | 16 +++++++++ lib/widgets/responsive_dialog.dart | 16 +++++++++ lib/widgets/toast.dart | 16 +++++++++ lib/widgets/utf8_utils.dart | 16 +++++++++ set-version.py | 15 ++++++++ test/android_settings_page_test.dart | 16 +++++++++ 141 files changed, 2207 insertions(+), 168 deletions(-) diff --git a/android/flutter_plugins/qrscanner_zxing/example/lib/cutout_overlay.dart b/android/flutter_plugins/qrscanner_zxing/example/lib/cutout_overlay.dart index 02182958..4f8278fc 100644 --- a/android/flutter_plugins/qrscanner_zxing/example/lib/cutout_overlay.dart +++ b/android/flutter_plugins/qrscanner_zxing/example/lib/cutout_overlay.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:math'; import 'package:flutter/material.dart'; diff --git a/android/flutter_plugins/qrscanner_zxing/example/lib/main.dart b/android/flutter_plugins/qrscanner_zxing/example/lib/main.dart index dc3128de..d6f02219 100644 --- a/android/flutter_plugins/qrscanner_zxing/example/lib/main.dart +++ b/android/flutter_plugins/qrscanner_zxing/example/lib/main.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:qrscanner_zxing/qrscanner_zxing_view.dart'; diff --git a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing.dart b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing.dart index 9576d8f4..568bc096 100644 --- a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing.dart +++ b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'qrscanner_zxing_platform_interface.dart'; class QRScannerZxing { diff --git a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_method_channel.dart b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_method_channel.dart index 79be37b2..1e46314c 100644 --- a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_method_channel.dart +++ b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_method_channel.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/foundation.dart'; import 'package:flutter/services.dart'; diff --git a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_platform_interface.dart b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_platform_interface.dart index 6c03bd1d..54aa6cc0 100644 --- a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_platform_interface.dart +++ b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_platform_interface.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'qrscanner_zxing_method_channel.dart'; diff --git a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_view.dart b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_view.dart index 13babcdc..7a536f1e 100644 --- a/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_view.dart +++ b/android/flutter_plugins/qrscanner_zxing/lib/qrscanner_zxing_view.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:convert'; import 'package:flutter/foundation.dart'; diff --git a/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_method_channel_test.dart b/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_method_channel_test.dart index 7e8bbd91..e0dd6fae 100644 --- a/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_method_channel_test.dart +++ b/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_method_channel_test.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:qrscanner_zxing/qrscanner_zxing_method_channel.dart'; diff --git a/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_test.dart b/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_test.dart index d530836e..7020c926 100644 --- a/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_test.dart +++ b/android/flutter_plugins/qrscanner_zxing/test/qrscanner_zxing_test.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_test/flutter_test.dart'; import 'package:plugin_platform_interface/plugin_platform_interface.dart'; import 'package:qrscanner_zxing/qrscanner_zxing.dart'; diff --git a/helper/authenticator-helper.py b/helper/authenticator-helper.py index da94ee3e..1fe5b3f7 100644 --- a/helper/authenticator-helper.py +++ b/helper/authenticator-helper.py @@ -1,5 +1,19 @@ #!/usr/bin/env python3 +# Copyright (C) 2022 Yubico. +# +# 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. + from helper import run_rpc_pipes, run_rpc_socket import socket diff --git a/helper/helper/__init__.py b/helper/helper/__init__.py index 5ea00777..42bf1bfa 100644 --- a/helper/helper/__init__.py +++ b/helper/helper/__init__.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from .base import RpcException, encode_bytes from .device import RootNode diff --git a/helper/helper/base.py b/helper/helper/base.py index 2883847e..ca2a940f 100644 --- a/helper/helper/base.py +++ b/helper/helper/base.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from functools import partial diff --git a/helper/helper/device.py b/helper/helper/device.py index ff639fcb..d47df9df 100644 --- a/helper/helper/device.py +++ b/helper/helper/device.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from .base import ( RpcNode, diff --git a/helper/helper/fido.py b/helper/helper/fido.py index 3a8146df..c5612db5 100644 --- a/helper/helper/fido.py +++ b/helper/helper/fido.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from .base import ( RpcNode, diff --git a/helper/helper/management.py b/helper/helper/management.py index 63f1424a..0b546410 100644 --- a/helper/helper/management.py +++ b/helper/helper/management.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from .base import RpcNode, action from yubikit.core import require_version, NotSupportedError, TRANSPORT diff --git a/helper/helper/oath.py b/helper/helper/oath.py index 499cd14b..24df6e7f 100644 --- a/helper/helper/oath.py +++ b/helper/helper/oath.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from .base import ( RpcNode, diff --git a/helper/helper/qr.py b/helper/helper/qr.py index 9aac92fd..16dce21d 100644 --- a/helper/helper/qr.py +++ b/helper/helper/qr.py @@ -1,3 +1,17 @@ +# Copyright (C) 2022 Yubico. +# +# 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. + import mss import zxingcpp import base64 diff --git a/helper/helper/yubiotp.py b/helper/helper/yubiotp.py index b447c0d4..ffd0fd2b 100644 --- a/helper/helper/yubiotp.py +++ b/helper/helper/yubiotp.py @@ -1,30 +1,16 @@ -# Copyright (c) 2021 Yubico AB -# All rights reserved. +# Copyright (C) 2022 Yubico. # -# Redistribution and use in source and binary forms, with or -# without modification, are permitted provided that the following -# conditions are met: +# 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 # -# 1. Redistributions of source code must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# 2. Redistributions in binary form must reproduce the above -# copyright notice, this list of conditions and the following -# disclaimer in the documentation and/or other materials provided -# with the distribution. +# http://www.apache.org/licenses/LICENSE-2.0 # -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE -# COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, -# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN -# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -# POSSIBILITY OF SUCH DAMAGE. - +# 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. from .base import RpcNode, action, child diff --git a/helper/shell.py b/helper/shell.py index e37f3242..ea0d3914 100755 --- a/helper/shell.py +++ b/helper/shell.py @@ -1,5 +1,19 @@ #!/usr/bin/env python3 +# Copyright (C) 2022 Yubico. +# +# 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. + import cmd import json import click diff --git a/integration_test/android/beta_welcome_dialog_test.dart b/integration_test/android/beta_welcome_dialog_test.dart index c130b1dd..ebcda4a5 100644 --- a/integration_test/android/beta_welcome_dialog_test.dart +++ b/integration_test/android/beta_welcome_dialog_test.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/integration_test/android/constants.dart b/integration_test/android/constants.dart index f54357f4..8a652ef4 100644 --- a/integration_test/android/constants.dart +++ b/integration_test/android/constants.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // shared preferences keys const betaDialogPrefName = 'prefBetaDialogShouldBeShown'; const prefNfcOpenApp = 'prefNfcOpenApp'; diff --git a/integration_test/android/test_driver.dart b/integration_test/android/test_driver.dart index a4342c20..6ec85896 100644 --- a/integration_test/android/test_driver.dart +++ b/integration_test/android/test_driver.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'dart:async'; diff --git a/integration_test/android/util.dart b/integration_test/android/util.dart index 1556b848..b81821fb 100644 --- a/integration_test/android/util.dart +++ b/integration_test/android/util.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_test/flutter_test.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:yubico_authenticator/android/init.dart'; diff --git a/integration_test/approved_yubikeys.dart b/integration_test/approved_yubikeys.dart index c5619af3..7712e142 100644 --- a/integration_test/approved_yubikeys.dart +++ b/integration_test/approved_yubikeys.dart @@ -1,2 +1,18 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + /// list of YubiKey serial numbers which are approved to be used with integration tests var approvedYubiKeys = []; diff --git a/integration_test/desktop/util.dart b/integration_test/desktop/util.dart index 9cef6ead..df0adf0f 100644 --- a/integration_test/desktop/util.dart +++ b/integration_test/desktop/util.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_test/flutter_test.dart'; import 'package:yubico_authenticator/desktop/init.dart'; diff --git a/integration_test/management_test.dart b/integration_test/management_test.dart index 79363e81..b661c980 100644 --- a/integration_test/management_test.dart +++ b/integration_test/management_test.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; diff --git a/integration_test/oath_test.dart b/integration_test/oath_test.dart index d79ace00..817e9710 100644 --- a/integration_test/oath_test.dart +++ b/integration_test/oath_test.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; import 'package:yubico_authenticator/core/state.dart'; diff --git a/integration_test/oath_test_util.dart b/integration_test/oath_test_util.dart index 6b71ac02..21f09b8f 100644 --- a/integration_test/oath_test_util.dart +++ b/integration_test/oath_test_util.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:yubico_authenticator/core/state.dart'; diff --git a/integration_test/reset_key.dart b/integration_test/reset_key.dart index dd45bb24..c6bb6bf1 100644 --- a/integration_test/reset_key.dart +++ b/integration_test/reset_key.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:integration_test/integration_test.dart'; diff --git a/integration_test/test_util.dart b/integration_test/test_util.dart index a05bf751..07d4000c 100644 --- a/integration_test/test_util.dart +++ b/integration_test/test_util.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/about_page.dart b/lib/about_page.dart index 457373e3..82cc1ef6 100755 --- a/lib/about_page.dart +++ b/lib/about_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:convert'; import 'dart:io'; diff --git a/lib/android/app_methods.dart b/lib/android/app_methods.dart index df75bc39..a8386e1a 100644 --- a/lib/android/app_methods.dart +++ b/lib/android/app_methods.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/services.dart'; const appMethodsChannel = MethodChannel('app.methods'); diff --git a/lib/android/devices.dart b/lib/android/devices.dart index e08f59fe..5750fff3 100644 --- a/lib/android/devices.dart +++ b/lib/android/devices.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; diff --git a/lib/android/init.dart b/lib/android/init.dart index 2764db3e..f71cd3e4 100644 --- a/lib/android/init.dart +++ b/lib/android/init.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; diff --git a/lib/android/keys.dart b/lib/android/keys.dart index eafaa554..0277e043 100755 --- a/lib/android/keys.dart +++ b/lib/android/keys.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; const _prefix = 'android.keys'; diff --git a/lib/android/logger.dart b/lib/android/logger.dart index dc46297e..df208843 100644 --- a/lib/android/logger.dart +++ b/lib/android/logger.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logging/logging.dart'; diff --git a/lib/android/management/state.dart b/lib/android/management/state.dart index bd5b55fa..4438e516 100755 --- a/lib/android/management/state.dart +++ b/lib/android/management/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/android/oath/otp_auth_link_handler.dart b/lib/android/oath/otp_auth_link_handler.dart index 61235146..d2f9c9f5 100644 --- a/lib/android/oath/otp_auth_link_handler.dart +++ b/lib/android/oath/otp_auth_link_handler.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:convert'; import 'package:flutter/material.dart'; diff --git a/lib/android/oath/state.dart b/lib/android/oath/state.dart index 824938e7..a94f02fe 100755 --- a/lib/android/oath/state.dart +++ b/lib/android/oath/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; diff --git a/lib/android/qr_scanner/qr_scanner_overlay_view.dart b/lib/android/qr_scanner/qr_scanner_overlay_view.dart index 6bd87c42..c077bcf5 100644 --- a/lib/android/qr_scanner/qr_scanner_overlay_view.dart +++ b/lib/android/qr_scanner/qr_scanner_overlay_view.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'qr_scanner_scan_status.dart'; diff --git a/lib/android/qr_scanner/qr_scanner_permissions_view.dart b/lib/android/qr_scanner/qr_scanner_permissions_view.dart index 06893c2b..d31130a9 100644 --- a/lib/android/qr_scanner/qr_scanner_permissions_view.dart +++ b/lib/android/qr_scanner/qr_scanner_permissions_view.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'qr_scanner_scan_status.dart'; diff --git a/lib/android/qr_scanner/qr_scanner_provider.dart b/lib/android/qr_scanner/qr_scanner_provider.dart index f61faebc..831e63a3 100644 --- a/lib/android/qr_scanner/qr_scanner_provider.dart +++ b/lib/android/qr_scanner/qr_scanner_provider.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:yubico_authenticator/app/state.dart'; diff --git a/lib/android/qr_scanner/qr_scanner_scan_status.dart b/lib/android/qr_scanner/qr_scanner_scan_status.dart index 60652863..5e4b7c05 100644 --- a/lib/android/qr_scanner/qr_scanner_scan_status.dart +++ b/lib/android/qr_scanner/qr_scanner_scan_status.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + /// Status of the scanning process /// scanning - showing preview and scanning it for finding credential QR code /// error - a QR code has been found but is not a credential diff --git a/lib/android/qr_scanner/qr_scanner_ui_view.dart b/lib/android/qr_scanner/qr_scanner_ui_view.dart index 1724aab3..ac25956f 100644 --- a/lib/android/qr_scanner/qr_scanner_ui_view.dart +++ b/lib/android/qr_scanner/qr_scanner_ui_view.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import '../keys.dart' as keys; diff --git a/lib/android/qr_scanner/qr_scanner_util.dart b/lib/android/qr_scanner/qr_scanner_util.dart index 1e8e5793..c8f10b3b 100644 --- a/lib/android/qr_scanner/qr_scanner_util.dart +++ b/lib/android/qr_scanner/qr_scanner_util.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:ui'; const double scannerAreaRadius = 40.0; diff --git a/lib/android/qr_scanner/qr_scanner_view.dart b/lib/android/qr_scanner/qr_scanner_view.dart index 7261f1fb..d3972526 100755 --- a/lib/android/qr_scanner/qr_scanner_view.dart +++ b/lib/android/qr_scanner/qr_scanner_view.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:qrscanner_zxing/qrscanner_zxing_view.dart'; diff --git a/lib/android/state.dart b/lib/android/state.dart index be410e06..e457b0b6 100644 --- a/lib/android/state.dart +++ b/lib/android/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/android/tap_request_dialog.dart b/lib/android/tap_request_dialog.dart index c0011f75..a9c196e8 100755 --- a/lib/android/tap_request_dialog.dart +++ b/lib/android/tap_request_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; diff --git a/lib/android/views/android_settings_page.dart b/lib/android/views/android_settings_page.dart index b44c460d..32113b14 100755 --- a/lib/android/views/android_settings_page.dart +++ b/lib/android/views/android_settings_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/android/views/beta_dialog.dart b/lib/android/views/beta_dialog.dart index ebe3fda9..678a251a 100644 --- a/lib/android/views/beta_dialog.dart +++ b/lib/android/views/beta_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/android/window_state_provider.dart b/lib/android/window_state_provider.dart index 46ba4e2a..8b979fcb 100644 --- a/lib/android/window_state_provider.dart +++ b/lib/android/window_state_provider.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:logging/logging.dart'; diff --git a/lib/app/app.dart b/lib/app/app.dart index 6dea1718..1c90fe48 100755 --- a/lib/app/app.dart +++ b/lib/app/app.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; diff --git a/lib/app/logging.dart b/lib/app/logging.dart index 26fec1c7..4707eb2f 100755 --- a/lib/app/logging.dart +++ b/lib/app/logging.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // ignore_for_file: constant_identifier_names import 'package:flutter/material.dart'; diff --git a/lib/app/message.dart b/lib/app/message.dart index 916c5c95..cb725c3c 100755 --- a/lib/app/message.dart +++ b/lib/app/message.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:io'; import 'dart:ui'; diff --git a/lib/app/models.dart b/lib/app/models.dart index 671ca9fe..75112d59 100755 --- a/lib/app/models.dart +++ b/lib/app/models.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/app/models.freezed.dart b/lib/app/models.freezed.dart index ef7b908b..afe68518 100644 --- a/lib/app/models.freezed.dart +++ b/lib/app/models.freezed.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/app/shortcuts.dart b/lib/app/shortcuts.dart index ada53fbb..2efedd68 100755 --- a/lib/app/shortcuts.dart +++ b/lib/app/shortcuts.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/app/state.dart b/lib/app/state.dart index fbf227d6..f684b3f0 100755 --- a/lib/app/state.dart +++ b/lib/app/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/app/views/app_failure_page.dart b/lib/app/views/app_failure_page.dart index 1321c890..077f29dc 100755 --- a/lib/app/views/app_failure_page.dart +++ b/lib/app/views/app_failure_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/app/views/app_loading_screen.dart b/lib/app/views/app_loading_screen.dart index bad038dd..a24fd742 100755 --- a/lib/app/views/app_loading_screen.dart +++ b/lib/app/views/app_loading_screen.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; class AppLoadingScreen extends StatelessWidget { diff --git a/lib/app/views/app_page.dart b/lib/app/views/app_page.dart index bea65618..c92aa569 100755 --- a/lib/app/views/app_page.dart +++ b/lib/app/views/app_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/app/views/device_avatar.dart b/lib/app/views/device_avatar.dart index c6fef63f..ef1bb47c 100755 --- a/lib/app/views/device_avatar.dart +++ b/lib/app/views/device_avatar.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/app/views/device_button.dart b/lib/app/views/device_button.dart index 852977d2..9d1a65ee 100755 --- a/lib/app/views/device_button.dart +++ b/lib/app/views/device_button.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/app/views/device_error_screen.dart b/lib/app/views/device_error_screen.dart index 6528b536..7d36e633 100755 --- a/lib/app/views/device_error_screen.dart +++ b/lib/app/views/device_error_screen.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/app/views/device_images.dart b/lib/app/views/device_images.dart index 9fa240ca..193eef22 100755 --- a/lib/app/views/device_images.dart +++ b/lib/app/views/device_images.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import '../../core/models.dart'; diff --git a/lib/app/views/device_picker_dialog.dart b/lib/app/views/device_picker_dialog.dart index b7f4ca91..5ee5cb56 100755 --- a/lib/app/views/device_picker_dialog.dart +++ b/lib/app/views/device_picker_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/app/views/device_utils.dart b/lib/app/views/device_utils.dart index 40c9fce8..db9cc79a 100755 --- a/lib/app/views/device_utils.dart +++ b/lib/app/views/device_utils.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_riverpod/flutter_riverpod.dart'; import '../../management/models.dart'; diff --git a/lib/app/views/graphics.dart b/lib/app/views/graphics.dart index 4d4e9dba..da838f17 100755 --- a/lib/app/views/graphics.dart +++ b/lib/app/views/graphics.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; final Image noAccounts = _graphic('no-accounts'); diff --git a/lib/app/views/keys.dart b/lib/app/views/keys.dart index 4c3cf272..9b421dfb 100644 --- a/lib/app/views/keys.dart +++ b/lib/app/views/keys.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; // global keys diff --git a/lib/app/views/main_drawer.dart b/lib/app/views/main_drawer.dart index 13ec223b..ea49a747 100755 --- a/lib/app/views/main_drawer.dart +++ b/lib/app/views/main_drawer.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/app/views/main_page.dart b/lib/app/views/main_page.dart index 05c1d296..ccdc664e 100755 --- a/lib/app/views/main_page.dart +++ b/lib/app/views/main_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:yubico_authenticator/cancellation_exception.dart'; diff --git a/lib/app/views/message_page.dart b/lib/app/views/message_page.dart index 00f59e88..71ae4ce8 100755 --- a/lib/app/views/message_page.dart +++ b/lib/app/views/message_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'app_page.dart'; diff --git a/lib/app/views/user_interaction.dart b/lib/app/views/user_interaction.dart index bab6c6bb..3d756ff3 100755 --- a/lib/app/views/user_interaction.dart +++ b/lib/app/views/user_interaction.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/cancellation_exception.dart b/lib/cancellation_exception.dart index 2ea8db4a..ac7f209c 100644 --- a/lib/cancellation_exception.dart +++ b/lib/cancellation_exception.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/services.dart'; class CancellationException implements Exception { diff --git a/lib/core/models.dart b/lib/core/models.dart index 4c1d575c..fb0344a3 100644 --- a/lib/core/models.dart +++ b/lib/core/models.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:collection/collection.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/core/models.freezed.dart b/lib/core/models.freezed.dart index dce8a62d..ec368d69 100644 --- a/lib/core/models.freezed.dart +++ b/lib/core/models.freezed.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/core/models.g.dart b/lib/core/models.g.dart index 1e741574..15728f16 100644 --- a/lib/core/models.g.dart +++ b/lib/core/models.g.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/core/state.dart b/lib/core/state.dart index 92138712..bb336591 100644 --- a/lib/core/state.dart +++ b/lib/core/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/foundation.dart'; diff --git a/lib/desktop/devices.dart b/lib/desktop/devices.dart index 086e35f8..9a94a8ef 100755 --- a/lib/desktop/devices.dart +++ b/lib/desktop/devices.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; diff --git a/lib/desktop/fido/state.dart b/lib/desktop/fido/state.dart index f55675d0..fff6d090 100755 --- a/lib/desktop/fido/state.dart +++ b/lib/desktop/fido/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/desktop/init.dart b/lib/desktop/init.dart index 0e3c1890..182f0189 100755 --- a/lib/desktop/init.dart +++ b/lib/desktop/init.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/desktop/management/state.dart b/lib/desktop/management/state.dart index 53aee0e9..93a5933a 100755 --- a/lib/desktop/management/state.dart +++ b/lib/desktop/management/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/desktop/models.dart b/lib/desktop/models.dart index 82677dca..b1775a00 100755 --- a/lib/desktop/models.dart +++ b/lib/desktop/models.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:freezed_annotation/freezed_annotation.dart'; part 'models.freezed.dart'; diff --git a/lib/desktop/models.freezed.dart b/lib/desktop/models.freezed.dart index 426515b4..a293d92e 100644 --- a/lib/desktop/models.freezed.dart +++ b/lib/desktop/models.freezed.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/desktop/models.g.dart b/lib/desktop/models.g.dart index d5e0a84b..fa3864ff 100644 --- a/lib/desktop/models.g.dart +++ b/lib/desktop/models.g.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/desktop/oath/state.dart b/lib/desktop/oath/state.dart index 0cc1f47e..c4ec0f5b 100755 --- a/lib/desktop/oath/state.dart +++ b/lib/desktop/oath/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; import 'dart:math'; diff --git a/lib/desktop/qr_scanner.dart b/lib/desktop/qr_scanner.dart index 9f921f9b..8e444222 100755 --- a/lib/desktop/qr_scanner.dart +++ b/lib/desktop/qr_scanner.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:yubico_authenticator/app/state.dart'; import 'package:yubico_authenticator/desktop/state.dart'; diff --git a/lib/desktop/rpc.dart b/lib/desktop/rpc.dart index 65ea0f5a..0a959c6d 100644 --- a/lib/desktop/rpc.dart +++ b/lib/desktop/rpc.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/desktop/state.dart b/lib/desktop/state.dart index 61768470..7e7b2444 100755 --- a/lib/desktop/state.dart +++ b/lib/desktop/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:io'; diff --git a/lib/error_page.dart b/lib/error_page.dart index 03a6f89b..a82fa791 100755 --- a/lib/error_page.dart +++ b/lib/error_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; diff --git a/lib/fido/models.dart b/lib/fido/models.dart index 7e2cedc0..cdc1a25d 100755 --- a/lib/fido/models.dart +++ b/lib/fido/models.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:freezed_annotation/freezed_annotation.dart'; part 'models.freezed.dart'; diff --git a/lib/fido/models.freezed.dart b/lib/fido/models.freezed.dart index 9574a575..132566f9 100644 --- a/lib/fido/models.freezed.dart +++ b/lib/fido/models.freezed.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/fido/models.g.dart b/lib/fido/models.g.dart index 0b64ea6c..a52e5460 100644 --- a/lib/fido/models.g.dart +++ b/lib/fido/models.g.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/fido/state.dart b/lib/fido/state.dart index 85cdafcd..1b998c2b 100755 --- a/lib/fido/state.dart +++ b/lib/fido/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/foundation.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/fido/views/add_fingerprint_dialog.dart b/lib/fido/views/add_fingerprint_dialog.dart index d9dbf46c..3bef5ba8 100755 --- a/lib/fido/views/add_fingerprint_dialog.dart +++ b/lib/fido/views/add_fingerprint_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // ignore_for_file: sort_child_properties_last import 'dart:async'; diff --git a/lib/fido/views/delete_credential_dialog.dart b/lib/fido/views/delete_credential_dialog.dart index 6a98fc1a..805032c0 100755 --- a/lib/fido/views/delete_credential_dialog.dart +++ b/lib/fido/views/delete_credential_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // ignore_for_file: sort_child_properties_last import 'package:flutter/material.dart'; diff --git a/lib/fido/views/delete_fingerprint_dialog.dart b/lib/fido/views/delete_fingerprint_dialog.dart index e4ea6611..5b38cd10 100755 --- a/lib/fido/views/delete_fingerprint_dialog.dart +++ b/lib/fido/views/delete_fingerprint_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/fido/views/fido_screen.dart b/lib/fido/views/fido_screen.dart index 59e79255..c45fff8a 100755 --- a/lib/fido/views/fido_screen.dart +++ b/lib/fido/views/fido_screen.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/fido/views/locked_page.dart b/lib/fido/views/locked_page.dart index abdb4d64..b92783cf 100755 --- a/lib/fido/views/locked_page.dart +++ b/lib/fido/views/locked_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/fido/views/pin_dialog.dart b/lib/fido/views/pin_dialog.dart index 8ed7d71a..5259a170 100755 --- a/lib/fido/views/pin_dialog.dart +++ b/lib/fido/views/pin_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/fido/views/rename_fingerprint_dialog.dart b/lib/fido/views/rename_fingerprint_dialog.dart index 88df5a39..f6d05fd9 100755 --- a/lib/fido/views/rename_fingerprint_dialog.dart +++ b/lib/fido/views/rename_fingerprint_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/fido/views/reset_dialog.dart b/lib/fido/views/reset_dialog.dart index 4a1cb1bb..01143066 100755 --- a/lib/fido/views/reset_dialog.dart +++ b/lib/fido/views/reset_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/fido/views/unlocked_page.dart b/lib/fido/views/unlocked_page.dart index ae7fbf5b..b56caa48 100755 --- a/lib/fido/views/unlocked_page.dart +++ b/lib/fido/views/unlocked_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/main.dart b/lib/main.dart index 52e19050..9b33a50d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:developer' as developer; import 'package:flutter/material.dart'; diff --git a/lib/management/models.dart b/lib/management/models.dart index b2216b2d..d6ca0146 100755 --- a/lib/management/models.dart +++ b/lib/management/models.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:freezed_annotation/freezed_annotation.dart'; import '../core/models.dart'; diff --git a/lib/management/models.freezed.dart b/lib/management/models.freezed.dart index 2144983e..e232ab78 100644 --- a/lib/management/models.freezed.dart +++ b/lib/management/models.freezed.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/management/models.g.dart b/lib/management/models.g.dart index 4f7b9ac0..14e2adc0 100644 --- a/lib/management/models.g.dart +++ b/lib/management/models.g.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/management/state.dart b/lib/management/state.dart index dab5499a..146b49a8 100755 --- a/lib/management/state.dart +++ b/lib/management/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:yubico_authenticator/management/models.dart'; diff --git a/lib/management/views/keys.dart b/lib/management/views/keys.dart index 00192ecb..220d98c6 100644 --- a/lib/management/views/keys.dart +++ b/lib/management/views/keys.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; const _prefix = 'management.keys'; diff --git a/lib/management/views/management_screen.dart b/lib/management/views/management_screen.dart index e55f03ce..691380f0 100755 --- a/lib/management/views/management_screen.dart +++ b/lib/management/views/management_screen.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:collection/collection.dart'; import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; diff --git a/lib/oath/keys.dart b/lib/oath/keys.dart index 381c2dca..d83ab9e4 100755 --- a/lib/oath/keys.dart +++ b/lib/oath/keys.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; const _prefix = 'oath.keys'; diff --git a/lib/oath/models.dart b/lib/oath/models.dart index d2b4fc08..852c74fe 100755 --- a/lib/oath/models.dart +++ b/lib/oath/models.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:freezed_annotation/freezed_annotation.dart'; import '../core/models.dart'; diff --git a/lib/oath/models.freezed.dart b/lib/oath/models.freezed.dart index 1e72bb0b..fecd6fc7 100644 --- a/lib/oath/models.freezed.dart +++ b/lib/oath/models.freezed.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/oath/models.g.dart b/lib/oath/models.g.dart index d1dbfa98..aeae4abe 100644 --- a/lib/oath/models.g.dart +++ b/lib/oath/models.g.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/oath/state.dart b/lib/oath/state.dart index a3f23a48..43f0579c 100755 --- a/lib/oath/state.dart +++ b/lib/oath/state.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:collection/collection.dart'; diff --git a/lib/oath/views/account_dialog.dart b/lib/oath/views/account_dialog.dart index f46b2e01..ee615116 100755 --- a/lib/oath/views/account_dialog.dart +++ b/lib/oath/views/account_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/oath/views/account_list.dart b/lib/oath/views/account_list.dart index 0557583a..13de5118 100755 --- a/lib/oath/views/account_list.dart +++ b/lib/oath/views/account_list.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/account_mixin.dart b/lib/oath/views/account_mixin.dart index 59dc7fde..a0f91d93 100755 --- a/lib/oath/views/account_mixin.dart +++ b/lib/oath/views/account_mixin.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:io'; import 'dart:ui'; diff --git a/lib/oath/views/account_view.dart b/lib/oath/views/account_view.dart index 2ddc8944..5114e868 100755 --- a/lib/oath/views/account_view.dart +++ b/lib/oath/views/account_view.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/add_account_page.dart b/lib/oath/views/add_account_page.dart index 13d59154..1f317a33 100755 --- a/lib/oath/views/add_account_page.dart +++ b/lib/oath/views/add_account_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/lib/oath/views/delete_account_dialog.dart b/lib/oath/views/delete_account_dialog.dart index b89cc39b..88d5a691 100755 --- a/lib/oath/views/delete_account_dialog.dart +++ b/lib/oath/views/delete_account_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/manage_password_dialog.dart b/lib/oath/views/manage_password_dialog.dart index acbdb8d3..a3f9e410 100755 --- a/lib/oath/views/manage_password_dialog.dart +++ b/lib/oath/views/manage_password_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/oath_screen.dart b/lib/oath/views/oath_screen.dart index f7cec9cb..b60b0eac 100755 --- a/lib/oath/views/oath_screen.dart +++ b/lib/oath/views/oath_screen.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:io'; import 'package:flutter/material.dart'; diff --git a/lib/oath/views/rename_account_dialog.dart b/lib/oath/views/rename_account_dialog.dart index a0b498cd..f79d8f67 100755 --- a/lib/oath/views/rename_account_dialog.dart +++ b/lib/oath/views/rename_account_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/reset_dialog.dart b/lib/oath/views/reset_dialog.dart index 0ff438c2..9dd5ece9 100755 --- a/lib/oath/views/reset_dialog.dart +++ b/lib/oath/views/reset_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/unlock_form.dart b/lib/oath/views/unlock_form.dart index 83e9aa38..07933bdb 100755 --- a/lib/oath/views/unlock_form.dart +++ b/lib/oath/views/unlock_form.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/oath/views/utils.dart b/lib/oath/views/utils.dart index e4c4a32c..48752625 100755 --- a/lib/oath/views/utils.dart +++ b/lib/oath/views/utils.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:math'; import '../../widgets/utf8_utils.dart'; diff --git a/lib/settings_page.dart b/lib/settings_page.dart index 891bd8d4..80f3bd29 100755 --- a/lib/settings_page.dart +++ b/lib/settings_page.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/theme.dart b/lib/theme.dart index d411d846..8322dbe1 100755 --- a/lib/theme.dart +++ b/lib/theme.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; diff --git a/lib/version.dart b/lib/version.dart index 89773682..b5b0c07b 100755 --- a/lib/version.dart +++ b/lib/version.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + // GENERATED CODE - DO NOT MODIFY BY HAND // This file is generated by running ./set-version.py diff --git a/lib/widgets/choice_filter_chip.dart b/lib/widgets/choice_filter_chip.dart index 6ca86ef2..add387e8 100755 --- a/lib/widgets/choice_filter_chip.dart +++ b/lib/widgets/choice_filter_chip.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/circle_timer.dart b/lib/widgets/circle_timer.dart index 73251181..7556b30b 100755 --- a/lib/widgets/circle_timer.dart +++ b/lib/widgets/circle_timer.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'progress_circle.dart'; diff --git a/lib/widgets/custom_icons.dart b/lib/widgets/custom_icons.dart index f7514199..23db687f 100755 --- a/lib/widgets/custom_icons.dart +++ b/lib/widgets/custom_icons.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:math'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/file_drop_target.dart b/lib/widgets/file_drop_target.dart index 982ac56c..8eb73ac8 100755 --- a/lib/widgets/file_drop_target.dart +++ b/lib/widgets/file_drop_target.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:desktop_drop/desktop_drop.dart'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/list_title.dart b/lib/widgets/list_title.dart index c777467a..b97d99d4 100755 --- a/lib/widgets/list_title.dart +++ b/lib/widgets/list_title.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; class ListTitle extends StatelessWidget { diff --git a/lib/widgets/menu_list_tile.dart b/lib/widgets/menu_list_tile.dart index 236f7504..e670f599 100755 --- a/lib/widgets/menu_list_tile.dart +++ b/lib/widgets/menu_list_tile.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/progress_circle.dart b/lib/widgets/progress_circle.dart index 96ce231f..58ea1124 100755 --- a/lib/widgets/progress_circle.dart +++ b/lib/widgets/progress_circle.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:math'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/responsive_dialog.dart b/lib/widgets/responsive_dialog.dart index 89d31017..f2664277 100755 --- a/lib/widgets/responsive_dialog.dart +++ b/lib/widgets/responsive_dialog.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; diff --git a/lib/widgets/toast.dart b/lib/widgets/toast.dart index 7084a118..9f9240df 100755 --- a/lib/widgets/toast.dart +++ b/lib/widgets/toast.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:async'; import 'package:flutter/material.dart'; diff --git a/lib/widgets/utf8_utils.dart b/lib/widgets/utf8_utils.dart index 336b34ef..1ce4370b 100755 --- a/lib/widgets/utf8_utils.dart +++ b/lib/widgets/utf8_utils.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'dart:convert'; import 'package:flutter/material.dart'; diff --git a/set-version.py b/set-version.py index 5b5ebae9..6940c31c 100755 --- a/set-version.py +++ b/set-version.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright (C) 2022 Yubico. +# +# 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. + import re import sys diff --git a/test/android_settings_page_test.dart b/test/android_settings_page_test.dart index bf50f3e4..107370f5 100644 --- a/test/android_settings_page_test.dart +++ b/test/android_settings_page_test.dart @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + import 'package:flutter/material.dart'; import 'package:flutter_gen/gen_l10n/app_localizations.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; From 6b65267663beda23d7b6335a034b50fe97ae8d0a Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 13:15:09 +0200 Subject: [PATCH 2/7] add Apache 2.0 license --- LICENSE | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..261eeb9e --- /dev/null +++ b/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + 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. From 464c0fc44c5921a91c8077b2273a9db51dbd0e11 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 14:28:39 +0200 Subject: [PATCH 3/7] add licenses to android sources --- .../com/yubico/authenticator/AppContext.kt | 16 +++++++++ .../yubico/authenticator/AppContextManager.kt | 16 +++++++++ .../yubico/authenticator/AppPreferences.kt | 16 +++++++++ .../com/yubico/authenticator/ChannelHelper.kt | 16 +++++++++ .../com/yubico/authenticator/ClipboardUtil.kt | 16 +++++++++ .../com/yubico/authenticator/DialogManager.kt | 16 +++++++++ .../yubico/authenticator/JsonSerializer.kt | 16 +++++++++ .../com/yubico/authenticator/MainActivity.kt | 16 +++++++++ .../com/yubico/authenticator/MainViewModel.kt | 16 +++++++++ .../com/yubico/authenticator/NdefActivity.kt | 16 +++++++++ .../com/yubico/authenticator/YubiKeyAction.kt | 16 +++++++++ .../com/yubico/authenticator/device/Config.kt | 16 +++++++++ .../com/yubico/authenticator/device/Info.kt | 16 +++++++++ .../yubico/authenticator/device/Version.kt | 16 +++++++++ .../authenticator/logging/FlutterLog.kt | 16 +++++++++ .../com/yubico/authenticator/logging/Log.kt | 16 +++++++++ .../authenticator/management/Conversion.kt | 16 +++++++++ .../oath/AppLinkMethodChannel.kt | 16 +++++++++ .../yubico/authenticator/oath/Conversion.kt | 16 +++++++++ .../yubico/authenticator/oath/KeyManager.kt | 34 ++++++------------- .../com/yubico/authenticator/oath/Model.kt | 16 +++++++++ .../yubico/authenticator/oath/OathManager.kt | 16 +++++++++ .../authenticator/oath/OathViewModel.kt | 16 +++++++++ .../authenticator/oath/SteamCredential.kt | 16 +++++++++ .../oath/keystore/ClearingMemProvider.kt | 16 +++++++++ .../oath/keystore/KeyProvider.kt | 16 +++++++++ .../oath/keystore/KeyStoreProvider.kt | 16 +++++++++ .../yubiclip/scancode/DECHKeyboardLayout.java | 16 +++++++++ .../yubiclip/scancode/DEKeyboardLayout.java | 16 +++++++++ .../yubiclip/scancode/KeyboardLayout.java | 16 +++++++++ .../yubiclip/scancode/USKeyboardLayout.java | 16 +++++++++ .../authenticator/yubikit/ConnectionHelper.kt | 16 +++++++++ .../authenticator/yubikit/DeviceInfoHelper.kt | 16 +++++++++ .../yubico/authenticator/yubikit/SkyHelper.kt | 16 +++++++++ .../authenticator/oath/KeyManagerTest.kt | 16 +++++++++ .../yubico/authenticator/oath/ModelTest.kt | 16 +++++++++ .../authenticator/oath/OathTestHelper.kt | 16 +++++++++ .../authenticator/oath/SerializationTest.kt | 16 +++++++++ .../authenticator/oath/SteamCredentialTest.kt | 16 +++++++++ .../authenticator/yubikit/SkyHelperTest.kt | 16 +++++++++ .../qrscanner_zxing/QRScannerView.kt | 16 +++++++++ .../qrscanner_zxing/QRScannerZxingPlugin.kt | 16 +++++++++ 42 files changed, 666 insertions(+), 24 deletions(-) diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/AppContext.kt b/android/app/src/main/kotlin/com/yubico/authenticator/AppContext.kt index ef6cf138..71a9a413 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/AppContext.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/AppContext.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import com.yubico.authenticator.logging.Log diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/AppContextManager.kt b/android/app/src/main/kotlin/com/yubico/authenticator/AppContextManager.kt index 7e46e850..66281d0b 100755 --- a/android/app/src/main/kotlin/com/yubico/authenticator/AppContextManager.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/AppContextManager.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import com.yubico.yubikit.core.YubiKeyDevice diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/AppPreferences.kt b/android/app/src/main/kotlin/com/yubico/authenticator/AppPreferences.kt index f68c5c8a..6be3cda5 100755 --- a/android/app/src/main/kotlin/com/yubico/authenticator/AppPreferences.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/AppPreferences.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import android.content.Context diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ChannelHelper.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ChannelHelper.kt index 9128fa85..35272a21 100755 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ChannelHelper.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ChannelHelper.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import androidx.lifecycle.LifecycleOwner diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ClipboardUtil.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ClipboardUtil.kt index c11d5468..ccc6c071 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ClipboardUtil.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ClipboardUtil.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import android.content.ClipData diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/DialogManager.kt b/android/app/src/main/kotlin/com/yubico/authenticator/DialogManager.kt index 501c1955..0e001c5b 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/DialogManager.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/DialogManager.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import io.flutter.plugin.common.BinaryMessenger diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/JsonSerializer.kt b/android/app/src/main/kotlin/com/yubico/authenticator/JsonSerializer.kt index 2b74e695..a3187259 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/JsonSerializer.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/JsonSerializer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import kotlinx.serialization.json.Json diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt index aa309fc8..2614d055 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/MainActivity.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import android.content.* diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/MainViewModel.kt b/android/app/src/main/kotlin/com/yubico/authenticator/MainViewModel.kt index 982a2bb6..8a53cf0a 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/MainViewModel.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/MainViewModel.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import androidx.lifecycle.LiveData diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt b/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt index 5c40b50c..beb4cde2 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import android.app.Activity diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/YubiKeyAction.kt b/android/app/src/main/kotlin/com/yubico/authenticator/YubiKeyAction.kt index 2798e61e..324cf6b1 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/YubiKeyAction.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/YubiKeyAction.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator import com.yubico.yubikit.core.YubiKeyDevice diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/device/Config.kt b/android/app/src/main/kotlin/com/yubico/authenticator/device/Config.kt index 0307aff1..77cf56fd 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/device/Config.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/device/Config.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.device import kotlinx.serialization.SerialName diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/device/Info.kt b/android/app/src/main/kotlin/com/yubico/authenticator/device/Info.kt index ca15c2ab..2e3215f9 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/device/Info.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/device/Info.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.device import kotlinx.serialization.SerialName diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/device/Version.kt b/android/app/src/main/kotlin/com/yubico/authenticator/device/Version.kt index 0abd8344..f05f6ff8 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/device/Version.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/device/Version.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.device import kotlinx.serialization.KSerializer diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/logging/FlutterLog.kt b/android/app/src/main/kotlin/com/yubico/authenticator/logging/FlutterLog.kt index ba897cc6..6d095c6a 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/logging/FlutterLog.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/logging/FlutterLog.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.logging import io.flutter.plugin.common.BinaryMessenger diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/logging/Log.kt b/android/app/src/main/kotlin/com/yubico/authenticator/logging/Log.kt index b3aa4673..5d33e0e9 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/logging/Log.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/logging/Log.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.logging import android.util.Log diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/management/Conversion.kt b/android/app/src/main/kotlin/com/yubico/authenticator/management/Conversion.kt index 7b6100be..2e43e620 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/management/Conversion.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/management/Conversion.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.management import com.yubico.authenticator.device.Config diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/AppLinkMethodChannel.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/AppLinkMethodChannel.kt index b87399f9..7cb9cd4b 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/AppLinkMethodChannel.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/AppLinkMethodChannel.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import android.net.Uri diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/Conversion.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/Conversion.kt index ce36ec59..b3b8c732 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/Conversion.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/Conversion.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import com.yubico.authenticator.device.Version diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/KeyManager.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/KeyManager.kt index 7f080e28..7a528960 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/KeyManager.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/KeyManager.kt @@ -1,31 +1,17 @@ /* - * Copyright (c) 2022, Yubico AB. All rights reserved. + * Copyright (C) 2022 Yubico. * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: + * 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 * - * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. + * http://www.apache.org/licenses/LICENSE-2.0 * - * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following - * disclaimer in the documentation and/or other materials provided - * with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND - * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, - * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS - * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED - * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR - * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF - * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. + * 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.yubico.authenticator.oath diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/Model.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/Model.kt index 3e0bf3b7..aedc6abe 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/Model.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/Model.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import com.yubico.authenticator.device.Version diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathManager.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathManager.kt index 76c8e877..4292a97a 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathManager.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathManager.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import androidx.lifecycle.DefaultLifecycleObserver diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathViewModel.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathViewModel.kt index a1e3b38b..225eb863 100755 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathViewModel.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/OathViewModel.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import androidx.lifecycle.LiveData diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/SteamCredential.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/SteamCredential.kt index 377b3da7..5bee5f2d 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/SteamCredential.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/SteamCredential.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import com.yubico.yubikit.oath.Code diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/ClearingMemProvider.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/ClearingMemProvider.kt index 4c232133..88a6204e 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/ClearingMemProvider.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/ClearingMemProvider.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath.keystore import android.security.keystore.KeyProperties diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyProvider.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyProvider.kt index 0bde98e3..617beba6 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyProvider.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyProvider.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath.keystore import com.yubico.yubikit.oath.AccessKey diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyStoreProvider.kt b/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyStoreProvider.kt index d56a9ed0..f2aad1fd 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyStoreProvider.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/oath/keystore/KeyStoreProvider.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath.keystore import android.security.keystore.KeyProperties diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java index 5b683cdc..9546bbcb 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubiclip.scancode; /** diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java index cde9846d..7b281f35 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubiclip.scancode; /** diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java index d0d20041..84365390 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubiclip.scancode; import java.util.HashMap; diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java index 2402a69e..71c48768 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubiclip.scancode; /** diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/ConnectionHelper.kt b/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/ConnectionHelper.kt index 32d1ff1c..0c20ff77 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/ConnectionHelper.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/ConnectionHelper.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubikit import com.yubico.yubikit.core.YubiKeyConnection diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/DeviceInfoHelper.kt b/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/DeviceInfoHelper.kt index d17468f2..c24fc47d 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/DeviceInfoHelper.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/DeviceInfoHelper.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubikit import com.yubico.authenticator.device.Info diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/SkyHelper.kt b/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/SkyHelper.kt index 8adffa04..6f5bb999 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/SkyHelper.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/yubikit/SkyHelper.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubikit import com.yubico.authenticator.device.Info diff --git a/android/app/src/test/java/com/yubico/authenticator/oath/KeyManagerTest.kt b/android/app/src/test/java/com/yubico/authenticator/oath/KeyManagerTest.kt index 4b4c5e4e..f525d849 100644 --- a/android/app/src/test/java/com/yubico/authenticator/oath/KeyManagerTest.kt +++ b/android/app/src/test/java/com/yubico/authenticator/oath/KeyManagerTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import com.yubico.authenticator.oath.keystore.KeyProvider diff --git a/android/app/src/test/java/com/yubico/authenticator/oath/ModelTest.kt b/android/app/src/test/java/com/yubico/authenticator/oath/ModelTest.kt index 2336e18a..01cedc4d 100644 --- a/android/app/src/test/java/com/yubico/authenticator/oath/ModelTest.kt +++ b/android/app/src/test/java/com/yubico/authenticator/oath/ModelTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import androidx.arch.core.executor.testing.InstantTaskExecutorRule diff --git a/android/app/src/test/java/com/yubico/authenticator/oath/OathTestHelper.kt b/android/app/src/test/java/com/yubico/authenticator/oath/OathTestHelper.kt index 4b0f57c4..37607a69 100644 --- a/android/app/src/test/java/com/yubico/authenticator/oath/OathTestHelper.kt +++ b/android/app/src/test/java/com/yubico/authenticator/oath/OathTestHelper.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath object OathTestHelper { diff --git a/android/app/src/test/java/com/yubico/authenticator/oath/SerializationTest.kt b/android/app/src/test/java/com/yubico/authenticator/oath/SerializationTest.kt index 210aa100..cf2dd48c 100644 --- a/android/app/src/test/java/com/yubico/authenticator/oath/SerializationTest.kt +++ b/android/app/src/test/java/com/yubico/authenticator/oath/SerializationTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import com.yubico.authenticator.device.Version diff --git a/android/app/src/test/java/com/yubico/authenticator/oath/SteamCredentialTest.kt b/android/app/src/test/java/com/yubico/authenticator/oath/SteamCredentialTest.kt index 78fe6ef4..a47af9b8 100644 --- a/android/app/src/test/java/com/yubico/authenticator/oath/SteamCredentialTest.kt +++ b/android/app/src/test/java/com/yubico/authenticator/oath/SteamCredentialTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.oath import com.yubico.yubikit.oath.Credential diff --git a/android/app/src/test/java/com/yubico/authenticator/yubikit/SkyHelperTest.kt b/android/app/src/test/java/com/yubico/authenticator/yubikit/SkyHelperTest.kt index 59348c93..c372ff53 100644 --- a/android/app/src/test/java/com/yubico/authenticator/yubikit/SkyHelperTest.kt +++ b/android/app/src/test/java/com/yubico/authenticator/yubikit/SkyHelperTest.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.yubikit import android.hardware.usb.UsbDevice diff --git a/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerView.kt b/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerView.kt index 95639bfd..4b5ce41c 100644 --- a/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerView.kt +++ b/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerView.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.flutter_plugins.qrscanner_zxing import android.Manifest diff --git a/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerZxingPlugin.kt b/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerZxingPlugin.kt index 78abd30c..64707a74 100644 --- a/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerZxingPlugin.kt +++ b/android/flutter_plugins/qrscanner_zxing/android/src/main/kotlin/com/yubico/authenticator/flutter_plugins/qrscanner_zxing/QRScannerZxingPlugin.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.flutter_plugins.qrscanner_zxing import io.flutter.embedding.engine.plugins.FlutterPlugin From 6eb5ad4654b69777e5de55bab6a49ef0c74393ef Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 15:25:41 +0200 Subject: [PATCH 4/7] update package --- .../src/main/kotlin/com/yubico/authenticator/NdefActivity.kt | 2 +- .../{yubiclip/scancode => ndef}/DECHKeyboardLayout.java | 2 +- .../{yubiclip/scancode => ndef}/DEKeyboardLayout.java | 2 +- .../{yubiclip/scancode => ndef}/KeyboardLayout.java | 2 +- .../{yubiclip/scancode => ndef}/USKeyboardLayout.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename android/app/src/main/kotlin/com/yubico/authenticator/{yubiclip/scancode => ndef}/DECHKeyboardLayout.java (98%) rename android/app/src/main/kotlin/com/yubico/authenticator/{yubiclip/scancode => ndef}/DEKeyboardLayout.java (98%) rename android/app/src/main/kotlin/com/yubico/authenticator/{yubiclip/scancode => ndef}/KeyboardLayout.java (96%) rename android/app/src/main/kotlin/com/yubico/authenticator/{yubiclip/scancode => ndef}/USKeyboardLayout.java (98%) diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt b/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt index beb4cde2..e2386657 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/NdefActivity.kt @@ -25,7 +25,7 @@ import android.os.Build import android.os.Bundle import android.widget.Toast import com.yubico.authenticator.logging.Log -import com.yubico.authenticator.yubiclip.scancode.KeyboardLayout +import com.yubico.authenticator.ndef.KeyboardLayout import com.yubico.yubikit.core.util.NdefUtils import java.nio.charset.StandardCharsets diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java similarity index 98% rename from android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java rename to android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java index 9546bbcb..cb70ec6b 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DECHKeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.yubico.authenticator.yubiclip.scancode; +package com.yubico.authenticator.ndef; /** * Created by mjenny on 7/12/15. diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java similarity index 98% rename from android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java rename to android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java index 7b281f35..29b2a0b7 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/DEKeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.yubico.authenticator.yubiclip.scancode; +package com.yubico.authenticator.ndef; /** * Created by kemiren on 6/18/14. diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java similarity index 96% rename from android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java rename to android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java index 84365390..c26bea61 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/KeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.yubico.authenticator.yubiclip.scancode; +package com.yubico.authenticator.ndef; import java.util.HashMap; import java.util.Map; diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java similarity index 98% rename from android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java rename to android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java index 71c48768..1c88d7ba 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/yubiclip/scancode/USKeyboardLayout.java +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.yubico.authenticator.yubiclip.scancode; +package com.yubico.authenticator.ndef; /** * Created by dain on 2/17/14. From e4b9b21acf1e012cefaecf4bc1d00d90225d61f9 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 15:32:40 +0200 Subject: [PATCH 5/7] use kotlin files --- .../ndef/DECHKeyboardLayout.java | 157 ------------------ .../authenticator/ndef/DECHKeyboardLayout.kt | 12 ++ .../authenticator/ndef/DEKeyboardLayout.java | 157 ------------------ .../authenticator/ndef/DEKeyboardLayout.kt | 12 ++ .../authenticator/ndef/KeyboardLayout.java | 56 ------- .../authenticator/ndef/KeyboardLayout.kt | 45 +++++ .../authenticator/ndef/USKeyboardLayout.java | 157 ------------------ .../authenticator/ndef/USKeyboardLayout.kt | 12 ++ 8 files changed, 81 insertions(+), 527 deletions(-) delete mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java create mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt delete mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java create mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt delete mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java create mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt delete mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java create mode 100644 android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java deleted file mode 100644 index cb70ec6b..00000000 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - -package com.yubico.authenticator.ndef; - -/** - * Created by mjenny on 7/12/15. - */ -public class DECHKeyboardLayout extends KeyboardLayout { - private static final String[] usb2key1 = new String[]{ - "", - "", - "", - "", - "a", - "b", - "c", - "d", - "e", - "f", - "g", /* 0xa */ - "h", - "i", - "j", - "k", - "l", - "m", - "n", - "o", - "p", - "q", /* 0x14 */ - "r", - "s", - "t", - "u", - "v", - "w", - "x", - "z", - "y", - "1", /* 0x1e */ - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "0", - "\n", /* 0x28 */ - "", - "", - "\t", - " ", - "'", - "^", - "ü", - "¨", - "", - "$", - "ö", - "ä", - "§", - ",", - ".", - "-", /* 0x38 */ - }; - private static final String[] usb2key2 = new String[]{ - "", - "", - "", - "", - "A", - "B", - "C", - "D", - "E", - "F", - "G", /* 0x8a */ - "H", - "I", - "J", - "K", - "L", - "M", - "N", - "O", - "P", - "Q", /* 0x94 */ - "R", - "S", - "T", - "U", - "V", - "W", - "X", - "Z", - "Y", - "+", - "\"", - "*", - "ç", - "%", - "&", - "/", - "(", - ")", - "=", - "", - "", - "", - "", - "", - "?", - "`", - "è", - "!", - "", - "£", - "Ö", - "Ä", - "°", - ";", - ":", - "_", - }; - - @Override - protected String fromScanCode(int code) { - if (code < SHIFT) { - if (code < usb2key1.length) { - return usb2key1[code]; - } - } else { - code = code ^ SHIFT; - if (code < usb2key2.length) { - return usb2key2[code]; - } - } - - return ""; - } -} diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt new file mode 100644 index 00000000..64c2c9f8 --- /dev/null +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt @@ -0,0 +1,12 @@ +package com.yubico.authenticator.ndef + +object DECHKeyboardLayout : BaseKeyboardLayout("DECH", + arrayOf("", "", "", "", "a", "b", "c", "d", "e", "f", "g", /* 0xa */ + "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", /* 0x14 */ + "r", "s", "t", "u", "v", "w", "x", "z", "y", "1", /* 0x1e */ + "2", "3", "4", "5", "6", "7", "8", "9", "0", "\n", /* 0x28 */ + "", "", "\t", " ", "'", "^", "ü", "¨", "", "$", "ö", "ä", "§", ",", ".", "-")/* 0x38 */, + arrayOf("", "", "", "", "A", "B", "C", "D", "E", "F", "G", /* 0x8a */ + "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", /* 0x94 */ + "R", "S", "T", "U", "V", "W", "X", "Z", "Y", "+", "\"", "*", "ç", "%", "&", "/", "(", ")", "=", "", "", "", "", "", "?", "`", "è", "!", "", "£", "Ö", "Ä", "°", ";", ":", "_") +) \ No newline at end of file diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java deleted file mode 100644 index 29b2a0b7..00000000 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - -package com.yubico.authenticator.ndef; - -/** - * Created by kemiren on 6/18/14. - */ -public class DEKeyboardLayout extends KeyboardLayout { - private static final String[] usb2key1 = new String[]{ - "", - "", - "", - "", - "a", - "b", - "c", - "d", - "e", - "f", - "g", /* 0xa */ - "h", - "i", - "j", - "k", - "l", - "m", - "n", - "o", - "p", - "q", /* 0x14 */ - "r", - "s", - "t", - "u", - "v", - "w", - "x", - "z", - "y", - "1", /* 0x1e */ - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "0", - "\n", /* 0x28 */ - "", - "", - "\t", - " ", - "ß", - "´", - "ü", - "+", - "", - "#", - "ö", - "'", - "^", - ",", - ".", - "-", /* 0x38 */ - }; - private static final String[] usb2key2 = new String[]{ - "", - "", - "", - "", - "A", - "B", - "C", - "D", - "E", - "F", - "G", /* 0x8a */ - "H", - "I", - "J", - "K", - "L", - "M", - "N", - "O", - "P", - "Q", /* 0x94 */ - "R", - "S", - "T", - "U", - "V", - "W", - "X", - "Z", - "Y", - "!", - "\"", - "§", - "$", - "%", - "&", - "/", - "(", - ")", - "=", - "", - "", - "", - "", - "", - "?", - "`", - "Ü", - "*", - "", - ">", - "Ö", - "Ä", - "'", - ";", - ":", - "_", - }; - - @Override - protected String fromScanCode(int code) { - if (code < SHIFT) { - if (code < usb2key1.length) { - return usb2key1[code]; - } - } else { - code = code ^ SHIFT; - if (code < usb2key2.length) { - return usb2key2[code]; - } - } - - return ""; - } -} diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt new file mode 100644 index 00000000..76b251a2 --- /dev/null +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt @@ -0,0 +1,12 @@ +package com.yubico.authenticator.ndef + +object DEKeyboardLayout : BaseKeyboardLayout("DE", + arrayOf("", "", "", "", "a", "b", "c", "d", "e", "f", "g", /* 0xa */ + "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", /* 0x14 */ + "r", "s", "t", "u", "v", "w", "x", "z", "y", "1", /* 0x1e */ + "2", "3", "4", "5", "6", "7", "8", "9", "0", "\n", /* 0x28 */ + "", "", "\t", " ", "ß", "´", "ü", "+", "", "#", "ö", "'", "^", ",", ".", "-")/* 0x38 */, + arrayOf("", "", "", "", "A", "B", "C", "D", "E", "F", "G", /* 0x8a */ + "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", /* 0x94 */ + "R", "S", "T", "U", "V", "W", "X", "Z", "Y", "!", "\"", "§", "$", "%", "&", "/", "(", ")", "=", "", "", "", "", "", "?", "`", "Ü", "*", "", ">", "Ö", "Ä", "'", ";", ":", "_") +) \ No newline at end of file diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java deleted file mode 100644 index c26bea61..00000000 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - -package com.yubico.authenticator.ndef; - -import java.util.HashMap; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; - -/** - * Created by dain on 2/17/14. - */ -public abstract class KeyboardLayout { - private static final Map layouts = new HashMap(); - - static { - layouts.put("US", new USKeyboardLayout()); - layouts.put("DE", new DEKeyboardLayout()); - layouts.put("DE-CH", new DECHKeyboardLayout()); - } - - public static KeyboardLayout forName(String name) { - return layouts.get(name.toUpperCase()); - } - - public static Set availableLayouts() { - return new TreeSet<>(layouts.keySet()); - } - - protected static final int SHIFT = 0x80; - - protected abstract String fromScanCode(int code); - - public final String fromScanCodes(byte[] bytes) { - StringBuilder buf = new StringBuilder(); - for (byte b : bytes) { - buf.append(fromScanCode(b & 0xff)); - } - - return buf.toString(); - } -} diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt new file mode 100644 index 00000000..2781b31e --- /dev/null +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt @@ -0,0 +1,45 @@ +package com.yubico.authenticator.ndef + +import java.lang.IllegalArgumentException + +abstract class KeyboardLayout(val name:String) { + companion object { + const val DEFAULT_NAME = "US" + + const val SHIFT = 0x80 + + private val layouts by lazy { + listOf( + USKeyboardLayout, + DEKeyboardLayout, + DECHKeyboardLayout + ).map { it.name to it }.toMap() + } + + val availableLayouts get() = layouts.keys.toTypedArray() + fun forName(name:String) = layouts[name] ?: throw IllegalArgumentException("Unsupported keyboard layout: $name!") + } + + abstract fun fromScanCode(code: Int): String + + fun fromScanCodes(bytes:ByteArray):String = bytes.joinToString("") { + fromScanCode(it.toInt() and 0xff) + } +} + +open class BaseKeyboardLayout(name:String, private val unshiftedMap: Array, private val shiftedMap: Array) : KeyboardLayout(name) { + override fun fromScanCode(code: Int): String { + if (code < KeyboardLayout.SHIFT) { + if (code < unshiftedMap.size) { + return unshiftedMap[code] + } + } else { + val shiftCode = code xor KeyboardLayout.SHIFT + if (shiftCode < shiftedMap.size) { + return shiftedMap[shiftCode] + } + } + + return "" + } +} \ No newline at end of file diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java deleted file mode 100644 index 1c88d7ba..00000000 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - -package com.yubico.authenticator.ndef; - -/** - * Created by dain on 2/17/14. - */ -public class USKeyboardLayout extends KeyboardLayout { - private static final String[] usb2key1 = new String[]{ - "", - "", - "", - "", - "a", - "b", - "c", - "d", - "e", - "f", - "g", /* 0xa */ - "h", - "i", - "j", - "k", - "l", - "m", - "n", - "o", - "p", - "q", /* 0x14 */ - "r", - "s", - "t", - "u", - "v", - "w", - "x", - "y", - "z", - "1", /* 0x1e */ - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9", - "0", - "\n", /* 0x28 */ - "", - "", - "\t", - " ", - "-", - "=", - "[", - "]", - "", - "\\", - ";", - "'", - "`", - ",", - ".", - "/", /* 0x38 */ - }; - private static final String[] usb2key2 = new String[]{ - "", - "", - "", - "", - "A", - "B", - "C", - "D", - "E", - "F", - "G", /* 0x8a */ - "H", - "I", - "J", - "K", - "L", - "M", - "N", - "O", - "P", - "Q", /* 0x94 */ - "R", - "S", - "T", - "U", - "V", - "W", - "X", - "Y", - "Z", - "!", - "@", - "#", - "$", - "%", - "^", - "&", - "*", - "(", - ")", - "", - "", - "", - "", - "", - "_", - "+", - "{", - "}", - "", - "|", - ":", - "\"", - "~", - "<", - ">", - "?", - }; - - @Override - protected String fromScanCode(int code) { - if (code < SHIFT) { - if (code < usb2key1.length) { - return usb2key1[code]; - } - } else { - code = code ^ SHIFT; - if (code < usb2key2.length) { - return usb2key2[code]; - } - } - - return ""; - } -} diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt new file mode 100644 index 00000000..6afa37cb --- /dev/null +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt @@ -0,0 +1,12 @@ +package com.yubico.authenticator.ndef + +object USKeyboardLayout : BaseKeyboardLayout("US", + arrayOf("", "", "", "", "a", "b", "c", "d", "e", "f", "g", /* 0xa */ + "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", /* 0x14 */ + "r", "s", "t", "u", "v", "w", "x", "y", "z", "1", /* 0x1e */ + "2", "3", "4", "5", "6", "7", "8", "9", "0", "\n", /* 0x28 */ + "", "", "\t", " ", "-", "=", "[", "]", "", "\\", ";", "'", "`", ",", ".", "/")/* 0x38 */, + arrayOf("", "", "", "", "A", "B", "C", "D", "E", "F", "G", /* 0x8a */ + "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", /* 0x94 */ + "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "", "", "", "", "", "_", "+", "{", "}", "", "|", ":", "\"", "~", "<", ">", "?") +) \ No newline at end of file From e38767bfe4eb7cd89c45f2445eb84fb5ad79a26b Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 15:47:26 +0200 Subject: [PATCH 6/7] update kotlin sources --- .../authenticator/ndef/DECHKeyboardLayout.kt | 16 ++++++++++ .../authenticator/ndef/DEKeyboardLayout.kt | 16 ++++++++++ .../authenticator/ndef/KeyboardLayout.kt | 31 +++++++++++++------ .../authenticator/ndef/USKeyboardLayout.kt | 16 ++++++++++ 4 files changed, 70 insertions(+), 9 deletions(-) diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt index 64c2c9f8..5fea8144 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DECHKeyboardLayout.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.ndef object DECHKeyboardLayout : BaseKeyboardLayout("DECH", diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt index 76b251a2..d8ba17c8 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/DEKeyboardLayout.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.ndef object DEKeyboardLayout : BaseKeyboardLayout("DE", diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt index 2781b31e..ecd85536 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/KeyboardLayout.kt @@ -1,22 +1,35 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.ndef import java.lang.IllegalArgumentException abstract class KeyboardLayout(val name:String) { companion object { - const val DEFAULT_NAME = "US" - const val SHIFT = 0x80 private val layouts by lazy { listOf( - USKeyboardLayout, - DEKeyboardLayout, - DECHKeyboardLayout - ).map { it.name to it }.toMap() + USKeyboardLayout, + DEKeyboardLayout, + DECHKeyboardLayout + ).associateBy { it.name } } - val availableLayouts get() = layouts.keys.toTypedArray() fun forName(name:String) = layouts[name] ?: throw IllegalArgumentException("Unsupported keyboard layout: $name!") } @@ -29,12 +42,12 @@ abstract class KeyboardLayout(val name:String) { open class BaseKeyboardLayout(name:String, private val unshiftedMap: Array, private val shiftedMap: Array) : KeyboardLayout(name) { override fun fromScanCode(code: Int): String { - if (code < KeyboardLayout.SHIFT) { + if (code < SHIFT) { if (code < unshiftedMap.size) { return unshiftedMap[code] } } else { - val shiftCode = code xor KeyboardLayout.SHIFT + val shiftCode = code xor SHIFT if (shiftCode < shiftedMap.size) { return shiftedMap[shiftCode] } diff --git a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt index 6afa37cb..44b39505 100644 --- a/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt +++ b/android/app/src/main/kotlin/com/yubico/authenticator/ndef/USKeyboardLayout.kt @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2022 Yubico. + * + * 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. + */ + package com.yubico.authenticator.ndef object USKeyboardLayout : BaseKeyboardLayout("US", From 4b5b090d41a621a858a8b7c1f01553182fbb5a59 Mon Sep 17 00:00:00 2001 From: Adam Velebil Date: Tue, 4 Oct 2022 16:30:19 +0200 Subject: [PATCH 7/7] remove license from generated files --- lib/app/models.freezed.dart | 16 ---------------- lib/core/models.freezed.dart | 16 ---------------- lib/core/models.g.dart | 16 ---------------- lib/desktop/models.freezed.dart | 16 ---------------- lib/desktop/models.g.dart | 16 ---------------- lib/fido/models.freezed.dart | 16 ---------------- lib/fido/models.g.dart | 16 ---------------- lib/management/models.freezed.dart | 16 ---------------- lib/management/models.g.dart | 16 ---------------- lib/oath/models.freezed.dart | 16 ---------------- lib/oath/models.g.dart | 16 ---------------- lib/version.dart | 16 ---------------- 12 files changed, 192 deletions(-) diff --git a/lib/app/models.freezed.dart b/lib/app/models.freezed.dart index afe68518..ef7b908b 100644 --- a/lib/app/models.freezed.dart +++ b/lib/app/models.freezed.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/core/models.freezed.dart b/lib/core/models.freezed.dart index ec368d69..dce8a62d 100644 --- a/lib/core/models.freezed.dart +++ b/lib/core/models.freezed.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/core/models.g.dart b/lib/core/models.g.dart index 15728f16..1e741574 100644 --- a/lib/core/models.g.dart +++ b/lib/core/models.g.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/desktop/models.freezed.dart b/lib/desktop/models.freezed.dart index a293d92e..426515b4 100644 --- a/lib/desktop/models.freezed.dart +++ b/lib/desktop/models.freezed.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/desktop/models.g.dart b/lib/desktop/models.g.dart index fa3864ff..d5e0a84b 100644 --- a/lib/desktop/models.g.dart +++ b/lib/desktop/models.g.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/fido/models.freezed.dart b/lib/fido/models.freezed.dart index 132566f9..9574a575 100644 --- a/lib/fido/models.freezed.dart +++ b/lib/fido/models.freezed.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/fido/models.g.dart b/lib/fido/models.g.dart index a52e5460..0b64ea6c 100644 --- a/lib/fido/models.g.dart +++ b/lib/fido/models.g.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/management/models.freezed.dart b/lib/management/models.freezed.dart index e232ab78..2144983e 100644 --- a/lib/management/models.freezed.dart +++ b/lib/management/models.freezed.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/management/models.g.dart b/lib/management/models.g.dart index 14e2adc0..4f7b9ac0 100644 --- a/lib/management/models.g.dart +++ b/lib/management/models.g.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/oath/models.freezed.dart b/lib/oath/models.freezed.dart index fecd6fc7..1e72bb0b 100644 --- a/lib/oath/models.freezed.dart +++ b/lib/oath/models.freezed.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // coverage:ignore-file // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint diff --git a/lib/oath/models.g.dart b/lib/oath/models.g.dart index aeae4abe..d1dbfa98 100644 --- a/lib/oath/models.g.dart +++ b/lib/oath/models.g.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // GENERATED CODE - DO NOT MODIFY BY HAND part of 'models.dart'; diff --git a/lib/version.dart b/lib/version.dart index b5b0c07b..89773682 100755 --- a/lib/version.dart +++ b/lib/version.dart @@ -1,19 +1,3 @@ -/* - * Copyright (C) 2022 Yubico. - * - * 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. - */ - // GENERATED CODE - DO NOT MODIFY BY HAND // This file is generated by running ./set-version.py