Rename package im.vector.riotx.multipicker to im.vector.lib.multipicker

This commit is contained in:
Benoit Marty 2020-08-03 18:08:13 +02:00 committed by Benoit Marty
parent d28c091f0a
commit 67fc2feacb
23 changed files with 39 additions and 38 deletions

View file

@ -22,6 +22,7 @@ Build 🧱:
Other changes:
- Hide Flair settings, this is not implemented yet.
- Rename package `im.vector.riotx.attachmentviewer` to `im.vector.lib.attachmentviewer`
- Rename package `im.vector.riotx.multipicker` to `im.vector.lib.multipicker`
Changes in Element 1.0.4 (2020-08-03)
===================================================

View file

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="im.vector.riotx.multipicker">
package="im.vector.lib.multipicker">
<application>
<provider

View file

@ -14,14 +14,14 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.media.MediaMetadataRetriever
import android.provider.MediaStore
import im.vector.riotx.multipicker.entity.MultiPickerAudioType
import im.vector.lib.multipicker.entity.MultiPickerAudioType
/**
* Audio file picker implementation

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.Context
@ -23,8 +23,8 @@ import android.net.Uri
import android.provider.MediaStore
import androidx.core.content.FileProvider
import androidx.fragment.app.Fragment
import im.vector.riotx.multipicker.entity.MultiPickerImageType
import im.vector.riotx.multipicker.utils.ImageUtils
import im.vector.lib.multipicker.entity.MultiPickerImageType
import im.vector.lib.multipicker.utils.ImageUtils
import java.io.File
import java.text.SimpleDateFormat
import java.util.Date

View file

@ -14,14 +14,14 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.ContentResolver
import android.content.Context
import android.content.Intent
import android.provider.ContactsContract
import im.vector.riotx.multipicker.entity.MultiPickerContactType
import im.vector.lib.multipicker.entity.MultiPickerContactType
/**
* Contact Picker implementation

View file

@ -14,13 +14,13 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.provider.OpenableColumns
import im.vector.riotx.multipicker.entity.MultiPickerFileType
import im.vector.lib.multipicker.entity.MultiPickerFileType
/**
* Implementation of selecting any type of files

View file

@ -14,14 +14,14 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.provider.MediaStore
import im.vector.riotx.multipicker.entity.MultiPickerImageType
import im.vector.riotx.multipicker.utils.ImageUtils
import im.vector.lib.multipicker.entity.MultiPickerImageType
import im.vector.lib.multipicker.utils.ImageUtils
/**
* Image Picker implementation

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
class MultiPicker<T> {

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.Context

View file

@ -14,14 +14,14 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker
package im.vector.lib.multipicker
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.media.MediaMetadataRetriever
import android.provider.MediaStore
import im.vector.riotx.multipicker.entity.MultiPickerVideoType
import im.vector.lib.multipicker.entity.MultiPickerVideoType
/**
* Video Picker implementation

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.entity
package im.vector.lib.multipicker.entity
import android.net.Uri

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.entity
package im.vector.lib.multipicker.entity
import android.net.Uri

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.entity
package im.vector.lib.multipicker.entity
data class MultiPickerContactType(
val displayName: String,

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.entity
package im.vector.lib.multipicker.entity
import android.net.Uri

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.entity
package im.vector.lib.multipicker.entity
import android.net.Uri

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.entity
package im.vector.lib.multipicker.entity
import android.net.Uri

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.provider
package im.vector.lib.multipicker.provider
import androidx.core.content.FileProvider

View file

@ -14,7 +14,7 @@
* limitations under the License.
*/
package im.vector.riotx.multipicker.utils
package im.vector.lib.multipicker.utils
import android.content.Context
import android.graphics.Bitmap

View file

@ -21,10 +21,10 @@ import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import im.vector.lib.multipicker.MultiPicker
import im.vector.matrix.android.BuildConfig
import im.vector.matrix.android.api.session.content.ContentAttachmentData
import im.vector.riotx.core.platform.Restorable
import im.vector.riotx.multipicker.MultiPicker
import timber.log.Timber
private const val CAPTURE_PATH_KEY = "CAPTURE_PATH_KEY"

View file

