From d1e668dec33d8f309a6f6d99bbc8b4af015475d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCrten?= <sebastian@mobanisto.de> Date: Tue, 18 Jan 2022 09:10:47 +0100 Subject: [PATCH] Apply copyright notices to new files --- .../compose/material/OutlinedTextFieldExt.kt | 18 ++++++++++++++ .../desktop/conversation/AttachmentItem.kt | 18 ++++++++++++++ .../briar/desktop/login/ErrorScreen.kt | 18 ++++++++++++++ .../briar/desktop/login/ErrorSubViewModel.kt | 18 ++++++++++++++ .../briar/desktop/login/FormScaffold.kt | 24 ++++++++++++++++++- .../briar/desktop/login/LoadingView.kt | 18 ++++++++++++++ .../briar/desktop/login/LoginSubViewModel.kt | 18 ++++++++++++++ .../desktop/login/RegistrationSubViewModel.kt | 18 ++++++++++++++ .../briar/desktop/login/StartupScreen.kt | 18 ++++++++++++++ .../briar/desktop/login/StartupViewModel.kt | 18 ++++++++++++++ .../briar/desktop/login/StrengthMeter.kt | 18 ++++++++++++++ .../briar/desktop/utils/ImagePicker.kt | 18 ++++++++++++++ .../briar/desktop/TestStartupWithAccount.kt | 18 ++++++++++++++ .../TestStartupWithUnwritableDirectory.kt | 18 ++++++++++++++ .../desktop/TestStartupWithoutAccount.kt | 18 ++++++++++++++ 15 files changed, 275 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/androidx/compose/material/OutlinedTextFieldExt.kt b/src/main/kotlin/androidx/compose/material/OutlinedTextFieldExt.kt index e2b6fce9c9..e5ad6c096a 100644 --- a/src/main/kotlin/androidx/compose/material/OutlinedTextFieldExt.kt +++ b/src/main/kotlin/androidx/compose/material/OutlinedTextFieldExt.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package androidx.compose.material import androidx.compose.foundation.interaction.MutableInteractionSource diff --git a/src/main/kotlin/org/briarproject/briar/desktop/conversation/AttachmentItem.kt b/src/main/kotlin/org/briarproject/briar/desktop/conversation/AttachmentItem.kt index 1fdaf6327d..b0b595d563 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/conversation/AttachmentItem.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/conversation/AttachmentItem.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.conversation import androidx.compose.ui.graphics.ImageBitmap diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorScreen.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorScreen.kt index 00bfb43fa6..dc7e70b570 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorScreen.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorScreen.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.foundation.layout.Arrangement.spacedBy diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorSubViewModel.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorSubViewModel.kt index 498efb6e38..5f0c1dd228 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorSubViewModel.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/ErrorSubViewModel.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login class ErrorSubViewModel( diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/FormScaffold.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/FormScaffold.kt index 95e8e4e664..6b3961d68d 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/FormScaffold.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/FormScaffold.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.foundation.layout.Column @@ -28,7 +46,11 @@ fun FormScaffold( ) { if (explanationText != null) { Spacer(Modifier.weight(0.5f)) - Text(explanationText, style = MaterialTheme.typography.body2, modifier = Modifier.requiredWidth(STARTUP_FIELDS_WIDTH)) + Text( + explanationText, + style = MaterialTheme.typography.body2, + modifier = Modifier.requiredWidth(STARTUP_FIELDS_WIDTH) + ) Spacer(Modifier.weight(0.5f)) } else Spacer(Modifier.weight(1.0f)) content() diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/LoadingView.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/LoadingView.kt index a8cf0dc22f..4f625bd0bf 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/LoadingView.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/LoadingView.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.foundation.layout.Arrangement diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/LoginSubViewModel.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/LoginSubViewModel.kt index 74b96432d7..63ca12805e 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/LoginSubViewModel.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/LoginSubViewModel.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.runtime.derivedStateOf diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/RegistrationSubViewModel.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/RegistrationSubViewModel.kt index 990c2ca67f..9042d20af0 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/RegistrationSubViewModel.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/RegistrationSubViewModel.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.runtime.derivedStateOf diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/StartupScreen.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/StartupScreen.kt index 24a9d8a05f..bc40de1c49 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/StartupScreen.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/StartupScreen.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.foundation.layout.Arrangement diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/StartupViewModel.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/StartupViewModel.kt index ef58597c77..ecb09900eb 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/StartupViewModel.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/StartupViewModel.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.runtime.mutableStateOf diff --git a/src/main/kotlin/org/briarproject/briar/desktop/login/StrengthMeter.kt b/src/main/kotlin/org/briarproject/briar/desktop/login/StrengthMeter.kt index 9a834aad46..0f980ecbb2 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/login/StrengthMeter.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/login/StrengthMeter.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.login import androidx.compose.animation.animateColorAsState diff --git a/src/main/kotlin/org/briarproject/briar/desktop/utils/ImagePicker.kt b/src/main/kotlin/org/briarproject/briar/desktop/utils/ImagePicker.kt index 70eed3b513..2104fe661f 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/utils/ImagePicker.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/utils/ImagePicker.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop.utils import androidx.compose.ui.awt.ComposeWindow diff --git a/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithAccount.kt b/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithAccount.kt index 0f7746072e..63ab5ad744 100644 --- a/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithAccount.kt +++ b/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithAccount.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop fun main() = RunWithTemporaryAccount(login = false).run() diff --git a/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithUnwritableDirectory.kt b/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithUnwritableDirectory.kt index b4615cd41e..73238b3328 100644 --- a/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithUnwritableDirectory.kt +++ b/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithUnwritableDirectory.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop fun main() = RunWithTemporaryAccount(createAccount = false, makeDirUnwritable = true).run() diff --git a/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithoutAccount.kt b/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithoutAccount.kt index fd07c97674..bab9a4d640 100644 --- a/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithoutAccount.kt +++ b/src/test/kotlin/org/briarproject/briar/desktop/TestStartupWithoutAccount.kt @@ -1,3 +1,21 @@ +/* + * Briar Desktop + * Copyright (C) 2021-2022 The Briar Project + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + package org.briarproject.briar.desktop fun main() = RunWithTemporaryAccount(createAccount = false).run() -- GitLab