Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Java files to Kotlin #49

Merged
merged 5 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion dataprovider-retrofit/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ android {
dependencies {
api(project(":data"))
api(libs.retrofit)
compileOnly(libs.androidx.annotation)
api(platform(libs.retrofit.bom))
implementation(libs.retrofit.converter.kotlinx.serialization)
implementation(libs.okhttp.logging.interceptor)
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
package ch.srg.dataProvider.integrationlayer.request

import android.net.Uri
import java.io.Serializable

/**
* Copyright (c) SRG SSR. All rights reserved.
* <p>
* License information is available from the LICENSE file.
*
* @property name designed name
* @property value hostname of the integration layer url
*/
data class IlHost(
val name: String,
val value: String,
) : Serializable {
val hostUri: Uri
get() = Uri.parse("https://$value")

override fun toString(): String {
return name
}

companion object {
private const val serialVersionUID = 1L

@JvmField
val PROD = IlHost("PROD", "il.srgssr.ch")

@JvmField
val TEST = IlHost("TEST", "il-test.srgssr.ch")

@JvmField
val STAGE = IlHost("STAGE", "il-stage.srgssr.ch")

@JvmField
val MMF = IlHost("MMF", "play-mmf.herokuapp.com/android_26CE9E49-9600")

@JvmField
val MMF_PUBLIC = IlHost("MMF", "play-mmf.herokuapp.com")

@JvmField
val PROD_SAM = IlHost("PROD_SAM", "il.srgssr.ch/sam")

@JvmField
val TEST_SAM = IlHost("TEST_SAM", "il-test.srgssr.ch/sam")

@JvmField
val STAGE_SAM = IlHost("STAGE_SAM", "il-stage.srgssr.ch/sam")
}
}

This file was deleted.

Loading
Loading