From 0579bf4b490dd8eaf2f03141e1958b0bdb957c1d Mon Sep 17 00:00:00 2001 From: Marten Rebane Date: Fri, 25 Sep 2026 15:18:10 +0300 Subject: [PATCH] Add copyright header check --- .github/workflows/copyright.yml | 15 +++++++++++++ build.gradle.kts | 3 +++ demoapp/app/build.gradle.kts | 3 +++ demoapp/app/proguard-rules.pro | 3 +++ demoapp/app/src/main/AndroidManifest.xml | 2 ++ .../nfc/example/HomeFragment.kt | 20 ++---------------- .../nfc/example/MainActivity.kt | 20 ++---------------- .../nfc/example/auth/AuthFragment.kt | 20 ++---------------- .../nfc/example/auth/Pin1Fragment.kt | 20 ++---------------- .../nfc/example/card/CanFragment.kt | 20 ++---------------- .../nfc/example/card/CardInfoFragment.kt | 20 ++---------------- .../nfc/example/card/CardReaderFragment.kt | 20 ++---------------- .../configuration/ConfigurationData.kt | 20 ++---------------- .../configuration/ContainerConfiguration.kt | 20 ++---------------- .../nfc/example/sign/ContainerDataAdapter.kt | 20 ++---------------- .../nfc/example/sign/ContainerFragment.kt | 20 ++---------------- .../nfc/example/sign/Pin2Fragment.kt | 21 +++---------------- .../nfc/example/util/FileData.kt | 20 ++---------------- .../nfc/example/util/HideInput.kt | 20 ++---------------- .../smartcardreader/nfc/example/util/Utils.kt | 20 ++---------------- .../nfc/example/viewmodel/DataViewModel.kt | 20 ++---------------- .../main/res/drawable/card_reader_image.xml | 4 ++++ demoapp/app/src/main/res/drawable/error.xml | 4 ++++ .../res/drawable/ic_launcher_background.xml | 4 ++++ .../res/drawable/ic_launcher_foreground.xml | 4 ++++ demoapp/app/src/main/res/drawable/success.xml | 4 ++++ demoapp/app/src/main/res/drawable/x.xml | 2 ++ .../app/src/main/res/layout/activity_main.xml | 2 ++ demoapp/app/src/main/res/layout/file.xml | 2 ++ .../app/src/main/res/layout/fragment_auth.xml | 2 ++ .../app/src/main/res/layout/fragment_can.xml | 2 ++ .../main/res/layout/fragment_card_info.xml | 2 ++ .../main/res/layout/fragment_card_reader.xml | 2 ++ .../main/res/layout/fragment_container.xml | 2 ++ .../app/src/main/res/layout/fragment_home.xml | 2 ++ .../app/src/main/res/layout/fragment_pin1.xml | 2 ++ .../app/src/main/res/layout/fragment_pin2.xml | 2 ++ .../main/res/mipmap-anydpi/ic_launcher.xml | 2 ++ .../res/mipmap-anydpi/ic_launcher_round.xml | 2 ++ .../app/src/main/res/navigation/nav_graph.xml | 2 ++ .../app/src/main/res/values-night/themes.xml | 2 ++ demoapp/app/src/main/res/values/colors.xml | 2 ++ demoapp/app/src/main/res/values/strings.xml | 2 ++ demoapp/app/src/main/res/values/themes.xml | 2 ++ demoapp/app/src/main/res/xml/backup_rules.xml | 5 ++++- .../main/res/xml/data_extraction_rules.xml | 5 ++++- .../src/main/res/xml/file_provider_paths.xml | 2 ++ demoapp/libdigidocpp/build.gradle.kts | 3 +++ demoapp/libdigidocpp/consumer-rules.pro | 3 +++ demoapp/libdigidocpp/proguard-rules.pro | 3 +++ .../libdigidocpp/src/main/AndroidManifest.xml | 2 ++ .../ee/ria/libdigidocpp/DigiDocWrapper.kt | 20 ++---------------- .../ee/ria/libdigidocpp/DigiDocWrapperImpl.kt | 20 ++---------------- .../ee/ria/libdigidocpp/di/DigiDocModule.kt | 20 ++---------------- doc/model/id-card.svg | 5 ++++- gradle.properties | 3 +++ gradle/libs.versions.toml | 3 +++ libs/card-utils-lib/build.gradle.kts | 3 +++ .../src/main/AndroidManifest.xml | 2 ++ .../ee/ria/DigiDoc/utilsLib/di/UtilModules.kt | 20 ++---------------- .../DigiDoc/utilsLib/logging/LoggingUtil.kt | 20 ++---------------- libs/id-card-lib/build.gradle.kts | 3 +++ libs/id-card-lib/src/main/AndroidManifest.xml | 2 ++ .../ee/ria/DigiDoc/idcard/AlgorithmUtils.java | 20 ++---------------- .../java/ee/ria/DigiDoc/idcard/CardType.java | 3 +++ .../ria/DigiDoc/idcard/CertificateType.java | 20 ++---------------- .../java/ee/ria/DigiDoc/idcard/CodeType.java | 20 ++---------------- .../idcard/CodeVerificationException.java | 20 ++---------------- .../ria/DigiDoc/idcard/DateOfBirthUtil.java | 20 ++---------------- .../ria/DigiDoc/idcard/IdCardException.java | 20 ++---------------- .../java/ee/ria/DigiDoc/idcard/Idemia.java | 20 ++---------------- .../idcard/IdemiaPersonalDataParser.java | 20 ++---------------- .../ee/ria/DigiDoc/idcard/IdemiaWithPace.java | 20 ++---------------- .../DigiDoc/idcard/PaceTunnelException.java | 20 ++---------------- .../ee/ria/DigiDoc/idcard/PersonalData.java | 20 ++---------------- .../main/java/ee/ria/DigiDoc/idcard/TLV.java | 20 ++---------------- .../java/ee/ria/DigiDoc/idcard/Thales.java | 20 ++---------------- .../idcard/ThalesPersonalDataParser.java | 20 ++---------------- .../ee/ria/DigiDoc/idcard/ThalesWithPace.java | 20 ++---------------- .../java/ee/ria/DigiDoc/idcard/Token.java | 20 ++---------------- .../ee/ria/DigiDoc/idcard/TokenWithPace.java | 20 ++---------------- .../ee/ria/DigiDoc/idcard/package-info.java | 20 ++---------------- libs/smart-card-reader-lib/build.gradle.kts | 3 +++ .../src/main/AndroidManifest.xml | 2 ++ .../ApduResponseException.java | 20 ++---------------- .../smartcardreader/SmartCardReader.java | 20 ++---------------- .../SmartCardReaderException.java | 20 ++---------------- .../smartcardreader/nfc/ApduEncryptor.java | 20 ++---------------- .../nfc/NfcSmartCardReader.java | 20 ++---------------- .../nfc/NfcSmartCardReaderManager.java | 20 ++---------------- .../smartcardreader/SmartCardReaderTest.java | 3 +++ settings.gradle.kts | 3 +++ 92 files changed, 228 insertions(+), 813 deletions(-) create mode 100644 .github/workflows/copyright.yml diff --git a/.github/workflows/copyright.yml b/.github/workflows/copyright.yml new file mode 100644 index 0000000..2ac8bb9 --- /dev/null +++ b/.github/workflows/copyright.yml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + +name: Copyright headers +on: + push: + branches: [ main ] + pull_request: +jobs: + copyright: + name: Check copyright headers + uses: open-eid/.github/.github/workflows/copyright.yml@b2d87c7447ebcc01beb54c84f3978a81c1d64877 # master + with: + # Vendored libdigidocpp headers and the SWIG-generated bindings + exclude: ^demoapp/libdigidocpp/include/ diff --git a/build.gradle.kts b/build.gradle.kts index f68ef7b..4923bbd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + // Top-level build file where you can add configuration options common to all sub-projects/modules. plugins { alias(libs.plugins.android.application) apply false diff --git a/demoapp/app/build.gradle.kts b/demoapp/app/build.gradle.kts index b399b04..e6ae5f3 100644 --- a/demoapp/app/build.gradle.kts +++ b/demoapp/app/build.gradle.kts @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + import org.jetbrains.kotlin.gradle.dsl.JvmTarget plugins { diff --git a/demoapp/app/proguard-rules.pro b/demoapp/app/proguard-rules.pro index 481bb43..1547e8e 100644 --- a/demoapp/app/proguard-rules.pro +++ b/demoapp/app/proguard-rules.pro @@ -1,3 +1,6 @@ +# SPDX-FileCopyrightText: Estonian Information System Authority +# SPDX-License-Identifier: LGPL-2.1-or-later + # Add project specific ProGuard rules here. # You can control the set of applied configuration files using the # proguardFiles setting in build.gradle. diff --git a/demoapp/app/src/main/AndroidManifest.xml b/demoapp/app/src/main/AndroidManifest.xml index 526db7b..c118076 100644 --- a/demoapp/app/src/main/AndroidManifest.xml +++ b/demoapp/app/src/main/AndroidManifest.xml @@ -1,4 +1,6 @@ + + diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/HomeFragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/HomeFragment.kt index 56464e0..a9ca863 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/HomeFragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/HomeFragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/MainActivity.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/MainActivity.kt index 7245e15..3b99ab8 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/MainActivity.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/MainActivity.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/AuthFragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/AuthFragment.kt index f4e2c6d..b427048 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/AuthFragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/AuthFragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.auth diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/Pin1Fragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/Pin1Fragment.kt index 04f2e86..46b5cbb 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/Pin1Fragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/auth/Pin1Fragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.auth diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CanFragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CanFragment.kt index f3bbacc..1cb9a8f 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CanFragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CanFragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.card diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardInfoFragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardInfoFragment.kt index 1b3cf6f..e4e36fa 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardInfoFragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardInfoFragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.card diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardReaderFragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardReaderFragment.kt index 10f1d92..0f05ede 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardReaderFragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/card/CardReaderFragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.card diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ConfigurationData.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ConfigurationData.kt index da27728..6e89bec 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ConfigurationData.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ConfigurationData.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.configuration diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ContainerConfiguration.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ContainerConfiguration.kt index e03a190..938ee1d 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ContainerConfiguration.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/configuration/ContainerConfiguration.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.configuration diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerDataAdapter.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerDataAdapter.kt index bfef323..938c6e6 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerDataAdapter.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerDataAdapter.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.sign diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerFragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerFragment.kt index de1db14..1a2cbd5 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerFragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/ContainerFragment.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.sign diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/Pin2Fragment.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/Pin2Fragment.kt index c03db51..99f2a5d 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/Pin2Fragment.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/sign/Pin2Fragment.kt @@ -1,21 +1,6 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later + package ee.ria.DigiDoc.smartcardreader.nfc.example.sign import android.os.Bundle diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/FileData.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/FileData.kt index 7bca09a..2e59d5f 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/FileData.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/FileData.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.util diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/HideInput.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/HideInput.kt index deaea2f..c021f60 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/HideInput.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/HideInput.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.util diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/Utils.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/Utils.kt index 1e04e54..3dc7f31 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/Utils.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/util/Utils.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.util diff --git a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/viewmodel/DataViewModel.kt b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/viewmodel/DataViewModel.kt index e48608e..69e4070 100644 --- a/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/viewmodel/DataViewModel.kt +++ b/demoapp/app/src/main/java/ee/ria/DigiDoc/smartcardreader/nfc/example/viewmodel/DataViewModel.kt @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later package ee.ria.DigiDoc.smartcardreader.nfc.example.viewmodel diff --git a/demoapp/app/src/main/res/drawable/card_reader_image.xml b/demoapp/app/src/main/res/drawable/card_reader_image.xml index 13de9e7..57493b4 100644 --- a/demoapp/app/src/main/res/drawable/card_reader_image.xml +++ b/demoapp/app/src/main/res/drawable/card_reader_image.xml @@ -1,3 +1,7 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/demoapp/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml b/demoapp/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml index 6f3b755..7162e3d 100644 --- a/demoapp/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml +++ b/demoapp/app/src/main/res/mipmap-anydpi/ic_launcher_round.xml @@ -1,4 +1,6 @@ + + diff --git a/demoapp/app/src/main/res/navigation/nav_graph.xml b/demoapp/app/src/main/res/navigation/nav_graph.xml index 6a7c667..9b60782 100644 --- a/demoapp/app/src/main/res/navigation/nav_graph.xml +++ b/demoapp/app/src/main/res/navigation/nav_graph.xml @@ -1,4 +1,6 @@ + + +