From 2d06315044a06c96ca779bac1c3a39a1f239cfce Mon Sep 17 00:00:00 2001 From: Anton Nazarov Date: Sun, 28 Jul 2024 13:54:22 +0300 Subject: [PATCH] upgrade lib, gradle, kotlin, fix response model --- .gitignore | 2 + .idea/.name | 1 + .idea/compiler.xml | 6 +- .idea/gradle.xml | 3 - .idea/kotlinc.xml | 2 +- .idea/misc.xml | 7 +- .idea/vcs.xml | 6 + build.gradle.kts | 4 +- config/detekt/detekt.yml | 153 +++++++++++------- example/build.gradle.kts | 2 +- gradle/libs.versions.toml | 14 +- gradle/wrapper/gradle-wrapper.jar | Bin 60756 -> 43504 bytes gradle/wrapper/gradle-wrapper.properties | 4 +- gradlew | 38 +++-- gradlew.bat | 23 +-- plugin-build/build.gradle.kts | 4 +- plugin-build/gradle.properties | 2 +- .../gradle/wrapper/gradle-wrapper.jar | Bin 59821 -> 43504 bytes .../gradle/wrapper/gradle-wrapper.properties | 4 +- plugin-build/gradlew | 44 +++-- plugin-build/gradlew.bat | 37 +++-- plugin-build/plugin/build.gradle.kts | 19 ++- .../litres/publish/samsung/PublishSetting.kt | 1 - .../samsung/SamsungPublishExtension.kt | 74 ++++----- .../publish/samsung/SamsungPublishTask.kt | 1 - .../samsung/models/access/AccessToken.kt | 2 +- .../models/access/AccessTokenResponse.kt | 2 +- .../publish/samsung/models/update/ApkFile.kt | 2 +- .../models/update/UpdateDataRequest.kt | 2 +- .../models/update/UpdateDataResponse.kt | 4 +- .../samsung/models/upload/UploadResponse.kt | 2 +- .../upload/session/UploadSessionResponse.kt | 2 +- .../publish/samsung/network/NetworkClient.kt | 20 +-- .../repository/GenerateTokenRepository.kt | 17 +- .../samsung/repository/UpdateAppRepository.kt | 82 ++++++---- .../samsung/usecase/PublishBuildUseCase.kt | 4 +- .../publish/samsung/utils/JwtGenerator.kt | 13 +- .../publish/samsung/utils/rsa/Asn1Object.kt | 14 +- .../publish/samsung/utils/rsa/DerParser.kt | 4 +- plugin-build/settings.gradle.kts | 14 +- renovate.json | 6 + settings.gradle.kts | 16 +- 42 files changed, 386 insertions(+), 271 deletions(-) create mode 100644 .idea/.name create mode 100644 .idea/vcs.xml create mode 100644 renovate.json diff --git a/.gitignore b/.gitignore index 39c7972..582d0a2 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,5 @@ /.idea/navEditor.xml /.idea/assetWizardSettings.xml build +/plugin-build/.kotlin/ +.kotlin diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..9217ddf --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +samsung-publisher diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 758f153..e58d3e4 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -1,10 +1,6 @@ - - - - - + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index a224f79..33058c5 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,6 +1,5 @@ -