mirror of
https://github.com/Myzel394/NumberHub.git
synced 2025-06-19 08:45:27 +02:00
Add OFL license
This commit is contained in:
parent
c7f4b2d5b0
commit
9c251ba20d
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
package com.sadellie.unitto.data.licenses
|
package com.sadellie.unitto.data.licenses
|
||||||
|
|
||||||
data class AppLibrary(
|
data class ThirdParty(
|
||||||
val name: String,
|
val name: String,
|
||||||
val dev: String?,
|
val dev: String?,
|
||||||
val website: String?,
|
val website: String?,
|
||||||
@ -26,86 +26,93 @@ data class AppLibrary(
|
|||||||
val description: String?
|
val description: String?
|
||||||
)
|
)
|
||||||
|
|
||||||
val ALL_LIBRARIES by lazy {
|
val ALL_THIRD_PARTY by lazy {
|
||||||
listOf(
|
listOf(
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "currency-api",
|
name = "currency-api",
|
||||||
dev = "Fawaz Ahmed (fawazahmed0)",
|
dev = "Fawaz Ahmed (fawazahmed0)",
|
||||||
website = "https://github.com/fawazahmed0/currency-api",
|
website = "https://github.com/fawazahmed0/currency-api",
|
||||||
license = "The Unlicense",
|
license = "The Unlicense",
|
||||||
description = "Free Currency Rates API"
|
description = "Free Currency Rates API"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
|
name = "Lato",
|
||||||
|
dev = "Łukasz Dziedzic",
|
||||||
|
website = "https://fonts.google.com/specimen/Lato/about",
|
||||||
|
license = "Open Font License",
|
||||||
|
description = "Lato is a sans serif typeface family started in the summer of 2010 by Warsaw-based designer Łukasz Dziedzic (“Lato” means “Summer” in Polish). In December 2010 the Lato family was published under the Open Font License by his foundry tyPoland, with support from Google."
|
||||||
|
),
|
||||||
|
ThirdParty(
|
||||||
name = "Core Kotlin Extensions",
|
name = "Core Kotlin Extensions",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/core",
|
website = "https://developer.android.com/jetpack/androidx/releases/core",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Kotlin extensions for 'core' artifact"
|
description = "Kotlin extensions for 'core' artifact"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Material Components for Android",
|
name = "Material Components for Android",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://github.com/material-components/material-components-android",
|
website = "https://github.com/material-components/material-components-android",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Material Components for Android is a static library that you can add to your Android application in order to use APIs that provide implementations of the Material Design specification. Compatible on devices running API 14 or later."
|
description = "Material Components for Android is a static library that you can add to your Android application in order to use APIs that provide implementations of the Material Design specification. Compatible on devices running API 14 or later."
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Compose UI primitives",
|
name = "Compose UI primitives",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/compose-ui",
|
website = "https://developer.android.com/jetpack/androidx/releases/compose-ui",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Compose UI primitives. This library contains the primitives that form the Compose UI Toolkit, such as drawing, measurement and layout."
|
description = "Compose UI primitives. This library contains the primitives that form the Compose UI Toolkit, such as drawing, measurement and layout."
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Compose Navigation",
|
name = "Compose Navigation",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/navigation",
|
website = "https://developer.android.com/jetpack/androidx/releases/navigation",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Compose integration with Navigation"
|
description = "Compose integration with Navigation"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Compose Material3 Components",
|
name = "Compose Material3 Components",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/compose-material3",
|
website = "https://developer.android.com/jetpack/androidx/releases/compose-material3",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Compose Material You Design Components library"
|
description = "Compose Material You Design Components library"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Navigation Compose Hilt Integration",
|
name = "Navigation Compose Hilt Integration",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/hilt",
|
website = "https://developer.android.com/jetpack/androidx/releases/hilt",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Navigation Compose Hilt Integration"
|
description = "Navigation Compose Hilt Integration"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Hilt Android",
|
name = "Hilt Android",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://github.com/google/dagger",
|
website = "https://github.com/google/dagger",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "A fast dependency injector for Android and Java."
|
description = "A fast dependency injector for Android and Java."
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Compose Material Icons Extended",
|
name = "Compose Material Icons Extended",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/compose-material",
|
website = "https://developer.android.com/jetpack/androidx/releases/compose-material",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Compose Material Design extended icons. This module contains all Material icons. It is a very large dependency and should not be included directly."
|
description = "Compose Material Design extended icons. This module contains all Material icons. It is a very large dependency and should not be included directly."
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Android Preferences DataStore",
|
name = "Android Preferences DataStore",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/datastore",
|
website = "https://developer.android.com/jetpack/androidx/releases/datastore",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Android Preferences DataStore"
|
description = "Android Preferences DataStore"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Accompanist System UI Controller library",
|
name = "Accompanist System UI Controller library",
|
||||||
dev = "Google",
|
dev = "Google",
|
||||||
website = "https://github.com/google/accompanist/",
|
website = "https://github.com/google/accompanist/",
|
||||||
license = "Apache-2.0",
|
license = "Apache-2.0",
|
||||||
description = "Utilities for Jetpack Compose"
|
description = "Utilities for Jetpack Compose"
|
||||||
),
|
),
|
||||||
AppLibrary(
|
ThirdParty(
|
||||||
name = "Compose Tooling API",
|
name = "Compose Tooling API",
|
||||||
dev = "The Android Open Source Project",
|
dev = "The Android Open Source Project",
|
||||||
website = "https://developer.android.com/jetpack/androidx/releases/compose-ui",
|
website = "https://developer.android.com/jetpack/androidx/releases/compose-ui",
|
@ -40,7 +40,7 @@ import com.sadellie.unitto.core.base.R
|
|||||||
import com.sadellie.unitto.core.ui.common.NavigateUpButton
|
import com.sadellie.unitto.core.ui.common.NavigateUpButton
|
||||||
import com.sadellie.unitto.core.ui.common.UnittoScreenWithLargeTopBar
|
import com.sadellie.unitto.core.ui.common.UnittoScreenWithLargeTopBar
|
||||||
import com.sadellie.unitto.core.ui.openLink
|
import com.sadellie.unitto.core.ui.openLink
|
||||||
import com.sadellie.unitto.data.licenses.ALL_LIBRARIES
|
import com.sadellie.unitto.data.licenses.ALL_THIRD_PARTY
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Screen with used third party libraries
|
* Screen with used third party libraries
|
||||||
@ -67,7 +67,7 @@ internal fun ThirdPartyLicensesScreen(
|
|||||||
bottom = 24.dp
|
bottom = 24.dp
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
items(ALL_LIBRARIES) {
|
items(ALL_THIRD_PARTY) {
|
||||||
OutlinedCard(
|
OutlinedCard(
|
||||||
Modifier.clickable { it.website?.let { url -> openLink(mContext, url) } }
|
Modifier.clickable { it.website?.let { url -> openLink(mContext, url) } }
|
||||||
) {
|
) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user