Rename core module

This commit is contained in:
ganfra 2023-01-20 16:34:04 +01:00
parent bc9b8e6b90
commit f6672fa5de
52 changed files with 67 additions and 67 deletions

View file

@ -19,5 +19,5 @@ plugins {
}
android {
namespace = "io.element.android.x.core"
namespace = "io.element.android.libraries.core"
}

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.bitmap
package io.element.android.libraries.core.bitmap
import android.graphics.Bitmap
import java.io.File

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.bool
package io.element.android.libraries.core.bool
fun Boolean?.orTrue() = this ?: true

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.compose
package io.element.android.libraries.core.compose
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.WindowInsets

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");
* you may not use this file except in compliance with the License.
@ -14,12 +14,12 @@
* limitations under the License.
*/
package io.element.android.x.core.compose
package io.element.android.libraries.core.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.runtime.remember
import io.element.android.x.core.BuildConfig
import io.element.android.libraries.core.BuildConfig
import timber.log.Timber
// Note the inline function below which ensures that this function is essentially

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.compose
package io.element.android.libraries.core.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.compose
package io.element.android.libraries.core.compose
import androidx.compose.ui.tooling.preview.PreviewParameterProvider

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.compose
package io.element.android.libraries.core.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.coroutine
package io.element.android.libraries.core.coroutine
import kotlinx.coroutines.CoroutineDispatcher

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.coroutine
package io.element.android.libraries.core.coroutine
import android.os.SystemClock
import kotlinx.coroutines.CoroutineScope

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.coroutine
package io.element.android.libraries.core.coroutine
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.data
package io.element.android.libraries.core.data
/**
* Wrapper for a CharSequence, which support mutation of the CharSequence.

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.data
package io.element.android.libraries.core.data
import timber.log.Timber

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.extensions
package io.element.android.libraries.core.extensions
import android.util.Patterns

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.file
package io.element.android.libraries.core.file
import java.io.File
import java.util.zip.GZIPOutputStream

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.hardware
package io.element.android.libraries.core.hardware
import android.content.Context
import android.os.Build

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");
* you may not use this file except in compliance with the License.
@ -14,9 +14,9 @@
* limitations under the License.
*/
package io.element.android.x.core.mimetype
package io.element.android.libraries.core.mimetype
import io.element.android.x.core.bool.orFalse
import io.element.android.libraries.core.bool.orFalse
// The Android SDK does not provide constant for mime type, add some of them here
object MimeTypes {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.screenshot
package io.element.android.libraries.core.screenshot
import android.app.Activity
import android.graphics.Bitmap

View file

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.element.android.x.core.ui
package io.element.android.libraries.core.ui
import android.content.res.Resources
import android.util.TypedValue

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.ui
package io.element.android.libraries.core.ui
import android.view.View
import android.view.inputmethod.InputMethodManager

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package io.element.android.x.core.uri
package io.element.android.libraries.core.uri
import java.net.URL

View file

@ -16,7 +16,7 @@
package io.element.android.x.matrix
import io.element.android.x.core.coroutine.CoroutineDispatchers
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
import io.element.android.x.matrix.core.RoomId
import io.element.android.x.matrix.core.SessionId
import io.element.android.x.matrix.core.UserId

View file

@ -17,7 +17,7 @@
package io.element.android.x.matrix.auth
import com.squareup.anvil.annotations.ContributesBinding
import io.element.android.x.core.coroutine.CoroutineDispatchers
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
import io.element.android.x.di.AppScope
import io.element.android.x.matrix.MatrixClient
import io.element.android.x.matrix.RustMatrixClient

View file

@ -16,7 +16,7 @@
package io.element.android.x.matrix.room
import io.element.android.x.core.coroutine.CoroutineDispatchers
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
import io.element.android.x.matrix.sync.roomListDiff
import io.element.android.x.matrix.sync.state
import java.io.Closeable

View file

@ -16,7 +16,7 @@
package io.element.android.x.matrix.room
import io.element.android.x.core.coroutine.CoroutineDispatchers
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
import io.element.android.x.matrix.core.EventId
import io.element.android.x.matrix.core.RoomId
import io.element.android.x.matrix.timeline.MatrixTimeline

View file

@ -16,7 +16,7 @@
package io.element.android.x.matrix.sync
import io.element.android.x.core.coroutine.CoroutineDispatchers
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.SharedFlow

View file

@ -16,7 +16,7 @@
package io.element.android.x.matrix.timeline
import io.element.android.x.core.coroutine.CoroutineDispatchers
import io.element.android.libraries.core.coroutine.CoroutineDispatchers
import io.element.android.x.matrix.core.EventId
import io.element.android.x.matrix.room.RustMatrixRoom
import kotlinx.coroutines.CoroutineScope

View file

@ -42,9 +42,9 @@ import androidx.core.view.updateLayoutParams
import com.google.android.material.shape.MaterialShapeDrawable
import io.element.android.wysiwyg.EditorEditText
import io.element.android.wysiwyg.inputhandlers.models.InlineFormat
import io.element.android.x.core.ui.DimensionConverter
import io.element.android.x.core.ui.hideKeyboard
import io.element.android.x.core.ui.showKeyboard
import io.element.android.libraries.core.ui.DimensionConverter
import io.element.android.libraries.core.ui.hideKeyboard
import io.element.android.libraries.core.ui.showKeyboard
import io.element.android.x.textcomposer.databinding.ComposerRichTextLayoutBinding
import io.element.android.x.textcomposer.databinding.ViewRichTextMenuButtonBinding
import io.element.android.x.textcomposer.tools.setTextIfDifferent