diff --git a/src/main/kotlin/androidx/compose/material/OutlinedTextFieldExt.kt b/src/main/kotlin/androidx/compose/material/OutlinedTextFieldExt.kt index e2b6fce9c941afe923d3ea2a14202063f42d491b..e5ad6c096ac7f0536da60f4f4068a38363d219f5 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 1fdaf6327d5231bb4af784770d862a59fb30c0ad..b0b595d563d9da9211a82c9ef0e1ce78d5d84b79 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 00bfb43fa69e9ceae03c74805ff25e2d74fc7c21..dc7e70b570dd09e5ed64e6d27c3917e6638b9b50 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 498efb6e38c1556fee397b166fb901a9e2502288..5f0c1dd228cd9a1dd44719fd2d8100e0490ec6c4 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 95e8e4e664c7cae3db4ea647d0fc50b74fb6d3ae..6b3961d68d1de233de109896ecc36b783abf7a4c 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 a8cf0dc22faa9b92858a7ceb76a02e7a76e455e3..4f625bd0bf9a59ea22160ff9781ccbba1c8e348a 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 74b96432d73a5f44bab54d8d151f27d847a618d7..63ca12805e1c1ded0866cfbd2a70052ea7ae43f2 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 990c2ca67fad549e8030c79f112b03558705e014..9042d20af0fbaa9947a7e859103f935a4c733c5a 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 24a9d8a05f34d5379d81d54025fa5425c8f1566e..bc40de1c498ec8274c4dc630b48c58999e86794b 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 ef58597c77dccab334f479cfeed585918bd18a33..ecb09900eb5b9b3cae88b5dfa285b2562ba92890 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 9a834aad465a15630696556b6d26a1b18a554769..0f980ecbb2c377ab6d23887e7032b9afcfdcc483 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 70eed3b5132de30fff6d57a7c41fca4d1b7bf280..2104fe661ffb3b086dc326fb860bbc87881a8302 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 0f7746072eb8f8a53058339e155a4c82a82c8fb4..63ab5ad74450038aaf5f69873a8a0666eadc0b47 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 b4615cd41edd4f5a052ca788c83b4824058cc022..73238b3328abcde4bc76011e1b4a6c5f69db6733 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 fd07c97674ed9c643e099a008d7367962c937d3a..bab9a4d640558c2f16b53fcefc45ec2c6157da49 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()