From 5c5b0baa491f1dd9daaa6145e6244a325e5b7e35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20K=C3=B6hne?= Date: Fri, 3 May 2024 17:03:36 +0200 Subject: Attribute Third-Party Code in Android Sensors Plugin [ChangeLog][Third-Party Code] Add attribution for Android getRotationMatrix and getOrientation code, copied from Android sources under Apache-2.0. This code is only used on Android, as part of the Android Sensor plugin. Pick-to: 6.2 6.5 6.7 Task-number: QTBUG-110806 Change-Id: I4074e72b7ba8a8b77406d5bf07667560ec64abb5 Reviewed-by: Lorn Potter --- src/plugins/sensors/android/androidcompass.cpp | 20 ++------------------ src/plugins/sensors/android/qt_attribution.json | 12 ++++++++++++ 2 files changed, 14 insertions(+), 18 deletions(-) create mode 100644 src/plugins/sensors/android/qt_attribution.json (limited to 'src/plugins/sensors') diff --git a/src/plugins/sensors/android/androidcompass.cpp b/src/plugins/sensors/android/androidcompass.cpp index d6f4f0f7..9cdea54d 100644 --- a/src/plugins/sensors/android/androidcompass.cpp +++ b/src/plugins/sensors/android/androidcompass.cpp @@ -1,22 +1,6 @@ // Copyright (C) 2019 BogDan Vatra -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -/* - * Copyright (C) 2008 The Android Open Source Project - * - * 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. - */ - +// Copyright (C) 2008 The Android Open Source Project +// SPDX-License-Identifier: Apache-2.0 #include "androidcompass.h" diff --git a/src/plugins/sensors/android/qt_attribution.json b/src/plugins/sensors/android/qt_attribution.json new file mode 100644 index 00000000..9599e5bf --- /dev/null +++ b/src/plugins/sensors/android/qt_attribution.json @@ -0,0 +1,12 @@ +{ + "Id": "android-compass", + "Name": "Android getRotationMatrix and getOrientation", + "QDocModule": "qtsensors", + "Description": "Code to calculate the rotation matrix and orientation of a compass, adopted from Android sources.", + "QtUsage": "Used on Android, in the Android Sensor plugin.", + "Files": "androidcompass.cpp", + + "License": "Apache License 2.0", + "LicenseId": "Apache-2.0", + "Copyright": "Copyright (C) 2008 The Android Open Source Project" +} -- cgit v1.2.3