@ -16,13 +16,13 @@
package im.vector.riotx.features.attachments
import im.vector.lib.multipicker.entity.MultiPickerAudioType
import im.vector.lib.multipicker.entity.MultiPickerBaseType
import im.vector.lib.multipicker.entity.MultiPickerContactType
import im.vector.lib.multipicker.entity.MultiPickerFileType
import im.vector.lib.multipicker.entity.MultiPickerImageType
import im.vector.lib.multipicker.entity.MultiPickerVideoType
import im.vector.matrix.android.api.session.content.ContentAttachmentData
import im.vector.riotx.multipicker.entity.MultiPickerAudioType
import im.vector.riotx.multipicker.entity.MultiPickerBaseType
import im.vector.riotx.multipicker.entity.MultiPickerContactType
import im.vector.riotx.multipicker.entity.MultiPickerFileType
import im.vector.riotx.multipicker.entity.MultiPickerImageType
import im.vector.riotx.multipicker.entity.MultiPickerVideoType
import timber.log.Timber
fun MultiPickerContactType.toContactAttachment(): ContactAttachment {

View file

@ -27,6 +27,8 @@ import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.core.net.toUri
import com.yalantis.ucrop.UCrop
import im.vector.lib.multipicker.MultiPicker
import im.vector.lib.multipicker.entity.MultiPickerImageType
import im.vector.riotx.R
import im.vector.riotx.core.di.ActiveSessionHolder
import im.vector.riotx.core.di.ScreenComponent
@ -37,8 +39,6 @@ import im.vector.riotx.core.utils.PERMISSIONS_FOR_TAKING_PHOTO
import im.vector.riotx.core.utils.PERMISSION_REQUEST_CODE_LAUNCH_CAMERA
import im.vector.riotx.core.utils.allGranted
import im.vector.riotx.core.utils.checkPermissions
import im.vector.riotx.multipicker.MultiPicker
import im.vector.riotx.multipicker.entity.MultiPickerImageType
import kotlinx.android.synthetic.main.activity_big_image_viewer.*
import java.io.File
import javax.inject.Inject

View file

@ -34,6 +34,8 @@ import com.airbnb.mvrx.args
import com.airbnb.mvrx.fragmentViewModel
import com.airbnb.mvrx.withState
import com.yalantis.ucrop.UCrop
import im.vector.lib.multipicker.MultiPicker
import im.vector.lib.multipicker.entity.MultiPickerImageType
import im.vector.matrix.android.api.session.room.notification.RoomNotificationState
import im.vector.matrix.android.api.util.MatrixItem
import im.vector.matrix.android.api.util.toMatrixItem
@ -60,8 +62,6 @@ import im.vector.riotx.features.home.room.list.actions.RoomListQuickActionsShare
import im.vector.riotx.features.home.room.list.actions.RoomListQuickActionsSharedActionViewModel
import im.vector.riotx.features.media.BigImageViewerActivity
import im.vector.riotx.features.media.createUCropWithDefaultSettings
import im.vector.riotx.multipicker.MultiPicker
import im.vector.riotx.multipicker.entity.MultiPickerImageType
import kotlinx.android.parcel.Parcelize
import kotlinx.android.synthetic.main.fragment_matrix_profile.*
import kotlinx.android.synthetic.main.view_stub_room_profile_header.*

View file

@ -40,6 +40,8 @@ import com.bumptech.glide.load.engine.cache.DiskCache
import com.google.android.material.textfield.TextInputEditText
import com.google.android.material.textfield.TextInputLayout
import com.yalantis.ucrop.UCrop
import im.vector.lib.multipicker.MultiPicker
import im.vector.lib.multipicker.entity.MultiPickerImageType
import im.vector.matrix.android.api.MatrixCallback
import im.vector.matrix.android.api.NoOpMatrixCallback
import im.vector.matrix.android.api.failure.isInvalidPassword
@ -66,8 +68,6 @@ import im.vector.riotx.features.MainActivityArgs
import im.vector.riotx.features.media.createUCropWithDefaultSettings
import im.vector.riotx.features.themes.ThemeUtils
import im.vector.riotx.features.workers.signout.SignOutUiWorker
import im.vector.riotx.multipicker.MultiPicker
import im.vector.riotx.multipicker.entity.MultiPickerImageType
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch