package com.jetpackduba.gitnuro

object AppConstants {
    val openSourceProjects = listOf(
        Project("Apache SSHD", "https://mina.apache.org/sshd-project/", apache__2_0),
        Project("Google Dagger", "https://dagger.dev/", apache__2_0),
        Project("Jetbrains Compose", "https://www.jetbrains.com/lp/compose-mpp/", apache__2_0),
        Project("JGit", "https://www.eclipse.org/jgit/", edl),
        Project("JUnit 5", "https://junit.org/junit5/", edl),
        Project("Kotlin", "https://kotlinlang.org/", apache__2_0),
        Project(
            "Kotlinx.serialization",
            "https://kotlinlang.org/docs/serialization.html#example-json-serialization",
            apache__2_0
        ),
        Project("Mockk", "https://mockk.io/", apache__2_0),
        Project("Retrofit2", "https://square.github.io/retrofit/", apache__2_0),
    )


    // Remember to update build.gradle when changing this
    const val APP_NAME = "Gitnuro"
    const val APP_DESCRIPTION =
        "Gitnuro is a Git client that allows you to manage multiple repositories with a modern experience and live visual representation of your repositories' state."
    const val APP_VERSION = "1.1.1"
    const val APP_VERSION_CODE = 6
    const val VERSION_CHECK_URL = "https://raw.githubusercontent.com/JetpackDuba/Gitnuro/main/latest.json"
}


private val apache__2_0 = License("Apache 2.0", "https://www.apache.org/licenses/LICENSE-2.0")
private val edl = License("EDL", "https://www.eclipse.org/org/documents/edl-v10.php")

data class License(
    val name: String,
    val url: String
)

data class Project(val name: String, val url: String, val license: License)
