summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2024-05-03 17:03:36 +0200
committerKai Köhne <kai.koehne@qt.io>2024-05-06 12:20:28 +0200
commit5c5b0baa491f1dd9daaa6145e6244a325e5b7e35 (patch)
treea639c9606c8b74bbbda2289a456a34983aa6a8c3 /src/plugins
parent19c857e44d08b5721c77c917a952e08062799138 (diff)
Attribute Third-Party Code in Android Sensors PluginHEADdev
[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 <lorn.potter@gmail.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/sensors/android/androidcompass.cpp20
-rw-r--r--src/plugins/sensors/android/qt_attribution.json12
2 files changed, 14 insertions, 18 deletions
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 <bogdan@kde.org>
-// 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"
+}