From 6246a47b8f31e25d953687432c61585756c6a640 Mon Sep 17 00:00:00 2001 From: Matte23 Date: Fri, 22 Jan 2021 11:07:01 +0100 Subject: [PATCH] Update copyright notice --- .../circolapp/ExampleInstrumentedTest.kt | 18 ++++++++++++++ .../circolapp/AlarmBroadcastReceiver.kt | 2 +- .../circolapp/BootCompleteReceiver.kt | 2 +- .../net/underdesk/circolapp/IntroActivity.kt | 18 ++++++++++++++ .../net/underdesk/circolapp/MainActivity.kt | 2 +- .../underdesk/circolapp/SettingsActivity.kt | 2 +- .../circolapp/adapters/AttachmentAdapter.kt | 2 +- .../adapters/CircularLetterAdapter.kt | 2 +- .../data/AndroidCircularRepository.kt | 18 ++++++++++++++ .../circolapp/data/AndroidDatabase.kt | 2 +- .../circolapp/data/CircularRepository.kt | 18 ++++++++++++++ .../fragments/CircularLetterFragment.kt | 2 +- .../circolapp/fragments/FavouritesFragment.kt | 2 +- .../fragments/NewReminderFragment.kt | 2 +- .../circolapp/fragments/RemindersFragment.kt | 2 +- .../fragments/intro/LegalFragment.kt | 19 +++++++++++++++ .../intro/SchoolSelectionFragment.kt | 19 +++++++++++++++ .../push/CircolappFirebaseMessagingService.kt | 2 +- .../circolapp/push/FirebaseTopicUtils.kt | 2 +- .../circolapp/push/NotificationsUtils.kt | 2 +- .../circolapp/server/AndroidServerApi.kt | 18 ++++++++++++++ .../circolapp/utils/CustomTabsHelper.kt | 2 +- .../circolapp/utils/DoubleTrigger.kt | 18 ++++++++++++++ .../underdesk/circolapp/utils/FileUtils.kt | 18 ++++++++++++++ .../viewmodels/CircularLetterViewModel.kt | 2 +- .../CircularLetterViewModelFactory.kt | 18 ++++++++++++++ .../viewmodels/FavouritesViewModel.kt | 2 +- .../viewmodels/FavouritesViewModelFactory.kt | 18 ++++++++++++++ .../viewmodels/RemindersViewModel.kt | 2 +- .../viewmodels/RemindersViewModelFactory.kt | 18 ++++++++++++++ .../net/underdesk/circolapp/works/PollWork.kt | 2 +- app/src/main/res/values-it/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- .../underdesk/circolapp/ExampleUnitTest.kt | 18 ++++++++++++++ .../circolapp/backend/JavaDatabase.kt | 2 +- .../backend/PushNotificationUtils.kt | 2 +- .../net/underdesk/circolapp/backend/Server.kt | 2 +- .../circolapp/backend/ServerUtils.kt | 2 +- buildSrc/src/main/kotlin/Config.kt | 18 ++++++++++++++ buildSrc/src/main/kotlin/Dependencies.kt | 21 +++++++++++++++- .../circolapp/shared/PlatformDispatcher.kt | 18 ++++++++++++++ .../shared/data/DatabaseDriverFactory.kt | 18 ++++++++++++++ .../circolapp/shared/server/KtorFactory.kt | 18 ++++++++++++++ .../server/curie/SpecificCurieServer.kt | 18 ++++++++++++++ .../porporato/SpecificPorporatoServer.kt | 18 ++++++++++++++ .../circolapp/shared/PlatformDispatcher.kt | 18 ++++++++++++++ .../circolapp/shared/data/Circular.kt | 2 +- .../circolapp/shared/data/CircularDao.kt | 24 +++++++++++++++++++ .../shared/data/CircularRepository.kt | 18 ++++++++++++++ .../shared/data/DatabaseDriverFactory.kt | 18 ++++++++++++++ .../circolapp/shared/data/DatabaseFactory.kt | 18 ++++++++++++++ .../circolapp/shared/server/KtorFactory.kt | 18 ++++++++++++++ .../circolapp/shared/server/Server.kt | 2 +- .../circolapp/shared/server/ServerAPI.kt | 2 +- .../shared/server/curie/CurieServer.kt | 18 ++++++++++++++ .../shared/server/pojo/WordpressResponse.kt | 18 ++++++++++++++ .../server/porporato/PorporatoServer.kt | 18 ++++++++++++++ .../circolapp/shared/utils/SqlUtils.kt | 18 ++++++++++++++ .../circolapp/shared/PlatformDispatcher.kt | 18 ++++++++++++++ .../shared/data/DatabaseDriverFactory.kt | 18 ++++++++++++++ .../circolapp/shared/server/KtorFactory.kt | 18 ++++++++++++++ .../server/curie/SpecificCurieServer.kt | 18 ++++++++++++++ .../porporato/SpecificPorporatoServer.kt | 18 ++++++++++++++ .../circolapp/shared/PlatformDispatcher.kt | 18 ++++++++++++++ .../shared/data/DatabaseDriverFactory.kt | 18 ++++++++++++++ 65 files changed, 704 insertions(+), 29 deletions(-) diff --git a/app/src/androidTest/java/net/underdesk/circolapp/ExampleInstrumentedTest.kt b/app/src/androidTest/java/net/underdesk/circolapp/ExampleInstrumentedTest.kt index 66aa697..97e70f2 100644 --- a/app/src/androidTest/java/net/underdesk/circolapp/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/java/net/underdesk/circolapp/ExampleInstrumentedTest.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp import androidx.test.platform.app.InstrumentationRegistry diff --git a/app/src/main/java/net/underdesk/circolapp/AlarmBroadcastReceiver.kt b/app/src/main/java/net/underdesk/circolapp/AlarmBroadcastReceiver.kt index 4f860b2..e101b4c 100644 --- a/app/src/main/java/net/underdesk/circolapp/AlarmBroadcastReceiver.kt +++ b/app/src/main/java/net/underdesk/circolapp/AlarmBroadcastReceiver.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/BootCompleteReceiver.kt b/app/src/main/java/net/underdesk/circolapp/BootCompleteReceiver.kt index 818a752..b1243ec 100644 --- a/app/src/main/java/net/underdesk/circolapp/BootCompleteReceiver.kt +++ b/app/src/main/java/net/underdesk/circolapp/BootCompleteReceiver.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/IntroActivity.kt b/app/src/main/java/net/underdesk/circolapp/IntroActivity.kt index 4dcf5a2..55b53c9 100644 --- a/app/src/main/java/net/underdesk/circolapp/IntroActivity.kt +++ b/app/src/main/java/net/underdesk/circolapp/IntroActivity.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp import android.os.Bundle diff --git a/app/src/main/java/net/underdesk/circolapp/MainActivity.kt b/app/src/main/java/net/underdesk/circolapp/MainActivity.kt index d16b9cf..57d81b8 100644 --- a/app/src/main/java/net/underdesk/circolapp/MainActivity.kt +++ b/app/src/main/java/net/underdesk/circolapp/MainActivity.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/SettingsActivity.kt b/app/src/main/java/net/underdesk/circolapp/SettingsActivity.kt index 16a1066..4fd444e 100644 --- a/app/src/main/java/net/underdesk/circolapp/SettingsActivity.kt +++ b/app/src/main/java/net/underdesk/circolapp/SettingsActivity.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/adapters/AttachmentAdapter.kt b/app/src/main/java/net/underdesk/circolapp/adapters/AttachmentAdapter.kt index bdd833f..b76a197 100644 --- a/app/src/main/java/net/underdesk/circolapp/adapters/AttachmentAdapter.kt +++ b/app/src/main/java/net/underdesk/circolapp/adapters/AttachmentAdapter.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/adapters/CircularLetterAdapter.kt b/app/src/main/java/net/underdesk/circolapp/adapters/CircularLetterAdapter.kt index cdb5f5f..29a829c 100644 --- a/app/src/main/java/net/underdesk/circolapp/adapters/CircularLetterAdapter.kt +++ b/app/src/main/java/net/underdesk/circolapp/adapters/CircularLetterAdapter.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/data/AndroidCircularRepository.kt b/app/src/main/java/net/underdesk/circolapp/data/AndroidCircularRepository.kt index 10ac83c..fc0042e 100644 --- a/app/src/main/java/net/underdesk/circolapp/data/AndroidCircularRepository.kt +++ b/app/src/main/java/net/underdesk/circolapp/data/AndroidCircularRepository.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.data import android.content.Context diff --git a/app/src/main/java/net/underdesk/circolapp/data/AndroidDatabase.kt b/app/src/main/java/net/underdesk/circolapp/data/AndroidDatabase.kt index 70135c6..e7d0c6a 100644 --- a/app/src/main/java/net/underdesk/circolapp/data/AndroidDatabase.kt +++ b/app/src/main/java/net/underdesk/circolapp/data/AndroidDatabase.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/data/CircularRepository.kt b/app/src/main/java/net/underdesk/circolapp/data/CircularRepository.kt index f3038bd..e933af4 100644 --- a/app/src/main/java/net/underdesk/circolapp/data/CircularRepository.kt +++ b/app/src/main/java/net/underdesk/circolapp/data/CircularRepository.kt @@ -1 +1,19 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.data diff --git a/app/src/main/java/net/underdesk/circolapp/fragments/CircularLetterFragment.kt b/app/src/main/java/net/underdesk/circolapp/fragments/CircularLetterFragment.kt index e17ba41..c9dd535 100644 --- a/app/src/main/java/net/underdesk/circolapp/fragments/CircularLetterFragment.kt +++ b/app/src/main/java/net/underdesk/circolapp/fragments/CircularLetterFragment.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/fragments/FavouritesFragment.kt b/app/src/main/java/net/underdesk/circolapp/fragments/FavouritesFragment.kt index 39489e1..ba8ed04 100644 --- a/app/src/main/java/net/underdesk/circolapp/fragments/FavouritesFragment.kt +++ b/app/src/main/java/net/underdesk/circolapp/fragments/FavouritesFragment.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/fragments/NewReminderFragment.kt b/app/src/main/java/net/underdesk/circolapp/fragments/NewReminderFragment.kt index c2949c0..fa68639 100644 --- a/app/src/main/java/net/underdesk/circolapp/fragments/NewReminderFragment.kt +++ b/app/src/main/java/net/underdesk/circolapp/fragments/NewReminderFragment.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/fragments/RemindersFragment.kt b/app/src/main/java/net/underdesk/circolapp/fragments/RemindersFragment.kt index 241b908..df0a888 100644 --- a/app/src/main/java/net/underdesk/circolapp/fragments/RemindersFragment.kt +++ b/app/src/main/java/net/underdesk/circolapp/fragments/RemindersFragment.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/fragments/intro/LegalFragment.kt b/app/src/main/java/net/underdesk/circolapp/fragments/intro/LegalFragment.kt index 7d62093..b85b689 100644 --- a/app/src/main/java/net/underdesk/circolapp/fragments/intro/LegalFragment.kt +++ b/app/src/main/java/net/underdesk/circolapp/fragments/intro/LegalFragment.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.fragments.intro import android.os.Bundle @@ -14,6 +32,7 @@ import net.underdesk.circolapp.databinding.FragmentLegalBinding class LegalFragment : Fragment(), SlidePolicy { private var _binding: FragmentLegalBinding? = null + // This property is only valid between onCreateView and onDestroyView. private val binding get() = _binding!! diff --git a/app/src/main/java/net/underdesk/circolapp/fragments/intro/SchoolSelectionFragment.kt b/app/src/main/java/net/underdesk/circolapp/fragments/intro/SchoolSelectionFragment.kt index ac7e26c..d46bc7a 100644 --- a/app/src/main/java/net/underdesk/circolapp/fragments/intro/SchoolSelectionFragment.kt +++ b/app/src/main/java/net/underdesk/circolapp/fragments/intro/SchoolSelectionFragment.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.fragments.intro import android.content.SharedPreferences @@ -18,6 +36,7 @@ import net.underdesk.circolapp.shared.server.ServerAPI class SchoolSelectionFragment : Fragment(), SlidePolicy, MaterialSpinner.OnItemSelectedListener { private var _binding: FragmentSchoolSelectionBinding? = null + // This property is only valid between onCreateView and onDestroyView. private val binding get() = _binding!! diff --git a/app/src/main/java/net/underdesk/circolapp/push/CircolappFirebaseMessagingService.kt b/app/src/main/java/net/underdesk/circolapp/push/CircolappFirebaseMessagingService.kt index 2af969b..7716c18 100644 --- a/app/src/main/java/net/underdesk/circolapp/push/CircolappFirebaseMessagingService.kt +++ b/app/src/main/java/net/underdesk/circolapp/push/CircolappFirebaseMessagingService.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/push/FirebaseTopicUtils.kt b/app/src/main/java/net/underdesk/circolapp/push/FirebaseTopicUtils.kt index d6d0d1c..d731ae4 100644 --- a/app/src/main/java/net/underdesk/circolapp/push/FirebaseTopicUtils.kt +++ b/app/src/main/java/net/underdesk/circolapp/push/FirebaseTopicUtils.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/push/NotificationsUtils.kt b/app/src/main/java/net/underdesk/circolapp/push/NotificationsUtils.kt index 06e42ea..10cc3b9 100644 --- a/app/src/main/java/net/underdesk/circolapp/push/NotificationsUtils.kt +++ b/app/src/main/java/net/underdesk/circolapp/push/NotificationsUtils.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/server/AndroidServerApi.kt b/app/src/main/java/net/underdesk/circolapp/server/AndroidServerApi.kt index 2b82b0f..5a60f67 100644 --- a/app/src/main/java/net/underdesk/circolapp/server/AndroidServerApi.kt +++ b/app/src/main/java/net/underdesk/circolapp/server/AndroidServerApi.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.server import android.content.Context diff --git a/app/src/main/java/net/underdesk/circolapp/utils/CustomTabsHelper.kt b/app/src/main/java/net/underdesk/circolapp/utils/CustomTabsHelper.kt index 82ce5c6..9ea6e62 100644 --- a/app/src/main/java/net/underdesk/circolapp/utils/CustomTabsHelper.kt +++ b/app/src/main/java/net/underdesk/circolapp/utils/CustomTabsHelper.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/utils/DoubleTrigger.kt b/app/src/main/java/net/underdesk/circolapp/utils/DoubleTrigger.kt index 65fa529..d303ced 100644 --- a/app/src/main/java/net/underdesk/circolapp/utils/DoubleTrigger.kt +++ b/app/src/main/java/net/underdesk/circolapp/utils/DoubleTrigger.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.utils import androidx.lifecycle.LiveData diff --git a/app/src/main/java/net/underdesk/circolapp/utils/FileUtils.kt b/app/src/main/java/net/underdesk/circolapp/utils/FileUtils.kt index a870c53..6010899 100644 --- a/app/src/main/java/net/underdesk/circolapp/utils/FileUtils.kt +++ b/app/src/main/java/net/underdesk/circolapp/utils/FileUtils.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.utils import android.Manifest diff --git a/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModel.kt b/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModel.kt index 81e021c..13935b1 100644 --- a/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModel.kt +++ b/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModel.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModelFactory.kt b/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModelFactory.kt index 24797ed..1c0550a 100644 --- a/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModelFactory.kt +++ b/app/src/main/java/net/underdesk/circolapp/viewmodels/CircularLetterViewModelFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.viewmodels import android.app.Application diff --git a/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModel.kt b/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModel.kt index a3957c4..6f90d65 100644 --- a/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModel.kt +++ b/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModel.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModelFactory.kt b/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModelFactory.kt index 75a197e..ec793fc 100644 --- a/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModelFactory.kt +++ b/app/src/main/java/net/underdesk/circolapp/viewmodels/FavouritesViewModelFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.viewmodels import android.app.Application diff --git a/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModel.kt b/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModel.kt index 513b591..33f1688 100644 --- a/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModel.kt +++ b/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModel.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModelFactory.kt b/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModelFactory.kt index 128ae23..838e2e4 100644 --- a/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModelFactory.kt +++ b/app/src/main/java/net/underdesk/circolapp/viewmodels/RemindersViewModelFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.viewmodels import android.app.Application diff --git a/app/src/main/java/net/underdesk/circolapp/works/PollWork.kt b/app/src/main/java/net/underdesk/circolapp/works/PollWork.kt index cd42c53..a6b4cf8 100644 --- a/app/src/main/java/net/underdesk/circolapp/works/PollWork.kt +++ b/app/src/main/java/net/underdesk/circolapp/works/PollWork.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index ab0392f..7b93059 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -47,7 +47,7 @@ Questi documenti sono rilasciati secondo la licenza <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/"> <i>Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)</i></a> Licenza Circolapp è rilasciata secondo la licenza GPL v3 (<a href="https://github.com/Matte23/circolapp/blob/master/LICENSE">https://github.com/Matte23/circolapp/blob/master/LICENSE</a>):<br /><br /> - © 2019 - 2020 Matteo Schiff<br />Questo programma è rilasciato SENZA ALCUNA GARANZIA E SENZA ALCUNA RESPONSABILITÀ A CARICO DELLO SVILUPPATORE.<br />Questo è software libero, e sei invitato a condividerlo nei termini della licenza + © 2019 - 2021 Matteo Schiff<br />Questo programma è rilasciato SENZA ALCUNA GARANZIA E SENZA ALCUNA RESPONSABILITÀ A CARICO DELLO SVILUPPATORE.<br />Questo è software libero, e sei invitato a condividerlo nei termini della licenza Codice sorgente Puoi scaricare il codice sorgente da <a href="https://github.com/Matte23/circolapp">https://github.com/Matte23/circolapp</a> Privacy policy diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 111f73d..9f1e4fd 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -47,7 +47,7 @@ Those documents are released under the license <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/"> <i>Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0)</i></a> License Circolapp is released under the GPL v3 license (<a href="https://github.com/Matte23/circolapp/blob/master/LICENSE">https://github.com/Matte23/circolapp/blob/master/LICENSE</a>):<br /><br /> - © 2019 - 2020 Matteo Schiff<br />This program comes with ABSOLUTELY NO WARRANTY.<br />This is free software, and you are welcome to redistribute it + © 2019 - 2021 Matteo Schiff<br />This program comes with ABSOLUTELY NO WARRANTY.<br />This is free software, and you are welcome to redistribute it under certain conditions Source code The source code can be downloaded from <a href="https://github.com/Matte23/circolapp">https://github.com/Matte23/circolapp</a> diff --git a/app/src/test/java/net/underdesk/circolapp/ExampleUnitTest.kt b/app/src/test/java/net/underdesk/circolapp/ExampleUnitTest.kt index 3242f58..5c84792 100644 --- a/app/src/test/java/net/underdesk/circolapp/ExampleUnitTest.kt +++ b/app/src/test/java/net/underdesk/circolapp/ExampleUnitTest.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp import org.junit.Assert.assertEquals diff --git a/backend/src/main/kotlin/net/underdesk/circolapp/backend/JavaDatabase.kt b/backend/src/main/kotlin/net/underdesk/circolapp/backend/JavaDatabase.kt index 9c8642f..ba8cf71 100644 --- a/backend/src/main/kotlin/net/underdesk/circolapp/backend/JavaDatabase.kt +++ b/backend/src/main/kotlin/net/underdesk/circolapp/backend/JavaDatabase.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/backend/src/main/kotlin/net/underdesk/circolapp/backend/PushNotificationUtils.kt b/backend/src/main/kotlin/net/underdesk/circolapp/backend/PushNotificationUtils.kt index 3574041..53ba02e 100644 --- a/backend/src/main/kotlin/net/underdesk/circolapp/backend/PushNotificationUtils.kt +++ b/backend/src/main/kotlin/net/underdesk/circolapp/backend/PushNotificationUtils.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/backend/src/main/kotlin/net/underdesk/circolapp/backend/Server.kt b/backend/src/main/kotlin/net/underdesk/circolapp/backend/Server.kt index 660ce28..423b58e 100644 --- a/backend/src/main/kotlin/net/underdesk/circolapp/backend/Server.kt +++ b/backend/src/main/kotlin/net/underdesk/circolapp/backend/Server.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/backend/src/main/kotlin/net/underdesk/circolapp/backend/ServerUtils.kt b/backend/src/main/kotlin/net/underdesk/circolapp/backend/ServerUtils.kt index 4833c11..8dc02db 100644 --- a/backend/src/main/kotlin/net/underdesk/circolapp/backend/ServerUtils.kt +++ b/backend/src/main/kotlin/net/underdesk/circolapp/backend/ServerUtils.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index a2df314..5dec86f 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + object Config { object Plugin { const val android = "com.android.tools.build:gradle:4.1.1" diff --git a/buildSrc/src/main/kotlin/Dependencies.kt b/buildSrc/src/main/kotlin/Dependencies.kt index b956e15..461744b 100644 --- a/buildSrc/src/main/kotlin/Dependencies.kt +++ b/buildSrc/src/main/kotlin/Dependencies.kt @@ -1,9 +1,28 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + object Dependencies { object Kotlin { const val version = "1.4.21" const val core = "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${version}" const val coroutinesCore = "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2-native-mt" - const val coroutinesAndroid = "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2-native-mt" + const val coroutinesAndroid = + "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2-native-mt" } object AndroidX { diff --git a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt index 13e9ef2..b34734d 100644 --- a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt +++ b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared import kotlinx.coroutines.Dispatchers diff --git a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt index 3042675..5856945 100644 --- a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt +++ b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import android.content.Context diff --git a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt index f839100..cb1e32f 100644 --- a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt +++ b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server import io.ktor.client.* diff --git a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt index a65379f..c75f216 100644 --- a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt +++ b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.curie import net.underdesk.circolapp.shared.data.Circular diff --git a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt index 1b62e13..dfa3f38 100644 --- a/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt +++ b/shared/src/androidMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.porporato import net.underdesk.circolapp.shared.data.Circular diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt index a24f8b9..ba0be4e 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared import kotlinx.coroutines.CoroutineDispatcher diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/Circular.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/Circular.kt index 687f010..a621b14 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/Circular.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/Circular.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularDao.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularDao.kt index ce26d65..97b8668 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularDao.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularDao.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import com.squareup.sqldelight.runtime.coroutines.asFlow @@ -86,29 +104,35 @@ class CircularDao( fun getFlowCirculars(school: Int) = appDatabaseQueries.getCirculars(school.toLong(), circularMapper).asFlow().mapToList() + fun getCFlowCirculars(school: Int) = getFlowCirculars(school).wrap() fun searchCirculars(query: String, school: Int) = appDatabaseQueries.searchCirculars(school.toLong(), query, circularMapper).asFlow() .mapToList() + fun searchCircularsC(query: String, school: Int) = searchCirculars(query, school).wrap() fun getFavourites(school: Int) = appDatabaseQueries.getFavourites(school.toLong(), circularMapper).asFlow().mapToList() + fun getFavouritesC(school: Int) = getFavourites(school).wrap() fun searchFavourites(query: String, school: Int) = appDatabaseQueries.searchFavourites(school.toLong(), query, circularMapper).asFlow() .mapToList() + fun searchFavouritesC(query: String, school: Int) = searchFavourites(query, school).wrap() fun getReminders(school: Int) = appDatabaseQueries.getReminders(school.toLong(), circularMapper).executeAsList() fun getFlowReminders(school: Int) = appDatabaseQueries.getReminders(school.toLong(), circularMapper).asFlow().mapToList() + fun getCFlowReminders(school: Int) = getFlowReminders(school).wrap() fun searchReminders(query: String, school: Int) = appDatabaseQueries.searchReminders(school.toLong(), query, circularMapper).asFlow() .mapToList() + fun searchRemindersC(query: String, school: Int) = searchReminders(query, school).wrap() } diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularRepository.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularRepository.kt index 8f2c316..b470363 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularRepository.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/CircularRepository.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import net.underdesk.circolapp.shared.server.ServerAPI diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt index 591f4fc..4cef1a0 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import com.squareup.sqldelight.db.SqlDriver diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseFactory.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseFactory.kt index 7db427e..fa3ab6e 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseFactory.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import com.squareup.sqldelight.db.SqlDriver diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt index daf1ac1..9b11382 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server import io.ktor.client.* diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/Server.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/Server.kt index 702678e..504928e 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/Server.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/Server.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/ServerAPI.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/ServerAPI.kt index 0baa272..c93d408 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/ServerAPI.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/ServerAPI.kt @@ -1,6 +1,6 @@ /* * Circolapp - * Copyright (C) 2019-2020 Matteo Schiff + * Copyright (C) 2019-2021 Matteo Schiff * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/curie/CurieServer.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/curie/CurieServer.kt index 15874a0..9c8ec73 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/curie/CurieServer.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/curie/CurieServer.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.curie import io.ktor.client.* diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/pojo/WordpressResponse.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/pojo/WordpressResponse.kt index e180583..68dfe48 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/pojo/WordpressResponse.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/pojo/WordpressResponse.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.pojo import kotlinx.serialization.Serializable diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/porporato/PorporatoServer.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/porporato/PorporatoServer.kt index baa3f93..9df6df8 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/porporato/PorporatoServer.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/server/porporato/PorporatoServer.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.porporato import io.ktor.client.* diff --git a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/utils/SqlUtils.kt b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/utils/SqlUtils.kt index 3819e74..cdb3071 100644 --- a/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/utils/SqlUtils.kt +++ b/shared/src/commonMain/kotlin/net/underdesk/circolapp/shared/utils/SqlUtils.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.utils object SqlUtils { diff --git a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt index dd5fa51..008acd4 100644 --- a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt +++ b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared import kotlinx.coroutines.Dispatchers diff --git a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt index 352474a..ea77f97 100644 --- a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt +++ b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import com.squareup.sqldelight.db.SqlDriver diff --git a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt index 55b1673..d82fc9d 100644 --- a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt +++ b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/KtorFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server import io.ktor.client.* diff --git a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt index 28611f8..65fbd04 100644 --- a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt +++ b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/curie/SpecificCurieServer.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.curie import cocoapods.HTMLKit.HTMLElement diff --git a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt index 7347f10..056b012 100644 --- a/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt +++ b/shared/src/iosMain/kotlin/net/underdesk/circolapp/shared/server/porporato/SpecificPorporatoServer.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.server.porporato import cocoapods.HTMLKit.HTMLElement diff --git a/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt b/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt index 13e9ef2..b34734d 100644 --- a/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt +++ b/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/PlatformDispatcher.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared import kotlinx.coroutines.Dispatchers diff --git a/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt b/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt index 1882227..0d641e8 100644 --- a/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt +++ b/shared/src/jvmMain/kotlin/net/underdesk/circolapp/shared/data/DatabaseDriverFactory.kt @@ -1,3 +1,21 @@ +/* + * Circolapp + * Copyright (C) 2019-2021 Matteo Schiff + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.underdesk.circolapp.shared.data import com.squareup.sqldelight.db.SqlDriver