From 0780b622254b94266fd7c59a3fc11f51cd0be34d Mon Sep 17 00:00:00 2001 From: Kevin Boulongne Date: Wed, 27 Nov 2024 11:53:58 +0100 Subject: [PATCH] chore: Rename SwipeToDismissComponent and move it to correct package --- ...raggable.kt => SwipeToDismissComponent.kt} | 25 +++++++++++-------- .../components/transfer/TransferItemList.kt | 1 + 2 files changed, 15 insertions(+), 11 deletions(-) rename app/src/main/java/com/infomaniak/swisstransfer/ui/components/{transfer/TransferItemDraggable.kt => SwipeToDismissComponent.kt} (85%) diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemDraggable.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwipeToDismissComponent.kt similarity index 85% rename from app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemDraggable.kt rename to app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwipeToDismissComponent.kt index 2b34b3a41..1dffe78d4 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemDraggable.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/SwipeToDismissComponent.kt @@ -1,19 +1,21 @@ /* - * Copyright 2023 The Android Open Source Project + * Infomaniak SwissTransfer - Android + * Copyright (C) 2024 Infomaniak Network SA * - * 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 + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. * - * http://www.apache.org/licenses/LICENSE-2.0 + * 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 General Public License for more details. * - * 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. + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ -package com.infomaniak.swisstransfer.ui.components.transfer +package com.infomaniak.swisstransfer.ui.components import android.util.Log import androidx.compose.animation.animateColorAsState @@ -37,6 +39,7 @@ import androidx.compose.ui.graphics.Shape import androidx.compose.ui.tooling.preview.PreviewParameter import androidx.compose.ui.unit.dp import com.infomaniak.multiplatform_swisstransfer.common.interfaces.ui.TransferUi +import com.infomaniak.swisstransfer.ui.components.transfer.TransferItem import com.infomaniak.swisstransfer.ui.previewparameter.TransferUiListPreviewParameter import com.infomaniak.swisstransfer.ui.theme.CustomShapes import com.infomaniak.swisstransfer.ui.theme.Margin diff --git a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt index a277699b4..8bd8a472f 100644 --- a/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt +++ b/app/src/main/java/com/infomaniak/swisstransfer/ui/components/transfer/TransferItemList.kt @@ -29,6 +29,7 @@ import androidx.compose.ui.tooling.preview.PreviewParameter import com.infomaniak.multiplatform_swisstransfer.common.interfaces.ui.TransferUi import com.infomaniak.multiplatform_swisstransfer.common.models.TransferDirection import com.infomaniak.swisstransfer.R +import com.infomaniak.swisstransfer.ui.components.SwipeToDismissComponent import com.infomaniak.swisstransfer.ui.previewparameter.TransferUiListPreviewParameter import com.infomaniak.swisstransfer.ui.theme.CustomShapes import com.infomaniak.swisstransfer.ui.theme.Margin