From e2515020cfe6751785e130b8718a532bcc98d9a0 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 22 Dec 2022 13:51:56 +0100 Subject: [PATCH] Add missing Copyright --- anvilannotations/build.gradle.kts | 16 ++++++++++++++++ .../x/anvilannotations/ContributesViewModel.kt | 16 ++++++++++++++++ anvilcodegen/build.gradle.kts | 16 ++++++++++++++++ .../ContributesViewModelCodeGenerator.kt | 16 ++++++++++++++++ app/build.gradle.kts | 16 ++++++++++++++++ app/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../io/element/android/x/ElementRootModule.kt | 16 ++++++++++++++++ .../element/android/x/ElementXApplication.kt | 16 ++++++++++++++++ .../java/io/element/android/x/MainActivity.kt | 16 ++++++++++++++++ .../java/io/element/android/x/MainViewModel.kt | 16 ++++++++++++++++ .../java/io/element/android/x/Navigation.kt | 16 ++++++++++++++++ .../io/element/android/x/di/AppBindings.kt | 16 ++++++++++++++++ .../io/element/android/x/di/AppComponent.kt | 16 ++++++++++++++++ .../java/io/element/android/x/di/AppModule.kt | 16 ++++++++++++++++ .../element/android/x/di/SessionComponent.kt | 16 ++++++++++++++++ .../android/x/di/SessionComponentsOwner.kt | 16 ++++++++++++++++ .../android/x/initializer/CoilInitializer.kt | 16 ++++++++++++++++ .../android/x/initializer/CrashInitializer.kt | 16 ++++++++++++++++ .../android/x/initializer/MatrixInitializer.kt | 16 ++++++++++++++++ .../x/initializer/MavericksInitializer.kt | 16 ++++++++++++++++ .../android/x/initializer/TimberInitializer.kt | 16 ++++++++++++++++ app/src/main/res/values/colors.xml | 18 +++++++++++++++++- app/src/main/res/values/strings.xml | 18 +++++++++++++++++- app/src/main/res/values/themes.xml | 18 +++++++++++++++++- app/src/main/res/xml/backup_rules.xml | 18 +++++++++++++++++- app/src/main/res/xml/data_extraction_rules.xml | 18 +++++++++++++++++- build.gradle.kts | 16 ++++++++++++++++ features/login/build.gradle.kts | 16 ++++++++++++++++ .../features/login/ExampleInstrumentedTest.kt | 16 ++++++++++++++++ features/login/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../android/x/features/login/LoginScreen.kt | 16 ++++++++++++++++ .../android/x/features/login/LoginViewModel.kt | 16 ++++++++++++++++ .../android/x/features/login/LoginViewState.kt | 16 ++++++++++++++++ .../login/changeserver/ChangeServerScreen.kt | 16 ++++++++++++++++ .../changeserver/ChangeServerViewModel.kt | 16 ++++++++++++++++ .../changeserver/ChangeServerViewState.kt | 16 ++++++++++++++++ .../x/features/login/error/ErrorFormatter.kt | 16 ++++++++++++++++ .../res/drawable/ic_baseline_dataset_24.xml | 16 ++++++++++++++++ .../x/features/login/ExampleUnitTest.kt | 16 ++++++++++++++++ features/logout/build.gradle.kts | 16 ++++++++++++++++ .../features/logout/ExampleInstrumentedTest.kt | 16 ++++++++++++++++ features/logout/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../android/x/features/logout/LogoutScreen.kt | 16 ++++++++++++++++ .../x/features/logout/LogoutViewModel.kt | 16 ++++++++++++++++ .../x/features/logout/LogoutViewState.kt | 16 ++++++++++++++++ .../x/features/logout/ExampleUnitTest.kt | 16 ++++++++++++++++ features/messages/build.gradle.kts | 16 ++++++++++++++++ .../messages/ExampleInstrumentedTest.kt | 16 ++++++++++++++++ features/messages/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../MessageTimelineItemStateFactory.kt | 16 ++++++++++++++++ .../x/features/messages/MessagesScreen.kt | 16 ++++++++++++++++ .../x/features/messages/MessagesViewModel.kt | 16 ++++++++++++++++ .../messages/components/MessageEventBubble.kt | 16 ++++++++++++++++ .../components/MessagesReactionsView.kt | 16 ++++++++++++++++ .../MessagesTimelineItemActionsSheet.kt | 16 ++++++++++++++++ .../MessagesTimelineItemEncryptedView.kt | 16 ++++++++++++++++ .../MessagesTimelineItemImageView.kt | 16 ++++++++++++++++ .../MessagesTimelineItemInformativeView.kt | 16 ++++++++++++++++ .../MessagesTimelineItemRedactedView.kt | 16 ++++++++++++++++ .../components/MessagesTimelineItemTextView.kt | 16 ++++++++++++++++ .../MessagesTimelineItemUnknownView.kt | 16 ++++++++++++++++ .../messages/components/html/HtmlDocument.kt | 16 ++++++++++++++++ .../features/messages/diff/CacheInvalidator.kt | 16 ++++++++++++++++ .../diff/MatrixTimelineItemsDiffCallback.kt | 16 ++++++++++++++++ .../messages/model/MessagesItemAction.kt | 16 ++++++++++++++++ .../model/MessagesItemActionsSheetState.kt | 16 ++++++++++++++++ .../model/MessagesItemGroupPosition.kt | 16 ++++++++++++++++ .../model/MessagesItemReactionState.kt | 16 ++++++++++++++++ .../model/MessagesTimelineItemState.kt | 16 ++++++++++++++++ .../messages/model/MessagesViewState.kt | 16 ++++++++++++++++ .../content/MessagesTimelineItemContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemEmoteContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemEncryptedContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemImageContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemNoticeContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemRedactedContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemTextBasedContent.kt | 16 ++++++++++++++++ .../content/MessagesTimelineItemTextContent.kt | 16 ++++++++++++++++ .../MessagesTimelineItemUnknownContent.kt | 16 ++++++++++++++++ .../textcomposer/MessageComposerViewModel.kt | 16 ++++++++++++++++ .../textcomposer/MessageComposerViewState.kt | 16 ++++++++++++++++ .../x/features/messages/util/MutableListExt.kt | 16 ++++++++++++++++ .../x/features/messages/ExampleUnitTest.kt | 16 ++++++++++++++++ features/onboarding/build.gradle.kts | 16 ++++++++++++++++ .../features/login/ExampleInstrumentedTest.kt | 16 ++++++++++++++++ .../onboarding/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../x/features/onboarding/OnBoardingScreen.kt | 16 ++++++++++++++++ .../features/onboarding/OnBoardingViewModel.kt | 16 ++++++++++++++++ .../features/onboarding/OnBoardingViewState.kt | 16 ++++++++++++++++ .../onboarding/SplashCarouselStateFactory.kt | 16 ++++++++++++++++ .../main/res/drawable/bg_carousel_page_1.xml | 18 +++++++++++++++++- .../main/res/drawable/bg_carousel_page_2.xml | 18 +++++++++++++++++- .../main/res/drawable/bg_carousel_page_3.xml | 18 +++++++++++++++++- .../main/res/drawable/bg_carousel_page_4.xml | 18 +++++++++++++++++- .../main/res/drawable/bg_color_background.xml | 18 +++++++++++++++++- .../res/drawable/bg_gradient_ftue_breaker.xml | 16 ++++++++++++++++ .../onboarding/src/main/res/values/strings.xml | 18 +++++++++++++++++- .../x/features/login/ExampleUnitTest.kt | 16 ++++++++++++++++ features/preferences/build.gradle.kts | 16 ++++++++++++++++ .../preferences/ExampleInstrumentedTest.kt | 16 ++++++++++++++++ .../preferences/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../features/preferences/PreferencesScreen.kt | 16 ++++++++++++++++ .../x/features/preferences/ExampleUnitTest.kt | 16 ++++++++++++++++ features/rageshake/build.gradle.kts | 16 ++++++++++++++++ .../rageshake/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../rageshake/bugreport/BugReportScreen.kt | 16 ++++++++++++++++ .../rageshake/bugreport/BugReportViewModel.kt | 16 ++++++++++++++++ .../rageshake/bugreport/BugReportViewState.kt | 16 ++++++++++++++++ .../features/rageshake/crash/CrashDataStore.kt | 16 ++++++++++++++++ .../crash/VectorUncaughtExceptionHandler.kt | 16 ++++++++++++++++ .../rageshake/crash/ui/CrashDetectionScreen.kt | 16 ++++++++++++++++ .../crash/ui/CrashDetectionViewModel.kt | 16 ++++++++++++++++ .../crash/ui/CrashDetectionViewState.kt | 16 ++++++++++++++++ .../detection/RageshakeDetectionScreen.kt | 16 ++++++++++++++++ .../detection/RageshakeDetectionViewModel.kt | 16 ++++++++++++++++ .../detection/RageshakeDetectionViewState.kt | 16 ++++++++++++++++ .../x/features/rageshake/logs/LogFormatter.kt | 16 ++++++++++++++++ .../rageshake/logs/VectorFileLogger.kt | 16 ++++++++++++++++ .../preferences/RageshakePreferenceCategory.kt | 16 ++++++++++++++++ .../features/rageshake/rageshake/RageShake.kt | 16 ++++++++++++++++ .../rageshake/rageshake/RageshakeDataStore.kt | 16 ++++++++++++++++ .../features/rageshake/reporter/BugReporter.kt | 16 ++++++++++++++++ .../reporter/BugReporterMultipartBody.java | 16 ++++++++++++++++ .../features/rageshake/reporter/ReportType.kt | 16 ++++++++++++++++ .../rageshake/screenshot/ScreenshotHolder.kt | 16 ++++++++++++++++ .../rageshake/src/main/res/values/strings.xml | 16 ++++++++++++++++ .../x/features/login/ExampleUnitTest.kt | 16 ++++++++++++++++ features/roomlist/build.gradle.kts | 16 ++++++++++++++++ .../roomlist/ExampleInstrumentedTest.kt | 16 ++++++++++++++++ features/roomlist/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../features/roomlist/LastMessageFormatter.kt | 16 ++++++++++++++++ .../x/features/roomlist/RoomListScreen.kt | 16 ++++++++++++++++ .../x/features/roomlist/RoomListViewModel.kt | 16 ++++++++++++++++ .../roomlist/components/RoomListTopBar.kt | 16 ++++++++++++++++ .../roomlist/components/RoomSummaryRow.kt | 16 ++++++++++++++++ .../x/features/roomlist/model/MatrixUser.kt | 16 ++++++++++++++++ .../roomlist/model/RoomListRoomSummary.kt | 16 ++++++++++++++++ .../model/RoomListRoomSummaryPlaceholders.kt | 16 ++++++++++++++++ .../roomlist/model/RoomListViewState.kt | 16 ++++++++++++++++ .../x/features/roomlist/model/stubbed.kt | 16 ++++++++++++++++ .../x/features/roomlist/ExampleUnitTest.kt | 16 ++++++++++++++++ gradle.properties | 16 ++++++++++++++++ gradle/wrapper/gradle-wrapper.properties | 16 ++++++++++++++++ libraries/core/build.gradle.kts | 16 ++++++++++++++++ libraries/core/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../io/element/android/x/core/bitmap/Bitmap.kt | 16 ++++++++++++++++ .../io/element/android/x/core/bool/Booleans.kt | 16 ++++++++++++++++ .../element/android/x/core/compose/Keyboard.kt | 16 ++++++++++++++++ .../android/x/core/compose/LogCompositions.kt | 16 ++++++++++++++++ .../android/x/core/compose/OnLifecycleEvent.kt | 16 ++++++++++++++++ .../compose/PairCombinedPreviewParameter.kt | 16 ++++++++++++++++ .../x/core/compose/TextFieldLocalState.kt | 16 ++++++++++++++++ .../x/core/coroutine/CoroutineDispatchers.kt | 16 ++++++++++++++++ .../x/core/coroutine/TimingOperators.kt | 16 ++++++++++++++++ .../element/android/x/core/coroutine/pmap.kt | 16 ++++++++++++++++ .../android/x/core/data/StableCharSequence.kt | 16 ++++++++++++++++ .../java/io/element/android/x/core/data/Try.kt | 16 ++++++++++++++++ .../x/core/di/AssistedViewModelFactory.kt | 16 ++++++++++++++++ .../io/element/android/x/core/di/Bindings.kt | 16 ++++++++++++++++ .../android/x/core/di/DaggerComponentOwner.kt | 16 ++++++++++++++++ .../core/di/DaggerMavericksViewModelFactory.kt | 16 ++++++++++++++++ .../x/core/extensions/BasicExtensions.kt | 16 ++++++++++++++++ .../android/x/core/file/compressFile.kt | 16 ++++++++++++++++ .../android/x/core/screenshot/Screenshot.kt | 16 ++++++++++++++++ .../io/element/android/x/core/uri/UrlUtils.kt | 16 ++++++++++++++++ .../src/main/res/values-ldrtl/integers.xml | 18 +++++++++++++++++- .../core/src/main/res/values/integers.xml | 18 +++++++++++++++++- libraries/designsystem/build.gradle.kts | 16 ++++++++++++++++ .../designsystem/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../io/element/android/x/designsystem/Color.kt | 16 ++++++++++++++++ .../android/x/designsystem/ColorUtil.kt | 16 ++++++++++++++++ .../io/element/android/x/designsystem/Theme.kt | 16 ++++++++++++++++ .../io/element/android/x/designsystem/Type.kt | 16 ++++++++++++++++ .../android/x/designsystem/VectorIcons.kt | 16 ++++++++++++++++ .../components/ClickableLinkText.kt | 16 ++++++++++++++++ .../components/LabelledCheckbox.kt | 16 ++++++++++++++++ .../designsystem/components/ProgressDialog.kt | 16 ++++++++++++++++ .../x/designsystem/components/VectorButton.kt | 16 ++++++++++++++++ .../x/designsystem/components/VectorIcon.kt | 16 ++++++++++++++++ .../x/designsystem/components/avatar/Avatar.kt | 16 ++++++++++++++++ .../components/avatar/AvatarData.kt | 16 ++++++++++++++++ .../components/avatar/AvatarSize.kt | 16 ++++++++++++++++ .../components/dialogs/ConfirmationDialog.kt | 16 ++++++++++++++++ .../components/dialogs/ErrorDialog.kt | 16 ++++++++++++++++ .../components/preferences/Config.kt | 16 ++++++++++++++++ .../preferences/PreferenceCategory.kt | 16 ++++++++++++++++ .../components/preferences/PreferenceScreen.kt | 16 ++++++++++++++++ .../components/preferences/PreferenceSlide.kt | 16 ++++++++++++++++ .../components/preferences/PreferenceSwitch.kt | 16 ++++++++++++++++ .../components/preferences/PreferenceText.kt | 16 ++++++++++++++++ .../preferences/components/PreferenceIcon.kt | 16 ++++++++++++++++ .../drawable/ic_baseline_delete_outline_24.xml | 16 ++++++++++++++++ .../main/res/drawable/ic_baseline_edit_24.xml | 16 ++++++++++++++++ .../main/res/drawable/ic_baseline_reply_24.xml | 16 ++++++++++++++++ .../res/drawable/ic_content_arrow_forward.xml | 16 ++++++++++++++++ .../src/main/res/drawable/ic_content_copy.xml | 16 ++++++++++++++++ libraries/di/build.gradle.kts | 16 ++++++++++++++++ .../java/io/element/android/x/di/AppScope.kt | 16 ++++++++++++++++ .../element/android/x/di/ApplicationContext.kt | 16 ++++++++++++++++ .../io/element/android/x/di/SessionScope.kt | 16 ++++++++++++++++ .../java/io/element/android/x/di/SingleIn.kt | 16 ++++++++++++++++ libraries/elementresources/build.gradle.kts | 16 ++++++++++++++++ .../src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../src/main/res/values/colors.xml | 16 ++++++++++++++++ .../src/main/res/values/dimens.xml | 16 ++++++++++++++++ .../src/main/res/values/dimens_font.xml | 16 ++++++++++++++++ .../src/main/res/values/palette.xml | 18 +++++++++++++++++- .../src/main/res/values/palette_mobile.xml | 18 +++++++++++++++++- .../src/main/res/values/strings.xml | 16 ++++++++++++++++ .../main/res/values/styles_bottom_sheet.xml | 16 ++++++++++++++++ .../src/main/res/values/styles_edit_text.xml | 16 ++++++++++++++++ .../src/main/res/values/theme_light.xml | 16 ++++++++++++++++ libraries/matrix/build.gradle.kts | 16 ++++++++++++++++ libraries/matrix/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../java/io/element/android/x/matrix/LogTag.kt | 16 ++++++++++++++++ .../java/io/element/android/x/matrix/Matrix.kt | 16 ++++++++++++++++ .../element/android/x/matrix/MatrixClient.kt | 16 ++++++++++++++++ .../element/android/x/matrix/core/EventId.kt | 16 ++++++++++++++++ .../io/element/android/x/matrix/core/RoomId.kt | 16 ++++++++++++++++ .../io/element/android/x/matrix/core/UserId.kt | 16 ++++++++++++++++ .../android/x/matrix/media/MediaFetcher.kt | 16 ++++++++++++++++ .../android/x/matrix/media/MediaKeyer.kt | 16 ++++++++++++++++ .../android/x/matrix/media/MediaResolver.kt | 16 ++++++++++++++++ .../x/matrix/permalink/MatrixToConverter.kt | 16 ++++++++++++++++ .../x/matrix/permalink/PermalinkData.kt | 16 ++++++++++++++++ .../x/matrix/permalink/PermalinkParser.kt | 16 ++++++++++++++++ .../android/x/matrix/room/MatrixRoom.kt | 16 ++++++++++++++++ .../android/x/matrix/room/RoomListenerFlows.kt | 16 ++++++++++++++++ .../android/x/matrix/room/RoomSummary.kt | 16 ++++++++++++++++ .../x/matrix/room/RoomSummaryDataSource.kt | 16 ++++++++++++++++ .../x/matrix/room/RoomSummaryDetailsFactory.kt | 16 ++++++++++++++++ .../x/matrix/room/message/RoomMessage.kt | 16 ++++++++++++++++ .../matrix/room/message/RoomMessageFactory.kt | 16 ++++++++++++++++ .../android/x/matrix/session/SessionStore.kt | 16 ++++++++++++++++ .../x/matrix/sync/SlidingSyncObserverProxy.kt | 16 ++++++++++++++++ .../x/matrix/sync/SlidingSyncViewFlows.kt | 16 ++++++++++++++++ .../x/matrix/timeline/MatrixTimeline.kt | 16 ++++++++++++++++ .../x/matrix/timeline/MatrixTimelineItem.kt | 16 ++++++++++++++++ .../x/matrix/tracing/TracingConfiguration.kt | 16 ++++++++++++++++ .../android/x/matrix/util/CallbackFlow.kt | 16 ++++++++++++++++ .../io/element/android/x/matrix/util/Error.kt | 16 ++++++++++++++++ libraries/textcomposer/build.gradle.kts | 16 ++++++++++++++++ .../textcomposer/src/main/AndroidManifest.xml | 16 ++++++++++++++++ .../android/x/textcomposer/TextComposer.kt | 16 ++++++++++++++++ .../x/textcomposer/tools/EditTextExtensions.kt | 16 ++++++++++++++++ .../tools/SimpleTransitionListener.kt | 16 ++++++++++++++++ .../x/textcomposer/tools/ViewExtensions.kt | 16 ++++++++++++++++ .../res/color/selector_rich_text_menu_icon.xml | 16 ++++++++++++++++ .../res/drawable/bg_rich_text_menu_button.xml | 16 ++++++++++++++++ .../main/res/drawable/bottomsheet_handle.xml | 16 ++++++++++++++++ .../src/main/res/drawable/ic_composer_bold.xml | 16 ++++++++++++++++ .../main/res/drawable/ic_composer_collapse.xml | 16 ++++++++++++++++ .../res/drawable/ic_composer_full_screen.xml | 16 ++++++++++++++++ .../main/res/drawable/ic_composer_italic.xml | 16 ++++++++++++++++ .../ic_composer_rich_text_editor_close.xml | 16 ++++++++++++++++ .../ic_composer_rich_text_editor_edit.xml | 16 ++++++++++++++++ .../drawable/ic_composer_rich_text_save.xml | 16 ++++++++++++++++ .../res/drawable/ic_composer_strikethrough.xml | 16 ++++++++++++++++ .../res/drawable/ic_composer_underlined.xml | 16 ++++++++++++++++ .../src/main/res/drawable/ic_quote.xml | 16 ++++++++++++++++ .../src/main/res/drawable/ic_reply.xml | 16 ++++++++++++++++ .../main/res/drawable/ic_rich_composer_add.xml | 16 ++++++++++++++++ .../res/drawable/ic_rich_composer_send.xml | 16 ++++++++++++++++ .../res/layout/composer_rich_text_layout.xml | 16 ++++++++++++++++ .../res/layout/view_rich_text_menu_button.xml | 16 ++++++++++++++++ .../src/main/res/values/dimens.xml | 18 +++++++++++++++++- .../src/main/res/values/strings.xml | 18 +++++++++++++++++- plugins/build.gradle.kts | 16 ++++++++++++++++ plugins/settings.gradle.kts | 16 ++++++++++++++++ plugins/src/main/java/Versions.kt | 16 ++++++++++++++++ .../src/main/java/extension/CommonExtension.kt | 16 ++++++++++++++++ .../java/extension/DependencyHandleScope.kt | 16 ++++++++++++++++ .../src/main/java/extension/VersionCatalog.kt | 18 +++++++++++++++++- ...ment.android-compose-application.gradle.kts | 16 ++++++++++++++++ ....element.android-compose-library.gradle.kts | 16 ++++++++++++++++ .../java/io.element.android-library.gradle.kts | 16 ++++++++++++++++ settings.gradle.kts | 16 ++++++++++++++++ tools/docs/generateModuleGraph.sh | 16 ++++++++++++++++ tools/lint/lint.xml | 16 ++++++++++++++++ 279 files changed, 4482 insertions(+), 18 deletions(-) diff --git a/anvilannotations/build.gradle.kts b/anvilannotations/build.gradle.kts index 0f9e5d51fc..6d4eb5667f 100644 --- a/anvilannotations/build.gradle.kts +++ b/anvilannotations/build.gradle.kts @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + plugins { alias(libs.plugins.kotlin.jvm) } diff --git a/anvilannotations/src/main/java/io/element/android/x/anvilannotations/ContributesViewModel.kt b/anvilannotations/src/main/java/io/element/android/x/anvilannotations/ContributesViewModel.kt index c1dd6c130d..0695e93263 100644 --- a/anvilannotations/src/main/java/io/element/android/x/anvilannotations/ContributesViewModel.kt +++ b/anvilannotations/src/main/java/io/element/android/x/anvilannotations/ContributesViewModel.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.anvilannotations import kotlin.reflect.KClass diff --git a/anvilcodegen/build.gradle.kts b/anvilcodegen/build.gradle.kts index f510f6f721..dcfaf17aca 100644 --- a/anvilcodegen/build.gradle.kts +++ b/anvilcodegen/build.gradle.kts @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + plugins { alias(libs.plugins.kotlin.jvm) alias(libs.plugins.kapt) diff --git a/anvilcodegen/src/main/java/io/element/android/x/anvilcodegen/ContributesViewModelCodeGenerator.kt b/anvilcodegen/src/main/java/io/element/android/x/anvilcodegen/ContributesViewModelCodeGenerator.kt index 7554fc8db6..cce2d5ca4b 100644 --- a/anvilcodegen/src/main/java/io/element/android/x/anvilcodegen/ContributesViewModelCodeGenerator.kt +++ b/anvilcodegen/src/main/java/io/element/android/x/anvilcodegen/ContributesViewModelCodeGenerator.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @file:OptIn(ExperimentalAnvilApi::class) package io.element.android.x.anvilcodegen diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 271d9c1d53..dfd3d79759 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + plugins { id("io.element.android-compose-application") alias(libs.plugins.kotlin.android) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 5e5c34c131..b60d5b9112 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,4 +1,20 @@ + + diff --git a/app/src/main/java/io/element/android/x/ElementRootModule.kt b/app/src/main/java/io/element/android/x/ElementRootModule.kt index ea6e1e7f31..ab59ae72fe 100644 --- a/app/src/main/java/io/element/android/x/ElementRootModule.kt +++ b/app/src/main/java/io/element/android/x/ElementRootModule.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x import com.airbnb.android.showkase.annotation.ShowkaseRoot diff --git a/app/src/main/java/io/element/android/x/ElementXApplication.kt b/app/src/main/java/io/element/android/x/ElementXApplication.kt index 51a2071ea3..8f079b9a20 100644 --- a/app/src/main/java/io/element/android/x/ElementXApplication.kt +++ b/app/src/main/java/io/element/android/x/ElementXApplication.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x import android.app.Application diff --git a/app/src/main/java/io/element/android/x/MainActivity.kt b/app/src/main/java/io/element/android/x/MainActivity.kt index 2c75a7aeef..b1df7ed3fe 100644 --- a/app/src/main/java/io/element/android/x/MainActivity.kt +++ b/app/src/main/java/io/element/android/x/MainActivity.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + @file:OptIn( ExperimentalAnimationApi::class, ExperimentalMaterialNavigationApi::class diff --git a/app/src/main/java/io/element/android/x/MainViewModel.kt b/app/src/main/java/io/element/android/x/MainViewModel.kt index 506431e593..94d7596ba1 100644 --- a/app/src/main/java/io/element/android/x/MainViewModel.kt +++ b/app/src/main/java/io/element/android/x/MainViewModel.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x import com.airbnb.mvrx.MavericksState diff --git a/app/src/main/java/io/element/android/x/Navigation.kt b/app/src/main/java/io/element/android/x/Navigation.kt index 22e3c0d53c..701b1830c7 100644 --- a/app/src/main/java/io/element/android/x/Navigation.kt +++ b/app/src/main/java/io/element/android/x/Navigation.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x import androidx.compose.runtime.Composable diff --git a/app/src/main/java/io/element/android/x/di/AppBindings.kt b/app/src/main/java/io/element/android/x/di/AppBindings.kt index aa2710e7f9..2db4459c9e 100644 --- a/app/src/main/java/io/element/android/x/di/AppBindings.kt +++ b/app/src/main/java/io/element/android/x/di/AppBindings.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.di import com.squareup.anvil.annotations.ContributesTo diff --git a/app/src/main/java/io/element/android/x/di/AppComponent.kt b/app/src/main/java/io/element/android/x/di/AppComponent.kt index e68a58eac3..728c3041cc 100644 --- a/app/src/main/java/io/element/android/x/di/AppComponent.kt +++ b/app/src/main/java/io/element/android/x/di/AppComponent.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.di import android.content.Context diff --git a/app/src/main/java/io/element/android/x/di/AppModule.kt b/app/src/main/java/io/element/android/x/di/AppModule.kt index 5aa606007a..b8e703c775 100644 --- a/app/src/main/java/io/element/android/x/di/AppModule.kt +++ b/app/src/main/java/io/element/android/x/di/AppModule.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.di import com.squareup.anvil.annotations.ContributesTo diff --git a/app/src/main/java/io/element/android/x/di/SessionComponent.kt b/app/src/main/java/io/element/android/x/di/SessionComponent.kt index 675cbd5f8b..c481268ce8 100644 --- a/app/src/main/java/io/element/android/x/di/SessionComponent.kt +++ b/app/src/main/java/io/element/android/x/di/SessionComponent.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.di import com.squareup.anvil.annotations.ContributesTo diff --git a/app/src/main/java/io/element/android/x/di/SessionComponentsOwner.kt b/app/src/main/java/io/element/android/x/di/SessionComponentsOwner.kt index a96cab1592..ce1009354d 100644 --- a/app/src/main/java/io/element/android/x/di/SessionComponentsOwner.kt +++ b/app/src/main/java/io/element/android/x/di/SessionComponentsOwner.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.di import android.content.Context diff --git a/app/src/main/java/io/element/android/x/initializer/CoilInitializer.kt b/app/src/main/java/io/element/android/x/initializer/CoilInitializer.kt index d67cb37843..f9bc07dce5 100644 --- a/app/src/main/java/io/element/android/x/initializer/CoilInitializer.kt +++ b/app/src/main/java/io/element/android/x/initializer/CoilInitializer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.initializer import android.content.Context diff --git a/app/src/main/java/io/element/android/x/initializer/CrashInitializer.kt b/app/src/main/java/io/element/android/x/initializer/CrashInitializer.kt index 5f3ce99198..df3dcacdbb 100644 --- a/app/src/main/java/io/element/android/x/initializer/CrashInitializer.kt +++ b/app/src/main/java/io/element/android/x/initializer/CrashInitializer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.initializer import android.content.Context diff --git a/app/src/main/java/io/element/android/x/initializer/MatrixInitializer.kt b/app/src/main/java/io/element/android/x/initializer/MatrixInitializer.kt index ffa3e3178c..ada89705da 100644 --- a/app/src/main/java/io/element/android/x/initializer/MatrixInitializer.kt +++ b/app/src/main/java/io/element/android/x/initializer/MatrixInitializer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.initializer import android.content.Context diff --git a/app/src/main/java/io/element/android/x/initializer/MavericksInitializer.kt b/app/src/main/java/io/element/android/x/initializer/MavericksInitializer.kt index 266058cbfc..f7d48b66c1 100644 --- a/app/src/main/java/io/element/android/x/initializer/MavericksInitializer.kt +++ b/app/src/main/java/io/element/android/x/initializer/MavericksInitializer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.initializer import android.content.Context diff --git a/app/src/main/java/io/element/android/x/initializer/TimberInitializer.kt b/app/src/main/java/io/element/android/x/initializer/TimberInitializer.kt index 9a0c852a19..10b7e17ffd 100644 --- a/app/src/main/java/io/element/android/x/initializer/TimberInitializer.kt +++ b/app/src/main/java/io/element/android/x/initializer/TimberInitializer.kt @@ -1,3 +1,19 @@ +/* + * Copyright (c) 2022 New Vector Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package io.element.android.x.initializer import android.content.Context diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index f8c6127d32..bd16b87387 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -1,4 +1,20 @@ + + #FFBB86FC #FF6200EE @@ -7,4 +23,4 @@ #FF018786 #FF000000 #FFFFFFFF - \ No newline at end of file + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6b30d8d9d4..120af4c3da 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,19 @@ + + - \ No newline at end of file + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index bb56da5868..e75bc2cc4d 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,5 +1,21 @@ + +