Replace migbase64 with base64 decoder from kotlin stdlib

This commit is contained in:
Mikołaj Pich 2023-05-13 21:45:24 +02:00
parent f96563dc21
commit 97c46aa410
3 changed files with 4 additions and 5 deletions

View file

@ -8,8 +8,6 @@ plugins {
dependencies {
implementation 'com.github.wulkanowy.uonet-request-signer:hebe-jvm:5412ed8'
implementation "com.brsanthu:migbase64:2.2"
implementation libs.retrofit.core
implementation libs.retrofit.scalars
implementation libs.retrofit.serialization

View file

@ -14,8 +14,6 @@ dependencies {
implementation "pl.droidsonroids.retrofit2:converter-jspoon:$jspoon"
implementation libs.retrofit.serialization
implementation "com.brsanthu:migbase64:2.2"
implementation "com.squareup.okhttp3:okhttp-urlconnection"
testImplementation "io.mockk:mockk-jvm:1.13.5"

View file

@ -1,6 +1,5 @@
package io.github.wulkanowy.sdk.scrapper.repository
import com.migcomponents.migbase64.Base64
import io.github.wulkanowy.sdk.scrapper.Scrapper
import io.github.wulkanowy.sdk.scrapper.exception.ScrapperException
import io.github.wulkanowy.sdk.scrapper.exception.StudentGraduateException
@ -35,7 +34,11 @@ import org.jsoup.select.Elements
import org.slf4j.LoggerFactory
import java.net.HttpURLConnection
import java.nio.charset.StandardCharsets
import kotlin.io.encoding.Base64
import kotlin.io.encoding.ExperimentalEncodingApi
@Suppress("UnnecessaryOptInAnnotation")
@OptIn(ExperimentalEncodingApi::class)
internal class RegisterRepository(
private val startSymbol: String,
private val email: String,