From 788d7225ca8559460530e1e52212ee4e94ff1013 Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Tue, 30 Jul 2024 11:07:01 +0200 Subject: [PATCH] Add prefix ST to all modules --- README.md | 4 ++-- {Common => STCommon}/build.gradle.kts | 0 .../common/exceptions/UnknownException.kt | 0 .../common/interfaces/Container.kt | 0 .../common/interfaces/File.kt | 0 .../common/interfaces/Transfer.kt | 0 .../upload/UploadCompleteResponse.kt | 0 .../interfaces/upload/UploadContainer.kt | 0 .../upload/UploadContainerResponse.kt | 0 .../common/Test.kt | 0 {Core => STCore}/README.md | 2 +- {Core => STCore}/build.gradle.kts | 6 ++--- .../SwissTransferInjection.kt | 0 .../managers/TransferManager.kt | 0 .../utils/Constants.kt | 0 .../multiplatform_swisstransfer/Test.kt | 0 {Database => STDatabase}/README.md | 0 {Database => STDatabase}/build.gradle.kts | 2 +- .../database/RealmProvider.kt | 0 .../database/models/ContainerDB.kt | 0 .../database/models/FileDB.kt | 0 .../database/models/TransferDB.kt | 0 .../database/models/setting/AppSettings.kt | 0 .../database/models/upload/UploadTasks.kt | 0 .../database/Test.kt | 0 {Network => STNetwork}/README.md | 2 +- {Network => STNetwork}/build.gradle.kts | 2 +- .../network/ApiClientProvider.kt | 0 .../network/exceptions/ApiException.kt | 0 .../network/exceptions/NetworkException.kt | 0 .../network/exceptions/UnknownApiException.kt | 0 .../network/models/ApiError.kt | 0 .../network/models/ApiResponse.kt | 0 .../network/models/ApiResponseStatus.kt | 0 .../network/models/transfer/ContainerApi.kt | 0 .../network/models/transfer/FileApi.kt | 0 .../network/models/transfer/TransferApi.kt | 0 .../upload/UploadCompleteResponseApi.kt | 0 .../models/upload/UploadContainerApi.kt | 0 .../upload/UploadContainerResponseApi.kt | 0 .../models/upload/request/UploadComplete.kt | 0 .../upload/request/UploadFileRequest.kt | 0 .../models/upload/request/UploadRequest.kt | 0 .../repositories/TransferRepository.kt | 0 .../network/repositories/UploadRepository.kt | 0 .../network/requests/BaseRequest.kt | 0 .../network/requests/TransferRequest.kt | 0 .../network/requests/UploadRequest.kt | 0 .../serializers/DateToTimestampSerializer.kt | 0 .../serializers/IntToBooleanSerializer.kt | 0 .../network/utils/UrlConstants.kt | 0 .../network/Test.kt | 0 buildRelease | 24 +++++++++---------- buildXCFramework | 6 ++--- settings.gradle.kts | 8 +++---- 55 files changed, 28 insertions(+), 28 deletions(-) rename {Common => STCommon}/build.gradle.kts (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/exceptions/UnknownException.kt (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Container.kt (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/File.kt (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Transfer.kt (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadCompleteResponse.kt (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainer.kt (100%) rename {Common => STCommon}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainerResponse.kt (100%) rename {Common => STCommon}/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/common/Test.kt (100%) rename {Core => STCore}/README.md (99%) rename {Core => STCore}/build.gradle.kts (71%) rename {Core => STCore}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt (100%) rename {Core => STCore}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/TransferManager.kt (100%) rename {Core => STCore}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/utils/Constants.kt (100%) rename {Core => STCore}/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/Test.kt (100%) rename {Database => STDatabase}/README.md (100%) rename {Database => STDatabase}/build.gradle.kts (90%) rename {Database => STDatabase}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt (100%) rename {Database => STDatabase}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/ContainerDB.kt (100%) rename {Database => STDatabase}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/FileDB.kt (100%) rename {Database => STDatabase}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/TransferDB.kt (100%) rename {Database => STDatabase}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettings.kt (100%) rename {Database => STDatabase}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadTasks.kt (100%) rename {Database => STDatabase}/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/database/Test.kt (100%) rename {Network => STNetwork}/README.md (99%) rename {Network => STNetwork}/build.gradle.kts (96%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/ApiClientProvider.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/ApiException.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/NetworkException.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/UnknownApiException.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiError.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponse.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponseStatus.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/ContainerApi.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/FileApi.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/TransferApi.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadCompleteResponseApi.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerApi.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerResponseApi.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadComplete.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadFileRequest.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadRequest.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/TransferRepository.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/UploadRepository.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/BaseRequest.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/TransferRequest.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/DateToTimestampSerializer.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/IntToBooleanSerializer.kt (100%) rename {Network => STNetwork}/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/UrlConstants.kt (100%) rename {Network => STNetwork}/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/network/Test.kt (100%) diff --git a/README.md b/README.md index 637d7de1..fee191f3 100644 --- a/README.md +++ b/README.md @@ -89,13 +89,13 @@ dependencyResolutionManagement { Add the following dependency to your `build.gradle.kts` file: ```kts -implementation("com.github.infomaniak.multiplatform-SwissTransfer:core:{tag}") +implementation("com.github.infomaniak.multiplatform-SwissTransfer:STCore:{tag}") ``` `build.gradle` file: ```gradle -implementation 'com.github.infomaniak.multiplatform-SwissTransfer:core:{tag}' +implementation 'com.github.infomaniak.multiplatform-SwissTransfer:STCore:{tag}' ``` For others modules: diff --git a/Common/build.gradle.kts b/STCommon/build.gradle.kts similarity index 100% rename from Common/build.gradle.kts rename to STCommon/build.gradle.kts diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/exceptions/UnknownException.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/exceptions/UnknownException.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/exceptions/UnknownException.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/exceptions/UnknownException.kt diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Container.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Container.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Container.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Container.kt diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/File.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/File.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/File.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/File.kt diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Transfer.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Transfer.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Transfer.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/Transfer.kt diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadCompleteResponse.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadCompleteResponse.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadCompleteResponse.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadCompleteResponse.kt diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainer.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainer.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainer.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainer.kt diff --git a/Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainerResponse.kt b/STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainerResponse.kt similarity index 100% rename from Common/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainerResponse.kt rename to STCommon/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/common/interfaces/upload/UploadContainerResponse.kt diff --git a/Common/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/common/Test.kt b/STCommon/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/common/Test.kt similarity index 100% rename from Common/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/common/Test.kt rename to STCommon/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/common/Test.kt diff --git a/Core/README.md b/STCore/README.md similarity index 99% rename from Core/README.md rename to STCore/README.md index a9e62c30..85fec921 100644 --- a/Core/README.md +++ b/STCore/README.md @@ -13,7 +13,7 @@ initialized properties and methods. This class replaces traditional dependency i To install the Network module for Android, add the following dependency to your `build.gradle.kts` file: ```kts -implementation("com.github.infomaniak.multiplatform-SwissTransfer:core:{tag}") +implementation("com.github.infomaniak.multiplatform-SwissTransfer:STCore:{tag}") ``` ### iOS diff --git a/Core/build.gradle.kts b/STCore/build.gradle.kts similarity index 71% rename from Core/build.gradle.kts rename to STCore/build.gradle.kts index 46421f3d..c6acb1f4 100644 --- a/Core/build.gradle.kts +++ b/STCore/build.gradle.kts @@ -9,9 +9,9 @@ plugins { kotlin { sourceSets { commonMain.dependencies { - implementation(project(":Common")) - implementation(project(":Database")) - implementation(project(":Network")) + implementation(project(":STCommon")) + implementation(project(":STDatabase")) + implementation(project(":STNetwork")) } commonTest.dependencies { implementation(libs.kotlin.test) diff --git a/Core/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt similarity index 100% rename from Core/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt rename to STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/SwissTransferInjection.kt diff --git a/Core/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/TransferManager.kt b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/TransferManager.kt similarity index 100% rename from Core/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/TransferManager.kt rename to STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/managers/TransferManager.kt diff --git a/Core/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/utils/Constants.kt b/STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/utils/Constants.kt similarity index 100% rename from Core/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/utils/Constants.kt rename to STCore/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/utils/Constants.kt diff --git a/Core/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/Test.kt b/STCore/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/Test.kt similarity index 100% rename from Core/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/Test.kt rename to STCore/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/Test.kt diff --git a/Database/README.md b/STDatabase/README.md similarity index 100% rename from Database/README.md rename to STDatabase/README.md diff --git a/Database/build.gradle.kts b/STDatabase/build.gradle.kts similarity index 90% rename from Database/build.gradle.kts rename to STDatabase/build.gradle.kts index eb6322b1..416301b1 100644 --- a/Database/build.gradle.kts +++ b/STDatabase/build.gradle.kts @@ -10,7 +10,7 @@ plugins { kotlin { sourceSets { commonMain.dependencies { - implementation(project(":Common")) + implementation(project(":STCommon")) implementation(libs.realm.base) } commonTest.dependencies { diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt similarity index 100% rename from Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt rename to STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/RealmProvider.kt diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/ContainerDB.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/ContainerDB.kt similarity index 100% rename from Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/ContainerDB.kt rename to STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/ContainerDB.kt diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/FileDB.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/FileDB.kt similarity index 100% rename from Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/FileDB.kt rename to STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/FileDB.kt diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/TransferDB.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/TransferDB.kt similarity index 100% rename from Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/TransferDB.kt rename to STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/TransferDB.kt diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettings.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettings.kt similarity index 100% rename from Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettings.kt rename to STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/setting/AppSettings.kt diff --git a/Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadTasks.kt b/STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadTasks.kt similarity index 100% rename from Database/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadTasks.kt rename to STDatabase/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/database/models/upload/UploadTasks.kt diff --git a/Database/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/database/Test.kt b/STDatabase/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/database/Test.kt similarity index 100% rename from Database/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/database/Test.kt rename to STDatabase/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/database/Test.kt diff --git a/Network/README.md b/STNetwork/README.md similarity index 99% rename from Network/README.md rename to STNetwork/README.md index 6433ec8c..ab71a16c 100644 --- a/Network/README.md +++ b/STNetwork/README.md @@ -12,7 +12,7 @@ API and providing repositories for transfer and upload operations. To install the Network module for Android, add the following dependency to your `build.gradle.kts` file: ```kts -implementation("com.github.infomaniak.multiplatform-SwissTransfer:network:{tag}") +implementation("com.github.infomaniak.multiplatform-SwissTransfer:STNetwork:{tag}") ``` ### iOS diff --git a/Network/build.gradle.kts b/STNetwork/build.gradle.kts similarity index 96% rename from Network/build.gradle.kts rename to STNetwork/build.gradle.kts index f36c1877..a7a8b95b 100644 --- a/Network/build.gradle.kts +++ b/STNetwork/build.gradle.kts @@ -10,7 +10,7 @@ plugins { kotlin { sourceSets { commonMain.dependencies { - api(project(":Common")) + api(project(":STCommon")) implementation(libs.ktor.client.core) implementation(libs.ktor.client.content.negociation) implementation(libs.ktor.client.json) diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/ApiClientProvider.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/ApiClientProvider.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/ApiClientProvider.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/ApiClientProvider.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/ApiException.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/ApiException.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/ApiException.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/ApiException.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/NetworkException.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/NetworkException.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/NetworkException.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/NetworkException.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/UnknownApiException.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/UnknownApiException.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/UnknownApiException.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/exceptions/UnknownApiException.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiError.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiError.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiError.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiError.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponse.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponse.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponse.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponse.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponseStatus.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponseStatus.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponseStatus.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/ApiResponseStatus.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/ContainerApi.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/ContainerApi.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/ContainerApi.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/ContainerApi.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/FileApi.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/FileApi.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/FileApi.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/FileApi.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/TransferApi.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/TransferApi.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/TransferApi.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/transfer/TransferApi.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadCompleteResponseApi.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadCompleteResponseApi.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadCompleteResponseApi.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadCompleteResponseApi.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerApi.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerApi.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerApi.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerApi.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerResponseApi.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerResponseApi.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerResponseApi.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/UploadContainerResponseApi.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadComplete.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadComplete.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadComplete.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadComplete.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadFileRequest.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadFileRequest.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadFileRequest.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadFileRequest.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadRequest.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadRequest.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadRequest.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/models/upload/request/UploadRequest.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/TransferRepository.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/TransferRepository.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/TransferRepository.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/TransferRepository.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/UploadRepository.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/UploadRepository.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/UploadRepository.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/repositories/UploadRepository.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/BaseRequest.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/BaseRequest.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/BaseRequest.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/BaseRequest.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/TransferRequest.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/TransferRequest.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/TransferRequest.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/TransferRequest.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/requests/UploadRequest.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/DateToTimestampSerializer.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/DateToTimestampSerializer.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/DateToTimestampSerializer.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/DateToTimestampSerializer.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/IntToBooleanSerializer.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/IntToBooleanSerializer.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/IntToBooleanSerializer.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/serializers/IntToBooleanSerializer.kt diff --git a/Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/UrlConstants.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/UrlConstants.kt similarity index 100% rename from Network/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/UrlConstants.kt rename to STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/UrlConstants.kt diff --git a/Network/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/network/Test.kt b/STNetwork/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/network/Test.kt similarity index 100% rename from Network/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/network/Test.kt rename to STNetwork/src/commonTest/kotlin/com/infomaniak/multiplatform_swisstransfer/network/Test.kt diff --git a/buildRelease b/buildRelease index 0b43f4e8..c69a2e86 100755 --- a/buildRelease +++ b/buildRelease @@ -61,28 +61,28 @@ function release_ios { # Build echo "Build all Modules for XCFrameworks" - ./gradlew :Network:assembleNetworkReleaseXCFramework - ./gradlew :Database:assembleDatabaseReleaseXCFramework - ./gradlew :Core:assembleCoreReleaseXCFramework + ./gradlew :STNetwork:assembleSTNetworkReleaseXCFramework + ./gradlew :STDatabase:assembleSTDatabaseReleaseXCFramework + ./gradlew :STCore:assembleSTCoreReleaseXCFramework # Archive echo "Archive XCFramework to ${BOLD}release${END_BOLD} folder" mkdir -p release - zip -r release/Network.xcframework.zip Network/build/XCFrameworks/release/Network.xcframework - zip -r release/Database.xcframework.zip Database/build/XCFrameworks/release/Database.xcframework - zip -r release/Core.xcframework.zip Core/build/XCFrameworks/release/Core.xcframework + zip -r release/STNetwork.xcframework.zip STNetwork/build/XCFrameworks/release/STNetwork.xcframework + zip -r release/STDatabase.xcframework.zip STDatabase/build/XCFrameworks/release/STDatabase.xcframework + zip -r release/STCore.xcframework.zip STCore/build/XCFrameworks/release/STCore.xcframework # Calculate checksums echo "Calculate modules checksums from release folder" - NETWORK_CHECKSUM=$(swift package compute-checksum release/Network.xcframework.zip) - DATABASE_CHECKSUM=$(swift package compute-checksum release/Database.xcframework.zip) - CORE_CHECKSUM=$(swift package compute-checksum release/Core.xcframework.zip) + NETWORK_CHECKSUM=$(swift package compute-checksum release/STNetwork.xcframework.zip) + DATABASE_CHECKSUM=$(swift package compute-checksum release/STDatabase.xcframework.zip) + CORE_CHECKSUM=$(swift package compute-checksum release/STCore.xcframework.zip) # Update Package.swift echo "${BOLD}Update Package.swift${END_BOLD}" - NETWORK_URL="https://github.com/Infomaniak/multiplatform-SwissTransfer/releases/download/$IOS_TAG/Network.xcframework.zip" - DATABASE_URL="https://github.com/Infomaniak/multiplatform-SwissTransfer/releases/download/$IOS_TAG/Database.xcframework.zip" - CORE_URL="https://github.com/Infomaniak/multiplatform-SwissTransfer/releases/download/$IOS_TAG/Core.xcframework.zip" + NETWORK_URL="https://github.com/Infomaniak/multiplatform-SwissTransfer/releases/download/$IOS_TAG/STNetwork.xcframework.zip" + DATABASE_URL="https://github.com/Infomaniak/multiplatform-SwissTransfer/releases/download/$IOS_TAG/STDatabase.xcframework.zip" + CORE_URL="https://github.com/Infomaniak/multiplatform-SwissTransfer/releases/download/$IOS_TAG/STCore.xcframework.zip" # With the `sed` command the regex doesn't work, whereas with the `perl` command it does. perl -0777 -pi -e "s|url: \".*Network.xcframework.zip\",(\s*)checksum: \".*\"|url: \"$NETWORK_URL\",\1checksum: \"$NETWORK_CHECKSUM\"|g" Package.swift perl -0777 -pi -e "s|url: \".*Database.xcframework.zip\",(\s*)checksum: \".*\"|url: \"$DATABASE_URL\",\1checksum: \"$DATABASE_CHECKSUM\"|g" Package.swift diff --git a/buildXCFramework b/buildXCFramework index 9af11b54..1e33d314 100755 --- a/buildXCFramework +++ b/buildXCFramework @@ -28,13 +28,13 @@ echo "${bold}Start cleanAll Task${endBold}" echo "${bold}cleanAll task completed.${endBold}" echo "${bold}Start assembleDBReleaseXCFramework Task${endBold}" -./gradlew :DB:assembleDBReleaseXCFramework +./gradlew :STDatabase:assembleSTDatabaseReleaseXCFramework echo "${bold}cleanAll task completed.${endBold}" echo "${bold}Start assembleNetworkReleaseXCFramework Task${endBold}" -./gradlew :Network:assembleNetworkReleaseXCFramework +./gradlew :STNetwork:assembleSTNetworkReleaseXCFramework echo "${bold}cleanAll task completed.${endBold}" echo "${bold}Start assembleCoreReleaseXCFramework Task${endBold}" -./gradlew :Core:assembleCoreReleaseXCFramework +./gradlew :STCore:assembleSTCoreReleaseXCFramework echo "${bold}cleanAll task completed.${endBold}" diff --git a/settings.gradle.kts b/settings.gradle.kts index f276e7b4..af6344f7 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,8 +15,8 @@ dependencyResolutionManagement { } rootProject.name = "multiplatform-SwissTransfer" -include(":Common") -include(":Network") -include(":Database") -include(":Core") +include(":STCommon") +include(":STNetwork") +include(":STDatabase") +include(":STCore") includeBuild("buildTools")