Rename textcomposer module

This commit is contained in:
ganfra 2023-01-20 17:38:04 +01:00
parent c2177beb13
commit 465b74e177
13 changed files with 22 additions and 22 deletions

View file

@ -39,7 +39,7 @@ import io.element.android.x.features.messages.timeline.model.content.TimelineIte
import io.element.android.libraries.matrix.MatrixClient import io.element.android.libraries.matrix.MatrixClient
import io.element.android.libraries.matrix.room.MatrixRoom import io.element.android.libraries.matrix.room.MatrixRoom
import io.element.android.libraries.matrix.ui.MatrixItemHelper import io.element.android.libraries.matrix.ui.MatrixItemHelper
import io.element.android.x.textcomposer.MessageComposerMode import io.element.android.libraries.textcomposer.MessageComposerMode
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import timber.log.Timber import timber.log.Timber

View file

@ -16,7 +16,7 @@
package io.element.android.x.features.messages.textcomposer package io.element.android.x.features.messages.textcomposer
import io.element.android.x.textcomposer.MessageComposerMode import io.element.android.libraries.textcomposer.MessageComposerMode
sealed interface MessageComposerEvents { sealed interface MessageComposerEvents {
object ToggleFullScreenState : MessageComposerEvents object ToggleFullScreenState : MessageComposerEvents

View file

@ -25,7 +25,7 @@ import io.element.android.libraries.architecture.Presenter
import io.element.android.libraries.core.data.StableCharSequence import io.element.android.libraries.core.data.StableCharSequence
import io.element.android.libraries.core.data.toStableCharSequence import io.element.android.libraries.core.data.toStableCharSequence
import io.element.android.libraries.matrix.room.MatrixRoom import io.element.android.libraries.matrix.room.MatrixRoom
import io.element.android.x.textcomposer.MessageComposerMode import io.element.android.libraries.textcomposer.MessageComposerMode
import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import javax.inject.Inject import javax.inject.Inject

View file

@ -18,7 +18,7 @@ package io.element.android.x.features.messages.textcomposer
import androidx.compose.runtime.Immutable import androidx.compose.runtime.Immutable
import io.element.android.libraries.core.data.StableCharSequence import io.element.android.libraries.core.data.StableCharSequence
import io.element.android.x.textcomposer.MessageComposerMode import io.element.android.libraries.textcomposer.MessageComposerMode
@Immutable @Immutable
data class MessageComposerState( data class MessageComposerState(

View file

@ -19,7 +19,7 @@ package io.element.android.x.features.messages.textcomposer
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import io.element.android.libraries.designsystem.LocalIsDarkTheme import io.element.android.libraries.designsystem.LocalIsDarkTheme
import io.element.android.x.textcomposer.TextComposer import io.element.android.libraries.textcomposer.TextComposer
@Composable @Composable
fun MessageComposerView( fun MessageComposerView(

View file

@ -23,7 +23,7 @@ plugins {
} }
android { android {
namespace = "io.element.android.x.textcomposer" namespace = "io.element.android.libraries.textcomposer"
buildFeatures { buildFeatures {
viewBinding = true viewBinding = true
} }

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 New Vector Ltd * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer package io.element.android.libraries.textcomposer
import android.os.Parcelable import android.os.Parcelable
import io.element.android.libraries.matrix.core.EventId import io.element.android.libraries.matrix.core.EventId

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 New Vector Ltd * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer package io.element.android.libraries.textcomposer
import android.net.Uri import android.net.Uri
import android.text.Editable import android.text.Editable

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 New Vector Ltd * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer package io.element.android.libraries.textcomposer
import android.annotation.SuppressLint import android.annotation.SuppressLint
import android.content.Context import android.content.Context
@ -45,9 +45,9 @@ import io.element.android.wysiwyg.inputhandlers.models.InlineFormat
import io.element.android.libraries.core.ui.DimensionConverter import io.element.android.libraries.core.ui.DimensionConverter
import io.element.android.libraries.core.ui.hideKeyboard import io.element.android.libraries.core.ui.hideKeyboard
import io.element.android.libraries.core.ui.showKeyboard import io.element.android.libraries.core.ui.showKeyboard
import io.element.android.x.textcomposer.databinding.ComposerRichTextLayoutBinding import io.element.android.libraries.textcomposer.databinding.ComposerRichTextLayoutBinding
import io.element.android.x.textcomposer.databinding.ViewRichTextMenuButtonBinding import io.element.android.libraries.textcomposer.databinding.ViewRichTextMenuButtonBinding
import io.element.android.x.textcomposer.tools.setTextIfDifferent import io.element.android.libraries.textcomposer.tools.setTextIfDifferent
import uniffi.wysiwyg_composer.ActionState import uniffi.wysiwyg_composer.ActionState
import uniffi.wysiwyg_composer.ComposerAction import uniffi.wysiwyg_composer.ComposerAction
import io.element.android.x.element.resources.R as ElementR import io.element.android.x.element.resources.R as ElementR

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 New Vector Ltd * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer package io.element.android.libraries.textcomposer
import android.graphics.Color import android.graphics.Color
import android.net.Uri import android.net.Uri

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 New Vector Ltd * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer.tools package io.element.android.libraries.textcomposer.tools
import android.text.Spanned import android.text.Spanned
import android.widget.EditText import android.widget.EditText

View file

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer.tools package io.element.android.libraries.textcomposer.tools
import androidx.transition.Transition import androidx.transition.Transition

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2022 New Vector Ltd * Copyright (c) 2023 New Vector Ltd
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package io.element.android.x.textcomposer.tools package io.element.android.libraries.textcomposer.tools
import android.view.ViewGroup import android.view.ViewGroup
import androidx.transition.ChangeBounds import androidx.transition.ChangeBounds