From cc74ac8ce85d46fae4518d9e15ae0b9484145da0 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Wed, 7 Jan 2026 12:45:46 +0800 Subject: [PATCH 01/41] Initial support for compose multiplatform Signed-off-by: Aayush Gupta --- .gitignore | 15 +- build.gradle.kts | 6 + desktopApp/build.gradle.kts | 32 ++ .../src/main/kotlin/net/newpipe/app/Main.kt | 18 + gradle/libs.versions.toml | 34 ++ iosApp/Configuration/Config.xcconfig | 7 + iosApp/iosApp.xcodeproj/project.pbxproj | 373 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 36 ++ .../AppIcon.appiconset/app-icon-1024.png | Bin 0 -> 13511 bytes iosApp/iosApp/Assets.xcassets/Contents.json | 6 + iosApp/iosApp/ContentView.swift | 21 + iosApp/iosApp/Info.plist | 8 + .../Preview Assets.xcassets/Contents.json | 6 + iosApp/iosApp/iOSApp.swift | 10 + settings.gradle.kts | 5 +- shared/build.gradle.kts | 117 ++++++ shared/consumer-proguard-rules.pro | 6 + shared/src/androidMain/AndroidManifest.xml | 14 + .../kotlin/net/newpipe/app/ComposeActivity.kt | 25 ++ .../composeResources/values/strings.xml | 8 + .../commonMain/kotlin/net/newpipe/app/App.kt | 22 ++ .../kotlin/net/newpipe/app/di/KoinApp.kt | 14 + .../kotlin/net/newpipe/app/theme/Color.kt | 81 ++++ .../kotlin/net/newpipe/app/theme/Theme.kt | 101 +++++ .../net/newpipe/app/MainViewController.kt | 10 + 27 files changed, 991 insertions(+), 2 deletions(-) create mode 100644 desktopApp/build.gradle.kts create mode 100644 desktopApp/src/main/kotlin/net/newpipe/app/Main.kt create mode 100644 iosApp/Configuration/Config.xcconfig create mode 100644 iosApp/iosApp.xcodeproj/project.pbxproj create mode 100644 iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/app-icon-1024.png create mode 100644 iosApp/iosApp/Assets.xcassets/Contents.json create mode 100644 iosApp/iosApp/ContentView.swift create mode 100644 iosApp/iosApp/Info.plist create mode 100644 iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 iosApp/iosApp/iOSApp.swift create mode 100644 shared/build.gradle.kts create mode 100644 shared/consumer-proguard-rules.pro create mode 100644 shared/src/androidMain/AndroidManifest.xml create mode 100644 shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt create mode 100644 shared/src/commonMain/composeResources/values/strings.xml create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/App.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/di/KoinApp.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt create mode 100644 shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt diff --git a/.gitignore b/.gitignore index 49267a9f0..3d5b6ea66 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ .gradle/ local.properties .DS_Store -build/ +**/build/ +!src/**/build/ captures/ .idea/ *.iml @@ -19,3 +20,15 @@ app/release/ bin/ .vscode/ *.code-workspace + +# xcode files +xcuserdata +.externalNativeBuild +.cxx +node_modules/ +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcodeproj/project.xcworkspace/ +!*.xcworkspace/contents.xcworkspacedata +**/xcshareddata/WorkspaceSettings.xcsettings diff --git a/build.gradle.kts b/build.gradle.kts index 53c8a4c42..e3e25c4fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,9 +12,15 @@ buildscript { plugins { alias(libs.plugins.android.application) apply false + alias(libs.plugins.android.library) apply false alias(libs.plugins.android.legacy.kapt) apply false alias(libs.plugins.google.ksp) apply false + alias(libs.plugins.jetbrains.kotlin.compose) apply false + alias(libs.plugins.jetbrains.kotlin.jvm) apply false + alias(libs.plugins.jetbrains.kotlin.multiplatform) apply false + alias(libs.plugins.jetbrains.compose.multiplatform) apply false alias(libs.plugins.jetbrains.kotlin.parcelize) apply false alias(libs.plugins.jetbrains.kotlinx.serialization) apply false alias(libs.plugins.sonarqube) apply false + alias(libs.plugins.koin) apply false } diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts new file mode 100644 index 000000000..910d73647 --- /dev/null +++ b/desktopApp/build.gradle.kts @@ -0,0 +1,32 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import org.jetbrains.compose.desktop.application.dsl.TargetFormat + +plugins { + alias(libs.plugins.jetbrains.kotlin.jvm) + alias(libs.plugins.jetbrains.kotlin.compose) + alias(libs.plugins.jetbrains.compose.multiplatform) +} + +dependencies { + implementation(projects.shared) + + implementation(compose.desktop.currentOs) + implementation(libs.jetbrains.coroutines.swing) + implementation(libs.jetbrains.compose.preview) +} + +compose.desktop { + application { + mainClass = "net.newpipe.app.MainKt" + + nativeDistributions { + targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) + packageName = "net.newpipe.app" + packageVersion = "1.0.0" + } + } +} diff --git a/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt b/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt new file mode 100644 index 000000000..609ce7289 --- /dev/null +++ b/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt @@ -0,0 +1,18 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app + +import androidx.compose.ui.window.Window +import androidx.compose.ui.window.application + +/** + * Entry point for compose-related UI components on Desktop + */ +fun main() = application { + Window(onCloseRequest = ::exitApplication, title = "NewPipe") { + App() + } +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 365d439a5..67eba5cbf 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -5,6 +5,7 @@ [versions] acra = "5.13.1" +activity = "1.13.0" agp = "9.2.1" appcompat = "1.7.1" assertj = "3.27.7" @@ -14,16 +15,21 @@ bridge = "v2.0.2" cardview = "1.0.0" checkstyle = "13.4.2" coil = "3.4.0" +compose = "1.11.1" constraintlayout = "2.2.1" core = "1.18.0" +coroutines = "1.11.0" desugar = "2.1.5" documentfile = "1.1.0" +espresso = "3.7.0" exoplayer = "2.19.1" fragment = "1.8.9" groupie = "2.10.1" jsoup = "1.22.2" junit = "4.13.2" junit-ext = "1.3.0" +koin = "4.2.1" +koin-plugin = "1.0.0-RC2" kotlin = "2.3.21" kotlinx-coroutines-rx3 = "1.11.0" kotlinx-serialization-json = "1.11.0" @@ -34,8 +40,11 @@ lifecycle = "2.10.0" localbroadcastmanager = "1.1.0" markwon = "4.6.2" material = "1.11.0" # TODO: update to newer version after bug is fixed. See https://github.com/TeamNewPipe/NewPipe/pull/13018 +material3 = "1.11.0-alpha07" media = "1.7.1" mockitoCore = "5.23.0" +multiplatform = "1.11.0" +navigation3 = "1.1.1" okhttp = "5.3.2" phoenix = "3.0.0" preference = "1.2.1" @@ -68,8 +77,11 @@ work = "2.11.2" [libraries] acra-core = { module = "ch.acra:acra-core", version.ref = "acra" } android-desugar = { module = "com.android.tools:desugar_jdk_libs_nio", version.ref = "desugar" } +androidx-activity = { module = "androidx.activity:activity-compose", version.ref = "activity" } androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" } androidx-cardview = { module = "androidx.cardview:cardview", version.ref = "cardview" } +androidx-compose-test-ui-junit = { module = "androidx.compose.ui:ui-test-junit4-android", version.ref = "compose" } +androidx-compose-test-ui-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "compose" } androidx-constraintlayout = { module = "androidx.constraintlayout:constraintlayout", version.ref = "constraintlayout" } androidx-core = { module = "androidx.core:core-ktx", version.ref = "core" } androidx-documentfile = { module = "androidx.documentfile:documentfile", version.ref = "documentfile" } @@ -87,6 +99,7 @@ androidx-room-rxjava3 = { module = "androidx.room:room-rxjava3", version.ref = " androidx-room-testing = { module = "androidx.room:room-testing", version.ref = "room" } androidx-runner = { module = "androidx.test:runner", version.ref = "runner" } androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version.ref = "swiperefreshlayout" } +androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espresso" } androidx-viewpager2 = { module = "androidx.viewpager2:viewpager2", version.ref = "viewpager2" } androidx-webkit = { module = "androidx.webkit:webkit", version.ref = "webkit" } androidx-work-runtime = { module = "androidx.work:work-runtime", version.ref = "work" } @@ -110,8 +123,23 @@ google-exoplayer-smoothstreaming = { module = "com.google.android.exoplayer:exop google-exoplayer-ui = { module = "com.google.android.exoplayer:exoplayer-ui", version.ref = "exoplayer" } jakewharton-phoenix = { module = "com.jakewharton:process-phoenix", version.ref = "phoenix" } jakewharton-rxbinding = { module = "com.jakewharton.rxbinding4:rxbinding", version.ref = "rxbinding" } +jetbrains-compose-foundation = { module = "org.jetbrains.compose.foundation:foundation", version.ref = "multiplatform" } +jetbrains-compose-material3 = { module = "org.jetbrains.compose.material3:material3", version.ref = "material3" } +jetbrains-compose-preview = { module = "org.jetbrains.compose.ui:ui-tooling-preview", version.ref = "multiplatform" } +jetbrains-compose-resources = { module = "org.jetbrains.compose.components:components-resources", version.ref = "multiplatform" } +jetbrains-compose-runtime = { module = "org.jetbrains.compose.runtime:runtime", version.ref = "multiplatform" } +jetbrains-compose-test-ui = { module = "org.jetbrains.compose.ui:ui-test", version.ref = "multiplatform" } +jetbrains-compose-tooling = { module = "org.jetbrains.compose.ui:ui-tooling", version.ref = "multiplatform" } +jetbrains-compose-ui = { module = "org.jetbrains.compose.ui:ui", version.ref = "multiplatform" } +jetbrains-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "coroutines" } +jetbrains-lifecycle-navigation3 = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-navigation3", version.ref = "lifecycle" } +jetbrains-lifecycle-viewmodel = { module = "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" } +jetbrains-navigation3-ui = { module = "org.jetbrains.androidx.navigation3:navigation3-ui", version.ref = "navigation3" } jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" } junit = { module = "junit:junit", version.ref = "junit" } +koin-annotations = { module = "io.insert-koin:koin-annotations", version.ref = "koin" } +koin-compose-viewmodel = { module = "io.insert-koin:koin-compose-viewmodel", version.ref = "koin" } +kotlin-test-core = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" } kotlinx-coroutines-rx3 = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-rx3", version.ref = "kotlinx-coroutines-rx3" } kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization-json" } lisawray-groupie-core = { module = "com.github.lisawray.groupie:groupie", version.ref = "groupie" } @@ -137,7 +165,13 @@ zacsweers-autoservice-compiler = { module = "dev.zacsweers.autoservice:auto-serv [plugins] android-application = { id = "com.android.application", version.ref = "agp" } android-legacy-kapt = { id = "com.android.legacy-kapt", version.ref = "agp" } # Needed for statesaver +android-library = { id = "com.android.kotlin.multiplatform.library", version.ref = "agp" } google-ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" } +jetbrains-compose-multiplatform = { id = "org.jetbrains.compose", version.ref = "multiplatform" } +jetbrains-kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" } +jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } +jetbrains-kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" } jetbrains-kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize", version.ref = "kotlin" } jetbrains-kotlinx-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } +koin = { id = "io.insert-koin.compiler.plugin", version.ref = "koin-plugin" } sonarqube = { id = "org.sonarqube", version.ref = "sonarqube" } diff --git a/iosApp/Configuration/Config.xcconfig b/iosApp/Configuration/Config.xcconfig new file mode 100644 index 000000000..46d815851 --- /dev/null +++ b/iosApp/Configuration/Config.xcconfig @@ -0,0 +1,7 @@ +TEAM_ID= + +PRODUCT_NAME=NewPipe +PRODUCT_BUNDLE_IDENTIFIER=net.newpipe.app.NewPipe$(TEAM_ID) + +CURRENT_PROJECT_VERSION=1 +MARKETING_VERSION=1.0 \ No newline at end of file diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj new file mode 100644 index 000000000..59ffd37b9 --- /dev/null +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -0,0 +1,373 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXFileReference section */ + E903CDBEAD6067C2E88D0E13 /* NewPipe.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NewPipe.app; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ + 2D8686880DF217DCF0163629 /* Exceptions for "iosApp" folder in "iosApp" target */ = { + isa = PBXFileSystemSynchronizedBuildFileExceptionSet; + membershipExceptions = ( + Info.plist, + ); + target = CB7D703B7BE102A8C9442815 /* iosApp */; + }; +/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + ABCCA30A0B282AA0C430F5BD /* iosApp */ = { + isa = PBXFileSystemSynchronizedRootGroup; + exceptions = ( + 2D8686880DF217DCF0163629 /* Exceptions for "iosApp" folder in "iosApp" target */, + ); + path = iosApp; + sourceTree = ""; + }; + F0463985A41AA4941DD32D9F /* Configuration */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = Configuration; + sourceTree = ""; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + FDFBDD5BD804F728F46628B8 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 6ED4AC48A20C6EE0784AF47A = { + isa = PBXGroup; + children = ( + F0463985A41AA4941DD32D9F /* Configuration */, + ABCCA30A0B282AA0C430F5BD /* iosApp */, + 80BC5A75E8EEBCC3CC64764B /* Products */, + ); + sourceTree = ""; + }; + 80BC5A75E8EEBCC3CC64764B /* Products */ = { + isa = PBXGroup; + children = ( + E903CDBEAD6067C2E88D0E13 /* NewPipe.app */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CB7D703B7BE102A8C9442815 /* iosApp */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2E1AAB880620FB3FB6B50768 /* Build configuration list for PBXNativeTarget "iosApp" */; + buildPhases = ( + EEF9A261A7B4C71C731372F8 /* Compile Kotlin Framework */, + 388E86B7C80E4C58A395F32A /* Sources */, + FDFBDD5BD804F728F46628B8 /* Frameworks */, + 7B2130143F9C3DD4CB6AF311 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + ABCCA30A0B282AA0C430F5BD /* iosApp */, + ); + name = iosApp; + packageProductDependencies = ( + ); + productName = iosApp; + productReference = E903CDBEAD6067C2E88D0E13 /* NewPipe.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CE9DC708D8CDDFF57F3EFEE0 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1620; + LastUpgradeCheck = 1620; + TargetAttributes = { + CB7D703B7BE102A8C9442815 = { + CreatedOnToolsVersion = 16.2; + }; + }; + }; + buildConfigurationList = 116B11CF62B79F066B5E8101 /* Build configuration list for PBXProject "iosApp" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 6ED4AC48A20C6EE0784AF47A; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = 80BC5A75E8EEBCC3CC64764B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CB7D703B7BE102A8C9442815 /* iosApp */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 7B2130143F9C3DD4CB6AF311 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + EEF9A261A7B4C71C731372F8 /* Compile Kotlin Framework */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + name = "Compile Kotlin Framework"; + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "if [ \"YES\" = \"$OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED\" ]; then\n echo \"Skipping Gradle build task invocation due to OVERRIDE_KOTLIN_BUILD_IDE_SUPPORTED environment variable set to \\\"YES\\\"\"\n exit 0\nfi\ncd \"$SRCROOT/..\"\n./gradlew :composeApp:embedAndSignAppleFrameworkForXcode\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 388E86B7C80E4C58A395F32A /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 4CF1E65647AFD6A50CE8B9F1 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = F0463985A41AA4941DD32D9F /* Configuration */; + baseConfigurationReferenceRelativePath = Config.xcconfig; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 0665CA5FEC66700A6C35B2D1 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = F0463985A41AA4941DD32D9F /* Configuration */; + baseConfigurationReferenceRelativePath = Config.xcconfig; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_USER_SCRIPT_SANDBOXING = NO; + GCC_C_LANGUAGE_STANDARD = gnu17; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.2; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + F4EC259464D79C8283923A63 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = arm64; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\""; + DEVELOPMENT_TEAM = "${TEAM_ID}"; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = iosApp/Info.plist; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 263152656D22EC09900DE6E1 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = arm64; + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"iosApp/Preview Content\""; + DEVELOPMENT_TEAM = "${TEAM_ID}"; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = iosApp/Info.plist; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 116B11CF62B79F066B5E8101 /* Build configuration list for PBXProject "iosApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4CF1E65647AFD6A50CE8B9F1 /* Debug */, + 0665CA5FEC66700A6C35B2D1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2E1AAB880620FB3FB6B50768 /* Build configuration list for PBXNativeTarget "iosApp" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F4EC259464D79C8283923A63 /* Debug */, + 263152656D22EC09900DE6E1 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = CE9DC708D8CDDFF57F3EFEE0 /* Project object */; +} \ No newline at end of file diff --git a/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..919434a62 --- /dev/null +++ b/iosApp/iosApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json b/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 000000000..eb8789700 --- /dev/null +++ b/iosApp/iosApp/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json b/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..4e8d485bf --- /dev/null +++ b/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,36 @@ +{ + "images" : [ + { + "filename" : "app-icon-1024.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "tinted" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/app-icon-1024.png b/iosApp/iosApp/Assets.xcassets/AppIcon.appiconset/app-icon-1024.png new file mode 100644 index 0000000000000000000000000000000000000000..e143fc22303d3dbe0f202fa848cffa0e9f9ef6f7 GIT binary patch literal 13511 zcmeAS@N?(olHy`uVBq!ia0y~yU||4Z4mJh`hI(1;W(EcZ&H|6fVg?3oVGw3ym^DX& zfq{XsILO_JVcj{Immu}&j=qiz3>*8o|0J?9Ffj0yxJHx&=ckpFCl;kLxMim2CeGV9 zEt!GA#L3geF{Fa=?cKfIvFX!ZJS>ko%-X2Q)6`^?daFd?#iM_WTxo{_6WYTP+E*Rm zD`nDLBOKCNRv=Qw{xpEg@0RSGFZUKqKG~LRP*D(kRd2$?30;kgj&{t9x_xi$q_2VT z&mZ5dw&my0E?@M${MxP8^Z)%_eE*+6BLf3N)mw9r%U;-mI1EAp3=9km3XG$i(J&ZI z2cvmmIF<)~8~2&&WS6tCGBE7&VPLR0I(6#QO=c2P{{Q~}uYPCQ>o7)!20bALhI23e zuUS9+e%;s7&+7m97#L!e7#QXR`!F6caahB8q=bQip`?+4p}=vY*oWWte{V)HFfhzj zU|@)G+ASuacmTvT6=q;ad+_R*+h(x`zZn=9u6Qvp%vcz~zT@A6gt85pK%Tw{9lo8cN01H%k+ zMuvowx3)HLFoL<_j0_8e!p+TQZDqL6&cKi$$HLHX>WI~Wuk8G5Ss54%f|(c`T5oM_ zn8DF;l7WF?hYlmdf+RtvN4LSIfw|0n^LSYp8oC7-7_3yzvAJ=4sAXVaIOom4@M6X{ zh^-dkW;U}RvJ zh6QW#@~ose7%mhuF);K_PG|OIW?=Zz&%kg%`_V^v!2>rP7#ivX85k-SN3eHnZMb@S zHY-EJJ7ETfiq$h1BINmIcQ*V;P+(xVtIEJou!@7R(C9)G1A{|3Cj-Nr$Th4-Ob*&VEkAex1N;aqO6L55Sq=0*mFyNV191&VKP9*E!tc`?AAk)gr6v!D5x$$?+j0yr2L zR?J{vIN-A;FV8HU85A2=JQ)}g(!jA{z{|i8AkN6pFthu3y$b`#mjDos5|<WVp=0z_3}FfgxaN#h++y28J23j0_E{wq}D(jOk-waQK?U z1P;^Ff(#5VdZ20KoIeA@g5o4Dg=LIuSQ!}R%w=G3NRQ-ZV6d=eWN7fqzRpzlf4M!# zzzTLohK9HuyEZ<|QD8V=&B4I%#S7|;)hrAQRm(xnXqdsnz~I2Zu;927%aQG1BRLot zR0Li#2r|v#WnnN9W?=AmcCznD9!Q?t<;K9! zP@J`&KS7s);e`+*1B0H%GKM56g=UP-S>9;C~gJ@Js$>!20qJ5GXaJNHY^MbFBVuxODKX0!-mZuV-~}6 z`vVgu28NQD8X1FSjMuieIWaJN2xDSk_;Tdcvt^qb84g5)OjcGu&o+yVfx!=?w;k-F zn+^;MR2di?`j1*UtYKYq@1730z+w0jLyds|!wHb*RA6~&!ej;phLcC4 z9DJD9+?5nzP~c}|V3-so%`;2jL5>2$69onaha`Aj|EtEpz;O0BW3p62ZMFsrgM&XO z1H%D(cvg4#&jBiZz|jKA>VFj(7#Q+J`u}$@oMU5hum{OnBe@P#)Erou#FS8Lk)y`+ zsJW5B;X6ppOjnMM$&J^T7#38sFfcs0lccM#jPcq#9xjFpyi5!X1&P_sj>4e)(C`c7 zfTdf~nIAiY)yFY0Fc=8Gzq7#Px4*-C@T+E+>p3=GEC*RdXPX~<+?SOMw> zo$rMvt)K!ap%TPVgyi)IIZ$1-0+QDgHiBd{!FfGN_ra-CUW^RS zycrl6rfFS+!ZK!thV3Aioa^4&@WT$2Wh<;f%3I5H6`a7_xeN>pUrt@^ z?M(yM$PYr97#J>iZ{#cZd(b(Xk>LY3Ncq|_T?I9!BqIiJ!P9WBTR`AG+XgWP2T<;v z;I@X@g`;D0Bg2GV1_p*DMX9MvEu|&08TausIH)m!%A?=lvL^+U3|1Z$aqwXVr8IU1 zhj>l~28QEFx(fS1#Y4kBAqED9x{J`l$>BZ+sBkJOO9sy8Grlget)be=?E_5!i zGBGe5P@NmYEx^RE0#qUzC~p)4rTeWQ2c^Aua?{~51H%=N^)s4b6?_)RH)jIZFdvCJ z@apYZCWg~03=9lsBB7b=z;E+>F>w2aA;D3J<jz7ou|MRxoVXvjn$ItyG5?pLAV`Ko8NezCM61}Ik&##G*lV@jqu^Z%#0yBYz zNC5_h7jq(5f4tti`{{4}{Tsv_xDd5)%oI>PW;@$w*4Bo-b8{6N?saoEe0{iKCPxQ9 z8`FVGkj3}>ckh0>`@H>TF$XR|rbj6YwnExZ3&d}M6I~{Q5vV!G7O~q{gP}l-iGg8n zk;z;$P>nk2=&ghcEuidX(aXT#pnvqHLpEc|#d*9vS3#B49*|)E)@(*Y!33!W9;Aj( z1xV)o(Z~0r7-qtYoq|aW3=UFnqYf;-dzYyep2eFO7#y?=88__TeAkEN2s`t__poA; zg@GZcOF%%Kc`fS%S9nA^_<`!vqfrhm4b8t7Gu4UesYP5WblaZU& zd~ro2cZJnVkr%t6O(q9DP~E8%#`y2^Y5g^<6Wri!rv?967#My`jo|LcWXNVr*=QzV zqIlq@LqnY~1H%K|TU#5BA9rN$iz91Q;?hFg!aF#c*>=HlrZZ8dioY?hFhKmYc;K%)-sh=J2wtn83im zzq!;Skl^VFF7mR*KMs)G+3!v-5B1_m9+mWF)$pEsfy zGF_krCb*;q^%#^`WbVj|o=|}GKE%8k7#dWo3o9b{+!m+l9=PdXv;(P~5+MVswl9JL z)j}!2 zAo=jjGzJC+Sy*h9!wRv6n}Q4s3!Ia570$6maVx+Jvj#~428IR6x3)IC-~Z=O6oV!> z%mpShGQ{+N4Ema5lzENmTiLc&hM*2;>04k3Y9QP}WIw5md;*FJ=h&DE%0LYT2Wb93 z0ji^l%?z$F)yOkE$N@Dvz}=Jrvk5wo7_|V^0=6QMXhUi|t`}xtSTQetlm4+N2FasQ z4mI)zq8JW<8htM;vl&y0Kjkdg%Fr;Kg@M6iQ7m`Gmfg_`u=25CJ|_di1P>pEH}7-I zg&Ey1XEyRA$v*hi+gj(#?$`*UriGo%<^fXuhp z9KqeOx$zp)2_;Z^uaReX!OY0OU@^T+_W`7|1O+;z&jPM~4z$`JN=p$~o95pB%FPTV zpz1N^6jFS_n}t^H3=9l{S%7OXF?ei&D^DM0aL>J=wUe{q@7%X( zN)IxubSF64{8MJKkmk^t&A`B*69da?E04gNm8U_@^A-l>X})*;Tqy!bC1r#PBSXWh zzuzAwF5Dj{^Z&oCMDHw6!|J4xlfxXIEn*Bhpwjwl90!9YGz#IxC8(Fru)+((Z`jIU z6bWsG8i0z$0M%^9l*>>*AF$zIU~t%q>Ss`=|A3~ARl-ldb*w+sSR&!|!)8#^Z?0fA zV!ytJY*E|{pw`0@L1Bj9*0;~P9Jp8#rO*tGThM3&!vsG>{DErCC!i*LCcKi1 zJYsd={r@lN>CB3Xj0_AOZ;w7qw1majBXB=+0;q@%hy$09YTy#mfe+Mf;slk64A+=W zs35v^FVqLpi7=HvI~;#@vKd88qa9CK1w9KpB1xugYX_(|SQ2$c`RJrV|ck zFys};W;B!q*JKPcn6nvEM4^4`08oQGp%3JF=s?;PX9fm_h=wxV2N&PvHR`O(%P|4B zj!QxIh^eSCd@J8JyR%{O%PkIKu$K3R6p(#Qt{gwUP3~XII>8HEm>Wtm=*$DP6IC{f z2`D~z@Nb2K7<4=<;Ug$KRjZI|xK3!lA%cgIfnfpDTW})*xqbdwoq>TNMCBS&lGK4H zhMACF@MlnB4LJcS@)2$I&0xV(Q4Eo=dH`I*1?-%h&G_-6!-)q^K!zJgGchnYxF3mf z0JTgV)WBKkH$y=sNVt7VHsk&JpRHRNf;vkZUh~UEaW{B_g23v<&6G=PSl_(O;bvS? zSfu-4ue3Q=fgM=S-z~eN_x=83oXxmI2-2=U@Dmhsvat4@5vVT>uD~t`gRRR^xOwE} z0S-|2<2@*qfAImk#SENg58MU~^_BK5%eeeM^%;C@<$*r&&Tpv6P2ZbdI zEQeWCnq4qq0NI*(gyq1$b7jVY1txRFU{yi`sMFPuqQp}3`{eO!Odjgj7?X4pzJ5z< z>;W0G1YV)(AXf+Au8~8MJ|F+-gBe%Wuv$oasKM$31<)WuLp{{pHxF#JZf2?lMb!s> zSZ+&$4#a(#$-uyHARCn0s?7|-nAfm^$8Z?(Q*;~FAX>~Xz$TVk?GzJ`=WWpmGdG_N zs@1@CT!V2ZEVsdmt?QuNIwx|s*oVK<<0H5grdIrMXDKk7peM}0z+kZ*sr~2$Z#Ty( zgZfm7h&JTPBP<7g72JR{y0t;mk9x2%wiF>n1wXbZ?ge1sG;rNIhgW4bsN!w_`4%(| z#4uwexD4pI#@4LHVj=ATs^S>Z&P6dqZiNo&Z53o-V3;8d%6;gGWqJ+v(G^7lq^tfwLt*f6Nvp+^*yiA2h>4fKKMk`{jg_-G>i+oe5chI7y|b0|9`gq z@PgGz|1I+tyR$U-%=1$_d#bxXK1i660W`>I_@BQ|{@<~`Cy(v0hxlyfjnDm?(+in+ zjWUn_<#$`m1nz3?*iv@h-tAxS@5yH$f7~JYefx9&w;<2xJ-xMj`z-!HN7w(KaPneF z)HkqcFS$Ubb8md^ANJAv|G~e3pG)h(BWw-Dor3>weBNL7I;=70(M9?G`p5rDCW6w* z%p0H8H%ol}|MADe{5$g@u^HO)v;ND~>)-x(9^YYK3#ubOgnj#S^2`qVT2PFBm?iNs z-n#C`@g4Rl$#>?1`{)&}zdvk$?r(PN?@Q2dLPMKvy^--de^BGgq3Gj-{`UR0^+sKW z|M$*)TVyg<>;*`X!pd)J?%zrXP?-H=slD7k|6`AtB0*V-^JriFn_ss-t1m7)e}9Ml zO^{gUks1HnqYs0+{tjk_@BSa&yZhyl{B_l%C&*L9Nz?d7Xy;`QP#M{GJ?S^W*VD zc}9kcsSFGZ7lb!HmyiDj39z2uhhKv7ZQthS{$?6srHFq}`F%b7NpwQ1!2nUH@oD{hOblfcjEmr1{(W_OZVYnIP5Hf%CV(fnxNI ze>x~5hv*&qWB=<_cJ;p{SNeX-_qeg{0QEo?1VKY@Qv^SK%Jcp3Wm@AADr7*Sbxdr9sg-iU2rDy&Clc0|E|BgD^x-G@xK6eM$k~~ zo1e{v^(#6V7#IxL-~YdTHtoE9-QV_}q%-yT>APiom$QNg+zgz*{W+;u_p-nJ|KyK5 z7)n98I8DLrPx5*DV}BJ_gA)R1x`1KFl5Y?5&(B|zbmu>8+~W#psBOmriO>IEtX}{2 z=j1S0QUDJEGCVISOuekd7<3i(i`G>fQz|FolKb+>J_vhKql>E+q&WVA6!Rq8Z zdx`Jt;2dG43JT8c;C$2g8Puop%Q*jQEiW6ZQ8&CaX!s0r$g7*5+vgwu`}pDi6dOGT zaZrZ6+66Bs*WLYW{*FJU4b(bO|Mutl_O_>>;q(--$N%i_?2exI{=Im^X^{C@TdMyV ze#*Zy|IDL<@{j+WSDVaa0IJLbTC?Zh%d-3Me2x6fqaFVj=a=>VW-bQV;+=Y4zAo*K zJh+z;(IxS*-}Zm@_B_!OIv}_AGcbVr85;t={dt&v>~EthX!x`h9%?Tozq3yRjXOSj z2M@0=J-?a3)kLu{a(Jz11dRu}f&>5j{5SLb)KcryZ||_*P{PE(5c-+_*}IL;`R$G0 z@n3NRjZZ6qtOo_%+a3Q8W`rp z=m&3w2HTsYGyji+Q|f|j&=~vNb+uKi*YLN?{accLNB)HsBLhQ)a`nFtlM3q>@PibH ze)RtT>)M8x-KDD?%8vbQv=d}t@ca0E|6B1B2jwh1o)}J`H z!~Q}z69a=v+IjgnM4ixJC&a*@un1NY;94EgGy<}JK@ zTqyCK-2yaBV0CN<*ze%+_ZKrb807v3oVt8+$(#2%(%;!FltFWdKih3TWFPy>2&yg^ z76{)e{NH?W1w#R-U%_y-8eH6e`@^W`$H2g_APSzt*>~80YWY`3^#8JdcRzdmFXIee zkiaT%33lu+V;U&;F5ohJ_Wvf=aLmsmK2qxJ|E=lB1D_j#53_Qx}<=mwd!^k}pFvA^?u)mR&>Ky^z@M9&ZVUuoBO*gLR; zw8V52);HvV3VVy`plGvaf=nYb6sR5h%ec#zfq~&c2#5u8{4;zn?g`lkdncxDTpl)4oVNTQB?FUZR(a;V-C?QuzkXH%HAH{()Mq zLRRoR;~)p>UMRsEP7I*Zm0?l`s7~$u&HMy3nExfF=jZ>5KOfBB@lOB^f?Nnb_LtED zRN}u-eEg5$&n!^WLHXEU#tLarD}=r0H*azg%@lL(?R7|2)vck zFcTD%TFH0h8!ACDttH6+ui^)2WHl1x*=c8X*fVs48ofFb3+oxgTtS^srpNynbU^Oj z;Bf3OBWOhiLxLkbP#L@x85jag_fNRQe(WzJr~q@g%EGW~4Kzr>BS8l2{l_1t-HAWK zv;gG813a?6%TwQj${qQJTcB7r7TEtq{*Jt9{C9Tn{4K+Dk^X-bf26;&gC~0ru)-@I z@cI*m0>5K_8DA)YMhs+neltU6Z6qbWvx8@s8_Esd@jJwW49-uyBi{fjZy4%SkNx>x zw(a!Ak|>4+`k)3<{1N@XA3xL^$%!+(07b@w2uP@cnyU?0keUw+wV*zsCOoAw7=g;e zkfbC3FPiT@_LtEEl=3fu>`Vg<|5U>Yh7(?(wT7p6*fZ<_C5^o)cjOu3K=HRX>5e?Z zJBaYf4e4NpOJ%*-zK`kvqRvwgT20zi|;Gdd+c)_*y> zuCShA1!&?TW)_GwpMilPCIZ^@W>^6Vt2wg^>lt2vCRi=RAOC}l<$%kB1-C)<&D@^f z%#a!5Xxq6yr~aMWR#@M_bQcs1>kZ%WGyDau)!4fK|5^R>-O!da!wb-;T852W|Lns0 z>VJ^=6qRz5xzqN7YdVG(=AZ%PE<~vQ1r_T~A7Atz-(OhI0BVsnxF7-*v?iy4rRO&@ z187uzPGLQR0tW*FxG-p#3>rU;f=)-SgkSb2Bh(R%c+?5b|*~D1m}1GltK~ z3=A7g3}4AB|KIn8pTVG>iGhJzJo%sDJNe}Q3=E)|p94-mugWtdSh6rMh$;E~I=XIu z{9i`M3Z!*&zA=Lr4ji~+@s=H&+#6OFLGNs)Jp;I#5;Nm+9i;9n$ouI1e{p_a{a5*3E(V6X3JeSddVaqd!99`# zGeH(y$Yo++SYBl{bIN|X|F7OF*F)B7eFy_71J#fRq%GgFGhEPTVqjQbaEqT|!F(15 z1}U)YYzBq~kX4|R(+N^Fp`C$Y!W59uP7Vf!lOXd!i$5lGfP^YJ85lT!T$N{FU}RWu z9OO+4u!78WxX!`A@caqL zE1)$|7Rn$qUKlYlJmC4(FaHm$IQ9RR_ws+g)q|GkU&!9C$-uzi@E(-nNy*@#Rs6Ve wG*KnQr~#njZZxPy)4^yuAfaJF{p9jT-^;$O$ysMTXqKG8)78&qol`;+0EEnsPyhe` literal 0 HcmV?d00001 diff --git a/iosApp/iosApp/Assets.xcassets/Contents.json b/iosApp/iosApp/Assets.xcassets/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/iosApp/iosApp/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iosApp/iosApp/ContentView.swift b/iosApp/iosApp/ContentView.swift new file mode 100644 index 000000000..5ef00da8d --- /dev/null +++ b/iosApp/iosApp/ContentView.swift @@ -0,0 +1,21 @@ +import UIKit +import SwiftUI +import ComposeApp + +struct ComposeView: UIViewControllerRepresentable { + func makeUIViewController(context: Context) -> UIViewController { + MainViewControllerKt.mainViewController() + } + + func updateUIViewController(_ uiViewController: UIViewController, context: Context) {} +} + +struct ContentView: View { + var body: some View { + ComposeView() + .ignoresSafeArea() + } +} + + + diff --git a/iosApp/iosApp/Info.plist b/iosApp/iosApp/Info.plist new file mode 100644 index 000000000..11845e1da --- /dev/null +++ b/iosApp/iosApp/Info.plist @@ -0,0 +1,8 @@ + + + + + CADisableMinimumFrameDurationOnPhone + + + diff --git a/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json b/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/iosApp/iosApp/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/iosApp/iosApp/iOSApp.swift b/iosApp/iosApp/iOSApp.swift new file mode 100644 index 000000000..d83dca611 --- /dev/null +++ b/iosApp/iosApp/iOSApp.swift @@ -0,0 +1,10 @@ +import SwiftUI + +@main +struct iOSApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index 60a40c985..1b616793f 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -2,6 +2,7 @@ * SPDX-FileCopyrightText: 2025 NewPipe e.V. * SPDX-License-Identifier: GPL-3.0-or-later */ +enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") pluginManagement { repositories { @@ -19,7 +20,9 @@ dependencyResolutionManagement { maven(url = "https://repo.clojars.org") } } -include (":app") +include (":app") // androidApp +include(":desktopApp") +include("shared") // Use a local copy of NewPipe Extractor by uncommenting the lines below. // We assume, that NewPipe and NewPipe Extractor have the same parent directory. diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts new file mode 100644 index 000000000..8848e9ac5 --- /dev/null +++ b/shared/build.gradle.kts @@ -0,0 +1,117 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +plugins { + alias(libs.plugins.android.library) + alias(libs.plugins.jetbrains.kotlin.multiplatform) + alias(libs.plugins.jetbrains.kotlin.compose) + alias(libs.plugins.jetbrains.compose.multiplatform) + alias(libs.plugins.koin) +} + +kotlin { + jvmToolchain(21) + + compilerOptions { + optIn.addAll( + "androidx.compose.material3.ExperimentalMaterial3Api", + "androidx.compose.material3.ExperimentalMaterial3ExpressiveApi", + "androidx.compose.foundation.layout.ExperimentalLayoutApi" + ) + } + + android { + namespace = "net.newpipe.app" + compileSdk { + version = release(36) { + minorApiLevel = 1 + } + } + minSdk = 23 + androidResources { + enable = true + } + + optimization { + consumerKeepRules.apply { + publish = true + file("consumer-proguard-rules.pro") + } + } + + withHostTest { + isIncludeAndroidResources = true + } + withDeviceTestBuilder { + sourceSetTreeName = "test" + }.configure { + instrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + } + + listOf( + iosArm64(), + iosSimulatorArm64() + ).forEach { iosTarget -> + iosTarget.binaries.framework { + baseName = "ComposeApp" + isStatic = true + } + } + + jvm() + + sourceSets { + commonMain { + dependencies { + implementation(libs.jetbrains.compose.runtime) + implementation(libs.jetbrains.compose.foundation) + implementation(libs.jetbrains.compose.material3) + implementation(libs.jetbrains.compose.ui) + implementation(libs.jetbrains.compose.resources) + implementation(libs.jetbrains.compose.preview) + + implementation(libs.jetbrains.lifecycle.viewmodel) + + implementation(libs.jetbrains.navigation3.ui) + implementation(libs.jetbrains.lifecycle.navigation3) + + implementation(libs.koin.compose.viewmodel) + implementation(libs.koin.annotations) + } + } + commonTest.dependencies { + implementation(libs.kotlin.test.core) + implementation(libs.jetbrains.compose.test.ui) + } + androidMain.dependencies { + implementation(libs.jetbrains.compose.preview) + implementation(libs.androidx.activity) + } + val androidDeviceTest by getting { + dependencies { + implementation(libs.androidx.compose.test.ui.manifest) + implementation(libs.androidx.compose.test.ui.junit) + + // Needed because androidx.compose.test.ui.junit pulls an older dependency + // which crashes on new Android versions + implementation(libs.androidx.test.espresso.core) + } + } + val jvmTest by getting { + dependencies { + implementation(compose.desktop.currentOs) + } + } + } +} + +dependencies { + androidRuntimeClasspath(libs.jetbrains.compose.tooling) +} + +koinCompiler { + userLogs = true // See what the compiler plugin detects +} diff --git a/shared/consumer-proguard-rules.pro b/shared/consumer-proguard-rules.pro new file mode 100644 index 000000000..e0c18985c --- /dev/null +++ b/shared/consumer-proguard-rules.pro @@ -0,0 +1,6 @@ +# +# SPDX-FileCopyrightText: 2026 NewPipe e.V. +# SPDX-License-Identifier: GPL-3.0-or-later +# + +# Proguard rules for Android platform: https://developer.android.com/build/shrink-code diff --git a/shared/src/androidMain/AndroidManifest.xml b/shared/src/androidMain/AndroidManifest.xml new file mode 100644 index 000000000..ce4962141 --- /dev/null +++ b/shared/src/androidMain/AndroidManifest.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt b/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt new file mode 100644 index 000000000..dc1184db1 --- /dev/null +++ b/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt @@ -0,0 +1,25 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app + +import android.os.Bundle +import androidx.activity.ComponentActivity +import androidx.activity.compose.setContent +import androidx.activity.enableEdgeToEdge + +/** + * Entry point for compose-related UI components on Android + */ +class ComposeActivity : ComponentActivity() { + override fun onCreate(savedInstanceState: Bundle?) { + enableEdgeToEdge() + super.onCreate(savedInstanceState) + + setContent { + App() + } + } +} diff --git a/shared/src/commonMain/composeResources/values/strings.xml b/shared/src/commonMain/composeResources/values/strings.xml new file mode 100644 index 000000000..db4b09e00 --- /dev/null +++ b/shared/src/commonMain/composeResources/values/strings.xml @@ -0,0 +1,8 @@ + + + + NewPipe + diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/App.kt b/shared/src/commonMain/kotlin/net/newpipe/app/App.kt new file mode 100644 index 000000000..4cc36fc34 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/App.kt @@ -0,0 +1,22 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app + +import androidx.compose.runtime.Composable +import androidx.compose.ui.tooling.preview.Preview +import net.newpipe.app.di.KoinApp +import net.newpipe.app.theme.AppTheme +import org.koin.compose.KoinApplication +import org.koin.plugin.module.dsl.koinConfiguration + +@Composable +@Preview +fun App() { + KoinApplication(configuration = koinConfiguration()) { + AppTheme { + } + } +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/di/KoinApp.kt b/shared/src/commonMain/kotlin/net/newpipe/app/di/KoinApp.kt new file mode 100644 index 000000000..15f874cdb --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/di/KoinApp.kt @@ -0,0 +1,14 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.di + +import org.koin.core.annotation.KoinApplication + +/** + * Entry point for Koin-related configuration + */ +@KoinApplication +object KoinApp diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt new file mode 100644 index 000000000..5bb59ee2e --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt @@ -0,0 +1,81 @@ +/* + * SPDX-FileCopyrightText: 2024 NewPipe contributors + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.theme + +import androidx.compose.ui.graphics.Color + +val primaryLight = Color(0xFF904A45) +val onPrimaryLight = Color(0xFFFFFFFF) +val primaryContainerLight = Color(0xFFFFDAD6) +val onPrimaryContainerLight = Color(0xFF3B0908) +val secondaryLight = Color(0xFF775653) +val onSecondaryLight = Color(0xFFFFFFFF) +val secondaryContainerLight = Color(0xFFFFDAD6) +val onSecondaryContainerLight = Color(0xFF2C1513) +val tertiaryLight = Color(0xFF725B2E) +val onTertiaryLight = Color(0xFFFFFFFF) +val tertiaryContainerLight = Color(0xFFFEDEA6) +val onTertiaryContainerLight = Color(0xFF261900) +val errorLight = Color(0xFFBA1A1A) +val onErrorLight = Color(0xFFFFFFFF) +val errorContainerLight = Color(0xFFFFDAD6) +val onErrorContainerLight = Color(0xFF410002) +val backgroundLight = Color(0xFFFFF8F7) +val onBackgroundLight = Color(0xFF231918) +val surfaceLight = Color(0xFFFFF8F7) +val onSurfaceLight = Color(0xFF231918) +val surfaceVariantLight = Color(0xFFF5DDDB) +val onSurfaceVariantLight = Color(0xFF534342) +val outlineLight = Color(0xFF857371) +val outlineVariantLight = Color(0xFFD8C2BF) +val scrimLight = Color(0xFF000000) +val inverseSurfaceLight = Color(0xFF392E2D) +val inverseOnSurfaceLight = Color(0xFFFFEDEB) +val inversePrimaryLight = Color(0xFFFFB3AC) +val surfaceDimLight = Color(0xFFE8D6D4) +val surfaceBrightLight = Color(0xFFFFF8F7) +val surfaceContainerLowestLight = Color(0xFFFFFFFF) +val surfaceContainerLowLight = Color(0xFFFFF0EF) +val surfaceContainerLight = Color(0xFFFCEAE8) +val surfaceContainerHighLight = Color(0xFFF6E4E2) +val surfaceContainerHighestLight = Color(0xFFF1DEDC) + +val primaryDark = Color(0xFFFFB3AC) +val onPrimaryDark = Color(0xFF571E1B) +val primaryContainerDark = Color(0xFF73332F) +val onPrimaryContainerDark = Color(0xFFFFDAD6) +val secondaryDark = Color(0xFFE7BDB8) +val onSecondaryDark = Color(0xFF442927) +val secondaryContainerDark = Color(0xFF5D3F3C) +val onSecondaryContainerDark = Color(0xFFFFDAD6) +val tertiaryDark = Color(0xFFE1C38C) +val onTertiaryDark = Color(0xFF402D04) +val tertiaryContainerDark = Color(0xFF584419) +val onTertiaryContainerDark = Color(0xFFFEDEA6) +val errorDark = Color(0xFFFFB4AB) +val onErrorDark = Color(0xFF690005) +val errorContainerDark = Color(0xFF93000A) +val onErrorContainerDark = Color(0xFFFFDAD6) +val backgroundDark = Color(0xFF1A1110) +val onBackgroundDark = Color(0xFFF1DEDC) +val surfaceDark = Color(0xFF1A1110) +val onSurfaceDark = Color(0xFFF1DEDC) +val surfaceVariantDark = Color(0xFF534342) +val onSurfaceVariantDark = Color(0xFFD8C2BF) +val outlineDark = Color(0xFFA08C8A) +val outlineVariantDark = Color(0xFF534342) +val scrimDark = Color(0xFF000000) +val inverseSurfaceDark = Color(0xFFF1DEDC) +val inverseOnSurfaceDark = Color(0xFF392E2D) +val inversePrimaryDark = Color(0xFF904A45) +val surfaceDimDark = Color(0xFF1A1110) +val surfaceBrightDark = Color(0xFF423735) +val surfaceContainerLowestDark = Color(0xFF140C0B) +val surfaceContainerLowDark = Color(0xFF231918) +val surfaceContainerDark = Color(0xFF271D1C) +val surfaceContainerHighDark = Color(0xFF322827) +val surfaceContainerHighestDark = Color(0xFF3D3231) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt new file mode 100644 index 000000000..28088a6d0 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt @@ -0,0 +1,101 @@ +/* + * SPDX-FileCopyrightText: 2024 NewPipe contributors + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.theme + +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.MaterialExpressiveTheme +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable + +private val lightScheme = lightColorScheme( + primary = primaryLight, + onPrimary = onPrimaryLight, + primaryContainer = primaryContainerLight, + onPrimaryContainer = onPrimaryContainerLight, + secondary = secondaryLight, + onSecondary = onSecondaryLight, + secondaryContainer = secondaryContainerLight, + onSecondaryContainer = onSecondaryContainerLight, + tertiary = tertiaryLight, + onTertiary = onTertiaryLight, + tertiaryContainer = tertiaryContainerLight, + onTertiaryContainer = onTertiaryContainerLight, + error = errorLight, + onError = onErrorLight, + errorContainer = errorContainerLight, + onErrorContainer = onErrorContainerLight, + background = backgroundLight, + onBackground = onBackgroundLight, + surface = surfaceLight, + onSurface = onSurfaceLight, + surfaceVariant = surfaceVariantLight, + onSurfaceVariant = onSurfaceVariantLight, + outline = outlineLight, + outlineVariant = outlineVariantLight, + scrim = scrimLight, + inverseSurface = inverseSurfaceLight, + inverseOnSurface = inverseOnSurfaceLight, + inversePrimary = inversePrimaryLight, + surfaceDim = surfaceDimLight, + surfaceBright = surfaceBrightLight, + surfaceContainerLowest = surfaceContainerLowestLight, + surfaceContainerLow = surfaceContainerLowLight, + surfaceContainer = surfaceContainerLight, + surfaceContainerHigh = surfaceContainerHighLight, + surfaceContainerHighest = surfaceContainerHighestLight +) + +private val darkScheme = darkColorScheme( + primary = primaryDark, + onPrimary = onPrimaryDark, + primaryContainer = primaryContainerDark, + onPrimaryContainer = onPrimaryContainerDark, + secondary = secondaryDark, + onSecondary = onSecondaryDark, + secondaryContainer = secondaryContainerDark, + onSecondaryContainer = onSecondaryContainerDark, + tertiary = tertiaryDark, + onTertiary = onTertiaryDark, + tertiaryContainer = tertiaryContainerDark, + onTertiaryContainer = onTertiaryContainerDark, + error = errorDark, + onError = onErrorDark, + errorContainer = errorContainerDark, + onErrorContainer = onErrorContainerDark, + background = backgroundDark, + onBackground = onBackgroundDark, + surface = surfaceDark, + onSurface = onSurfaceDark, + surfaceVariant = surfaceVariantDark, + onSurfaceVariant = onSurfaceVariantDark, + outline = outlineDark, + outlineVariant = outlineVariantDark, + scrim = scrimDark, + inverseSurface = inverseSurfaceDark, + inverseOnSurface = inverseOnSurfaceDark, + inversePrimary = inversePrimaryDark, + surfaceDim = surfaceDimDark, + surfaceBright = surfaceBrightDark, + surfaceContainerLowest = surfaceContainerLowestDark, + surfaceContainerLow = surfaceContainerLowDark, + surfaceContainer = surfaceContainerDark, + surfaceContainerHigh = surfaceContainerHighDark, + surfaceContainerHighest = surfaceContainerHighestDark +) + +@Composable +fun AppTheme(useDarkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit) { + MaterialExpressiveTheme( + colorScheme = when { + !useDarkTheme -> lightScheme + else -> darkScheme + }, + content = content + ) +} diff --git a/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt b/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt new file mode 100644 index 000000000..9a1701c0f --- /dev/null +++ b/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app + +import androidx.compose.ui.window.ComposeUIViewController + +fun mainViewController() = ComposeUIViewController { App() } From 909bd347a792306447da34dfb19d2c487cc18444 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Fri, 20 Mar 2026 19:18:51 +0800 Subject: [PATCH 02/41] Setup multiplatform settings with KMP and theme Signed-off-by: Aayush Gupta --- gradle/libs.versions.toml | 2 + shared/build.gradle.kts | 6 +++ .../newpipe/app/di/settings/SettingsModule.kt | 0 .../newpipe/app/di/settings/SettingsModule.kt | 0 .../kotlin/net/newpipe/app/theme/Theme.kt | 46 ++++++++++++++++--- .../newpipe/app/di/settings/SettingsModule.kt | 0 .../newpipe/app/di/settings/SettingsModule.kt | 0 7 files changed, 48 insertions(+), 6 deletions(-) create mode 100644 shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt create mode 100644 shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt create mode 100644 shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 67eba5cbf..85ee408bc 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -55,6 +55,7 @@ runner = "1.7.0" rxandroid = "3.0.2" rxbinding = "4.0.0" rxjava = "3.1.12" +settings = "1.3.0" sonarqube = "7.3.0.8198" statesaver = "1.4.1" # TODO: Drop because it is deprecated and incompatible with KSP2 stetho = "1.6.0" @@ -156,6 +157,7 @@ pinterest-ktlint = { module = "com.pinterest.ktlint:ktlint-cli", version.ref = " puppycrawl-checkstyle = { module = "com.puppycrawl.tools:checkstyle", version.ref = "checkstyle" } reactivex-rxandroid = { module = "io.reactivex.rxjava3:rxandroid", version.ref = "rxandroid" } reactivex-rxjava = { module = "io.reactivex.rxjava3:rxjava", version.ref = "rxjava" } +russhwolf-settings = { module = "com.russhwolf:multiplatform-settings", version.ref = "settings" } squareup-leakcanary-core = { module = "com.squareup.leakcanary:leakcanary-android-core", version.ref = "leakcanary" } squareup-leakcanary-plumber = { module = "com.squareup.leakcanary:plumber-android", version.ref = "leakcanary" } squareup-leakcanary-watcher = { module = "com.squareup.leakcanary:leakcanary-object-watcher-android", version.ref = "leakcanary" } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 8848e9ac5..2cd31027e 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -15,6 +15,9 @@ kotlin { jvmToolchain(21) compilerOptions { + freeCompilerArgs.addAll( + "-Xexpect-actual-classes" + ) optIn.addAll( "androidx.compose.material3.ExperimentalMaterial3Api", "androidx.compose.material3.ExperimentalMaterial3ExpressiveApi", @@ -80,6 +83,8 @@ kotlin { implementation(libs.koin.compose.viewmodel) implementation(libs.koin.annotations) + + implementation(libs.russhwolf.settings) } } commonTest.dependencies { @@ -89,6 +94,7 @@ kotlin { androidMain.dependencies { implementation(libs.jetbrains.compose.preview) implementation(libs.androidx.activity) + implementation(libs.androidx.preference) } val androidDeviceTest by getting { dependencies { diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt new file mode 100644 index 000000000..e69de29bb diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt new file mode 100644 index 000000000..e69de29bb diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt index 28088a6d0..5500ffeff 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt @@ -7,11 +7,15 @@ package net.newpipe.app.theme import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.ColorScheme import androidx.compose.material3.MaterialExpressiveTheme -import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme import androidx.compose.material3.lightColorScheme import androidx.compose.runtime.Composable +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.platform.LocalInspectionMode +import com.russhwolf.settings.Settings +import org.koin.compose.koinInject private val lightScheme = lightColorScheme( primary = primaryLight, @@ -89,13 +93,43 @@ private val darkScheme = darkColorScheme( surfaceContainerHighest = surfaceContainerHighestDark ) +private val blackScheme = darkScheme.copy(surface = Color.Black) + +/** + * Gets current color scheme chosen by the user + */ @Composable -fun AppTheme(useDarkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit) { +fun currentColorScheme( + useDarkTheme: Boolean = isSystemInDarkTheme(), + settings: Settings = koinInject() +): ColorScheme { + val nightScheme = when (settings.getString("night_theme", "dark_theme")) { + "black_theme" -> blackScheme + else -> darkScheme + } + + return when (settings.getString("theme", "auto_device_theme")) { + "light_theme" -> lightScheme + "dark_theme" -> darkScheme + "black_theme" -> blackScheme + else -> if (!useDarkTheme) lightScheme else nightScheme + } +} + +/** + * Default app theme for the NewPipe composables + * @param isPreview Whether the theme is being used in preview mode + * @param colorScheme Color scheme to use for theme, defaults to light in preview mode + * @param content Composable content to show to the user + */ +@Composable +fun AppTheme( + isPreview: Boolean = LocalInspectionMode.current, + colorScheme: ColorScheme = if (isPreview) lightScheme else currentColorScheme(), + content: @Composable () -> Unit +) { MaterialExpressiveTheme( - colorScheme = when { - !useDarkTheme -> lightScheme - else -> darkScheme - }, + colorScheme = colorScheme, content = content ) } diff --git a/shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt new file mode 100644 index 000000000..e69de29bb diff --git a/shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt new file mode 100644 index 000000000..e69de29bb From 89d55ede7292cb63bfc009de2687f677b8e06f32 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Mon, 4 May 2026 00:18:15 +0800 Subject: [PATCH 03/41] Initial setup for navigation display with nav3 Signed-off-by: Aayush Gupta --- shared/build.gradle.kts | 2 ++ .../kotlin/net/newpipe/Constants.kt | 11 +++++++ .../kotlin/net/newpipe/app/ComposeActivity.kt | 10 +++++- .../net/newpipe/app/extensions/Context.kt | 22 +++++++++++++ .../commonMain/kotlin/net/newpipe/app/App.kt | 9 ++++-- .../net/newpipe/app/navigation/NavDisplay.kt | 26 ++++++++++++++++ .../net/newpipe/app/navigation/Screen.kt | 31 +++++++++++++++++++ 7 files changed, 107 insertions(+), 4 deletions(-) create mode 100644 shared/src/androidMain/kotlin/net/newpipe/Constants.kt create mode 100644 shared/src/androidMain/kotlin/net/newpipe/app/extensions/Context.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 2cd31027e..02926cfab 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -9,6 +9,7 @@ plugins { alias(libs.plugins.jetbrains.kotlin.compose) alias(libs.plugins.jetbrains.compose.multiplatform) alias(libs.plugins.koin) + alias(libs.plugins.jetbrains.kotlinx.serialization) } kotlin { @@ -80,6 +81,7 @@ kotlin { implementation(libs.jetbrains.navigation3.ui) implementation(libs.jetbrains.lifecycle.navigation3) + implementation(libs.kotlinx.serialization.json) implementation(libs.koin.compose.viewmodel) implementation(libs.koin.annotations) diff --git a/shared/src/androidMain/kotlin/net/newpipe/Constants.kt b/shared/src/androidMain/kotlin/net/newpipe/Constants.kt new file mode 100644 index 000000000..164256943 --- /dev/null +++ b/shared/src/androidMain/kotlin/net/newpipe/Constants.kt @@ -0,0 +1,11 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe + +object Constants { + + const val INTENT_SCREEN_KEY = "SCREEN" +} diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt b/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt index dc1184db1..ccd7893a0 100644 --- a/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt +++ b/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt @@ -9,6 +9,9 @@ import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge +import kotlinx.serialization.json.Json +import net.newpipe.Constants +import net.newpipe.app.navigation.Screen /** * Entry point for compose-related UI components on Android @@ -19,7 +22,12 @@ class ComposeActivity : ComponentActivity() { super.onCreate(savedInstanceState) setContent { - App() + App( + // TODO: Change when everything is in compose and this is the primary activity + startDestination = Json.decodeFromString( + intent.getStringExtra(Constants.INTENT_SCREEN_KEY)!! + ) + ) } } } diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/extensions/Context.kt b/shared/src/androidMain/kotlin/net/newpipe/app/extensions/Context.kt new file mode 100644 index 000000000..638d10dcb --- /dev/null +++ b/shared/src/androidMain/kotlin/net/newpipe/app/extensions/Context.kt @@ -0,0 +1,22 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.extensions + +import android.content.Context +import android.content.Intent +import kotlin.jvm.java +import kotlinx.serialization.json.Json +import net.newpipe.Constants +import net.newpipe.app.ComposeActivity +import net.newpipe.app.navigation.Screen + +/** + * Navigates to a given compose destination + */ +fun Context.navigateTo(screen: Screen) = Intent(this, ComposeActivity::class.java).also { intent -> + intent.putExtra(Constants.INTENT_SCREEN_KEY, Json.encodeToString(screen)) + startActivity(intent) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/App.kt b/shared/src/commonMain/kotlin/net/newpipe/app/App.kt index 4cc36fc34..81cdbce63 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/App.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/App.kt @@ -6,15 +6,18 @@ package net.newpipe.app import androidx.compose.runtime.Composable -import androidx.compose.ui.tooling.preview.Preview import net.newpipe.app.di.KoinApp +import net.newpipe.app.navigation.Screen import net.newpipe.app.theme.AppTheme import org.koin.compose.KoinApplication import org.koin.plugin.module.dsl.koinConfiguration +/** + * Entry point for the multiplatform compose application + * @param startDestination Starting destination for the app + */ @Composable -@Preview -fun App() { +fun App(startDestination: Screen? = null) { KoinApplication(configuration = koinConfiguration()) { AppTheme { } diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt new file mode 100644 index 000000000..8592b20b9 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt @@ -0,0 +1,26 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.navigation + +import androidx.compose.runtime.Composable +import androidx.navigation3.runtime.entryProvider +import androidx.navigation3.runtime.rememberNavBackStack +import androidx.navigation3.ui.NavDisplay + +/** + * Navigation display for compose screens + * @param startDestination Starting destination for the app + */ +@Composable +fun NavDisplay(startDestination: Screen) { + val backstack = rememberNavBackStack(screenConfig, startDestination) + + NavDisplay( + backStack = backstack, + entryProvider = entryProvider { + } + ) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt new file mode 100644 index 000000000..6f5822a50 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt @@ -0,0 +1,31 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.navigation + +import androidx.navigation3.runtime.NavKey +import androidx.savedstate.serialization.SavedStateConfiguration +import kotlinx.serialization.ExperimentalSerializationApi +import kotlinx.serialization.Serializable +import kotlinx.serialization.modules.SerializersModule +import kotlinx.serialization.modules.polymorphic + +/** + * Destinations for navigation in compose + */ +@Serializable +sealed interface Screen : NavKey + +/** + * Saved state configuration for screens + */ +@OptIn(ExperimentalSerializationApi::class) +internal val screenConfig = SavedStateConfiguration { + serializersModule = SerializersModule { + polymorphic(NavKey::class) { + subclassesOfSealed() + } + } +} From 53f36154aa3d0b5f2251c5b387fcb47d7cea8437 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Thu, 7 May 2026 12:38:52 +0800 Subject: [PATCH 04/41] Switch to new syntax for declaring SDK versions Current ones are planned to be deprecated in AGP 10.x Signed-off-by: Aayush Gupta --- app/build.gradle.kts | 14 +++++++++++--- shared/build.gradle.kts | 4 +++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 390977147..748a1ba83 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -30,14 +30,22 @@ kotlin { } configure { - compileSdk = 36 + compileSdk { + version = release(36) { + minorApiLevel = 1 + } + } namespace = "org.schabi.newpipe" defaultConfig { applicationId = "org.schabi.newpipe" resValue("string", "app_name", "NewPipe") - minSdk = 23 - targetSdk = 35 + minSdk { + version = release(23) + } + targetSdk { + version = release(35) + } versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1011 diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 02926cfab..d15436466 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -33,7 +33,9 @@ kotlin { minorApiLevel = 1 } } - minSdk = 23 + minSdk { + version = release(23) + } androidResources { enable = true } From d1bc8c23cfc5e4dbc372a68317f6727210995f5d Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Mon, 11 May 2026 16:45:56 +0800 Subject: [PATCH 05/41] Better share version information between modules Move important version properties to buildSrc directory to access between modules as needed. Also add a simple task to generate a simple BuildConfig class to access version name. This is better than adding dependency on a third-party library/plugin. Signed-off-by: Aayush Gupta --- app/build.gradle.kts | 16 +++++++------- buildSrc/src/main/kotlin/ProjectConfig.kt | 15 +++++++++++++ desktopApp/build.gradle.kts | 4 ++-- shared/build.gradle.kts | 27 +++++++++++++++++++---- 4 files changed, 48 insertions(+), 14 deletions(-) create mode 100644 buildSrc/src/main/kotlin/ProjectConfig.kt diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 748a1ba83..22ec75bed 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -31,25 +31,25 @@ kotlin { configure { compileSdk { - version = release(36) { - minorApiLevel = 1 + version = release(NEWPIPE_VERSION_SDK_COMPILE_MAJOR) { + minorApiLevel = NEWPIPE_VERSION_SDK_COMPILE_MINOR } } - namespace = "org.schabi.newpipe" + namespace = NEWPIPE_APPLICATION_ID_OLD defaultConfig { - applicationId = "org.schabi.newpipe" + applicationId = NEWPIPE_APPLICATION_ID_OLD resValue("string", "app_name", "NewPipe") minSdk { - version = release(23) + version = release(NEWPIPE_VERSION_SDK_MIN) } targetSdk { - version = release(35) + version = release(NEWPIPE_VERSION_SDK_TARGET) } - versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1011 + versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: NEWPIPE_VERSION_CODE - versionName = "0.28.6" + versionName = NEWPIPE_VERSION_NAME System.getProperty("versionNameSuffix")?.let { versionNameSuffix = it } testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" diff --git a/buildSrc/src/main/kotlin/ProjectConfig.kt b/buildSrc/src/main/kotlin/ProjectConfig.kt new file mode 100644 index 000000000..30a004c81 --- /dev/null +++ b/buildSrc/src/main/kotlin/ProjectConfig.kt @@ -0,0 +1,15 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +const val NEWPIPE_VERSION_SDK_COMPILE_MAJOR = 36 +const val NEWPIPE_VERSION_SDK_COMPILE_MINOR = 1 +const val NEWPIPE_VERSION_SDK_MIN = 23 +const val NEWPIPE_VERSION_SDK_TARGET = 35 + +const val NEWPIPE_VERSION_CODE = 1011 +const val NEWPIPE_VERSION_NAME = "0.28.6" + +const val NEWPIPE_APPLICATION_ID_OLD = "org.schabi.newpipe" +const val NEWPIPE_APPLICATION_ID_NEW = "net.newpipe.app" diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts index 910d73647..a9d82ae0e 100644 --- a/desktopApp/build.gradle.kts +++ b/desktopApp/build.gradle.kts @@ -25,8 +25,8 @@ compose.desktop { nativeDistributions { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) - packageName = "net.newpipe.app" - packageVersion = "1.0.0" + packageName = NEWPIPE_APPLICATION_ID_NEW + packageVersion = NEWPIPE_VERSION_NAME } } } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index d15436466..f52e7a208 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -12,6 +12,24 @@ plugins { alias(libs.plugins.jetbrains.kotlinx.serialization) } +// Better than adding a third-party dependency for something as simple as this +// https://stackoverflow.com/a/74771876/8446131 +val buildConfigGenerator by tasks.registering(Sync::class) { + val buildConfigPackage = NEWPIPE_APPLICATION_ID_NEW + val rawClass = """ + package $buildConfigPackage + + object BuildConfig { + const val VERSION_NAME = "$NEWPIPE_VERSION_NAME" + } + """.trimIndent() + from(resources.text.fromString(rawClass)) { + rename { "BuildConfig.kt" } + into(buildConfigPackage.replace(".", "/")) + } + into(layout.buildDirectory.dir("generated/kotlin/")) +} + kotlin { jvmToolchain(21) @@ -27,14 +45,14 @@ kotlin { } android { - namespace = "net.newpipe.app" + namespace = NEWPIPE_APPLICATION_ID_NEW compileSdk { - version = release(36) { - minorApiLevel = 1 + version = release(NEWPIPE_VERSION_SDK_COMPILE_MAJOR) { + minorApiLevel = NEWPIPE_VERSION_SDK_COMPILE_MINOR } } minSdk { - version = release(23) + version = release(NEWPIPE_VERSION_SDK_MIN) } androidResources { enable = true @@ -71,6 +89,7 @@ kotlin { sourceSets { commonMain { + kotlin.srcDir(buildConfigGenerator.map { it.destinationDir }) dependencies { implementation(libs.jetbrains.compose.runtime) implementation(libs.jetbrains.compose.foundation) From abf97404a0ecfe16567f36728ba775c017ef0d6e Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Fri, 22 May 2026 20:21:55 +0800 Subject: [PATCH 06/41] proguard-rules: Keep resource classes for prettytime Signed-off-by: Aayush Gupta --- app/proguard-rules.pro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro index 61c0d06d0..6d1f5d9be 100644 --- a/app/proguard-rules.pro +++ b/app/proguard-rules.pro @@ -54,3 +54,6 @@ -keepclasseswithmembers class org.schabi.newpipe.** { kotlinx.serialization.KSerializer serializer(...); } + +# See https://github.com/TeamNewPipe/NewPipe/issues/13508 +-keep class org.ocpsoft.prettytime.i18n.Resources* { *; } From 0f2bbf11ff7362cfc88f2419a8e0b2cc88650396 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Fri, 22 May 2026 18:29:13 +0800 Subject: [PATCH 07/41] shared: Add top app bar composable to reflect different active services Signed-off-by: Aayush Gupta --- gradle/libs.versions.toml | 3 +- shared/build.gradle.kts | 3 +- .../drawable/ic_arrow_back.xml | 15 ++ .../composeResources/values/strings.xml | 3 + .../kotlin/net/newpipe/app/Constants.kt | 10 ++ .../net/newpipe/app/composable/TopAppBar.kt | 71 ++++++++ .../app/preview/ThemePreviewProvider.kt | 24 +++ .../net/newpipe/app/theme/ServiceTheme.kt | 163 ++++++++++++++++++ .../newpipe/app/composable/TopAppBarTest.kt | 68 ++++++++ .../newpipe/app/extensions/ComposeUiTest.kt | 43 +++++ .../net/newpipe/app/theme/ServiceThemeTest.kt | 52 ++++++ 11 files changed, 453 insertions(+), 2 deletions(-) create mode 100644 shared/src/commonMain/composeResources/drawable/ic_arrow_back.xml create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/composable/TopAppBar.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/preview/ThemePreviewProvider.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/theme/ServiceTheme.kt create mode 100644 shared/src/commonTest/kotlin/net/newpipe/app/composable/TopAppBarTest.kt create mode 100644 shared/src/commonTest/kotlin/net/newpipe/app/extensions/ComposeUiTest.kt create mode 100644 shared/src/commonTest/kotlin/net/newpipe/app/theme/ServiceThemeTest.kt diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 85ee408bc..a0ca594fb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -157,7 +157,8 @@ pinterest-ktlint = { module = "com.pinterest.ktlint:ktlint-cli", version.ref = " puppycrawl-checkstyle = { module = "com.puppycrawl.tools:checkstyle", version.ref = "checkstyle" } reactivex-rxandroid = { module = "io.reactivex.rxjava3:rxandroid", version.ref = "rxandroid" } reactivex-rxjava = { module = "io.reactivex.rxjava3:rxjava", version.ref = "rxjava" } -russhwolf-settings = { module = "com.russhwolf:multiplatform-settings", version.ref = "settings" } +russhwolf-settings-core = { module = "com.russhwolf:multiplatform-settings", version.ref = "settings" } +russhwolf-settings-test = { module = "com.russhwolf:multiplatform-settings-test", version.ref = "settings" } squareup-leakcanary-core = { module = "com.squareup.leakcanary:leakcanary-android-core", version.ref = "leakcanary" } squareup-leakcanary-plumber = { module = "com.squareup.leakcanary:plumber-android", version.ref = "leakcanary" } squareup-leakcanary-watcher = { module = "com.squareup.leakcanary:leakcanary-object-watcher-android", version.ref = "leakcanary" } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index f52e7a208..de7c8eb07 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -107,12 +107,13 @@ kotlin { implementation(libs.koin.compose.viewmodel) implementation(libs.koin.annotations) - implementation(libs.russhwolf.settings) + implementation(libs.russhwolf.settings.core) } } commonTest.dependencies { implementation(libs.kotlin.test.core) implementation(libs.jetbrains.compose.test.ui) + implementation(libs.russhwolf.settings.test) } androidMain.dependencies { implementation(libs.jetbrains.compose.preview) diff --git a/shared/src/commonMain/composeResources/drawable/ic_arrow_back.xml b/shared/src/commonMain/composeResources/drawable/ic_arrow_back.xml new file mode 100644 index 000000000..fb58b74b1 --- /dev/null +++ b/shared/src/commonMain/composeResources/drawable/ic_arrow_back.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/shared/src/commonMain/composeResources/values/strings.xml b/shared/src/commonMain/composeResources/values/strings.xml index db4b09e00..74b75e7cd 100644 --- a/shared/src/commonMain/composeResources/values/strings.xml +++ b/shared/src/commonMain/composeResources/values/strings.xml @@ -5,4 +5,7 @@ --> NewPipe + + + Back diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt b/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt new file mode 100644 index 000000000..757f644a1 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt @@ -0,0 +1,10 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app + +object Constants { + const val KEY_STREAMING_SERVICE = "service" +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/composable/TopAppBar.kt b/shared/src/commonMain/kotlin/net/newpipe/app/composable/TopAppBar.kt new file mode 100644 index 000000000..989810a55 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/composable/TopAppBar.kt @@ -0,0 +1,71 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.composable + +import androidx.compose.foundation.layout.RowScope +import androidx.compose.material3.Icon +import androidx.compose.material3.IconButton +import androidx.compose.material3.Text +import androidx.compose.material3.TopAppBar +import androidx.compose.material3.TopAppBarColors +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.graphics.painter.Painter +import androidx.compose.ui.tooling.preview.PreviewLightDark +import androidx.compose.ui.tooling.preview.PreviewWrapper +import net.newpipe.app.preview.ThemePreviewProvider +import net.newpipe.app.theme.currentServiceTopAppBarColors +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.app_name +import newpipe.shared.generated.resources.ic_arrow_back +import newpipe.shared.generated.resources.navigate_back +import org.jetbrains.compose.resources.painterResource +import org.jetbrains.compose.resources.stringResource + +/** + * A top app bar composable to be used with Scaffold + * @param modifier The modifier to be applied to the composable + * @param title Title of the screen + * @param navigationIcon Icon for the navigation button + * @param onNavigateUp Action when user clicks the navigation icon + * @param actions Actions to display on the top app bar (for e.g. menu) + */ +@Composable +fun TopAppBar( + modifier: Modifier = Modifier, + title: String? = null, + navigationIcon: Painter = painterResource(Res.drawable.ic_arrow_back), + onNavigateUp: (() -> Unit)? = null, + colors: TopAppBarColors = currentServiceTopAppBarColors(), + actions: @Composable (RowScope.() -> Unit) = {} +) { + TopAppBar( + modifier = modifier, + colors = colors, + title = { if (title != null) Text(text = title) }, + navigationIcon = { + if (onNavigateUp != null) { + IconButton(onClick = onNavigateUp) { + Icon( + painter = navigationIcon, + contentDescription = stringResource(Res.string.navigate_back) + ) + } + } + }, + actions = actions + ) +} + +@PreviewWrapper(ThemePreviewProvider::class) +@PreviewLightDark +@Composable +private fun TopAppBarPreview() { + TopAppBar( + title = stringResource(Res.string.app_name), + onNavigateUp = {} + ) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/preview/ThemePreviewProvider.kt b/shared/src/commonMain/kotlin/net/newpipe/app/preview/ThemePreviewProvider.kt new file mode 100644 index 000000000..9c29869b1 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/preview/ThemePreviewProvider.kt @@ -0,0 +1,24 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.preview + +import androidx.compose.material3.Surface +import androidx.compose.runtime.Composable +import androidx.compose.ui.tooling.preview.PreviewWrapperProvider +import net.newpipe.app.theme.AppTheme + +/** + * Default preview provider for composables + */ +class ThemePreviewProvider : PreviewWrapperProvider { + + @Composable + override fun Wrap(content: @Composable (() -> Unit)) { + AppTheme { + Surface(content = content) + } + } +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/ServiceTheme.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/ServiceTheme.kt new file mode 100644 index 000000000..bc79ab34e --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/ServiceTheme.kt @@ -0,0 +1,163 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.theme + +import androidx.compose.foundation.isSystemInDarkTheme +import androidx.compose.material3.ColorScheme +import androidx.compose.material3.TopAppBarColors +import androidx.compose.material3.TopAppBarDefaults +import androidx.compose.material3.darkColorScheme +import androidx.compose.material3.lightColorScheme +import androidx.compose.runtime.Composable +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.platform.LocalInspectionMode +import com.russhwolf.settings.Settings +import net.newpipe.app.Constants.KEY_STREAMING_SERVICE +import org.koin.compose.koinInject + +val youTubeLightScheme = lightColorScheme( + primaryContainer = Color(0xFFE53935), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val youTubeDarkScheme = darkColorScheme( + primaryContainer = Color(0xFF992722), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val soundCloudLightScheme = lightColorScheme( + primaryContainer = Color(0xFFF57C00), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val soundCloudDarkScheme = darkColorScheme( + primaryContainer = Color(0xFFA35300), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val mediaCCCLightScheme = lightColorScheme( + primaryContainer = Color(0xFF9E9E9E), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val mediaCCCDarkScheme = darkColorScheme( + primaryContainer = Color(0xFF878787), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val peerTubeLightScheme = lightColorScheme( + primaryContainer = Color(0xFFFF6F00), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val peerTubeDarkScheme = darkColorScheme( + primaryContainer = Color(0xFFA34700), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val bandCampLightScheme = lightColorScheme( + primaryContainer = Color(0xFF17A0C4), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +val bandCampDarkScheme = darkColorScheme( + primaryContainer = Color(0xFF1383A1), + onPrimaryContainer = Color(0xFFFFFFFF) +) + +/** + * Supported services in the NewPipe app and minor information about them for UI decisions. + * @property serviceId ID of the service as defined in NewPipeExtractor + * @property serviceName Name of the service as defined in NewPipeExtractor + * @property lightScheme Light color scheme to reflect the brand + * @property darkScheme Dark color scheme to reflect the brand + * @property isSchemeColorDensityLight Whether this brand's color schemes are of lighter density. + */ +enum class Service( + val serviceId: Int, + val serviceName: String, + val lightScheme: ColorScheme, + val darkScheme: ColorScheme, + val isSchemeColorDensityLight: Boolean = false +) { + YOUTUBE( + serviceId = 0, + serviceName = "YouTube", + lightScheme = youTubeLightScheme, + darkScheme = youTubeDarkScheme + ), + SOUNDCLOUD( + serviceId = 1, + serviceName = "SoundCloud", + lightScheme = soundCloudLightScheme, + darkScheme = soundCloudDarkScheme + ), + MEDIA_CCC( + serviceId = 2, + serviceName = "media.ccc.de", + lightScheme = mediaCCCLightScheme, + darkScheme = mediaCCCDarkScheme + ), + PEERTUBE( + serviceId = 3, + serviceName = "PeerTube", + lightScheme = peerTubeLightScheme, + darkScheme = peerTubeDarkScheme + ), + BANDCAMP( + serviceId = 4, + serviceName = "Bandcamp", + lightScheme = bandCampLightScheme, + darkScheme = bandCampDarkScheme + ) +} + +/** + * Currently active/selected service by user + */ +@Composable +fun currentService(settings: Settings = koinInject()): Service { + return Service.entries.find { service -> + service.serviceName == settings.getString( + KEY_STREAMING_SERVICE, + Service.YOUTUBE.serviceName + ) + }!! +} + +/** + * Currently active/selected service's color that can be used to represent it. + * Fallbacks to YouTube on preview. + */ +@Composable +fun currentServiceScheme( + isPreview: Boolean = LocalInspectionMode.current, + useDarkTheme: Boolean = isSystemInDarkTheme(), + service: Service = if (isPreview) Service.YOUTUBE else currentService() +): ColorScheme { + return when { + useDarkTheme -> service.darkScheme + else -> service.lightScheme + } +} + +/** + * Top app bar colors to represent the currently active service. + * Fallbacks to YouTube on preview. + */ +@Composable +fun currentServiceTopAppBarColors( + serviceScheme: ColorScheme = currentServiceScheme() +): TopAppBarColors { + return TopAppBarDefaults.topAppBarColors( + containerColor = serviceScheme.primaryContainer, + scrolledContainerColor = serviceScheme.primaryContainer, + navigationIconContentColor = serviceScheme.onPrimaryContainer, + titleContentColor = serviceScheme.onPrimaryContainer, + subtitleContentColor = serviceScheme.onPrimaryContainer, + actionIconContentColor = serviceScheme.onPrimaryContainer + ) +} diff --git a/shared/src/commonTest/kotlin/net/newpipe/app/composable/TopAppBarTest.kt b/shared/src/commonTest/kotlin/net/newpipe/app/composable/TopAppBarTest.kt new file mode 100644 index 000000000..e8dabe314 --- /dev/null +++ b/shared/src/commonTest/kotlin/net/newpipe/app/composable/TopAppBarTest.kt @@ -0,0 +1,68 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.composable + +import androidx.compose.ui.test.ExperimentalTestApi +import androidx.compose.ui.test.assertIsDisplayed +import androidx.compose.ui.test.onNodeWithContentDescription +import androidx.compose.ui.test.onNodeWithText +import androidx.compose.ui.test.performClick +import androidx.compose.ui.test.v2.runComposeUiTest +import com.russhwolf.settings.MapSettings +import com.russhwolf.settings.Settings +import kotlin.test.Test +import kotlin.test.assertTrue +import net.newpipe.app.extensions.withKoin +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.app_name +import newpipe.shared.generated.resources.navigate_back +import org.jetbrains.compose.resources.getString +import org.jetbrains.compose.resources.stringResource +import org.koin.dsl.module + +@OptIn(ExperimentalTestApi::class) +class TopAppBarTest { + + private val emptySettings = module { + single { MapSettings() } + } + + @Test + fun testTopAppBarHasNoNavigationByDefault() = runComposeUiTest { + withKoin( + modules = listOf(emptySettings), + content = { + TopAppBar() + }, + onContent = { + onNodeWithContentDescription(getString(Res.string.navigate_back)) + .assertDoesNotExist() + } + ) + } + + @Test + fun testTopAppBarCanHaveNavigation() = runComposeUiTest { + var navigationBackClicked = false + withKoin( + modules = listOf(emptySettings), + content = { + TopAppBar( + title = stringResource(Res.string.app_name), + onNavigateUp = { navigationBackClicked = true } + ) + }, + onContent = { + onNodeWithText(getString(Res.string.app_name)).assertIsDisplayed() + onNodeWithContentDescription(getString(Res.string.navigate_back)).apply { + assertExists() + performClick() + assertTrue(navigationBackClicked) + } + } + ) + } +} diff --git a/shared/src/commonTest/kotlin/net/newpipe/app/extensions/ComposeUiTest.kt b/shared/src/commonTest/kotlin/net/newpipe/app/extensions/ComposeUiTest.kt new file mode 100644 index 000000000..7ec719ee8 --- /dev/null +++ b/shared/src/commonTest/kotlin/net/newpipe/app/extensions/ComposeUiTest.kt @@ -0,0 +1,43 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.extensions + +import androidx.compose.runtime.Composable +import androidx.compose.ui.test.ComposeUiTest +import androidx.compose.ui.test.ExperimentalTestApi +import org.koin.compose.KoinApplication +import org.koin.core.context.stopKoin +import org.koin.core.logger.Level +import org.koin.core.module.Module +import org.koin.dsl.koinConfiguration + +/** + * Sets the content for the UI test wrapped inside Koin + * @param modules Modules for Koin to init for the composables + * @param content Composable content for testing + * @param onContent Non-composable code for testing, maybe dependent upon composable code + */ +@OptIn(ExperimentalTestApi::class) +inline fun ComposeUiTest.withKoin( + modules: List, + noinline content: @Composable () -> Unit = {}, + onContent: () -> Unit = {} +) { + try { + setContent { + KoinApplication( + configuration = koinConfiguration { + modules(modules) + }, + logLevel = Level.DEBUG, + content = content + ) + } + onContent() + } finally { + stopKoin() + } +} diff --git a/shared/src/commonTest/kotlin/net/newpipe/app/theme/ServiceThemeTest.kt b/shared/src/commonTest/kotlin/net/newpipe/app/theme/ServiceThemeTest.kt new file mode 100644 index 000000000..86e6494ad --- /dev/null +++ b/shared/src/commonTest/kotlin/net/newpipe/app/theme/ServiceThemeTest.kt @@ -0,0 +1,52 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.theme + +import androidx.compose.ui.test.ExperimentalTestApi +import androidx.compose.ui.test.v2.runComposeUiTest +import com.russhwolf.settings.MapSettings +import com.russhwolf.settings.Settings +import kotlin.test.Test +import kotlin.test.assertEquals +import kotlin.test.assertNotEquals +import net.newpipe.app.Constants.KEY_STREAMING_SERVICE +import net.newpipe.app.extensions.withKoin +import org.koin.dsl.module + +@OptIn(ExperimentalTestApi::class) +class ServiceThemeTest { + + @Test + fun testDefaultServiceIsYouTube() = runComposeUiTest { + val emptySettings = module { + single { MapSettings() } + } + + withKoin( + modules = listOf(emptySettings), + content = { + assertEquals(currentService(), Service.YOUTUBE) + } + ) + } + + @Test + fun testServiceSwitchingWorks() = runComposeUiTest { + val settings = module { + single { + MapSettings(KEY_STREAMING_SERVICE to "PeerTube") + } + } + + withKoin( + modules = listOf(settings), + content = { + assertNotEquals(currentService(), Service.YOUTUBE) + assertEquals(currentService(), Service.PEERTUBE) + } + ) + } +} From 01e37425213d192fe9b73632fd2ebf3ac85c453a Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Fri, 22 May 2026 23:27:06 +0800 Subject: [PATCH 08/41] shared: Add missing settings implementation This seems to have gotten missed during moving settings to different modules Signed-off-by: Aayush Gupta --- .../newpipe/app/di/settings/SettingsModule.kt | 20 +++++++++++++++++++ .../newpipe/app/di/settings/SettingsModule.kt | 19 ++++++++++++++++++ .../newpipe/app/di/settings/SettingsModule.kt | 17 ++++++++++++++++ .../newpipe/app/di/settings/SettingsModule.kt | 17 ++++++++++++++++ 4 files changed, 73 insertions(+) diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt index e69de29bb..8c2f7b4ed 100644 --- a/shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt +++ b/shared/src/androidMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt @@ -0,0 +1,20 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.di.settings + +import android.content.Context +import androidx.preference.PreferenceManager +import com.russhwolf.settings.Settings +import com.russhwolf.settings.SharedPreferencesSettings +import org.koin.core.annotation.Singleton + +/** + * Settings for Android based on SharedPreferences + */ +@Singleton +fun provideSettings(context: Context): Settings = SharedPreferencesSettings( + PreferenceManager.getDefaultSharedPreferences(context) +) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt index e69de29bb..698b29f29 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt @@ -0,0 +1,19 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.di.settings + +import org.koin.core.annotation.ComponentScan +import org.koin.core.annotation.Configuration +import org.koin.core.annotation.Module + +/** + * Settings module to access key-value pairs across different platforms. + * See individual platform packages for the declarations included in this module. + */ +@Module +@ComponentScan +@Configuration +class SettingsModule diff --git a/shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt index e69de29bb..b5f7ef3e3 100644 --- a/shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt +++ b/shared/src/iosMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt @@ -0,0 +1,17 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.di.settings + +import com.russhwolf.settings.NSUserDefaultsSettings +import com.russhwolf.settings.Settings +import org.koin.core.annotation.Singleton +import platform.Foundation.NSUserDefaults + +/** + * Settings for iOS based on UserDefaultsSettings + */ +@Singleton +fun provideSettings(): Settings = NSUserDefaultsSettings(NSUserDefaults()) diff --git a/shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt b/shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt index e69de29bb..82a7d426f 100644 --- a/shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt +++ b/shared/src/jvmMain/kotlin/net/newpipe/app/di/settings/SettingsModule.kt @@ -0,0 +1,17 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.di.settings + +import com.russhwolf.settings.PreferencesSettings +import com.russhwolf.settings.Settings +import java.util.prefs.Preferences +import org.koin.core.annotation.Singleton + +/** + * Settings for JVM devices based on Java Preferences + */ +@Singleton +fun provideSettings(): Settings = PreferencesSettings(Preferences.userRoot()) From 82e3e71849c057cbd02fbd9b07eeb9583ad1ef24 Mon Sep 17 00:00:00 2001 From: tobigr Date: Sat, 23 May 2026 19:29:38 +0200 Subject: [PATCH 09/41] Update NewPipe Extractor to v0.26.2 --- gradle/libs.versions.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 15ae57bd0..7f31b4179 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -60,7 +60,7 @@ teamnewpipe-nanojson = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996" # the corresponding commit hash, since JitPack sometimes deletes artifacts. # If there’s already a git hash, just add more of it to the end (or remove a letter) # to cause jitpack to regenerate the artifact. -teamnewpipe-newpipe-extractor = "v0.26.1" +teamnewpipe-newpipe-extractor = "v0.26.2" viewpager2 = "1.1.0" webkit = "1.14.0" # Newer versions require minSdk >= 23 work = "2.10.5" # Newer versions require minSdk >= 23 From 28654471d50aaa61e383db82940e0d9b356eb7cf Mon Sep 17 00:00:00 2001 From: tobigr Date: Sat, 23 May 2026 19:30:05 +0200 Subject: [PATCH 10/41] Add changelog for NewPipe 0.28.7 (1012) --- fastlane/metadata/android/en-US/changelogs/1012.txt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fastlane/metadata/android/en-US/changelogs/1012.txt diff --git a/fastlane/metadata/android/en-US/changelogs/1012.txt b/fastlane/metadata/android/en-US/changelogs/1012.txt new file mode 100644 index 000000000..090dc0772 --- /dev/null +++ b/fastlane/metadata/android/en-US/changelogs/1012.txt @@ -0,0 +1,9 @@ +This is a small hotfix update to make YouTube usable again. It is necessary, because there were changes by YouTube. +NewPipe is now able to extract items in channel tabs again thanks to @AudricV and @Ecomont effort. + +Further changes +- [YouTube] Fixed duration and live stream display in related videos +- [SoundCloud] Fixed comments crash by handling null page URLs +- dependency updates + +NewPipe will drop Android 5 support in the next release. From 45af64a518bfb1a29a495bfde73912b008e69601 Mon Sep 17 00:00:00 2001 From: tobigr Date: Sat, 23 May 2026 19:30:29 +0200 Subject: [PATCH 11/41] Release NewPipe 0.28.7 (1012) --- app/build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index fd2954c0a..4bd3c7995 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -45,9 +45,9 @@ configure { minSdk = 21 targetSdk = 35 - versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1011 + versionCode = System.getProperty("versionCodeOverride")?.toInt() ?: 1012 - versionName = "0.28.6" + versionName = "0.28.7" System.getProperty("versionNameSuffix")?.let { versionNameSuffix = it } testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" From 94005cfe9cbaf5414a5527e2a373d26bd102d7c8 Mon Sep 17 00:00:00 2001 From: Hosted Weblate Date: Sat, 23 May 2026 22:15:01 +0200 Subject: [PATCH 12/41] Translated using Weblate (Dutch) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 55.4% (51 of 92 strings) Translated using Weblate (Latvian) Currently translated at 97.8% (759 of 776 strings) Translated using Weblate (Dutch) Currently translated at 100.0% (776 of 776 strings) Translated using Weblate (Latvian) Currently translated at 97.8% (759 of 776 strings) Translated using Weblate (Chinese (Traditional Han script)) Currently translated at 66.3% (61 of 92 strings) Translated using Weblate (Belarusian) Currently translated at 100.0% (776 of 776 strings) Translated using Weblate (Portuguese (Brazil)) Currently translated at 65.2% (60 of 92 strings) Translated using Weblate (Slovak) Currently translated at 77.1% (71 of 92 strings) Translated using Weblate (Croatian) Currently translated at 99.8% (775 of 776 strings) Translated using Weblate (Serbian) Currently translated at 99.2% (770 of 776 strings) Co-authored-by: Hosted Weblate Co-authored-by: Milan Co-authored-by: Milo Ivir Co-authored-by: Nero Co-authored-by: Peter Dave Hello Co-authored-by: Yauhen Co-authored-by: ojppe Co-authored-by: Саша Петровић Co-authored-by: ℂ𝕠𝕠𝕠𝕝 (𝕘𝕚𝕥𝕙𝕦𝕓.𝕔𝕠𝕞/ℂ𝕠𝕠𝕠𝕝) Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/nl/ Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/pt_BR/ Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/sk/ Translate-URL: https://hosted.weblate.org/projects/newpipe/metadata/zh_Hant/ Translation: NewPipe/Metadata --- app/src/main/res/values-be/strings.xml | 35 +++++- app/src/main/res/values-hr/strings.xml | 2 +- app/src/main/res/values-lv/strings.xml | 115 +++++++++--------- app/src/main/res/values-nl/strings.xml | 2 +- app/src/main/res/values-sr/strings.xml | 26 +++- .../metadata/android/nl/changelogs/1000.txt | 4 +- .../android/pt-BR/changelogs/1009.txt | 14 +++ .../metadata/android/sk/changelogs/1010.txt | 9 ++ .../metadata/android/sk/changelogs/1011.txt | 1 + .../android/zh-Hant/changelogs/1005.txt | 17 +++ .../android/zh-Hant/changelogs/1006.txt | 16 +++ .../android/zh-Hant/changelogs/1008.txt | 4 + .../android/zh-Hant/changelogs/1009.txt | 14 +++ .../android/zh-Hant/changelogs/1010.txt | 9 ++ .../android/zh-Hant/changelogs/1011.txt | 1 + .../android/zh-Hant/changelogs/66.txt | 33 +++++ .../android/zh-Hant/changelogs/68.txt | 31 +++++ .../android/zh-Hant/changelogs/69.txt | 19 +++ .../android/zh-Hant/changelogs/70.txt | 25 ++++ .../android/zh-Hant/changelogs/740.txt | 23 ++++ .../android/zh-Hant/changelogs/963.txt | 1 + .../android/zh-Hant/changelogs/965.txt | 6 + .../android/zh-Hant/changelogs/966.txt | 14 +++ .../android/zh-Hant/changelogs/967.txt | 1 + .../android/zh-Hant/changelogs/968.txt | 7 ++ .../android/zh-Hant/changelogs/969.txt | 8 ++ .../android/zh-Hant/changelogs/970.txt | 11 ++ .../android/zh-Hant/changelogs/971.txt | 3 + .../android/zh-Hant/changelogs/972.txt | 14 +++ .../android/zh-Hant/changelogs/973.txt | 4 + .../android/zh-Hant/changelogs/974.txt | 5 + .../android/zh-Hant/changelogs/975.txt | 17 +++ .../android/zh-Hant/changelogs/976.txt | 10 ++ .../android/zh-Hant/changelogs/977.txt | 10 ++ .../android/zh-Hant/changelogs/979.txt | 2 + .../android/zh-Hant/changelogs/980.txt | 13 ++ .../android/zh-Hant/changelogs/983.txt | 9 ++ .../android/zh-Hant/changelogs/994.txt | 15 +++ .../android/zh-Hant/changelogs/995.txt | 16 +++ 39 files changed, 498 insertions(+), 68 deletions(-) create mode 100644 fastlane/metadata/android/pt-BR/changelogs/1009.txt create mode 100644 fastlane/metadata/android/sk/changelogs/1010.txt create mode 100644 fastlane/metadata/android/sk/changelogs/1011.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/1005.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/1006.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/1008.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/1009.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/1010.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/1011.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/66.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/68.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/69.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/70.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/740.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/963.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/965.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/966.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/967.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/968.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/969.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/970.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/971.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/972.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/973.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/974.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/975.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/976.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/977.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/979.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/980.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/983.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/994.txt create mode 100644 fastlane/metadata/android/zh-Hant/changelogs/995.txt diff --git a/app/src/main/res/values-be/strings.xml b/app/src/main/res/values-be/strings.xml index a5edb6ce8..d202040f2 100644 --- a/app/src/main/res/values-be/strings.xml +++ b/app/src/main/res/values-be/strings.xml @@ -614,10 +614,10 @@ Апрацоўка стужкі… Пры кожным спампоўванні вам будзе прапанавана выбраць месца захавання Загрузка канала… - Выдаліць прагледжаныя відэа? + Выдаліць прагледжаныя трансляцыі? Так, часткова прагледжаныя відэа таксама Працэнт - Відэа, якія прагледжаны перад дадаваннем і пасля дадавання ў спіс прайгравання, будуць выдалены. \nВы ўпэўнены? Гэта дзеянне немагчыма скасаваць! + Трансляцыі, якія прагледжаны перад дадаваннем і пасля дадавання ў спіс прайгравання, будуць выдалены. \nВы ўпэўнены? Паказвае варыянт збою пры выкарыстанні плэера Выдаліць прагледжаныя Паказаць панэль памылак @@ -835,4 +835,35 @@ У жніўні 2025 года Google абвясціў, што з верасня 2026 года для ўсталявання праграм для Android на сертыфікаваныя прылады будзе патрабавацца праверка распрацоўшчыка. Гэта тычыцца і тых праграм, што ўсталёўваюцца па-за Play Store. Паколькі распрацоўшчыкі NewPipe не згодныя з гэтым патрабаваннем, пасля гэтага часу NewPipe больш не будзе працаваць на сертыфікаваных прыладах Android. Падрабязнасці Рашэнне + Каб выкарыстоўваць аконны прайгравальнік, у наступным меню налад Android выберыце %1$s і ўключыце %2$s. + + Экспартаванне %d падпіскі… + Экспартаванне %d падпісак… + Экспартаванне %d падпісак… + Экспартаванне %d падпісак… + + + Загрузка %d падпіскі… + Загрузка %d падпісак… + Загрузка %d падпісак… + Загрузка %d падпісак… + + + Імпартаванне %d падпіскі… + Імпартаванне %d падпісак… + Імпартаванне %d падпісак… + Імпартаванне %d падпісак… + + Імпарт падпісак з папярэдняга экспарту ў .json + Экспарт падпісак у файл .json + Імпарт з папярэдняга экспарту + Уліковы запіс спынены\n\n%1$s паведамляе наступную прычыну: %2$s + SoundCloud больш не публікуе свой спіс 50 лепшых. Адпаведная ўкладка выдалена з галоўнай старонкі. + Падчас прайгравання ад сервера атрымана памылка HTTP 403, хутчэй за ўсё гэта выклікана заканчэннем тэрміну дзеяння URL для патокавай перадачы або блакіраваннем IP-адраса + Падчас прайгравання ад сервера атрымана памылка HTTP %1$s + Падчас прайгравання ад сервера атрымана памылка HTTP 403, хутчэй за ўсё гэта выклікана блакіроўкай IP-адраса або праблемамі з дэабфускацыяй URL-адраса для патокавай перадачы + NewPipe спыняе падтрымку Android 5 + На жаль, NewPipe залежыць ад некалькіх бібліятэк, якія спынілі падтрымку Android 5.0 і 5.1. Таму наступны выпуск NewPipe, будзе працаваць толькі на прыладах з Android 6 і вышэй. Падрабязнасці можна прачытаць ў блогу. + Запіс у блогу + %1$s адмовіўся перадаць даныя, запытаўшы ўваход у сістэму для пацвярджэння, што вы не бот.\n\nМагчыма, ваш IP-адрас быў часова заблакіраваны %1$s. Можна пачакаць некаторы час або перайсці на іншы IP-адрас (напрыклад, уключыўшы/выключыўшы VPN або пераключыўшыся з Wi-Fi на мабільныя даныя).\n\nПаглядзіце гэты раздзел FAQ, каб атрымаць дадатковую інфармацыю. diff --git a/app/src/main/res/values-hr/strings.xml b/app/src/main/res/values-hr/strings.xml index 83d3a13e1..3de0765e2 100644 --- a/app/src/main/res/values-hr/strings.xml +++ b/app/src/main/res/values-hr/strings.xml @@ -857,7 +857,7 @@ HTTP greška 403 primljena od poslužitelja tijekom reprodukcije, vjerojatno uzrokovana istekom URL-a za streaming ili zabranom IP adrese HTTP greška %1$s primljena od poslužitelja tijekom reprodukcije HTTP greška 403 primljena od poslužitelja tijekom reprodukcije, vjerojatno uzrokovana zabranom IP adrese ili problemima s deobfuskacijom URL-a za streaming - %1$s je odbio dati podatke, tražeći prijavu kako bi potvrdio da podnositelj zahtjeva nije bot.\n\nVašu IP adresu je možda privremeno zabranio %1$s, možete pričekati neko vrijeme ili se prebaciti na drugu IP adresu (na primjer uključivanjem/isključivanjem VPN-a ili prebacivanjem s WiFi-ja na mobilne podatke). + %1$s je odbio dati podatke, tražeći prijavu kako bi potvrdio da podnositelj zahtjeva nije bot.\n\nVašu IP adresu je možda privremeno zabranio %1$s, možete pričekati neko vrijeme ili se prebaciti na drugu IP adresu (na primjer uključivanjem/isključivanjem VPN-a ili prebacivanjem s WiFi-ja na mobilne podatke).\n\nZa više informacija pogledajte ovaj unos u često postavljanim pitanjima. Ovaj sadržaj nije dostupan za trenutno odabranu zemlju sadržaja.\n\nPromijenite odabir u \"Postavke > Sadržaj > Zadana zemlja sadržaja\". Izvozi se %d pretplata … diff --git a/app/src/main/res/values-lv/strings.xml b/app/src/main/res/values-lv/strings.xml index ebd894b90..c47bf83d3 100644 --- a/app/src/main/res/values-lv/strings.xml +++ b/app/src/main/res/values-lv/strings.xml @@ -8,7 +8,7 @@ Pievienot atskaņošanas sarakstam Nosaukums Pārsaukt - Jauns Atskaņošanas Saraksts + Jauns atskaņošanas saraksts Ielādē prasīto saturu Vāc informāciju… Vienmēr prasīt @@ -36,9 +36,9 @@ Ievietošana pabeigta Eksportēts Atlasiet kiosku - Nav atskaņošanas sarakstu pagaidām + Pagaidām nav izveidots vai saglabāts neviens atskaņošanas saraksts Atlasiet atskaņošanas sarakstu - Nav kanālu abonamentu pagaidām + Pagaidām nav abonēts neviens kanāls Atlasiet kanālu Kanāls Noklusējuma Kiosks @@ -52,20 +52,20 @@ Vēsture Vēsture Lasīt licenci - NewPipe — bez autortiesību ierobežojumiem brīva, pieejama bezmaksas, programmatūra: jūs variet izmantot, pētīt, dalīties un uzlabot to jebkurā brīdī pēc saviem ieskatiem. Tieši jūs varat kopīgot un/ vai modificēt to saskaņā ar GNU Vispārējās Publiskās Licences noteikumiem, ko publicējusi Brīvās Programmatūras Fonds, vai nu 3. licences versija, vai (pēc jūsu izvēles) jebkura vēlāka versija. + NewPipe — bez autortiesību ierobežojumiem (copyleft) licencēta brīva, pieejama bezmaksas, programmatūra: jūs variet izmantot, pētīt, dalīties un uzlabot to jebkurā brīdī pēc saviem ieskatiem. Tieši jūs variet to izplatīt un/vai modificēt saskaņā ar GNU General Public License noteikumiem, ko publicējusi Free Software Foundation, vai nu zem licences 3. versijas, vai (pēc jūsu izvēles) jebkuras jaunākas versijas noteikumiem. NewPipe Licence - Izslasīt privātuma politiku + Lasīt konfidencialitātes politiku Datu aizsardzība ir ļoti svarīga NewPipe projektam. Tāpēc lietotne neapkopo datus bez jūsu piekrišanas.\nNewPipe konfidencialitātes politika sīki izskaidro, kādi dati tiek nosūtīti un uzglabāti, kad nosūtiet nobrukšanas ziņojumu. - NewPipe Privātuna Politika - Apmeklēt NewPipe mājaslapu, lai iegūtu vairāk informācijas un ziņu. - Mājaslapa - Dot atpakaļ - Newpipe izstrādā brīvprātīgie, kas pavada savu brīvo laiku, sniedzot vislabāko lietotāju pieredzi. Dodiet palīdzību izstrādātājiem, kuri padara NewPipe vēl lābāku. + NewPipe konfidencialitātes politika + Apmeklējiet NewPipe vietni, lai iegūtu vairāk informācijas un jaunumus. + Projekta vietne + Izrādīt cieņu ar ziedojumu + NewPipe izstrādā brīvprātīgie, kas pavada savu brīvo laiku, sniedzot vislabāko lietotāju pieredzi. Ziedojiet, lai palīdzētu izstrādātājiem padarīt NewPipe vēl labāku, kamēr viņi bauda tasi kafijas. Ziedot Apskatīt GitHub Vienalga, kādas idejas Jums ir; Tulkojuma, dizaina izmaiņu, koda tīrīšanas vai reāli smagas kodu izmaiņas - palīdzība vienmēr ir laipni gaidīta. Jo vairāk tiek darīts, jo labāks tas kļūst! - Atbalstiet - Viegls brīvs, pieejams bezmaksas, straumēšanas atskaņotājs Android ierīcēm. + Dot savu artavu + Viegls un brīvs, pieejams bezmaksas, straumēšanas atskaņotājs Android ierīcēm. Licences Par un BUJ Trešo pušu licences @@ -81,8 +81,7 @@ Nospiediet \"Pabeigts\", kad to atrisinat reCAPTCHA izaicinājums 1 vienums dzēsts. - Šī atļauja ir nepieciešama, lai -\natvērtu popup režīmā + Šī atļauja ir nepieciešama, lai\nvarētu atskaņot multimediju uznirstošajā logā Lūdzu nosakiet lejupielādes mapi iestatījumos vēlāk Nokopēts uz starpliktuvi Lūdzu uzgaidiet… @@ -97,7 +96,7 @@ Noraidīt Kontrolsumma Dzēst - Izveidot / Saglabāt + Izveidot Pauzēt Sākt Nav komentāru @@ -116,9 +115,9 @@ Neviens neklausās - %s skatītāju - %s skatītājs - %s skatītāji + %s skatītāji skatās + %s skatītājs skatās + %s skatītāji skatās Neviens neskatās @@ -150,11 +149,11 @@ Atskaņot video, ilgums: Detaļas: Jūsu komentārs (Angliski): - Kas:\nRequest:\nContent Valoda:\nContent Valsts:\nApp Valoda:\nService:\nGMT Laiks:\nPackage:\nVersion:\nOS versija: + Kas:\nPieprasījums:\nSatura valoda:\nSatura valsts:\nLietotnes valoda:\nPakalpojums:\nGMT laiks:\nPakotne:\nVersija:\nOS versija: Paziņojumi video apstrādes progresam Video haša paziņojums Atceras pēdējo uznirstošā loga izmēru un pozīciju - Atcerēties uznirstošā loga īpašības + Saglabāt uznirstošā loga izmēru, novietojumu Noklusējuma uznirstošā loga izšķirtspēja Skatīt uznirstošā logā Atvērt uznirstošā logā @@ -180,7 +179,7 @@ Datne pārvietota vai dzēsta Netika atrasts audio Netika atrasti video - Ārējie atskaņotāj neatbalsta šāda tipa saites + Ārējie atskaņotāji neatbalsta šāda tipa saites Atgūstas no atskaņotāja kļūdas Notika kļūda atskaņotājā Nevarēja atskaņot šo video @@ -223,20 +222,20 @@ Datne Tikai Vienreiz Vienmēr - Atskaņot Visu + Atskaņot visus Datne dzēsta Atsaukt Labākā izšķirtspēja Notīrīt Atspējots Mākslinieki - Albūmi + Albumi Dziesmas - Notikumi + Pasākumi Lietotāji Dziesmas - Videoklipi - Atskaņošanas saraksts + Video + Atskaņošanas saraksti Kanāli Visi Kļūdas ziņojums @@ -277,9 +276,7 @@ No %s Izveidoja %s Kanāla avatāra attēls - NewPipe šo saturu vēl neatbalsta. -\n -\nCerams, ka to atbalstīs nākamajā versijā. + NewPipe vēl neatbalsta šo saturu.\n\nCerams, ka tā atbalsts parādīsies turpmākajās versijās. Vai jūs domājat, ka plūsmas atjaunināšana ir pārāk lēna? Ja tā, mēģiniet iespējot ātro atjaunināšanu (to var mainīt iestatījumos vai nospiežot pogu zemāk). \n \nNewPipe piedāvā divas plūsmas atjaunināšanas stratēģijas: \n• Notiek visa abonēšanas kanāla iegūšana, kas ir lēna, bet pabeigta. \n• izmantojot īpašu servisu, kas ir ātrs, bet parasti nav pilnīgs. \n \nAtšķirība starp abiem ir tā, ka ātrajā parasti trūkst informācijas, piemēram, video ilgums vai veids (nevar atšķirt tiešraides video no parastajiem), un tas var atgriezt mazāk vienumu. \n \nYouTube ir pakalpojuma piemērs, kas piedāvā šo ātro metodi ar savu RSS plūsmu. \n \nTātad izvēle sakrīt ar vēlamo: ātrums vai precīza informācija. Izslēgt ātro režīmu Ieslēgt ātro režīmu @@ -300,8 +297,8 @@ Nav atlasīts neviens abonements Atlasīt abonementus - Notiek plūsmas apstrāde … - Notiek plūsmas ielāde… + Apstrādā kanāla jaunumus… + Ielādē kanāla jaunumus… Nav ielādēts: %d Atjaunināta: %s Abonementu grupas @@ -348,7 +345,7 @@ Pārtraukt ierobežotajos tīklos Maksimālais mēģinājumu skaits pirms lejupielādes atcelšanas Maksimālais atkārtoto mēģinājumu skaits - Stop + Pārtraukt Dzēst lejupielādētās datnes Vai tiešām vēlaties dzēst lejupielāžu vēsturi un visas lejupielādētās datnes? Notīrīt lejupielāžu vēsturi @@ -365,10 +362,10 @@ Nevarēja atrast serveri Nevarēja izveidot drošu savienojumu Nevar izveidot mērķa mapi - Failu nevar izveidot + Datni nevar izveidot Rādīt kļūdu Ir gaidāma lejupielāde ar šo nosaukumu - Notiek lejupielāde ar šo nosaukumu + Lejupielāde ar šādu nosaukumu jau pastāv nevar pārrakstīt datni Lejupielādētā datne ar šādu nosaukumu jau pastāv Datne ar šādu nosaukumu jau pastāv @@ -385,17 +382,12 @@ Solis Klusuma brīžos patīt uz priekšu Atvienot (var izraisīt traucējumus) - Paturiet prātā, ka šī darbība var pieprasīt lielu datu daudzumu\n\nVai vēlaties turpināt? + Paturiet prātā, ka šī darbība var pieprasīt lielu datu daudzumu\n\nVai tiešām vēlaties turpināt? Aizvērt Atvilkni Atvērt Atvilkni Vispopulārākais jūsuID , soundcloud.com/jūsuID - Importējiet SoundCloud profilu, ierakstot URL vai ID: -\n -\n1. Tīmekļa pārlūkprogrammā ieslēdziet \"datoru vietni\" (vietne nav pieejama mobilajām ierīcēm) -\n2. Dodieties uz šo URL:%1$s -\n3. Ierakstaties, kad tiek prasīts -\n4. Nokopējiet profila URL, uz kuru tikāt novirzīts. + Lai ievietotu SoundCloud profilu, ievadiet tā URL vai ID:\n\n1. Pārlūkā iestatiet \"Darbvirsmas režīms\" (vietne nav pieejama mobilajām ierīcēm) \n2. Dodieties uz šo URL adresi: %1$s\n3. Ja nepieciešams, autorizējieties\n4. Nokopējiet profila URL adreses joslā. Ievietot YouTube abonementus no Google Takeout:\n\n1. Dodieties uz šo vietni: %1$s\n2. Autorizējieties, ja nepieciešams\n3. Noklikšķiniet uz \"Visi dati iekļauti\", pēc tam uz \"Atcelt visu atlasi\", pēc tam atlasiet tikai \"Abonementi\" un noklikšķiniet uz \"Labi\"\n4. Noklikšķiniet uz \"Nākamais solis\" un pēc tam uz \"Izveidot eksportu\"\n5. Pēc tam, kad tā parādās, noklikšķiniet uz pogas \"Lejupielādēt\"\n6. Noklikšķiniet IEVIETOT DATNI zemāk un izvēlaties lejupielādēto .zip failu\n7. [Ja .zip failu neizdodas ievietot] Izvelciet .csv failu (parasti zem \"YouTube un YouTube Music/subscriptions/subscriptions.csv\") no arhīva, tad noklikšķiniet uz IEVIETOT DATNI zemāk un atlasiet tikko izvilkto csv failu Noklusējuma darbība, kad atver saturu — %s Pakalpojumu oriģinālteksti būs redzami video vienumos @@ -404,9 +396,9 @@ Atmiņas noplūdes uzraudzība var izraisīt lietotnes nereaģēšanu, kad tiek nottīrītas vairs nevajadzīgas lietas no atmiņas Mainīt atskaņotāja subtitru teksta mērogu un fona stilus. Nepieciešama lietotnes restartēšana, lai tā stātos spēkā Automātiski ģenerēts (neviens augšupielādētājs nav atrasts) - Ielikts atskaņošanas sarakstā + Pievienots atskaņošanas sarakstam Noņemt Grāmatzīmi - Piespraust atskaņošanas sarakstu + Saglabāt atskaņošanas sarakstu Izslēgt audio Ieslēgt audio Video atskaņotājs @@ -455,7 +447,7 @@ Piepildīt Pielāgot Noklusējuma satura valoda - Noklusējuma satura valsts + Vēlamā satura valsts Nevarēja atpazīt saites URL. Vai atvērt citā lietotnē? Neatbalstīts saites URL Rādīt padomu, kad nospiežat fona vai popup pogu pie video \"Informācija:\" @@ -514,7 +506,7 @@ Nospiediet uz meklēšanas ikonas, lai atrastu vēlamo saturu. Pielāgot paziņojumu krāsu Neko - Ielādējas + Buferē datus Samaisīt Atkārtot Jūs variet atlasīt ne vairāk kā 3 darbības, ko rādīt kompaktajā paziņojumā! @@ -571,7 +563,7 @@ Šis videoklips ir pieejams tikai YouTube Mūzikas Prēmijas dalībniekiem, tāpēc to nevar straumēt vai lejupielādēt ar Newpipe. Šis saturs ir privāts, tāpēc Newpipe to nevar straumēt vai lejupielādēt. Šis ir SoundCloud Go+ audio, vismaz jūsu valstī, tāpēc to nevar straumēt vai lejupielādēt ar Newpipe. - Šis saturs nav pieejams jūsu valstī. + Šis saturs nepieejams jūsu valstī. Izraisīt lietotnes nobrukšanu Rādīt kanāla informāciju Atrisināt @@ -607,7 +599,7 @@ Pašrocīgi veikt jaunas versijas pārbaudi Video atskaņošanas joslas sīktēla priekšskatījums Notiek atjauninājumu pārbaude… - Sākot ar Android 10, tikai“Krātuves Piekļuves Sistēma” ir atbalstīta + Sākot no Android 10, tiek atbalstīta tikai \"Krātuves Piekļuves Izstrādes platforma\" Nevarēja ielādēt straumi priekš \'%s\'. Kļūda lādējot plūsmu Autora konts tika slēgts.\nNewPipe turpmāk vairs nevarēs ielādēt šī kanāla saturu.\nVai tiešām vēlaties atteikties no šī kanāla abonēšanas? @@ -658,8 +650,8 @@ Pārbaudīt, vai nav jaunas tiešraides Rāda nobrukšanas izsaukšanas funkciju, kad izmantojiet atskaņotāju Dzēst dublikātus - Rādīt sekojošās tiešraides - Saraksti, kas atzīmēti pelēkā, jau satur šo objektu. + Rādīt šādus video/audio + Pelēki iekrāsotie atskaņošanas saraksti jau satur šo video/audio. LeakCanary nav pieejams Izveidot kļūdas paziņojumu Jebkurš tīkls @@ -706,9 +698,9 @@ Metadatu ielādēšana… Galvenās cilnes pozīcija Nepazīstams formāts - Daļēji skatīti + Daļēji skatītos/klausītos Nav tiešraides - Nav pietiekami daudz brīvās vietas uz ierīces + Ierīcē nav pietiekami daudz brīvas vietas Par Sīkattēli Kārtot @@ -720,7 +712,7 @@ Atiestata visus iestatījumus uz to sākotnējām vērtībām Atiestatīt iestatījumus Atiestatot iestatījumus, visi jūsu iestatītie iestatījumi tiks atmesti uz to noklusētajām vērtībām un lietotne palaista pa jaunu.\n\nVai tiešām vēlaties turpināt? - Šī opcija ir pieejama tikai, ja %s ir izvēlēts kā motīvs + Pieejams, kad motīvs iestatīts uz %s Piespraustais komentārs Paziņojumi ir atspējoti Jūs abonējāt šim kanālam @@ -729,7 +721,7 @@ , Pārslēgt visus Nepazīstama kvalitāte - Noskatīti + Noskatītos/noklausītos Gaidāmie dublēts aprakstošs @@ -744,14 +736,14 @@ Rādīt kļūdas paziņojumu Piegādāt kanālu cilnes Cilnes, kuras piegādāt, atjaunojot jauninājumus. Šai opcijai nav nekādas iedarbības, ja kanāls tiek atjaunots ātrajā režīmā. - Multivides tunelēšana tika atspējota pēc noklusējuma tādēļ, ka ir zināms, ka jūsu ierīces modelis to neatbalsta. + Multimediju tunelēšana tika atspējota pēc noklusējuma tādēļ, ka ir zināms, ka jūsu ierīces modelis to neatbalsta. Izvēlēties kvalitāti ārējiem atskaņotājiem ExoPlayer iestatījumi Kanālu cilnes \? %1$s \n%2$s - Tiec paziņots + Paziņot par jaunumiem Apakškanālu avatāri Augšuplādētāju avatāri Ilgums @@ -768,8 +760,8 @@ Rādīt vairāk Rādīt mazāk Avatāri - Tiešraides, kuras vēl neatbalsta lejuplādētājs, netiek rādītas - Izvēlēto tiešraidi neatbalsta ārējie atskaņotāji + Video/audio, ko lejupielādētājs vēl neatbalsta, netiek rādīti + Atlasīto video/audio neatbalsta ārējie atskaņotāji Atvērt atskaņošanas rindu Pārslēgt pilnekrāna režīmu Pārslēgt ekrāna orientāciju @@ -786,7 +778,7 @@ ExoPlayer noklusējuma vērtība Ārējiem atskaņotājiem nav pieejama neviena video straume Izmantot ExoPlayer dekodētāja atkāpšanās funkciju - Pārvaldīt dažus ExoPlayer iestatījumus. Lai šīs izmaiņas stātos spēkā, ir jārestartē atskaņotājs + Pārvalda dažus ExoPlayer iestatījumus. Lai izmaiņas stātos spēkā, ir jāaizver un jāatver pa jaunu atskaņotājs Iespējojiet šo opciju, ja ir problēmas ar dekodētāja inicializāciju, kas atgriežas pie zemākas prioritātes dekodētājiem, ja primārajiem dekodētājiem neizdodas inicializēties. Tas var izraisīt pazeminātu atskaņošanas kvalitāti, nekā, kad izmanto primāros dekoderus Ārējiem atskaņotājiem nav pieejama neviena audio straume Nezināms @@ -799,7 +791,7 @@ Īsie video Kopīgot atskaņošanas sarakstu Kopīgot nosaukumus - Importētā eksporta iestatījumi izmanto ievainojamo formātu, kas tika pārtraukts kopš NewPipe 0.27.0 versijas. Pārliecinieties, ka importētie dati ir no uzticama avota, un turpmāk ir vēlams izmantot tikai datus, kas veikti NewPipe 0.27.0 vai jaunākās versijās. Iestatījumu importēšanas atbalsts šajā neaizsargātajā formātā drīzumā tiks pilnībā aizvākts, un tad vecās NewPipe versijas vairs nevarēs importēt iestatījumus, kas veikti jaunajās versijās. + Iepriekš izgūtās datnes iestatījumi, ko ievieto, izmanto ievainojamo formātu, kas tika pārtraukts kopš NewPipe 0.27.0 versijas. Pārliecinieties, ka izgūtie dati ir no uzticama avota, un turpmāk ir vēlams izmantot datus, kas izgūti tikai no NewPipe 0.27.0 vai jaunākām versijām. Iestatījumu ievietošanas atbalsts šajā neaizsargātajā formātā drīzumā tiks pilnībā aizvākts, un tad vairs vecās NewPipe versijas nevarēs ievietot iestatījumus, kas izgūti no jaunajām versijām. Šis risinājums problēmas novēršanai atbrīvo un atkārtoti instantiē video kodekus, kad notiek virsmas maiņa, nevis tieši iestatīt virsmu kodekam. ExoPlayer jau izmanto šo risinājumu dažās ierīcēs, kurām ir šī problēma. Šis iestatījums darbosies tikai ierīcēs, kurās uzstādīta operētājsistēma Android 6 un jaunāka.\n\nIespējojot šo iestatījumu, var novērst atskaņošanas kļūdas, pārslēdzot pašreizējo video atskaņotāju vai pārejot uz pilnekrāna režīmu Atskaņošanas saraksti Kopīgot kā pagaidu YouTube atskaņošanas sarakstu @@ -853,4 +845,9 @@ Ievieto abonementus no iepriekšējās .json izgūšanas Izgūst jūsu abonementus .json datnē + NewPipe pārtrauc Android 5 atbalstu + Diemžēl NewPipe paļaujas uz dažām bibliotēkām, kuras ir pārtraukušas Android 5.0 un 5.1 atbalstu. Tāpēc nākamā NewPipe versija diemžēl darbosies tikai ierīcēs ar Android 6 vai jaunāku versiju. Sīkāka informācija ir pieejama emuāra rakstā. + Emuāra raksts + Šis saturs nepieejams pašlaik iestatītajai satura valstij.\n\nNomainīt iestatīto satura valsti variet zem \"Iestatījumi > Saturs > Vēlamā satura valsts\". + %1$s atteicās sniegt datus un pieprasa pieteikšanos, lai apstiprinātu, ka pieprasītājs nav robots.\n\nIespējams, ka %1$s ir īslaicīgi bloķējis jūsu IP adresi. Variet kādu laiku pagaidīt vai pārslēgties uz citu IP adresi (piemēram, ieslēdzot/izslēdzot VPN vai pārslēdzoties no Wi-Fi uz mobilajiem datiem).\n\nLūdzu, skatiet šo BUJ sadaļu, lai iegūtu vairāk informācijas. diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index d9cb328b8..77b2f7034 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -845,7 +845,7 @@ HTTP-fout 403 ontvangen van de server tijdens het afspelen, waarschijnlijk veroorzaakt door het verlopen van de streaming-url of een ip-blokkade HTTP-fout %1$s ontvangen van de server tijdens het afspelen HTTP-fout 403 ontvangen van de server tijdens het afspelen, waarschijnlijk veroorzaakt door een ip-blokkade of problemen met de deobfuscatie van de streaming-url - %1$s weigerde gegevens te verstrekken en vroeg om inlog­gegevens om te bevestigen dat de aanvrager geen bot is.\n\nUw IP-adres is mogelijk tijdelijk geblokkeerd door %1$s. U kunt even wachten of over­schakelen naar een ander IP-adres (bij­voorbeeld door een VPN in/uit te schakelen of door over te schakelen van wifi naar mobiele data).\n\nZie dit FAQ-item voor meer informatie. + %1$s weigerde gegevens te verstrekken en vroeg om een login om te bevestigen dat de aanvrager geen bot is.\n\nUw ip-adres is mogelijk tijdelijk geblokkeerd door %1$s. U kunt even wachten of overschakelen naar een ander ip-adres (bijvoorbeeld door een vpn in of uit te schakelen, of door over te schakelen van wifi naar mobiele data).\n\nBekijk deze FAQ voor meer informatie. Deze inhoud is niet beschikbaar voor het momenteel geselecteerde inhouds­land.\n\nWijzig uw selectie via ‘Instellingen > Inhoud > Standaard­land voor inhoud’. Details Oplossing diff --git a/app/src/main/res/values-sr/strings.xml b/app/src/main/res/values-sr/strings.xml index 33126a211..967e643d8 100644 --- a/app/src/main/res/values-sr/strings.xml +++ b/app/src/main/res/values-sr/strings.xml @@ -206,8 +206,8 @@ Искључите да бисте сакрили коментаре Због ограничења ExoPlayer-а, премотавање је постављено на %d секунди Да, и делимично одгледани видео снимци - Видео снимци који су одгледани пре и после додавања на плејлисту биће уклоњени. \nЈесте ли сигурни? Ово се не може поништити! - Уклонити одгледане видео снимке? + Токови који су одгледани пре и после додавања на списак извођења биће уклоњени. \nПоуздано уклонити? + Уклонити одгледане токове? Уклони одгледано Системски подразумевано Језик апликације @@ -859,6 +859,26 @@ HTTP грешка 403 примљена са сервера током репродукције, вероватно узрокована истеком URL-а за токовање или забраном IP адресе HTTP грешка %1$s примљена са сервера током репродукције HTTP грешка 403 примљена са сервера током репродукције, вероватно узрокована забраном IP адресе или проблемима са деобфускацијом URL-а за токовање - %1$s је одбио да пружи податке, тражећи пријаву како би се потврдило да подносилац захтева није бот.\n\nВаша IP адреса је можда привремено забрањена од стране %1$s, можете сачекати неко време или прећи на другу IP адресу (на пример, укључивањем/искључивањем VPN-а или преласком са WiFi-ја на мобилне податке). + %1$s је одбио да пружи податке, тражећи пријаву како би се потврдило да подносилац захтева није робот.\n\nВаша адреса ИП је можда привремено забрањена од стране %1$s, можете сачекати неко време или прећи на другу IP адресу (на пример, укључивањем/искључивањем VPN-а или преласком са WiFi-ја на мобилне податке). Овај садржај није доступан за тренутно изабрану земљу садржаја.\n\nПромените свој избор у „Подешавања > Садржај > Подразумевана држава садржаја“. + + Извозим %d претплату… + Извозим %d претплате… + Извозим %d претплата… + + + Учитавам %d претплату… + Учитавам %d претплате… + Учитавам %d претплата… + + + Увозим %d претплату… + Увозим %d претплате… + Увозим %d претплата… + + Увези претплату + Извету претплату + Увези претплате из претходне датотеке .json + Извези своје претплате у датотеку .json + Увези из претходног извоза diff --git a/fastlane/metadata/android/nl/changelogs/1000.txt b/fastlane/metadata/android/nl/changelogs/1000.txt index 91c136da5..bd1ac68c0 100644 --- a/fastlane/metadata/android/nl/changelogs/1000.txt +++ b/fastlane/metadata/android/nl/changelogs/1000.txt @@ -2,12 +2,12 @@ Verbeterd: • Maak de beschrijving van de afspeellijst klikbaar om meer/minder content te tonen • [PeerTube] Verwerk `subscribeto.me`-instantiekoppelingen automatisch • Begin alleen met het afspelen van één item in het geschiedenisscherm -Opgelost: +Opgelost: • Herstel de zichtbaarheid van de RSS-knop • Herstel crashes van de zoekbalkvoorvertoning • Herstel het afspelen van een item zonder miniatuur • Herstel het afsluiten van het downloaddialoogvenster voordat het verschijnt -• Herstel de pop-up van de lijst met gerelateerde items enqueue +• Herstel de pop-up van de wachtlijst met gerelateerde items • Herstel de volgorde in het dialoogvenster Toevoegen aan afspeellijst • Pas de lay-out van het bladwijzeritem van de afspeellijst aan diff --git a/fastlane/metadata/android/pt-BR/changelogs/1009.txt b/fastlane/metadata/android/pt-BR/changelogs/1009.txt new file mode 100644 index 000000000..96d496154 --- /dev/null +++ b/fastlane/metadata/android/pt-BR/changelogs/1009.txt @@ -0,0 +1,14 @@ +Importante +Informações e apoio à campanha Keep Android Open: https://www.keepandroidopen.org/ + +Melhorias +[Feed] Ordem de atualização de inscrições obsoletas aleatorizada +Não empilha mais páginas de comentários +Impede a propagação de cliques para as camadas inferiores na página de detalhes do vídeo + +Correções +Layout do cabeçalho de respostas sem avatar corrigido +Diversas correções na interface do player +[SoundCloud] Correção de transmissões com IDs longos + +E muitas outras correções e melhorias! diff --git a/fastlane/metadata/android/sk/changelogs/1010.txt b/fastlane/metadata/android/sk/changelogs/1010.txt new file mode 100644 index 000000000..ec58d0226 --- /dev/null +++ b/fastlane/metadata/android/sk/changelogs/1010.txt @@ -0,0 +1,9 @@ +Opravená chyba NullPointerException pri vkladaní akcií do fronty pomocou kontextu aplikácie +[YouTube] Opravené spracovanie trvania položky + +Aktualizované preklady a odstránené nepreložené jazykové verzie +Drobné vylepšenia pri práci s obrázkami + +Zmeny súvisiace s portovaním odberov v rámci refaktoringu +Zmeny súvisiace s portovaním cesty v rámci refaktoringu +Aktualizácia závislosti a Gradle na najnovšiu stabilnú verziu diff --git a/fastlane/metadata/android/sk/changelogs/1011.txt b/fastlane/metadata/android/sk/changelogs/1011.txt new file mode 100644 index 000000000..85e3fceb0 --- /dev/null +++ b/fastlane/metadata/android/sk/changelogs/1011.txt @@ -0,0 +1 @@ +Pridané vyskakovacie okno s informáciou pre používateľov, že verzia v0.28.7 už nebude podporovať systém Android 5 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/1005.txt b/fastlane/metadata/android/zh-Hant/changelogs/1005.txt new file mode 100644 index 000000000..8a12b228f --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/1005.txt @@ -0,0 +1,17 @@ +新增 +• 加入 Android Auto 支援 +• 可將訂閱動態群組設為主畫面分頁 +• [YouTube] 以暫時播放清單分享 +• [SoundCloud] 新增「喜歡的內容」頻道分頁 + +改進 +• 改善搜尋列提示文字 +• 在「下載內容」中顯示下載日期 +• 採用 Android 13 的個別 App 語言功能 + +修正 +• 修正深色模式下文字顏色異常的問題 +• [YouTube] 修正播放清單無法載入超過 100 個項目的問題 +• [YouTube] 修正推薦影片消失的問題 +• 修正「歷史紀錄」清單畫面當機的問題 +• 修正留言回覆中的時間戳記問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/1006.txt b/fastlane/metadata/android/zh-Hant/changelogs/1006.txt new file mode 100644 index 000000000..d07fa9796 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/1006.txt @@ -0,0 +1,16 @@ +# 改進 +點選時間戳記時,保留目前的播放器 +盡可能嘗試復原尚未完成的下載任務 +新增選項,可刪除下載紀錄而不一併刪除檔案 +「顯示在其他應用程式上層」權限:在 Android R 之後的版本顯示說明對話框 +支援開啟 on.soundcloud 連結 +大量小幅改進與效能最佳化 + +# 修正 +修正 Android 7 以下版本的短格式數字顯示問題 +修正幽靈通知問題 +修正 SRT 字幕檔相關問題 +修正大量當機問題 + +# 開發 +內部程式碼現代化 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/1008.txt b/fastlane/metadata/android/zh-Hant/changelogs/1008.txt new file mode 100644 index 000000000..d86cb0609 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/1008.txt @@ -0,0 +1,4 @@ +∙ 修正串流無法從上次播放位置繼續播放的問題 +∙ [YouTube] 新增更多頻道網址格式支援 +∙ [YouTube] 新增更多影片中繼資訊格式支援 +∙ 更新翻譯內容 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/1009.txt b/fastlane/metadata/android/zh-Hant/changelogs/1009.txt new file mode 100644 index 000000000..68a31c3f0 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/1009.txt @@ -0,0 +1,14 @@ +重要事項 +新增「維持 Android 開放」(Keep Android Open)倡議的相關資訊與行動號召:https://www.keepandroidopen.org/ + +改進 +[訂閱動態] 隨機調整尚未更新訂閱項目的更新順序 +不再堆疊留言頁面 +在影片詳細資料頁面點選時,不再將點選事件傳遞到底層畫面 + +修正 +修正沒有頭像圖片時,留言回覆標頭的版面配置問題 +修正多項播放器相關 UI 問題 +[SoundCloud] 修正長 ID 串流內容的問題 + +以及更多修正與改進! diff --git a/fastlane/metadata/android/zh-Hant/changelogs/1010.txt b/fastlane/metadata/android/zh-Hant/changelogs/1010.txt new file mode 100644 index 000000000..f1d960baa --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/1010.txt @@ -0,0 +1,9 @@ +使用 Application Context 修正加入佇列操作中的 NullPointerException 問題 +[YouTube] 修正項目時長解析問題 + +更新翻譯內容,並移除尚未翻譯的語系 +小幅改善圖片處理方式 + +移植重構版本中的訂閱相關變更 +移植重構版本中的路徑相關變更 +將相依套件與 Gradle 更新至最新穩定版 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/1011.txt b/fastlane/metadata/android/zh-Hant/changelogs/1011.txt new file mode 100644 index 000000000..655736932 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/1011.txt @@ -0,0 +1 @@ +新增彈出式視窗通知使用者 v0.28.7 將停止支援 Android 5 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/66.txt b/fastlane/metadata/android/zh-Hant/changelogs/66.txt new file mode 100644 index 000000000..5239b5786 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/66.txt @@ -0,0 +1,33 @@ +# v0.13.7 更新日誌 + +### 修正 +- 修正 v0.13.6 的排序篩選器問題 + +# v0.13.6 更新日誌 + +### 改進 + +- 停用漢堡選單圖示動畫 #1486 +- 可復原已刪除的下載項目 #1472 +- 在分享選單中加入下載選項 #1498 +- 在長按選單中加入分享選項 #1454 +- 離開時最小化主播放器 #1354 +- 更新程式庫版本,並修正資料庫備份問題 #1510 +- ExoPlayer 2.8.2 更新 #1392 + - 重新設計播放速度控制對話框,以支援不同級距,讓速度調整更快速。 + - 在播放速度控制中加入切換開關,可在播放時快轉略過靜音段落。這對有聲書和特定音樂類型應該會很有幫助,並可帶來真正無縫的體驗(也可能會讓有大量靜音段落的歌曲出問題 =\\)。 + - 重構媒體來源解析方式,允許在播放器內部隨媒體一併傳遞中繼資料,而不必手動處理。現在我們有單一中繼資料來源,且播放開始時即可直接使用。 + - 修正開啟播放清單片段時,遠端播放清單中繼資料在有新的中繼資料可用時不會更新的問題。 + - 多項 UI 修正:#1383、背景播放器通知控制項現在一律為白色,也更容易透過滑甩手勢關閉彈出播放器 +- 使用採用重構架構的新擷取器,以支援多服務 + +### 修正 + +- 修正 #1440 影片資訊版面損壞問題 #1491 +- 觀看紀錄修正 #1497 + - #1495:使用者存取播放清單時,立即更新中繼資料(縮圖、標題與影片數量)。 + - #1475:當使用者在詳細資料片段中以外部播放器開始播放影片時,在資料庫中登記一次觀看紀錄。 +- 修正彈出模式下的螢幕逾時問題。#1463(修正 #640) +- 主影片播放器修正 #1509 + - [#1412] 修正播放器 Activity 位於背景時收到新的 Intent,重複播放模式會導致播放器發生 NPE 的問題。 + - 修正未授予彈出視窗權限時,將播放器最小化為彈出播放器不會銷毀播放器的問題。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/68.txt b/fastlane/metadata/android/zh-Hant/changelogs/68.txt new file mode 100644 index 000000000..38e3bcf51 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/68.txt @@ -0,0 +1,31 @@ +# v0.14.1 變更 + +### 修正 +- 修正無法解密影片網址的問題 #1659 +- 修正說明文字中的連結擷取不完整的問題 #1657 + +# v0.14.0 變更 + +### 新增 +- 全新側邊抽屜設計 #1461 +- 全新可自訂首頁 #1461 + +### 改進 +- 重新設計手勢控制 #1604 +- 關閉彈出播放器的新方式 #1597 + +### 修正 +- 修正訂閱人數無法取得時發生錯誤的問題。解決 #1649。 + - 在這類情況下顯示「訂閱人數無法取得」 +- 修正 YouTube 播放清單為空時發生 NPE(NullPointerException)的問題 +- 快速修正 SoundCloud 中的 Kiosk 問題 +- 重構與錯誤修正 #1623 + - 修正循環搜尋結果問題 #1562 + - 修正播放進度列版面未固定配置的問題 + - 修正 YT Premium 影片未正確封鎖的問題 + - 修正影片有時無法載入的問題(由 DASH 解析造成) + - 修正影片說明中的連結 + - 當有人嘗試下載到外接 SD 卡時顯示警告 + - 修正 NothingShownException 會觸發回報的問題 + - 修正 Android 8.1 的背景播放器未顯示縮圖的問題 [請見此處](https://github.com/TeamNewPipe/NewPipe/issues/943) +- 修正廣播接收器的登記問題。解決 #1641。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/69.txt b/fastlane/metadata/android/zh-Hant/changelogs/69.txt new file mode 100644 index 000000000..cc0fc96ec --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/69.txt @@ -0,0 +1,19 @@ +### 新增 +- 在訂閱項目中加入長按刪除與分享功能 #1516 +- 平板 UI 與格狀清單版面 #1617 + +### 改進 +- 儲存並重新載入上次使用的長寬比 #1748 +- 在「下載」畫面中啟用線性版面,並顯示完整影片名稱 #1771 +- 可直接在訂閱分頁中刪除與分享訂閱項目 #1516 +- 若播放佇列已經結束,加入佇列現在會觸發影片播放 #1783 +- 為音量與亮度手勢提供個別設定 #1644 +- 加入在地化支援 #1792 + +### 修正 +- 修正使用 . 格式時的時間解析,讓 NewPipe 可在芬蘭使用 +- 修正訂閱人數 +- 為 API 28 以上裝置加入前景服務權限 #1830 + +### 已知錯誤 +- Android P 上無法儲存播放狀態 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/70.txt b/fastlane/metadata/android/zh-Hant/changelogs/70.txt new file mode 100644 index 000000000..b6f09bb8f --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/70.txt @@ -0,0 +1,25 @@ +注意:這個版本很可能錯誤滿天飛,就跟上一個版本一樣。不過,由於自 17 日起服務完全停擺,有一個壞掉的版本總比沒有版本好,對吧?¯\_(ツ)_/¯ + +### 改進 +* 現在只要點一下即可開啟已下載的檔案 #1879 +* 停止支援 Android 4.1 至 4.3 #1884 +* 移除舊播放器 #1884 +* 將串流向右滑動,即可從目前播放佇列中移除 #1915 +* 手動將新串流加入佇列時,會移除自動排入佇列的串流 #1878 +* 下載後處理,並實作缺少的功能 #1759,由 @kapodamy 完成 + * 後處理基礎架構 + * 適當的錯誤處理基礎架構(用於下載器) + * 改用佇列,而不是同時進行多個下載 + * 將已序列化的待處理下載項目(`.giga` 檔案)移至 App 資料 + * 實作最大下載重試次數 + * 正確的多執行緒下載暫停功能 + * 切換到行動網路時停止下載(從未正常運作,請見第 2 點) + * 儲存執行緒數量,供之後下載使用 + * 修正大量不一致之處 + +### 修正 +* 修正預設解析度設為最佳,且行動數據解析度受限時發生當機的問題 #1835 +* 修正彈出播放器當機問題 #1874 +* 修正嘗試開啟背景播放器時發生 NPE 的問題 #1901 +* 修正啟用自動排入佇列時插入新串流的問題 #1878 +* 修正解密功能停擺問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/740.txt b/fastlane/metadata/android/zh-Hant/changelogs/740.txt new file mode 100644 index 000000000..4bee1e42b --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/740.txt @@ -0,0 +1,23 @@ +

改進

+
    +
  • 讓留言中的連結可點選,並加大文字大小
  • +
  • 點選留言中的時間戳記連結時,可跳轉到對應播放位置
  • +
  • 根據最近選取的狀態顯示偏好的分頁
  • +
  • 在播放清單視窗中長按「背景播放」時,將播放清單加入佇列
  • +
  • 分享的文字不是網址時,改為搜尋該文字
  • +
  • 在主影片播放器中加入「從目前時間分享」按鈕
  • +
  • 影片佇列播放完畢時,在主播放器中加入關閉按鈕
  • +
  • 在影片清單項目的長按選單中加入「直接在背景播放」
  • +
  • 改善「播放/加入佇列」指令的英文翻譯
  • +
  • 小幅效能改進
  • +
  • 移除未使用的檔案
  • +
  • 將 ExoPlayer 更新至 2.9.6
  • +
  • 加入 Invidious 連結支援
  • +
+

修正

+
    +
  • 修正停用留言與相關串流時的捲動問題
  • +
  • 修正 CheckForNewAppVersionTask 在不應執行時仍會執行的問題
  • +
  • 修正 YouTube 訂閱匯入:忽略網址無效的項目,並保留標題為空的項目
  • +
  • 修正無效的 YouTube 網址問題:簽章標籤名稱不一定是「signature」,導致串流無法載入
  • +
diff --git a/fastlane/metadata/android/zh-Hant/changelogs/963.txt b/fastlane/metadata/android/zh-Hant/changelogs/963.txt new file mode 100644 index 000000000..fcde1570b --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/963.txt @@ -0,0 +1 @@ +• [YouTube] 修正頻道延續載入問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/965.txt b/fastlane/metadata/android/zh-Hant/changelogs/965.txt new file mode 100644 index 000000000..6a942c137 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/965.txt @@ -0,0 +1,6 @@ +修正重新排序頻道群組時發生當機的問題。 +修正無法從頻道和播放清單取得更多 YouTube 影片的問題。 +修正無法取得 YouTube 留言的問題。 +新增對 YouTube 網址中 /watch/、/v/ 和 /w/ 子路徑的支援。 +修正 SoundCloud 客戶端 ID 與地區限制內容的擷取問題。 +新增北庫德語系在地化翻譯。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/966.txt b/fastlane/metadata/android/zh-Hant/changelogs/966.txt new file mode 100644 index 000000000..1f3dad94d --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/966.txt @@ -0,0 +1,14 @@ +新增: +• 新增服務:Bandcamp + +改進: +• 新增選項,讓 App 跟隨裝置主題 +• 顯示改進後的錯誤面板,以避免部分當機 +• 針對內容無法使用的原因顯示更多資訊 +• 硬體空白鍵可觸發播放/暫停 +• 顯示「下載已開始」浮動提示 + +修正: +• 修正在背景播放時,影片詳細資料中的縮圖過小的問題 +• 修正最小化播放器中的標題為空白的問題 +• 修正上次使用的縮放模式未正確復原的問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/967.txt b/fastlane/metadata/android/zh-Hant/changelogs/967.txt new file mode 100644 index 000000000..72329d381 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/967.txt @@ -0,0 +1 @@ +修正 YouTube 在歐盟無法正常運作的問題。這是由新的 Cookie 與隱私權同意機制造成,該機制要求 NewPipe 設定 CONSENT Cookie。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/968.txt b/fastlane/metadata/android/zh-Hant/changelogs/968.txt new file mode 100644 index 000000000..4f08036c5 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/968.txt @@ -0,0 +1,7 @@ +在長按選單中新增頻道詳細資料選項。 +新增可從播放清單介面重新命名播放清單名稱的功能。 +允許使用者在影片緩衝時暫停播放。 +微調白色主題。 +修正使用較大字體大小時文字重疊的問題。 +修正 Formuler 與 Zephier 裝置沒有影像的問題。 +修正多項當機問題。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/969.txt b/fastlane/metadata/android/zh-Hant/changelogs/969.txt new file mode 100644 index 000000000..e692f1fcd --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/969.txt @@ -0,0 +1,8 @@ +• 允許安裝至外部儲存空間 +• [Bandcamp] 新增支援在串流項目上顯示前三則留言 +• 只有在下載開始時才顯示「下載已開始」浮動提示 +• 沒有已儲存的 Cookie 時,不設定 reCaptcha Cookie +• [播放器] 改善快取效能 +• [播放器] 修正播放器不會自動播放的問題 +• 刪除下載項目時,關閉先前的 Snackbar +• 修正嘗試刪除不在清單中的物件時發生的問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/970.txt b/fastlane/metadata/android/zh-Hant/changelogs/970.txt new file mode 100644 index 000000000..ae7fe26ac --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/970.txt @@ -0,0 +1,11 @@ +新增 +• 在說明下方顯示內容中繼資料(標籤、類別、授權條款……) +• 在遠端(非本機)播放清單中新增「顯示頻道詳細資料」選項 +• 在長按選單中新增「在瀏覽器中開啟」選項 + +修正 +• 修正影片詳細資料頁面在旋轉螢幕時當機的問題 +• 修正播放器中的「使用 Kodi 播放」按鈕總是提示安裝 Kore 的問題 +• 修正並改善設定匯入與匯出路徑 +• [YouTube] 修正留言按讚數 +以及更多內容 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/971.txt b/fastlane/metadata/android/zh-Hant/changelogs/971.txt new file mode 100644 index 000000000..58db8ae52 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/971.txt @@ -0,0 +1,3 @@ +Hotfix +• 增加再緩衝後播放所需的緩衝區大小 +• 修正在平板與電視上點選播放器中的播放佇列圖示時發生當機的問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/972.txt b/fastlane/metadata/android/zh-Hant/changelogs/972.txt new file mode 100644 index 000000000..addc092b2 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/972.txt @@ -0,0 +1,14 @@ +新增 +辨識說明中的時間戳記與主題標籤 +新增手動平板模式設定 +新增可在訂閱動態中隱藏已播放項目的功能 + +改進 +正確支援 Storage Access Framework +改善無法使用與已終止頻道的錯誤處理 +Android 10 以上使用者的 Android 分享面板現在會顯示內容標題。 +更新 Invidious 執行個體,並支援 Piped 連結。 + +修正 +[YouTube] 年齡限制內容 +避免開啟選擇對話框時發生視窗洩漏例外 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/973.txt b/fastlane/metadata/android/zh-Hant/changelogs/973.txt new file mode 100644 index 000000000..460af4930 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/973.txt @@ -0,0 +1,4 @@ +Hotfix +• 修正格狀版面中縮圖與標題被裁切的問題,原因是每列可容納多少部影片的計算方式有誤 +• 修正從分享選單開啟下載對話框時,對話框會直接消失且未執行任何動作的問題 +• 更新與開啟外部 Activity 相關的程式庫,例如 Storage Access Framework 檔案選擇器 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/974.txt b/fastlane/metadata/android/zh-Hant/changelogs/974.txt new file mode 100644 index 000000000..ae9b27767 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/974.txt @@ -0,0 +1,5 @@ +Hotfix +• 修正 YouTube 限速造成的緩衝問題 +• 修正 YouTube 留言擷取問題,以及留言停用時發生的當機問題 +• 修正 YouTube 音樂搜尋問題 +• 修正 PeerTube 直播串流問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/975.txt b/fastlane/metadata/android/zh-Hant/changelogs/975.txt new file mode 100644 index 000000000..d0f6b1389 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/975.txt @@ -0,0 +1,17 @@ +新功能 +• 拖曳播放進度時顯示縮圖預覽 +• 偵測留言是否已停用 +• 允許將訂閱動態項目標記為已觀看 +• 顯示留言愛心標記 + +改進 +• 改善中繼資料與標籤版面配置 +• 將服務代表色套用至 UI 元件 + +修正 +• 修正迷你播放器中的縮圖問題 +• 修正播放佇列中有重複項目時無限緩衝的問題 +• 多項播放器修正,例如旋轉螢幕與更快速關閉 +• 修正 ReCAPTCHA 仍在背景載入的問題 +• 重新整理訂閱動態時停用點選操作 +• 修正部分下載器當機問題 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/976.txt b/fastlane/metadata/android/zh-Hant/changelogs/976.txt new file mode 100644 index 000000000..af44c4625 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/976.txt @@ -0,0 +1,10 @@ +• 新增可直接以全螢幕開啟播放器的選項 +• 可選擇要顯示哪些類型的搜尋建議 +• 深色主題變得更深,並新增深色啟動畫面 +• 改善檔案選擇器,將不需要的檔案以灰色顯示 +• 修正 YouTube 訂閱匯入問題 +• 重新播放串流時,需要再次點一下重播按鈕 +• 修正音訊工作階段關閉問題 +• [Android TV] 修正使用方向鍵時,播放進度列跳轉幅度過大的問題 + +若要查看其他變更,請參閱下方「連結」分頁中的更新日誌(以及部落格文章)。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/977.txt b/fastlane/metadata/android/zh-Hant/changelogs/977.txt new file mode 100644 index 000000000..272558b44 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/977.txt @@ -0,0 +1,10 @@ +• 在長按選單中新增「接著播放」按鈕 +• 將 YouTube Shorts 路徑前綴加入 Intent 篩選器 +• 修正設定匯入問題 +• 在佇列畫面中,交換播放進度列與播放器按鈕的位置 +• 修正多項與 MediaSessionManager 相關的問題 +• 修正影片結束後播放進度列未走完的問題 +• 在 RealtekATV 上停用媒體通道功能 +• 擴大最小化播放器按鈕的可點選範圍 + +若要查看其他變更,請參閱下方「連結」分頁中的更新日誌(以及部落格文章)。 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/979.txt b/fastlane/metadata/android/zh-Hant/changelogs/979.txt new file mode 100644 index 000000000..6cfefd9be --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/979.txt @@ -0,0 +1,2 @@ +* 修正繼續播放功能 +* 改進確保用來判斷 NewPipe 是否應檢查新版本的服務不會在背景中啟動的相關處理 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/980.txt b/fastlane/metadata/android/zh-Hant/changelogs/980.txt new file mode 100644 index 000000000..dc54fcb83 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/980.txt @@ -0,0 +1,13 @@ +新功能 +• 在分享選單中新增「加入播放清單」選項 +• 新增 y2u.be 與 PeerTube 短網址支援 + +改善 +• 讓播放速度控制項更加精簡 +• 訂閱動態現在會醒目標示新項目 +• 訂閱動態中的「顯示已觀看項目」選項現在會被儲存 + +修正 +• 修正 YouTube 喜歡與不喜歡數擷取問題 +• 修正從背景返回後自動重播的問題 +以及更多內容 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/983.txt b/fastlane/metadata/android/zh-Hant/changelogs/983.txt new file mode 100644 index 000000000..2492257a9 --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/983.txt @@ -0,0 +1,9 @@ +新增全新的點兩下快轉/倒轉介面與運作方式 +讓設定可被搜尋 +將置頂留言醒目標示為置頂留言 +新增支援以 App 開啟 FSFE 的 PeerTube 執行個體 +新增錯誤通知 +修正切換播放器時,播放佇列第一個項目的重播問題 +直播串流緩衝時,延長判定失敗前的等待時間 +修正本機搜尋結果順序 +修正播放佇列中的空白項目欄位 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/994.txt b/fastlane/metadata/android/zh-Hant/changelogs/994.txt new file mode 100644 index 000000000..1e45e1b8e --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/994.txt @@ -0,0 +1,15 @@ +新增 +• 支援多音軌/多語言 +• 允許在螢幕任一側設定音量與亮度手勢 +• 支援在螢幕底部顯示主分頁 + +改進 +• [Bandcamp] 處理付費牆後方的曲目 + +修正 +• [YouTube] 修正串流的 403 HTTP 錯誤 +• 修正從播放清單畫面切換到主播放器時,播放器畫面全黑的問題 +• 修正播放器服務的記憶體洩漏問題 +• [PeerTube] 修正上傳者與子頻道頭像顛倒的問題 + +以及更多內容 diff --git a/fastlane/metadata/android/zh-Hant/changelogs/995.txt b/fastlane/metadata/android/zh-Hant/changelogs/995.txt new file mode 100644 index 000000000..9e22a687a --- /dev/null +++ b/fastlane/metadata/android/zh-Hant/changelogs/995.txt @@ -0,0 +1,16 @@ +新增 +• 支援頻道分頁 +• 可選擇圖片品質 +• 取得所有圖片的網址 + +改進 +• 改善播放器介面的無障礙使用體驗 +• 改善僅下載影片時的音訊選擇 +• 新增選項,可在分享播放清單內容時包含播放清單名稱與影片名稱 + +修正 +• [YouTube] 修正喜歡數取得問題 +• 修正播放器無回應提示與當機問題 +• 修正語言選擇器選到錯誤語言的問題 +• 修正播放器音訊焦點未遵循靜音設定的問題 +• 修正播放清單項目偶爾無法新增的問題 From 50925a1d6cfbd5a28edf88473907a429812b49cc Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Sun, 24 May 2026 13:58:45 +0800 Subject: [PATCH 13/41] libs: Bump dependencies to latest releases Signed-off-by: Aayush Gupta --- gradle/libs.versions.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 012fd865e..e9b78fe94 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -15,7 +15,7 @@ bridge = "v2.0.2" cardview = "1.0.0" checkstyle = "13.4.2" coil = "3.4.0" -compose = "1.11.1" +compose = "1.11.2" constraintlayout = "2.2.1" core = "1.18.0" coroutines = "1.11.0" @@ -29,7 +29,7 @@ jsoup = "1.22.2" junit = "4.13.2" junit-ext = "1.3.0" koin = "4.2.1" -koin-plugin = "1.0.0-RC2" +koin-plugin = "1.0.0" kotlin = "2.3.21" kotlinx-coroutines-rx3 = "1.11.0" kotlinx-serialization-json = "1.11.0" @@ -72,7 +72,7 @@ teamnewpipe-nanojson = "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996" # to cause jitpack to regenerate the artifact. teamnewpipe-newpipe-extractor = "v0.26.2" viewpager2 = "1.1.0" -webkit = "1.15.0" +webkit = "1.15.0" # New versions require minSdk 24 work = "2.11.2" [libraries] From a4abadd02afb5025cad0ab146fc7d04b149be66d Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Sun, 24 May 2026 14:56:04 +0800 Subject: [PATCH 14/41] gradle: Format build scripts with ktlint Signed-off-by: Aayush Gupta --- app/build.gradle.kts | 15 +++++++-------- settings.gradle.kts | 12 ++++++------ 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 22ec75bed..6bafd10bf 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -207,19 +207,19 @@ sonar { } dependencies { - /** Desugaring **/ + // Desugaring coreLibraryDesugaring(libs.android.desugar) - /** NewPipe libraries **/ + // NewPipe libraries implementation(libs.newpipe.nanojson) implementation(libs.newpipe.extractor) implementation(libs.newpipe.filepicker) - /** Checkstyle **/ + // Checkstyle checkstyle(libs.puppycrawl.checkstyle) ktlint(libs.pinterest.ktlint) - /** AndroidX **/ + // AndroidX implementation(libs.androidx.appcompat) implementation(libs.androidx.cardview) implementation(libs.androidx.constraintlayout) @@ -248,7 +248,7 @@ dependencies { // Kotlinx Serialization implementation(libs.kotlinx.serialization.json) - /** Third-party libraries **/ + // Third-party libraries implementation(libs.livefront.bridge) implementation(libs.evernote.statesaver.core) kapt(libs.evernote.statesaver.compiler) @@ -298,8 +298,7 @@ dependencies { // Date and time formatting implementation(libs.ocpsoft.prettytime) - /** Debugging **/ - // Memory leak detection + // Debugging and memory leak detection debugImplementation(libs.squareup.leakcanary.watcher) debugImplementation(libs.squareup.leakcanary.plumber) debugImplementation(libs.squareup.leakcanary.core) @@ -307,7 +306,7 @@ dependencies { debugImplementation(libs.facebook.stetho.core) debugImplementation(libs.facebook.stetho.okhttp3) - /** Testing **/ + // Testing testImplementation(libs.junit) testImplementation(libs.mockito.core) diff --git a/settings.gradle.kts b/settings.gradle.kts index 1b616793f..9f5915073 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -20,7 +20,7 @@ dependencyResolutionManagement { maven(url = "https://repo.clojars.org") } } -include (":app") // androidApp +include(":app") // androidApp include(":desktopApp") include("shared") @@ -28,9 +28,9 @@ include("shared") // We assume, that NewPipe and NewPipe Extractor have the same parent directory. // If this is not the case, please change the path in includeBuild(). -//includeBuild("../NewPipeExtractor") { -// dependencySubstitution { -// substitute(module("com.github.TeamNewPipe:NewPipeExtractor")) -// .using(project(":extractor")) +// includeBuild("../NewPipeExtractor") { +// dependencySubstitution { +// substitute(module("com.github.TeamNewPipe:NewPipeExtractor")) +// .using(project(":extractor")) +// } // } -//} From 860a9004fe2d6127297773a706904c7a05a4ca5a Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 26 May 2026 17:25:45 +0800 Subject: [PATCH 15/41] Import and generate BOM using about libraries plugin The plugin traverses child libraries automatically, so adding it to the parent modules allows us to include dependencies of the whole app and not just the shared part. Configure app and desktopApp to generate the BOM in respective directories of shared module. As iosApp only contains swift, add it's configuration in shared. Also override extractor and evernote's messed up license Generated using: ./gradlew exportLibraryDefinitions Signed-off-by: Aayush Gupta --- app/build.gradle.kts | 21 + build.gradle.kts | 1 + .../libraries/com.evernote.android.json | 15 + .../com.github.newpipeextractor.json | 15 + desktopApp/build.gradle.kts | 9 + gradle/libs.versions.toml | 2 + shared/build.gradle.kts | 10 + .../androidMain/assets/aboutlibraries.json | 3408 +++++++++++++++++ .../composeResources/files/keep.xml | 7 + .../src/iosMain/resources/aboutlibraries.json | 923 +++++ .../src/jvmMain/resources/aboutlibraries.json | 1129 ++++++ 11 files changed, 5540 insertions(+) create mode 100644 config/aboutlibraries/libraries/com.evernote.android.json create mode 100644 config/aboutlibraries/libraries/com.github.newpipeextractor.json create mode 100644 shared/src/androidMain/assets/aboutlibraries.json create mode 100644 shared/src/commonMain/composeResources/files/keep.xml create mode 100644 shared/src/iosMain/resources/aboutlibraries.json create mode 100644 shared/src/jvmMain/resources/aboutlibraries.json diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 6bafd10bf..4098cfaed 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -4,6 +4,8 @@ */ import com.android.build.api.dsl.ApplicationExtension +import com.mikepenz.aboutlibraries.plugin.DuplicateMode +import java.util.regex.Pattern plugins { alias(libs.plugins.android.application) @@ -12,6 +14,7 @@ plugins { alias(libs.plugins.jetbrains.kotlin.parcelize) alias(libs.plugins.jetbrains.kotlinx.serialization) alias(libs.plugins.sonarqube) + alias(libs.plugins.about.libraries) checkstyle } @@ -211,6 +214,7 @@ dependencies { coreLibraryDesugaring(libs.android.desugar) // NewPipe libraries + implementation(projects.shared) implementation(libs.newpipe.nanojson) implementation(libs.newpipe.extractor) implementation(libs.newpipe.filepicker) @@ -315,3 +319,20 @@ dependencies { androidTestImplementation(libs.androidx.room.testing) androidTestImplementation(libs.assertj.core) } + +aboutLibraries { + collect { + configPath = file("../config/aboutlibraries") + } + export { + outputFile = file("../shared/src/androidMain/assets/aboutlibraries.json") + prettyPrint = true + excludeFields.addAll("organization", "scm", "funding") + } + library { + exclusionPatterns = listOf( + Pattern.compile("^com\\.github\\.TeamNewPipe:NewPipeExtractor$"), + Pattern.compile("^com\\.evernote:android-state$") + ) + } +} diff --git a/build.gradle.kts b/build.gradle.kts index e3e25c4fa..4005c3639 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -23,4 +23,5 @@ plugins { alias(libs.plugins.jetbrains.kotlinx.serialization) apply false alias(libs.plugins.sonarqube) apply false alias(libs.plugins.koin) apply false + alias(libs.plugins.about.libraries) apply false } diff --git a/config/aboutlibraries/libraries/com.evernote.android.json b/config/aboutlibraries/libraries/com.evernote.android.json new file mode 100644 index 000000000..e3c16a2a0 --- /dev/null +++ b/config/aboutlibraries/libraries/com.evernote.android.json @@ -0,0 +1,15 @@ +{ + "uniqueId": "com.evernote:android-state", + "artifactVersion": "1.4.1", + "name": "Android State", + "description": "Android library to save object states into a bundle.", + "website": "https://github.com/evernote/android-state", + "developers": [ + { + "name": "Ralf Wondratschek" + } + ], + "licenses": [ + "EPL-1.0" + ] +} diff --git a/config/aboutlibraries/libraries/com.github.newpipeextractor.json b/config/aboutlibraries/libraries/com.github.newpipeextractor.json new file mode 100644 index 000000000..70e308c60 --- /dev/null +++ b/config/aboutlibraries/libraries/com.github.newpipeextractor.json @@ -0,0 +1,15 @@ +{ + "uniqueId": "com.github.TeamNewPipe:NewPipeExtractor", + "artifactVersion": "v0.26.2", + "name": "NewPipe Extractor", + "description": "A library for extracting data from streaming websites, used in NewPipe", + "website": "https://github.com/TeamNewPipe/NewPipeExtractor", + "developers": [ + { + "name": "Team NewPipe" + } + ], + "licenses": [ + "GPL-3.0-or-later" + ] +} diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts index a9d82ae0e..a9b022737 100644 --- a/desktopApp/build.gradle.kts +++ b/desktopApp/build.gradle.kts @@ -9,6 +9,7 @@ plugins { alias(libs.plugins.jetbrains.kotlin.jvm) alias(libs.plugins.jetbrains.kotlin.compose) alias(libs.plugins.jetbrains.compose.multiplatform) + alias(libs.plugins.about.libraries) } dependencies { @@ -30,3 +31,11 @@ compose.desktop { } } } + +aboutLibraries { + export { + outputFile = file("../shared/src/jvmMain/resources/aboutlibraries.json") + prettyPrint = true + excludeFields.addAll("organization", "scm", "funding") + } +} diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e9b78fe94..753aabdcb 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,6 +4,7 @@ # [versions] +about-libraries = "14.2.1" acra = "5.13.1" activity = "1.13.0" agp = "9.2.1" @@ -166,6 +167,7 @@ squareup-okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhtt zacsweers-autoservice-compiler = { module = "dev.zacsweers.autoservice:auto-service-ksp", version.ref = "autoservice-zacsweers" } [plugins] +about-libraries = { id = "com.mikepenz.aboutlibraries.plugin", version.ref = "about-libraries" } android-application = { id = "com.android.application", version.ref = "agp" } android-legacy-kapt = { id = "com.android.legacy-kapt", version.ref = "agp" } # Needed for statesaver android-library = { id = "com.android.kotlin.multiplatform.library", version.ref = "agp" } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index de7c8eb07..68f878061 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -10,6 +10,7 @@ plugins { alias(libs.plugins.jetbrains.compose.multiplatform) alias(libs.plugins.koin) alias(libs.plugins.jetbrains.kotlinx.serialization) + alias(libs.plugins.about.libraries) } // Better than adding a third-party dependency for something as simple as this @@ -145,3 +146,12 @@ dependencies { koinCompiler { userLogs = true // See what the compiler plugin detects } + +aboutLibraries { + export { + outputFile = file("src/iosMain/resources/aboutlibraries.json") + prettyPrint = true + variant = "metadataIosMain" + excludeFields.addAll("organization", "scm", "funding") + } +} diff --git a/shared/src/androidMain/assets/aboutlibraries.json b/shared/src/androidMain/assets/aboutlibraries.json new file mode 100644 index 000000000..c672a69bc --- /dev/null +++ b/shared/src/androidMain/assets/aboutlibraries.json @@ -0,0 +1,3408 @@ +{ + "libraries": [ + { + "uniqueId": "androidx.activity:activity", + "artifactVersion": "1.8.1", + "name": "Activity", + "description": "Provides the base Activity subclass and the relevant hooks to build a composable structure on top.", + "website": "https://developer.android.com/jetpack/androidx/releases/activity#1.8.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.activity:activity-compose", + "artifactVersion": "1.13.0", + "name": "Activity Compose", + "description": "Compose integration with Activity", + "website": "https://developer.android.com/jetpack/androidx/releases/activity#1.13.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.activity:activity-ktx", + "artifactVersion": "1.8.1", + "name": "Activity Kotlin Extensions", + "description": "Kotlin extensions for 'activity' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/activity#1.8.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.annotation:annotation-experimental", + "artifactVersion": "1.4.1", + "name": "Experimental annotation", + "description": "Java annotation for use on unstable Android API surfaces. When used in conjunction with the Experimental annotation lint checks, this annotation provides functional parity with Kotlin's Experimental annotation.", + "website": "https://developer.android.com/jetpack/androidx/releases/annotation#1.4.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.annotation:annotation-jvm", + "artifactVersion": "1.9.1", + "name": "Annotation", + "description": "Provides source annotations for tooling and readability.", + "website": "https://developer.android.com/jetpack/androidx/releases/annotation#1.9.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.appcompat:appcompat", + "artifactVersion": "1.7.1", + "name": "AppCompat", + "description": "Provides backwards-compatible implementations of UI-related Android SDK functionality, including dark mode and Material theming.", + "website": "https://developer.android.com/jetpack/androidx/releases/appcompat#1.7.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.appcompat:appcompat-resources", + "artifactVersion": "1.7.1", + "name": "AppCompat Resources", + "description": "Provides backward-compatible implementations of resource-related Android SDKfunctionality, including color state list theming.", + "website": "https://developer.android.com/jetpack/androidx/releases/appcompat#1.7.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.arch.core:core-common", + "artifactVersion": "2.2.0", + "name": "Android Arch-Common", + "description": "Android Arch-Common", + "website": "https://developer.android.com/jetpack/androidx/releases/arch-core#2.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.arch.core:core-runtime", + "artifactVersion": "2.2.0", + "name": "Android Arch-Runtime", + "description": "Android Arch-Runtime", + "website": "https://developer.android.com/jetpack/androidx/releases/arch-core#2.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.autofill:autofill", + "artifactVersion": "1.0.0", + "name": "AndroidX Autofill", + "description": "AndroidX Autofill", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.cardview:cardview", + "artifactVersion": "1.0.0", + "name": "Support CardView v7", + "description": "Android Support CardView v7", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.collection:collection-jvm", + "artifactVersion": "1.5.0", + "name": "collections", + "description": "Standalone efficient collections.", + "website": "https://developer.android.com/jetpack/androidx/releases/collection#1.5.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.collection:collection-ktx", + "artifactVersion": "1.5.0", + "name": "Collections Kotlin Extensions", + "description": "Kotlin extensions for 'collection' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/collection#1.5.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.animation:animation-android", + "artifactVersion": "1.9.4", + "name": "Compose Animation", + "description": "Compose animation library", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-animation#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.animation:animation-core-android", + "artifactVersion": "1.9.4", + "name": "Compose Animation Core", + "description": "Animation engine and animation primitives that are the building blocks of the Compose animation library", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-animation#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.foundation:foundation-android", + "artifactVersion": "1.9.4", + "name": "Compose Foundation", + "description": "Higher level abstractions of the Compose UI primitives. This library is design system agnostic, providing the high-level building blocks for both application and design-system developers", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.foundation:foundation-layout-android", + "artifactVersion": "1.9.4", + "name": "Compose Layouts", + "description": "Compose layout implementations", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.material3:material3-android", + "artifactVersion": "1.5.0-alpha17", + "name": "Compose Material3 Components", + "description": "Compose Material You Design Components library", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-material3#1.5.0-alpha17", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.material:material-ripple-android", + "artifactVersion": "1.11.0-rc01", + "name": "Compose Material Ripple", + "description": "Material ripple used to build interactive components", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-material#1.11.0-rc01", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-android", + "artifactVersion": "1.9.4", + "name": "Compose Runtime", + "description": "Tree composition support for code generated by the Compose compiler plugin and corresponding public API", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-annotation-android", + "artifactVersion": "1.9.4", + "name": "Compose Runtime Annotation", + "description": "Provides Compose-specific annotations used by the compiler and tooling", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-retain-android", + "artifactVersion": "1.11.1", + "name": "Compose Runtime Retain", + "description": "Preserve state in composable methods across configuration changes and other transient content destruction scenarios", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-saveable-android", + "artifactVersion": "1.9.4", + "name": "Compose Saveable", + "description": "Compose components that allow saving and restoring the local ui state", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-android", + "artifactVersion": "1.9.4", + "name": "Compose UI", + "description": "Compose UI primitives. This library contains the primitives that form the Compose UI Toolkit, such as drawing, measurement and layout.", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-geometry-android", + "artifactVersion": "1.9.4", + "name": "Compose Geometry", + "description": "Compose classes related to dimensions without units", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-graphics-android", + "artifactVersion": "1.9.4", + "name": "Compose Graphics", + "description": "Compose graphics", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-text-android", + "artifactVersion": "1.9.4", + "name": "Compose UI Text", + "description": "Compose Text primitives and utilities", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-tooling-preview-android", + "artifactVersion": "1.11.1", + "name": "Compose UI Preview Tooling", + "description": "Compose tooling library API. This library provides the API required to declare @Preview composables in user apps.", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-unit-android", + "artifactVersion": "1.9.4", + "name": "Compose Unit", + "description": "Compose classes for simple units", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.ui:ui-util-android", + "artifactVersion": "1.9.4", + "name": "Compose Util", + "description": "Internal Compose utilities used by other modules", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.concurrent:concurrent-futures", + "artifactVersion": "1.1.0", + "name": "AndroidX Futures", + "description": "Androidx implementation of Guava's ListenableFuture", + "website": "https://developer.android.com/topic/libraries/architecture/index.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.concurrent:concurrent-futures-ktx", + "artifactVersion": "1.1.0", + "name": "AndroidX Futures Kotlin Extensions", + "description": "Kotlin Extensions for Androidx implementation of Guava's ListenableFuture", + "website": "https://developer.android.com/topic/libraries/architecture/index.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.constraintlayout:constraintlayout", + "artifactVersion": "2.2.1", + "name": "ConstraintLayout", + "description": "This library offers a flexible and adaptable way to position and animate widgets", + "website": "https://developer.android.com/jetpack/androidx/releases/constraintlayout#2.2.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.constraintlayout:constraintlayout-core", + "artifactVersion": "1.1.1", + "name": "ConstraintLayout Core", + "description": "This library contains engines and algorithms for constraint based layout and complex animations (it is used by the ConstraintLayout library)", + "website": "https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.coordinatorlayout:coordinatorlayout", + "artifactVersion": "1.1.0", + "name": "Support Coordinator Layout", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.core:core", + "artifactVersion": "1.18.0", + "name": "Core", + "description": "Provides backward-compatible implementations of Android platform APIs and features.", + "website": "https://developer.android.com/jetpack/androidx/releases/core#1.18.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.core:core-ktx", + "artifactVersion": "1.18.0", + "name": "Core Kotlin Extensions", + "description": "Kotlin extensions for 'core' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/core#1.18.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.core:core-viewtree", + "artifactVersion": "1.0.0", + "name": "androidx.core:core-viewtree", + "description": "Provides ViewTree extensions packaged for use by other core androidx libraries", + "website": "https://developer.android.com/jetpack/androidx/releases/core#1.0.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.cursoradapter:cursoradapter", + "artifactVersion": "1.0.0", + "name": "Support Cursor Adapter", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.customview:customview", + "artifactVersion": "1.1.0", + "name": "Support Custom View", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.customview:customview-poolingcontainer", + "artifactVersion": "1.0.0", + "name": "androidx.customview:poolingcontainer", + "description": "Utilities for listening to the lifecycle of containers that manage their child Views' lifecycle, such as RecyclerView", + "website": "https://developer.android.com/jetpack/androidx/releases/customview#1.0.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.databinding:viewbinding", + "artifactVersion": "9.2.1", + "name": "androidx.databinding:viewbinding", + "description": "", + "developers": [ + + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.documentfile:documentfile", + "artifactVersion": "1.1.0", + "name": "Document File", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx/releases/documentfile#1.1.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.drawerlayout:drawerlayout", + "artifactVersion": "1.1.1", + "name": "Support Drawer Layout", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.dynamicanimation:dynamicanimation", + "artifactVersion": "1.0.0", + "name": "Support DynamicAnimation", + "description": "Physics-based animation in support library, where the animations are driven by physics force. You can use this Animation library to create smooth and realistic animations.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.emoji2:emoji2", + "artifactVersion": "1.4.0", + "name": "Emoji2", + "description": "Core library to enable emoji compatibility in Kitkat and newer devices to avoid the empty emoji characters.", + "website": "https://developer.android.com/jetpack/androidx/releases/emoji2#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.emoji2:emoji2-views-helper", + "artifactVersion": "1.4.0", + "name": "Emoji2 Views Helper", + "description": "Provide helper classes for Emoji2 views.", + "website": "https://developer.android.com/jetpack/androidx/releases/emoji2#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.exifinterface:exifinterface", + "artifactVersion": "1.4.2", + "name": "ExifInterface", + "description": "Android Support ExifInterface", + "website": "https://developer.android.com/jetpack/androidx/releases/exifinterface#1.4.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.fragment:fragment", + "artifactVersion": "1.8.9", + "name": "fragment", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx/releases/fragment#1.8.9", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.fragment:fragment-ktx", + "artifactVersion": "1.8.9", + "name": "Fragment Kotlin Extensions", + "description": "Kotlin extensions for 'fragment' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/fragment#1.8.9", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.graphics:graphics-path", + "artifactVersion": "1.0.1", + "name": "Android Graphics Path", + "description": "Query segment data for android.graphics.Path objects", + "website": "https://developer.android.com/jetpack/androidx/releases/graphics#1.0.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.graphics:graphics-shapes-android", + "artifactVersion": "1.1.0", + "name": "Graphics Shapes", + "description": "create and render rounded polygonal shapes", + "website": "https://developer.android.com/jetpack/androidx/releases/graphics#1.1.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.interpolator:interpolator", + "artifactVersion": "1.0.0", + "name": "Support Interpolators", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.legacy:legacy-support-core-utils", + "artifactVersion": "1.0.0", + "name": "Support core utils", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-common-java8", + "artifactVersion": "2.10.0", + "name": "Lifecycle-Common for Java 8", + "description": "Android Lifecycle-Common for Java 8 Language", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-common-jvm", + "artifactVersion": "2.10.0", + "name": "Lifecycle-Common", + "description": "Android Lifecycle-Common", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-livedata", + "artifactVersion": "2.10.0", + "name": "Lifecycle LiveData", + "description": "Android Lifecycle LiveData", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-livedata-core", + "artifactVersion": "2.10.0", + "name": "Lifecycle LiveData Core", + "description": "Android Lifecycle LiveData Core", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-livedata-core-ktx", + "artifactVersion": "2.10.0", + "name": "LiveData Core Kotlin Extensions", + "description": "Kotlin extensions for 'livedata-core' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-livedata-ktx", + "artifactVersion": "2.10.0", + "name": "LiveData Kotlin Extensions", + "description": "Kotlin extensions for 'livedata' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-process", + "artifactVersion": "2.10.0", + "name": "Lifecycle Process", + "description": "Android Lifecycle Process", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime-android", + "artifactVersion": "2.10.0", + "name": "Lifecycle Runtime", + "description": "Android Lifecycle Runtime", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime-compose-android", + "artifactVersion": "2.10.0", + "name": "Lifecycle Runtime Compose", + "description": "Compose integration with Lifecycle", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime-ktx-android", + "artifactVersion": "2.10.0", + "name": "Lifecycle Kotlin Extensions", + "description": "Kotlin extensions for 'lifecycle' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-service", + "artifactVersion": "2.10.0", + "name": "Lifecycle Service", + "description": "Android Lifecycle Service", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-android", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel", + "description": "Android Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-compose-android", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel Compose", + "description": "Compose integration with Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-ktx", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel Kotlin Extensions", + "description": "Kotlin extensions for 'viewmodel' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-navigation3-android", + "artifactVersion": "2.10.0", + "name": "Androidx Lifecycle Navigation3 ViewModel", + "description": "Provides the ViewModel wrapper for nav3.", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-savedstate-android", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel with SavedState", + "description": "Android Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.loader:loader", + "artifactVersion": "1.0.0", + "name": "Support loader", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.localbroadcastmanager:localbroadcastmanager", + "artifactVersion": "1.1.0", + "name": "Support Local Broadcast Manager", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx/releases/localbroadcastmanager#1.1.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.media:media", + "artifactVersion": "1.7.1", + "name": "Media", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx/releases/media#1.7.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigation3:navigation3-runtime-android", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 Runtime", + "description": "Provides the building blocks for a Compose first Navigation solution that easily supports extensions.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigation3#1.1.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigation3:navigation3-ui-android", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 UI", + "description": "Provides a Navigation3 display that uses the building blocks from runtime to create a higher level solution.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigation3#1.1.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigationevent:navigationevent-android", + "artifactVersion": "1.0.2", + "name": "Navigation Event", + "description": "Provides APIs to easily intercept platform navigation events, including swipes and clicks, to provide a consistent API surface for handling these events.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigationevent#1.0.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigationevent:navigationevent-compose-android", + "artifactVersion": "1.0.2", + "name": "NavigationEvent Compose", + "description": "Compose integration with NavigationEvent", + "website": "https://developer.android.com/jetpack/androidx/releases/navigationevent#1.0.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.preference:preference", + "artifactVersion": "1.2.1", + "name": "AndroidX Preference", + "description": "AndroidX Preference", + "website": "https://developer.android.com/jetpack/androidx/releases/preference#1.2.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.print:print", + "artifactVersion": "1.0.0", + "name": "Support Print", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.profileinstaller:profileinstaller", + "artifactVersion": "1.4.1", + "name": "Profile Installer", + "description": "Allows libraries to prepopulate ahead of time compilation traces to be read by ART", + "website": "https://developer.android.com/jetpack/androidx/releases/profileinstaller#1.4.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.recyclerview:recyclerview", + "artifactVersion": "1.4.0", + "name": "RecyclerView", + "description": "Android Support RecyclerView", + "website": "https://developer.android.com/jetpack/androidx/releases/recyclerview#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.resourceinspection:resourceinspection-annotation", + "artifactVersion": "1.0.1", + "name": "Android Resource Inspection - Annotations", + "description": "Annotation processors for Android resource and layout inspection", + "website": "https://developer.android.com/jetpack/androidx/releases/resourceinspection#1.0.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.room:room-common-jvm", + "artifactVersion": "2.8.4", + "name": "Room-Common", + "description": "Android Room-Common", + "website": "https://developer.android.com/jetpack/androidx/releases/room#2.8.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.room:room-runtime-android", + "artifactVersion": "2.8.4", + "name": "Room-Runtime", + "description": "Android Room-Runtime", + "website": "https://developer.android.com/jetpack/androidx/releases/room#2.8.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.room:room-rxjava3", + "artifactVersion": "2.8.4", + "name": "Room RXJava3", + "description": "Android Room RXJava3", + "website": "https://developer.android.com/jetpack/androidx/releases/room#2.8.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate-android", + "artifactVersion": "1.4.0", + "name": "Saved State", + "description": "Android Lifecycle Saved State", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate-compose-android", + "artifactVersion": "1.4.0", + "name": "Saved State Compose", + "description": "Compose integration with Saved State", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate-ktx", + "artifactVersion": "1.4.0", + "name": "SavedState Kotlin Extensions", + "description": "Kotlin extensions for 'savedstate' artifact", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.slidingpanelayout:slidingpanelayout", + "artifactVersion": "1.2.0", + "name": "Support Sliding Pane Layout", + "description": "SlidingPaneLayout offers a responsive, two pane layout that automatically switches between overlapping panes on smaller devices to a side by side view on larger devices.", + "website": "https://developer.android.com/jetpack/androidx/releases/slidingpanelayout#1.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.sqlite:sqlite-android", + "artifactVersion": "2.6.2", + "name": "SQLite", + "description": "SQLite API", + "website": "https://developer.android.com/jetpack/androidx/releases/sqlite#2.6.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.sqlite:sqlite-framework-android", + "artifactVersion": "2.6.2", + "name": "SQLite Framework Integration", + "description": "The implementation of SQLite library using the framework code.", + "website": "https://developer.android.com/jetpack/androidx/releases/sqlite#2.6.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.startup:startup-runtime", + "artifactVersion": "1.1.1", + "name": "Android App Startup Runtime", + "description": "Android App Startup Runtime", + "website": "https://developer.android.com/jetpack/androidx/releases/startup#1.1.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.swiperefreshlayout:swiperefreshlayout", + "artifactVersion": "1.2.0", + "name": "Swipe Refresh Layout", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout#1.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.tracing:tracing", + "artifactVersion": "1.2.0", + "name": "Android Tracing", + "description": "Android Tracing", + "website": "https://developer.android.com/jetpack/androidx/releases/tracing#1.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.tracing:tracing-ktx", + "artifactVersion": "1.2.0", + "name": "Android Tracing Runtime Kotlin Extensions", + "description": "Android Tracing", + "website": "https://developer.android.com/jetpack/androidx/releases/tracing#1.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.transition:transition", + "artifactVersion": "1.2.0", + "name": "Android Transition Support Library", + "description": "Android Transition Support Library", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.vectordrawable:vectordrawable", + "artifactVersion": "1.1.0", + "name": "Support VectorDrawable", + "description": "Android Support VectorDrawable", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.vectordrawable:vectordrawable-animated", + "artifactVersion": "1.1.0", + "name": "Support AnimatedVectorDrawable", + "description": "Android Support AnimatedVectorDrawable", + "website": "https://developer.android.com/jetpack/androidx", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.versionedparcelable:versionedparcelable", + "artifactVersion": "1.1.1", + "name": "VersionedParcelable", + "description": "Provides a stable but relatively compact binary serialization format that can be passed across processes or persisted safely.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.viewpager2:viewpager2", + "artifactVersion": "1.1.0", + "name": "ViewPager2", + "description": "AndroidX Widget ViewPager2", + "website": "https://developer.android.com/jetpack/androidx/releases/viewpager2#1.1.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.viewpager:viewpager", + "artifactVersion": "1.0.0", + "name": "Support View Pager", + "description": "The Support Library is a static library that you can add to your Android application in order to use APIs that are either not available for older platform versions or utility APIs that aren't a part of the framework APIs. Compatible on devices running API 14 or later.", + "website": "http://developer.android.com/tools/extras/support-library.html", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.webkit:webkit", + "artifactVersion": "1.15.0", + "name": "Webkit", + "description": "The Jetpack Webkit Library is a static library you can add to your Android application in order to use android.webkit APIs that are not available for older platform versions.", + "website": "https://developer.android.com/jetpack/androidx/releases/webkit#1.15.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.window:window", + "artifactVersion": "1.5.0", + "name": "WindowManager", + "description": "WindowManager Jetpack library. Currently only provides additional functionality on foldable devices.", + "website": "https://developer.android.com/jetpack/androidx/releases/window#1.5.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.window:window-core-android", + "artifactVersion": "1.5.0", + "name": "WindowManager Core", + "description": "WindowManager Core Library.", + "website": "https://developer.android.com/jetpack/androidx/releases/window#1.5.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.work:work-runtime", + "artifactVersion": "2.11.2", + "name": "WorkManager Runtime", + "description": "Android WorkManager runtime library", + "website": "https://developer.android.com/jetpack/androidx/releases/work#2.11.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.work:work-rxjava3", + "artifactVersion": "2.11.2", + "name": "WorkManager RxJava3", + "description": "Android WorkManager RxJava3 interoperatibility library", + "website": "https://developer.android.com/jetpack/androidx/releases/work#2.11.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "ch.acra:acra-core", + "artifactVersion": "5.13.1", + "name": "ACRA", + "description": "Publishes reports of Android application crashes to an end point.", + "website": "https://acra.ch", + "developers": [ + { + "name": "Kevin Gaudin" + }, + { + "name": "William Ferguson" + }, + { + "name": "Lukas Morawietz" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "co.touchlab:stately-concurrency-jvm", + "artifactVersion": "2.1.0", + "name": "Stately", + "description": "Multithreaded Kotlin Multiplatform Utilities", + "website": "https://github.com/touchlab/Stately", + "developers": [ + { + "name": "Kevin Galligan" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.atlassian.commonmark:commonmark", + "artifactVersion": "0.13.0", + "name": "commonmark-java core", + "description": "Core of commonmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)", + "website": "https://github.com/atlassian/commonmark-java/commonmark", + "developers": [ + { + "name": "Robin Stocker", + "organisationUrl": "https://www.atlassian.com/" + } + ], + "licenses": [ + "BSD-2-Clause" + ] + }, + { + "uniqueId": "com.evernote:android-state", + "artifactVersion": "1.4.1", + "name": "Android State", + "description": "Android library to save object states into a bundle.", + "website": "https://github.com/evernote/android-state", + "developers": [ + { + "name": "Ralf Wondratschek" + } + ], + "licenses": [ + "EPL-1.0" + ] + }, + { + "uniqueId": "com.facebook.stetho:stetho", + "artifactVersion": "1.6.0", + "name": "Stetho", + "description": "Stetho Debugging Platform for Android", + "website": "https://github.com/facebook/stetho", + "developers": [ + { + "name": "Facebook" + } + ], + "licenses": [ + "MIT" + ] + }, + { + "uniqueId": "com.facebook.stetho:stetho-okhttp3", + "artifactVersion": "1.6.0", + "name": "Stetho OkHttp 3 module", + "description": "Stetho Debugging Platform for Android", + "website": "https://github.com/facebook/stetho", + "developers": [ + { + "name": "Facebook" + } + ], + "licenses": [ + "MIT" + ] + }, + { + "uniqueId": "com.github.TeamNewPipe:NewPipeExtractor", + "artifactVersion": "v0.26.2", + "name": "NewPipe Extractor", + "description": "A library for extracting data from streaming websites, used in NewPipe", + "website": "https://github.com/TeamNewPipe/NewPipeExtractor", + "developers": [ + { + "name": "Team NewPipe" + } + ], + "licenses": [ + "GPL-3.0-or-later" + ] + }, + { + "uniqueId": "com.github.TeamNewPipe:NoNonsense-FilePicker", + "artifactVersion": "5.0.0", + "name": "TeamNewPipe/NoNonsense-FilePicker", + "description": "A file/directory-picker for android. Implemented as a library project.", + "website": "https://github.com/TeamNewPipe/NoNonsense-FilePicker", + "developers": [ + { + "name": "Team NewPipe" + } + ], + "licenses": [ + "MPL-2.0" + ] + }, + { + "uniqueId": "com.github.TeamNewPipe:nanojson", + "artifactVersion": "e9d656ddb49a412a5a0a5d5ef20ca7ef09549996", + "name": "nanojson", + "description": "Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/", + "website": "http://nexus.sonatype.org/oss-repository-hosting.html/nanojson", + "developers": [ + + ], + "licenses": [ + + ] + }, + { + "uniqueId": "com.github.lisawray.groupie:groupie", + "artifactVersion": "2.10.1", + "name": "lisawray/groupie", + "description": "Groupie helps you display and manage complex RecyclerView layouts.", + "website": "https://github.com/lisawray/groupie", + "developers": [ + { + "name": "Lisa Wray" + } + ], + "licenses": [ + "MIT" + ] + }, + { + "uniqueId": "com.github.lisawray.groupie:groupie-viewbinding", + "artifactVersion": "2.10.1", + "name": "com.github.lisawray.groupie:groupie-viewbinding", + "description": "", + "developers": [ + + ], + "licenses": [ + + ] + }, + { + "uniqueId": "com.github.livefront:bridge", + "artifactVersion": "v2.0.2", + "name": "livefront/bridge", + "description": "An Android library for avoiding TransactionTooLargeException during state saving and restoration", + "website": "https://github.com/livefront/bridge", + "developers": [ + { + "name": "Livefront" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.accompanist:accompanist-drawablepainter", + "artifactVersion": "0.37.3", + "name": "Accompanist Drawable Painter library", + "description": "Utilities for Jetpack Compose", + "website": "https://github.com/google/accompanist/", + "developers": [ + { + "name": "Google" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-common", + "artifactVersion": "2.19.1", + "name": "exoplayer-common", + "description": "The ExoPlayer library common module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-container", + "artifactVersion": "2.19.1", + "name": "exoplayer-container", + "description": "The ExoPlayer library container module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-core", + "artifactVersion": "2.19.1", + "name": "exoplayer-core", + "description": "The ExoPlayer library core module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-dash", + "artifactVersion": "2.19.1", + "name": "exoplayer-dash", + "description": "The ExoPlayer library DASH module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-database", + "artifactVersion": "2.19.1", + "name": "exoplayer-database", + "description": "The ExoPlayer database module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-datasource", + "artifactVersion": "2.19.1", + "name": "exoplayer-datasource", + "description": "The ExoPlayer library DataSource module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-decoder", + "artifactVersion": "2.19.1", + "name": "exoplayer-decoder", + "description": "The ExoPlayer library decoder module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-extractor", + "artifactVersion": "2.19.1", + "name": "exoplayer-extractor", + "description": "The ExoPlayer library extractor module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-hls", + "artifactVersion": "2.19.1", + "name": "exoplayer-hls", + "description": "The ExoPlayer library HLS module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-smoothstreaming", + "artifactVersion": "2.19.1", + "name": "exoplayer-smoothstreaming", + "description": "The ExoPlayer library SmoothStreaming module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:exoplayer-ui", + "artifactVersion": "2.19.1", + "name": "exoplayer-ui", + "description": "The ExoPlayer library UI module.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.exoplayer:extension-mediasession", + "artifactVersion": "2.19.1", + "name": "extension-mediasession", + "description": "Media session extension for ExoPlayer.", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.android.material:material", + "artifactVersion": "1.11.0", + "name": "Material Components for Android", + "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.", + "website": "https://github.com/material-components/material-components-android", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.auto.service:auto-service", + "artifactVersion": "1.1.1", + "name": "AutoService Processor", + "description": "Provider-configuration files for ServiceLoader.", + "website": "https://github.com/google/auto/tree/main/service", + "developers": [ + + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.auto.service:auto-service-annotations", + "artifactVersion": "1.1.1", + "name": "AutoService", + "description": "Provider-configuration files for ServiceLoader.", + "website": "https://github.com/google/auto/tree/main/service", + "developers": [ + + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.auto:auto-common", + "artifactVersion": "1.2.1", + "name": "Auto Common Libraries", + "description": "Common utilities for creating annotation processors.", + "website": "https://github.com/google/auto/tree/master/common", + "developers": [ + + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.code.findbugs:jsr305", + "artifactVersion": "3.0.2", + "name": "FindBugs-jsr305", + "description": "JSR305 Annotations for Findbugs", + "website": "http://findbugs.sourceforge.net/", + "developers": [ + + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.errorprone:error_prone_annotations", + "artifactVersion": "2.18.0", + "name": "error-prone annotations", + "description": "Error Prone is a static analysis tool for Java that catches common programming mistakes at compile-time.", + "website": "https://errorprone.info/error_prone_annotations", + "developers": [ + { + "name": "Eddie Aftandilian" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.guava:failureaccess", + "artifactVersion": "1.0.1", + "name": "Guava InternalFutureFailureAccess and InternalFutures", + "description": "Contains\n com.google.common.util.concurrent.internal.InternalFutureFailureAccess and\n InternalFutures. Most users will never need to use this artifact. Its\n classes is conceptually a part of Guava, but they're in this separate\n artifact so that Android libraries can use them without pulling in all of\n Guava (just as they can use ListenableFuture by depending on the\n listenablefuture artifact).", + "website": "https://github.com/google/guava/failureaccess", + "developers": [ + { + "name": "Kevin Bourrillion", + "organisationUrl": "http://www.google.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.guava:guava", + "artifactVersion": "31.1-android", + "name": "Guava: Google Core Libraries for Java", + "description": "Guava is a suite of core and expanded libraries that include\n utility classes, Google's collections, I/O classes, and\n much more.", + "website": "https://github.com/google/guava", + "developers": [ + { + "name": "Kevin Bourrillion", + "organisationUrl": "http://www.google.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.guava:listenablefuture", + "artifactVersion": "9999.0-empty-to-avoid-conflict-with-guava", + "name": "Guava ListenableFuture only", + "description": "An empty artifact that Guava depends on to signal that it is providing\n ListenableFuture -- but is also available in a second \"version\" that\n contains com.google.common.util.concurrent.ListenableFuture class, without\n any other Guava classes. The idea is:\n\n - If users want only ListenableFuture, they depend on listenablefuture-1.0.\n\n - If users want all of Guava, they depend on guava, which, as of Guava\n 27.0, depends on\n listenablefuture-9999.0-empty-to-avoid-conflict-with-guava. The 9999.0-...\n version number is enough for some build systems (notably, Gradle) to select\n that empty artifact over the \"real\" listenablefuture-1.0 -- avoiding a\n conflict with the copy of ListenableFuture in guava itself. If users are\n using an older version of Guava or a build system other than Gradle, they\n may see class conflicts. If so, they can solve them by manually excluding\n the listenablefuture artifact or manually forcing their build systems to\n use 9999.0-....", + "website": "https://github.com/google/guava/listenablefuture", + "developers": [ + { + "name": "Kevin Bourrillion", + "organisationUrl": "http://www.google.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.j2objc:j2objc-annotations", + "artifactVersion": "2.8", + "name": "J2ObjC Annotations", + "description": "A set of annotations that provide additional information to the J2ObjC\n translator to modify the result of translation.", + "website": "https://github.com/google/j2objc/", + "developers": [ + + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.google.protobuf:protobuf-javalite", + "artifactVersion": "4.35.0", + "name": "Protocol Buffers [Lite]", + "description": "Lite version of Protocol Buffers library. This version is targeted for mobile client use\n rather than server side use. It is optimized for code size, but does not guarantee API/ABI\n stability.", + "website": "https://developers.google.com/protocol-buffers/protobuf-javalite/", + "developers": [ + { + "name": "Protocol Buffers", + "organisationUrl": "https://protobuf.dev" + } + ], + "licenses": [ + "BSD-3-Clause" + ] + }, + { + "uniqueId": "com.jakewharton.rxbinding4:rxbinding", + "artifactVersion": "4.0.0", + "name": "RxBinding", + "description": "RxJava binding APIs for Android's UI widgets.", + "website": "https://github.com/JakeWharton/RxBinding/", + "developers": [ + { + "name": "Jake Wharton" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.jakewharton:process-phoenix", + "artifactVersion": "3.0.0", + "name": "Process Phoenix", + "description": "A special activity which facilitates restarting your application process.", + "website": "https://github.com/JakeWharton/ProcessPhoenix/", + "developers": [ + { + "name": "Jake Wharton" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.russhwolf:multiplatform-settings-android-debug", + "artifactVersion": "1.3.0", + "name": "Multiplatform Settings", + "description": "A Kotlin Multiplatform library for saving simple key-value data", + "website": "https://github.com/russhwolf/multiplatform-settings", + "developers": [ + { + "name": "Russell Wolf" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.curtains:curtains", + "artifactVersion": "1.2.4", + "name": "Curtains", + "description": "Spy on your Android windows", + "website": "https://github.com/square/curtains/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-android-core", + "artifactVersion": "2.14", + "name": "LeakCanary for Android - Core", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-android-utils", + "artifactVersion": "2.14", + "name": "LeakCanary Android Utils", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-object-watcher", + "artifactVersion": "2.14", + "name": "LeakCanary Object Watcher", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-object-watcher-android", + "artifactVersion": "2.14", + "name": "LeakCanary Object Watcher for Android - Auto installing", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-object-watcher-android-androidx", + "artifactVersion": "2.14", + "name": "LeakCanary Object Watcher for Android extension: Android X fragments support", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-object-watcher-android-core", + "artifactVersion": "2.14", + "name": "LeakCanary Object Watcher for Android - Core", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:leakcanary-object-watcher-android-support-fragments", + "artifactVersion": "2.14", + "name": "LeakCanary Object Watcher for Android extension: Android support library fragments support", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:plumber-android", + "artifactVersion": "2.14", + "name": "Auto installer for plumber-android-core", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:plumber-android-core", + "artifactVersion": "2.14", + "name": "Use Plumber Android to fix known leaks in the Android Framework and other Google Android libraries.", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:shark", + "artifactVersion": "2.14", + "name": "Shark", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:shark-android", + "artifactVersion": "2.14", + "name": "Shark for Android heaps", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:shark-graph", + "artifactVersion": "2.14", + "name": "Shark Graph", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:shark-hprof", + "artifactVersion": "2.14", + "name": "Shark Hprof", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.leakcanary:shark-log", + "artifactVersion": "2.14", + "name": "Shark Log", + "description": "LeakCanary", + "website": "https://github.com/square/leakcanary/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.okhttp3:okhttp-android", + "artifactVersion": "5.3.2", + "name": "okhttp", + "description": "Square\u2019s meticulous HTTP client for Java and Kotlin.", + "website": "https://square.github.io/okhttp/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.squareup.okio:okio-jvm", + "artifactVersion": "3.16.4", + "name": "okio", + "description": "A modern I/O library for Android, Java, and Kotlin Multiplatform.", + "website": "https://github.com/square/okio/", + "developers": [ + { + "name": "Square, Inc." + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "commons-cli:commons-cli", + "artifactVersion": "1.2", + "name": "Commons CLI", + "description": "Commons CLI provides a simple API for presenting, processing and validating a command line interface.", + "website": "http://commons.apache.org/cli/", + "developers": [ + { + "name": "Rob Oxspring" + }, + { + "name": "Bob McWhirter" + }, + { + "name": "James Strachan" + }, + { + "name": "John Keyes" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.coil-kt.coil3:coil-android", + "artifactVersion": "3.4.0", + "name": "coil", + "description": "An image loading library for Android and Compose Multiplatform.", + "website": "https://github.com/coil-kt/coil", + "developers": [ + { + "name": "Coil Contributors" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.coil-kt.coil3:coil-compose-android", + "artifactVersion": "3.4.0", + "name": "coil-compose", + "description": "An image loading library for Android and Compose Multiplatform.", + "website": "https://github.com/coil-kt/coil", + "developers": [ + { + "name": "Coil Contributors" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.coil-kt.coil3:coil-compose-core-android", + "artifactVersion": "3.4.0", + "name": "coil-compose-core", + "description": "An image loading library for Android and Compose Multiplatform.", + "website": "https://github.com/coil-kt/coil", + "developers": [ + { + "name": "Coil Contributors" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.coil-kt.coil3:coil-core-android", + "artifactVersion": "3.4.0", + "name": "coil-core", + "description": "An image loading library for Android and Compose Multiplatform.", + "website": "https://github.com/coil-kt/coil", + "developers": [ + { + "name": "Coil Contributors" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.coil-kt.coil3:coil-network-core-android", + "artifactVersion": "3.4.0", + "name": "coil-network-core", + "description": "An image loading library for Android and Compose Multiplatform.", + "website": "https://github.com/coil-kt/coil", + "developers": [ + { + "name": "Coil Contributors" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.coil-kt.coil3:coil-network-okhttp-android", + "artifactVersion": "3.4.0", + "name": "coil-network-okhttp", + "description": "An image loading library for Android and Compose Multiplatform.", + "website": "https://github.com/coil-kt/coil", + "developers": [ + { + "name": "Coil Contributors" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.insert-koin:koin-android", + "artifactVersion": "4.2.1", + "name": "Koin", + "description": "KOIN - Kotlin simple Dependency Injection Framework", + "website": "https://insert-koin.io/", + "developers": [ + { + "name": "Arnaud Giuliani" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.noties.markwon:core", + "artifactVersion": "4.6.2", + "name": "Core", + "description": "Core Markwon artifact that includes basic markdown parsing and rendering", + "website": "https://github.com/noties/Markwon", + "developers": [ + { + "name": "Dimitry Ivanov" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.noties.markwon:linkify", + "artifactVersion": "4.6.2", + "name": "Linkify", + "description": "Markwon plugin to linkify text (based on Android Linkify)", + "website": "https://github.com/noties/Markwon", + "developers": [ + { + "name": "Dimitry Ivanov" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.reactivex.rxjava3:rxandroid", + "artifactVersion": "3.0.2", + "name": "RxAndroid", + "description": "RxAndroid", + "website": "https://github.com/ReactiveX/RxAndroid", + "developers": [ + { + "name": "ReactiveX" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.reactivex.rxjava3:rxjava", + "artifactVersion": "3.1.12", + "name": "RxJava", + "description": "Reactive Extensions for Java", + "website": "https://github.com/ReactiveX/RxJava", + "developers": [ + { + "name": "David Karnok" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.checkerframework:checker-qual", + "artifactVersion": "3.33.0", + "name": "Checker Qual", + "description": "checker-qual contains annotations (type qualifiers) that a programmer\nwrites to specify Java code for type-checking by the Checker Framework.", + "website": "https://checkerframework.org/", + "developers": [ + { + "name": "Michael Ernst", + "organisationUrl": "https://www.cs.washington.edu/" + }, + { + "name": "Suzanne Millstein", + "organisationUrl": "https://www.cs.washington.edu/" + } + ], + "licenses": [ + "MIT" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-common", + "artifactVersion": "2.9.6", + "name": "Lifecycle-Common", + "description": "Android Lifecycle-Common", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-runtime", + "artifactVersion": "2.9.6", + "name": "Lifecycle Runtime", + "description": "Android Lifecycle Runtime", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose", + "artifactVersion": "2.9.6", + "name": "Lifecycle Runtime Compose", + "description": "Compose integration with Lifecycle", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel", + "description": "Android Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel Compose", + "description": "Compose integration with Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-navigation3", + "artifactVersion": "2.10.0", + "name": "Androidx Lifecycle Navigation3 ViewModel", + "description": "Provides the ViewModel wrapper for nav3.", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-savedstate", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel with SavedState", + "description": "Android Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.navigation3:navigation3-ui", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 UI", + "description": "Provides a Navigation3 display that uses the building blocks from runtime to create a higher level solution.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.navigationevent:navigationevent-compose", + "artifactVersion": "1.0.1", + "name": "NavigationEvent Compose", + "description": "Compose integration with NavigationEvent", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.savedstate:savedstate", + "artifactVersion": "1.3.6", + "name": "Saved State", + "description": "Android Lifecycle Saved State", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.savedstate:savedstate-compose", + "artifactVersion": "1.3.6", + "name": "Saved State Compose", + "description": "Compose integration with Saved State", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.animation:animation", + "artifactVersion": "1.9.3", + "name": "Compose Animation", + "description": "Compose animation library", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.animation:animation-core", + "artifactVersion": "1.9.3", + "name": "Compose Animation Core", + "description": "Animation engine and animation primitives that are the building blocks of the Compose animation library", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.components:components-resources-android", + "artifactVersion": "1.11.0", + "name": "Resources for Compose JB", + "description": "Resources for Compose JB", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.foundation:foundation", + "artifactVersion": "1.9.3", + "name": "Compose Foundation", + "description": "Higher level abstractions of the Compose UI primitives. This library is design system agnostic, providing the high-level building blocks for both application and design-system developers", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.foundation:foundation-layout", + "artifactVersion": "1.9.3", + "name": "Compose Layouts", + "description": "Compose layout implementations", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material3:material3", + "artifactVersion": "1.11.0-alpha07", + "name": "Compose Material3 Components", + "description": "Compose Material You Design Components library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material:material-ripple", + "artifactVersion": "1.11.0-beta03", + "name": "Compose Material Ripple", + "description": "Material ripple used to build interactive components", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.runtime:runtime", + "artifactVersion": "1.9.3", + "name": "Compose Runtime", + "description": "Tree composition support for code generated by the Compose compiler plugin and corresponding public API", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.runtime:runtime-saveable", + "artifactVersion": "1.9.3", + "name": "Compose Saveable", + "description": "Compose components that allow saving and restoring the local ui state", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui", + "artifactVersion": "1.9.3", + "name": "Compose UI primitives", + "description": "Compose UI primitives. This library contains the primitives that form the Compose UI Toolkit, such as drawing, measurement and layout.", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-geometry", + "artifactVersion": "1.9.3", + "name": "Compose Geometry", + "description": "Compose classes related to dimensions without units", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-graphics", + "artifactVersion": "1.9.3", + "name": "Compose Graphics", + "description": "Compose graphics", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-text", + "artifactVersion": "1.9.3", + "name": "Compose UI Text", + "description": "Compose Text primitives and utilities", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-tooling-preview", + "artifactVersion": "1.11.0", + "name": "Compose UI Preview Tooling", + "description": "Compose tooling library API. This library provides the API required to declare @Preview composables in user apps.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-unit", + "artifactVersion": "1.9.3", + "name": "Compose Unit", + "description": "Compose classes for simple units", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-util", + "artifactVersion": "1.9.3", + "name": "Compose Util", + "description": "Internal Compose utilities used by other modules", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlin:kotlin-bom", + "artifactVersion": "1.8.22", + "name": "Kotlin Libraries bill-of-materials", + "description": "Kotlin is a statically typed programming language that compiles to JVM byte codes and JavaScript", + "website": "https://kotlinlang.org/", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlin:kotlin-parcelize-runtime", + "artifactVersion": "2.3.21", + "name": "Parcelize Runtime", + "description": "Runtime library for the Parcelize compiler plugin", + "website": "https://kotlinlang.org/", + "developers": [ + { + "name": "Kotlin Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlin:kotlin-stdlib", + "artifactVersion": "2.3.21", + "name": "Kotlin Stdlib", + "description": "Kotlin Standard Library", + "website": "https://kotlinlang.org/", + "developers": [ + { + "name": "Kotlin Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-android", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-android", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-bom", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-bom", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-core", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-reactive", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-reactive", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-rx3", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-rx3", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-bom", + "artifactVersion": "1.11.0", + "name": "kotlinx-serialization-bom", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-core-jvm", + "artifactVersion": "1.11.0", + "name": "kotlinx-serialization-core", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm", + "artifactVersion": "1.11.0", + "name": "kotlinx-serialization-json", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains:annotations", + "artifactVersion": "23.0.0", + "name": "JetBrains Java Annotations", + "description": "A set of annotations used for code inspection support and code documentation.", + "website": "https://github.com/JetBrains/java-annotations", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jsoup:jsoup", + "artifactVersion": "1.22.2", + "name": "jsoup Java HTML Parser", + "description": "jsoup is a Java library that simplifies working with real-world HTML and XML. It offers an easy-to-use API for URL fetching, data parsing, extraction, and manipulation using DOM API methods, CSS, and xpath selectors. jsoup implements the WHATWG HTML5 specification, and parses HTML to the same DOM as modern browsers.", + "website": "https://jsoup.org/", + "developers": [ + { + "name": "Jonathan Hedley" + } + ], + "licenses": [ + "MIT" + ] + }, + { + "uniqueId": "org.jspecify:jspecify", + "artifactVersion": "1.0.0", + "name": "JSpecify annotations", + "description": "An artifact of well-named and well-specified annotations to power static analysis checks", + "website": "http://jspecify.org/", + "developers": [ + { + "name": "Kevin Bourrillion" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.mozilla:rhino", + "artifactVersion": "1.8.1", + "name": "rhino", + "description": "Rhino JavaScript runtime jar, excludes XML, tools, and ScriptEngine wrapper", + "website": "https://mozilla.github.io/rhino/", + "developers": [ + { + "name": "Greg Brail" + } + ], + "licenses": [ + "MPL-2.0" + ] + }, + { + "uniqueId": "org.mozilla:rhino-engine", + "artifactVersion": "1.8.1", + "name": "rhino-engine", + "description": "Rhino ScriptEngine implementation", + "website": "https://mozilla.github.io/rhino/", + "developers": [ + { + "name": "Greg Brail" + } + ], + "licenses": [ + "MPL-2.0" + ] + }, + { + "uniqueId": "org.ocpsoft.prettytime:prettytime", + "artifactVersion": "5.0.8.Final", + "name": "PrettyTime - Core", + "description": "Social style time-formatting utilities and web-framework integrations.", + "website": "http://ocpsoft.org/prettytime/prettytime/", + "developers": [ + { + "name": "Lincoln Baxter, III" + }, + { + "name": "Isira Seneviratne" + }, + { + "name": "Thomas Weitzel" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.reactivestreams:reactive-streams", + "artifactVersion": "1.0.4", + "name": "reactive-streams", + "description": "A Protocol for Asynchronous Non-Blocking Data Sequence", + "website": "http://www.reactive-streams.org/", + "developers": [ + { + "name": "Reactive Streams SIG" + } + ], + "licenses": [ + "MIT-0" + ] + } + ], + "licenses": { + "Apache-2.0": { + "name": "Apache License 2.0", + "url": "https://spdx.org/licenses/Apache-2.0.html", + "content": "Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", + "internalHash": "Apache-2.0", + "spdxId": "Apache-2.0", + "hash": "Apache-2.0" + }, + "BSD-2-Clause": { + "name": "BSD 2-Clause \"Simplified\" License", + "url": "https://spdx.org/licenses/BSD-2-Clause.html", + "content": "Copyright (c) < ;match=.+>> All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. \n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS SOFTWARE IS PROVIDED BY <> \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", + "internalHash": "BSD-2-Clause", + "spdxId": "BSD-2-Clause", + "hash": "BSD-2-Clause" + }, + "BSD-3-Clause": { + "name": "BSD 3-Clause \"New\" or \"Revised\" License", + "url": "https://spdx.org/licenses/BSD-3-Clause.html", + "content": "Copyright (c) < ;match=.+>>. All rights reserved. \n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. \n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. \n\n3. Neither the name of <> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY <> \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ", + "internalHash": "BSD-3-Clause", + "spdxId": "BSD-3-Clause", + "hash": "BSD-3-Clause" + }, + "EPL-1.0": { + "name": "Eclipse Public License 1.0", + "url": "https://spdx.org/licenses/EPL-1.0.html", + "content": "Eclipse Public License - v 1.0\n\nTHE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (\"AGREEMENT\"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.\n\n1. DEFINITIONS\n\n\"Contribution\" means:\n a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and\n b) in the case of each subsequent Contributor:\n i) changes to the Program, and\n ii) additions to the Program;\n\nwhere such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.\n\"Contributor\" means any person or entity that distributes the Program.\n\n\"Licensed Patents\" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.\n\n\"Program\" means the Contributions distributed in accordance with this Agreement.\n\n\"Recipient\" means anyone who receives the Program under this Agreement, including all Contributors.\n\n2. GRANT OF RIGHTS\n\n a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.\n \n b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.\n\n c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.\n\n d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.\n\n3. REQUIREMENTS\nA Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:\n\n a) it complies with the terms and conditions of this Agreement; and\n \n b) its license agreement:\n i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;\n ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;\n iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and\n iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.\n\nWhen the Program is made available in source code form:\n\n a) it must be made available under this Agreement; and\n\n b) a copy of this Agreement must be included with each copy of the Program.\nContributors may not remove or alter any copyright notices contained within the Program.\n\nEach Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.\n\n4. COMMERCIAL DISTRIBUTION\nCommercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor (\"Commercial Contributor\") hereby agrees to defend and indemnify every other Contributor (\"Indemnified Contributor\") against any losses, damages and costs (collectively \"Losses\") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.\n\nFor example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.\n\n5. NO WARRANTY\nEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.\n\n6. DISCLAIMER OF LIABILITY\nEXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n7. GENERAL\n\nIf any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.\n\nIf Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.\n\nAll Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.\n\nEveryone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.\n\nThis Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.", + "spdxId": "EPL-1.0", + "hash": "beda45890e8026cec2c07f99032f63c3" + }, + "GPL-3.0-or-later": { + "name": "GNU General Public License v3.0 or later", + "url": "https://spdx.org/licenses/GPL-3.0-or-later.html", + "content": "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright \u00a9 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n\u201cThis License\u201d refers to version 3 of the GNU General Public License.\n\n\u201cCopyright\u201d also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\u201cThe Program\u201d refers to any copyrightable work licensed under this License. Each licensee is addressed as \u201cyou\u201d. \u201cLicensees\u201d and \u201crecipients\u201d may be individuals or organizations.\n\nTo \u201cmodify\u201d a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \u201cmodified version\u201d of the earlier work or a work \u201cbased on\u201d the earlier work.\n\nA \u201ccovered work\u201d means either the unmodified Program or a work based on the Program.\n\nTo \u201cpropagate\u201d a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \u201cconvey\u201d a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \u201cAppropriate Legal Notices\u201d to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \u201csource code\u201d for a work means the preferred form of the work for making modifications to it. \u201cObject code\u201d means any non-source form of a work.\n\nA \u201cStandard Interface\u201d means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \u201cSystem Libraries\u201d of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \u201cMajor Component\u201d, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \u201cCorresponding Source\u201d for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \u201ckeep intact all notices\u201d.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \u201caggregate\u201d if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \u201cUser Product\u201d is either (1) a \u201cconsumer product\u201d, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \u201cnormally used\u201d refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\u201cInstallation Information\u201d for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\u201cAdditional permissions\u201d are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered \u201cfurther restrictions\u201d within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn \u201centity transaction\u201d is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \u201ccontributor\u201d is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \u201ccontributor version\u201d.\n\nA contributor's \u201cessential patent claims\u201d are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \u201ccontrol\u201d includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \u201cpatent license\u201d is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \u201cgrant\u201d such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \u201cKnowingly relying\u201d means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \u201cdiscriminatory\u201d if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \u201cor any later version\u201d applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \u201cAS IS\u201d WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \u201ccopyright\u201d line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \u201cabout box\u201d.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \u201ccopyright disclaimer\u201d for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .", + "spdxId": "GPL-3.0-or-later", + "hash": "aa13f568b9f3d176bad132af7917c4ad" + }, + "MIT": { + "name": "MIT License", + "url": "https://spdx.org/licenses/MIT.html", + "content": "MIT License\n\nCopyright (c) \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "internalHash": "MIT", + "spdxId": "MIT", + "hash": "MIT" + }, + "MIT-0": { + "name": "MIT No Attribution", + "url": "https://spdx.org/licenses/MIT-0.html", + "content": "MIT No Attribution\n\nCopyright \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this\nsoftware and associated documentation files (the \"Software\"), to deal in the Software\nwithout restriction, including without limitation the rights to use, copy, modify,\nmerge, publish, distribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\nINCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\nPARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", + "internalHash": "MIT-0", + "spdxId": "MIT-0", + "hash": "MIT-0" + }, + "MPL-2.0": { + "name": "Mozilla Public License 2.0", + "url": "https://spdx.org/licenses/MPL-2.0.html", + "content": "Mozilla Public License Version 2.0 \n\n1. Definitions\n\n 1.1. \"Contributor\" means each individual or legal entity that creates, contributes to the creation of, or owns Covered Software.\n\n 1.2. \"Contributor Version\" means the combination of the Contributions of others (if any) used by a Contributor and that particular Contributor's Contribution.\n\n 1.3. \"Contribution\" means Covered Software of a particular Contributor.\n\n 1.4. \"Covered Software\" means Source Code Form to which the initial Contributor has attached the notice in Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source Code Form, in each case including portions thereof.\n\n 1.5. \"Incompatible With Secondary Licenses\" means\n\n (a) that the initial Contributor has attached the notice described in Exhibit B to the Covered Software; or\n\n (b) that the Covered Software was made available under the terms of version 1.1 or earlier of the License, but not also under the terms of a Secondary License.\n\n 1.6. \"Executable Form\" means any form of the work other than Source Code Form.\n\n 1.7. \"Larger Work\" means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software.\n\n 1.8. \"License\" means this document.\n\n 1.9. \"Licensable\" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently, any and all of the rights conveyed by this License.\n\n 1.10. \"Modifications\" means any of the following:\n\n (a) any file in Source Code Form that results from an addition to, deletion from, or modification of the contents of Covered Software; or\n\n (b) any new file in Source Code Form that contains any Covered Software.\n\n 1.11. \"Patent Claims\" of a Contributor means any patent claim(s), including without limitation, method, process, and apparatus claims, in any patent Licensable by such Contributor that would be infringed, but for the grant of the License, by the making, using, selling, offering for sale, having made, import, or transfer of either its Contributions or its Contributor Version.\n\n 1.12. \"Secondary License\" means either the GNU General Public License, Version 2.0, the GNU Lesser General Public License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later versions of those licenses.\n\n 1.13. \"Source Code Form\" means the form of the work preferred for making modifications.\n\n 1.14. \"You\" (or \"Your\") means an individual or a legal entity exercising rights under this License. For legal entities, \"You\" includes any entity that controls, is controlled by, or is under common control with You. For purposes of this definition, \"control\" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or beneficial ownership of such entity.\n\n2. License Grants and Conditions \n\n 2.1. Grants\n Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:\n\n (a) under intellectual property rights (other than patent or trademark) Licensable by such Contributor to use, reproduce, make available, modify, display, perform, distribute, and otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or as part of a Larger Work; and\n\n (b) under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, import, and otherwise transfer either its Contributions or its Contributor Version.\n\n 2.2. Effective Date\n The licenses granted in Section 2.1 with respect to any Contribution become effective for each Contribution on the date the Contributor first distributes such Contribution.\n\n 2.3. Limitations on Grant Scope\n The licenses granted in this Section 2 are the only rights granted under this License. No additional rights or licenses will be implied from the distribution or licensing of Covered Software under this License. Notwithstanding Section 2.1(b) above, no patent license is granted by a Contributor:\n\n (a) for any code that a Contributor has removed from Covered Software; or\n\n (b) for infringements caused by: (i) Your and any other third party's modifications of Covered Software, or (ii) the combination of its Contributions with other software (except as part of its Contributor Version); or\n\n (c) under Patent Claims infringed by Covered Software in the absence of its Contributions.\n\n This License does not grant any rights in the trademarks, service marks, or logos of any Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).\n\n 2.4. Subsequent Licenses\n No Contributor makes additional grants as a result of Your choice to distribute the Covered Software under a subsequent version of this License (see Section 10.2) or under the terms of a Secondary License (if permitted under the terms of Section 3.3).\n\n 2.5. Representation\n Each Contributor represents that the Contributor believes its Contributions are its original creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by this License.\n\n 2.6. Fair Use\n This License is not intended to limit any rights You have under applicable copyright doctrines of fair use, fair dealing, or other equivalents.\n\n 2.7. Conditions\n Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.\n\n3. Responsibilities\n\n 3.1. Distribution of Source Form\n All distribution of Covered Software in Source Code Form, including any Modifications that You create or to which You contribute, must be under the terms of this License. You must inform recipients that the Source Code Form of the Covered Software is governed by the terms of this License, and how they can obtain a copy of this License. You may not attempt to alter or restrict the recipients' rights in the Source Code Form.\n\n 3.2. Distribution of Executable Form\n If You distribute Covered Software in Executable Form then:\n\n (a) such Covered Software must also be made available in Source Code Form, as described in Section 3.1, and You must inform recipients of the Executable Form how they can obtain a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more than the cost of distribution to the recipient; and\n\n (b) You may distribute such Executable Form under the terms of this License, or sublicense it under different terms, provided that the license for the Executable Form does not attempt to limit or alter the recipients' rights in the Source Code Form under this License.\n\n 3.3. Distribution of a Larger Work\n You may create and distribute a Larger Work under terms of Your choice, provided that You also comply with the requirements of this License for the Covered Software. If the Larger Work is a combination of Covered Software with a work governed by one or more Secondary Licenses, and the Covered Software is not Incompatible With Secondary Licenses, this License permits You to additionally distribute such Covered Software under the terms of such Secondary License(s), so that the recipient of the Larger Work may, at their option, further distribute the Covered Software under the terms of either this License or such Secondary License(s).\n\n 3.4. Notices\n You may not remove or alter the substance of any license notices (including copyright notices, patent notices, disclaimers of warranty, or limitations of liability) contained within the Source Code Form of the Covered Software, except that You may alter any license notices to the extent required to remedy known factual inaccuracies.\n \n 3.5. Application of Additional Terms\n You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, You may do so only on Your own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any such warranty, support, indemnity, or liability obligation is offered by You alone, and You hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a result of warranty, support, indemnity or liability terms You offer. You may include additional disclaimers of warranty and limitations of liability specific to any jurisdiction.\n\n4. Inability to Comply Due to Statute or Regulation \nIf it is impossible for You to comply with any of the terms of this License with respect to some or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) comply with the terms of this License to the maximum extent possible; and (b) describe the limitations and the code they affect. Such description must be placed in a text file included with all distributions of the Covered Software under this License. Except to the extent prohibited by statute or regulation, such description must be sufficiently detailed for a recipient of ordinary skill to be able to understand it.\n\n5. Termination \n\n 5.1. The rights granted under this License will terminate automatically if You fail to comply with any of its terms. However, if You become compliant, then the rights granted under this License from a particular Contributor are reinstated (a) provisionally, unless and until such Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days after You have come back into compliance. Moreover, Your grants from a particular Contributor are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by some reasonable means, this is the first time You have received notice of non-compliance with this License from such Contributor, and You become compliant prior to 30 days after Your receipt of the notice.\n\n 5.2. If You initiate litigation against any entity by asserting a patent infringement claim (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a Contributor Version directly or indirectly infringes any patent, then the rights granted to You by any and all Contributors for the Covered Software under Section 2.1 of this License shall terminate.\n\n 5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license agreements (excluding distributors and resellers) which have been validly granted by You or Your distributors under this License prior to termination shall survive termination.\n\n6. Disclaimer of Warranty \nCovered Software is provided under this License on an \"as is\" basis, without warranty of any kind, either expressed, implied, or statutory, including, without limitation, warranties that the Covered Software is free of defects, merchantable, fit for a particular purpose or non-infringing. The entire risk as to the quality and performance of the Covered Software is with You. Should any Covered Software prove defective in any respect, You (not any Contributor) assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty constitutes an essential part of this License. No use of any Covered Software is authorized under this License except under this disclaimer. \n\n7. Limitation of Liability \nUnder no circumstances and under no legal theory, whether tort (including negligence), contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as permitted above, be liable to You for any direct, indirect, special, incidental, or consequential damages of any character including, without limitation, damages for lost profits, loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses, even if such party shall have been informed of the possibility of such damages. This limitation of liability shall not apply to liability for death or personal injury resulting from such party's negligence to the extent applicable law prohibits such limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or consequential damages, so this exclusion and limitation may not apply to You. \n\n8. Litigation \nAny litigation relating to this License may be brought only in the courts of a jurisdiction where the defendant maintains its principal place of business and such litigation shall be governed by laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this Section shall prevent a party's ability to bring cross-claims or counter-claims.\n\n9. Miscellaneous \nThis License represents the complete agreement concerning the subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. Any law or regulation which provides that the language of a contract shall be construed against the drafter shall not be used to construe this License against a Contributor.\n\n10. Versions of the License \n\n 10.1. New Versions\n Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other than the license steward has the right to modify or publish new versions of this License. Each version will be given a distinguishing version number.\n\n 10.2. Effect of New Versions\n You may distribute the Covered Software under the terms of the version of the License under which You originally received the Covered Software, or under the terms of any subsequent version published by the license steward.\n\n 10.3. Modified Versions\n If you create software not governed by this License, and you want to create a new license for such software, you may create and use a modified version of this License if you rename the license and remove any references to the name of the license steward (except to note that such modified license differs from this License).\n\n 10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses\n If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under the terms of this version of the License, the notice described in Exhibit B of this License must be attached.\n\nExhibit A - Source Code Form License Notice \n\n This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.\n\nIf it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.\n\nYou may add additional accurate notices of copyright ownership.\n\nExhibit B - \"Incompatible With Secondary Licenses\" Notice \n\n This Source Code Form is \"Incompatible With Secondary Licenses\", as defined by the Mozilla Public License, v. 2.0.", + "internalHash": "MPL-2.0", + "spdxId": "MPL-2.0", + "hash": "MPL-2.0" + } + } +} \ No newline at end of file diff --git a/shared/src/commonMain/composeResources/files/keep.xml b/shared/src/commonMain/composeResources/files/keep.xml new file mode 100644 index 000000000..b0587ff7e --- /dev/null +++ b/shared/src/commonMain/composeResources/files/keep.xml @@ -0,0 +1,7 @@ + + + diff --git a/shared/src/iosMain/resources/aboutlibraries.json b/shared/src/iosMain/resources/aboutlibraries.json new file mode 100644 index 000000000..78d987b10 --- /dev/null +++ b/shared/src/iosMain/resources/aboutlibraries.json @@ -0,0 +1,923 @@ +{ + "libraries": [ + { + "uniqueId": "androidx.annotation:annotation", + "artifactVersion": "1.9.1", + "name": "Annotation", + "description": "Provides source annotations for tooling and readability.", + "website": "https://developer.android.com/jetpack/androidx/releases/annotation#1.9.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.collection:collection", + "artifactVersion": "1.5.0", + "name": "collections", + "description": "Standalone efficient collections.", + "website": "https://developer.android.com/jetpack/androidx/releases/collection#1.5.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime", + "artifactVersion": "1.11.1", + "name": "Compose Runtime", + "description": "Tree composition support for code generated by the Compose compiler plugin and corresponding public API", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-annotation", + "artifactVersion": "1.11.1", + "name": "Compose Runtime Annotation", + "description": "Provides Compose-specific annotations used by the compiler and tooling", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-retain", + "artifactVersion": "1.11.1", + "name": "Compose Runtime Retain", + "description": "Preserve state in composable methods across configuration changes and other transient content destruction scenarios", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-saveable", + "artifactVersion": "1.11.1", + "name": "Compose Saveable", + "description": "Compose components that allow saving and restoring the local ui state", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.graphics:graphics-shapes", + "artifactVersion": "1.1.0", + "name": "Graphics Shapes", + "description": "create and render rounded polygonal shapes", + "website": "https://developer.android.com/jetpack/androidx/releases/graphics#1.1.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-common", + "artifactVersion": "2.10.0", + "name": "Lifecycle-Common", + "description": "Android Lifecycle-Common", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime", + "artifactVersion": "2.10.0", + "name": "Lifecycle Runtime", + "description": "Android Lifecycle Runtime", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime-compose", + "artifactVersion": "2.10.0", + "name": "Lifecycle Runtime Compose", + "description": "Compose integration with Lifecycle", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel", + "description": "Android Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-savedstate", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel with SavedState", + "description": "Android Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigation3:navigation3-runtime", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 Runtime", + "description": "Provides the building blocks for a Compose first Navigation solution that easily supports extensions.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigation3#1.1.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigationevent:navigationevent", + "artifactVersion": "1.0.2", + "name": "Navigation Event", + "description": "Provides APIs to easily intercept platform navigation events, including swipes and clicks, to provide a consistent API surface for handling these events.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigationevent#1.0.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate", + "artifactVersion": "1.4.0", + "name": "Saved State", + "description": "Android Lifecycle Saved State", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate-compose", + "artifactVersion": "1.4.0", + "name": "Saved State Compose", + "description": "Compose integration with Saved State", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "co.touchlab:stately-concurrency", + "artifactVersion": "2.1.0", + "name": "Stately", + "description": "Multithreaded Kotlin Multiplatform Utilities", + "website": "https://github.com/touchlab/Stately", + "developers": [ + { + "name": "Kevin Galligan" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.russhwolf:multiplatform-settings", + "artifactVersion": "1.3.0", + "name": "Multiplatform Settings", + "description": "A Kotlin Multiplatform library for saving simple key-value data", + "website": "https://github.com/russhwolf/multiplatform-settings", + "developers": [ + { + "name": "Russell Wolf" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.insert-koin:koin-annotations", + "artifactVersion": "4.2.1", + "name": "Koin", + "description": "KOIN - Kotlin simple Dependency Injection Framework", + "website": "https://insert-koin.io/", + "developers": [ + { + "name": "Arnaud Giuliani" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-common", + "artifactVersion": "2.10.0", + "name": "Lifecycle-Common", + "description": "Android Lifecycle-Common", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-runtime", + "artifactVersion": "2.9.6", + "name": "Lifecycle Runtime", + "description": "Android Lifecycle Runtime", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose", + "artifactVersion": "2.9.6", + "name": "Lifecycle Runtime Compose", + "description": "Compose integration with Lifecycle", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel", + "description": "Android Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel Compose", + "description": "Compose integration with Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-navigation3", + "artifactVersion": "2.10.0", + "name": "Androidx Lifecycle Navigation3 ViewModel", + "description": "Provides the ViewModel wrapper for nav3.", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-savedstate", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel with SavedState", + "description": "Android Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.navigation3:navigation3-ui", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 UI", + "description": "Provides a Navigation3 display that uses the building blocks from runtime to create a higher level solution.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.navigationevent:navigationevent-compose", + "artifactVersion": "1.0.1", + "name": "NavigationEvent Compose", + "description": "Compose integration with NavigationEvent", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.savedstate:savedstate", + "artifactVersion": "1.3.6", + "name": "Saved State", + "description": "Android Lifecycle Saved State", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.savedstate:savedstate-compose", + "artifactVersion": "1.3.6", + "name": "Saved State Compose", + "description": "Compose integration with Saved State", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.animation:animation", + "artifactVersion": "1.11.0", + "name": "Compose Animation", + "description": "Compose animation library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.animation:animation-core", + "artifactVersion": "1.11.0", + "name": "Compose Animation Core", + "description": "Animation engine and animation primitives that are the building blocks of the Compose animation library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.annotation-internal:annotation", + "artifactVersion": "1.10.0", + "name": "Annotation", + "description": "Provides source annotations for tooling and readability.", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.collection-internal:collection", + "artifactVersion": "1.10.0", + "name": "collections", + "description": "Standalone efficient collections.", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.components:components-resources", + "artifactVersion": "1.11.0", + "name": "Resources for Compose JB", + "description": "Resources for Compose JB", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.foundation:foundation", + "artifactVersion": "1.11.0", + "name": "Compose Foundation", + "description": "Higher level abstractions of the Compose UI primitives. This library is design system agnostic, providing the high-level building blocks for both application and design-system developers", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.foundation:foundation-layout", + "artifactVersion": "1.11.0", + "name": "Compose Layouts", + "description": "Compose layout implementations", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material3:material3", + "artifactVersion": "1.11.0-alpha07", + "name": "Compose Material3 Components", + "description": "Compose Material You Design Components library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material:material-ripple", + "artifactVersion": "1.11.0-beta03", + "name": "Compose Material Ripple", + "description": "Material ripple used to build interactive components", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.runtime:runtime", + "artifactVersion": "1.11.0", + "name": "Compose Runtime", + "description": "Tree composition support for code generated by the Compose compiler plugin and corresponding public API", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.runtime:runtime-saveable", + "artifactVersion": "1.11.0", + "name": "Compose Saveable", + "description": "Compose components that allow saving and restoring the local ui state", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui", + "artifactVersion": "1.11.0", + "name": "Compose UI", + "description": "Compose UI primitives. This library contains the primitives that form the Compose UI Toolkit, such as drawing, measurement and layout.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-backhandler", + "artifactVersion": "1.11.0", + "name": "Compose BackHandler", + "description": "Provides BackHandler in Compose Multiplatform projects", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-geometry", + "artifactVersion": "1.11.0", + "name": "Compose Geometry", + "description": "Compose classes related to dimensions without units", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-graphics", + "artifactVersion": "1.11.0", + "name": "Compose Graphics", + "description": "Compose graphics", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-text", + "artifactVersion": "1.11.0", + "name": "Compose UI Text", + "description": "Compose Text primitives and utilities", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-tooling-preview", + "artifactVersion": "1.11.0", + "name": "Compose UI Preview Tooling", + "description": "Compose tooling library API. This library provides the API required to declare @Preview composables in user apps.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-uikit", + "artifactVersion": "1.11.0", + "name": "Compose UIKit", + "description": "Internal iOS UIKit utilities including Objective-C library.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-unit", + "artifactVersion": "1.11.0", + "name": "Compose Unit", + "description": "Compose classes for simple units", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-util", + "artifactVersion": "1.11.0", + "name": "Compose Util", + "description": "Internal Compose utilities used by other modules", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlin:kotlin-stdlib", + "artifactVersion": "2.3.21", + "name": "Kotlin Stdlib", + "description": "Kotlin Standard Library", + "website": "https://kotlinlang.org/", + "developers": [ + { + "name": "Kotlin Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:atomicfu", + "artifactVersion": "0.28.0", + "name": "atomicfu", + "description": "AtomicFU utilities", + "website": "https://github.com/Kotlin/kotlinx.atomicfu", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-browser", + "artifactVersion": "0.5.0", + "name": "kotlinx-browser", + "description": "Kotlinx Browser", + "website": "https://github.com/Kotlin/kotlinx-browser", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-core", + "artifactVersion": "1.9.0", + "name": "kotlinx-coroutines-core", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-datetime", + "artifactVersion": "0.7.1", + "name": "kotlinx-datetime", + "description": "Kotlin Datetime Library", + "website": "https://github.com/Kotlin/kotlinx-datetime", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-core", + "artifactVersion": "1.11.0", + "name": "kotlinx-serialization-core", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-json", + "artifactVersion": "1.11.0", + "name": "kotlinx-serialization-json", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.skiko:skiko", + "artifactVersion": "0.144.6", + "name": "Skiko KMP", + "description": "Kotlin Skia bindings", + "website": "https://www.github.com/JetBrains/skiko", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + } + ], + "licenses": { + "Apache-2.0": { + "name": "Apache License 2.0", + "url": "https://spdx.org/licenses/Apache-2.0.html", + "content": "Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", + "internalHash": "Apache-2.0", + "spdxId": "Apache-2.0", + "hash": "Apache-2.0" + } + } +} \ No newline at end of file diff --git a/shared/src/jvmMain/resources/aboutlibraries.json b/shared/src/jvmMain/resources/aboutlibraries.json new file mode 100644 index 000000000..ce54fea25 --- /dev/null +++ b/shared/src/jvmMain/resources/aboutlibraries.json @@ -0,0 +1,1129 @@ +{ + "libraries": [ + { + "uniqueId": "androidx.annotation:annotation-jvm", + "artifactVersion": "1.9.1", + "name": "Annotation", + "description": "Provides source annotations for tooling and readability.", + "website": "https://developer.android.com/jetpack/androidx/releases/annotation#1.9.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.arch.core:core-common", + "artifactVersion": "2.2.0", + "name": "Android Arch-Common", + "description": "Android Arch-Common", + "website": "https://developer.android.com/jetpack/androidx/releases/arch-core#2.2.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.collection:collection-jvm", + "artifactVersion": "1.5.0", + "name": "collections", + "description": "Standalone efficient collections.", + "website": "https://developer.android.com/jetpack/androidx/releases/collection#1.5.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-annotation-jvm", + "artifactVersion": "1.11.1", + "name": "Compose Runtime Annotation", + "description": "Provides Compose-specific annotations used by the compiler and tooling", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-desktop", + "artifactVersion": "1.11.1", + "name": "Compose Runtime", + "description": "Tree composition support for code generated by the Compose compiler plugin and corresponding public API", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-retain-desktop", + "artifactVersion": "1.11.1", + "name": "Compose Runtime Retain", + "description": "Preserve state in composable methods across configuration changes and other transient content destruction scenarios", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.compose.runtime:runtime-saveable-desktop", + "artifactVersion": "1.11.1", + "name": "Compose Saveable", + "description": "Compose components that allow saving and restoring the local ui state", + "website": "https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.11.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.graphics:graphics-shapes-desktop", + "artifactVersion": "1.1.0", + "name": "Graphics Shapes", + "description": "create and render rounded polygonal shapes", + "website": "https://developer.android.com/jetpack/androidx/releases/graphics#1.1.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-common-jvm", + "artifactVersion": "2.9.4", + "name": "Lifecycle-Common", + "description": "Android Lifecycle-Common", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime-compose-desktop", + "artifactVersion": "2.9.4", + "name": "Lifecycle Runtime Compose", + "description": "Compose integration with Lifecycle", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-runtime-desktop", + "artifactVersion": "2.9.4", + "name": "Lifecycle Runtime", + "description": "Android Lifecycle Runtime", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.9.4", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-desktop", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel", + "description": "Android Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.lifecycle:lifecycle-viewmodel-savedstate-desktop", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel with SavedState", + "description": "Android Lifecycle ViewModel", + "website": "https://developer.android.com/jetpack/androidx/releases/lifecycle#2.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigation3:navigation3-runtime-desktop", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 Runtime", + "description": "Provides the building blocks for a Compose first Navigation solution that easily supports extensions.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigation3#1.1.1", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.navigationevent:navigationevent-desktop", + "artifactVersion": "1.0.2", + "name": "Navigation Event", + "description": "Provides APIs to easily intercept platform navigation events, including swipes and clicks, to provide a consistent API surface for handling these events.", + "website": "https://developer.android.com/jetpack/androidx/releases/navigationevent#1.0.2", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate-compose-desktop", + "artifactVersion": "1.4.0", + "name": "Saved State Compose", + "description": "Compose integration with Saved State", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "androidx.savedstate:savedstate-desktop", + "artifactVersion": "1.4.0", + "name": "Saved State", + "description": "Android Lifecycle Saved State", + "website": "https://developer.android.com/jetpack/androidx/releases/savedstate#1.4.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "co.touchlab:stately-concurrency-jvm", + "artifactVersion": "2.1.0", + "name": "Stately", + "description": "Multithreaded Kotlin Multiplatform Utilities", + "website": "https://github.com/touchlab/Stately", + "developers": [ + { + "name": "Kevin Galligan" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "com.russhwolf:multiplatform-settings-jvm", + "artifactVersion": "1.3.0", + "name": "Multiplatform Settings", + "description": "A Kotlin Multiplatform library for saving simple key-value data", + "website": "https://github.com/russhwolf/multiplatform-settings", + "developers": [ + { + "name": "Russell Wolf" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "io.insert-koin:koin-annotations-jvm", + "artifactVersion": "4.2.1", + "name": "Koin", + "description": "KOIN - Kotlin simple Dependency Injection Framework", + "website": "https://insert-koin.io/", + "developers": [ + { + "name": "Arnaud Giuliani" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-common", + "artifactVersion": "2.9.6", + "name": "Lifecycle-Common", + "description": "Android Lifecycle-Common", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-runtime", + "artifactVersion": "2.9.6", + "name": "Lifecycle Runtime", + "description": "Android Lifecycle Runtime", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-runtime-compose-desktop", + "artifactVersion": "2.9.6", + "name": "Lifecycle Runtime Compose", + "description": "Compose integration with Lifecycle", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel", + "description": "Android Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose-desktop", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel Compose", + "description": "Compose integration with Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-navigation3-desktop", + "artifactVersion": "2.10.0", + "name": "Androidx Lifecycle Navigation3 ViewModel", + "description": "Provides the ViewModel wrapper for nav3.", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-savedstate", + "artifactVersion": "2.10.0", + "name": "Lifecycle ViewModel with SavedState", + "description": "Android Lifecycle ViewModel", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.navigation3:navigation3-ui-desktop", + "artifactVersion": "1.1.1", + "name": "Androidx Navigation 3 UI", + "description": "Provides a Navigation3 display that uses the building blocks from runtime to create a higher level solution.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.navigationevent:navigationevent-compose-desktop", + "artifactVersion": "1.0.1", + "name": "NavigationEvent Compose", + "description": "Compose integration with NavigationEvent", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.savedstate:savedstate", + "artifactVersion": "1.3.6", + "name": "Saved State", + "description": "Android Lifecycle Saved State", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.androidx.savedstate:savedstate-compose-desktop", + "artifactVersion": "1.3.6", + "name": "Saved State Compose", + "description": "Compose integration with Saved State", + "website": "https://github.com/JetBrains/compose-jb", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.animation:animation-core-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Animation Core", + "description": "Animation engine and animation primitives that are the building blocks of the Compose animation library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.animation:animation-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Animation", + "description": "Compose animation library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.components:components-resources-desktop", + "artifactVersion": "1.11.0", + "name": "Resources for Compose JB", + "description": "Resources for Compose JB", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.desktop:desktop-jvm-linux-x64", + "artifactVersion": "1.11.0", + "name": "Compose Desktop", + "description": "Compose Desktop", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.foundation:foundation-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Foundation", + "description": "Higher level abstractions of the Compose UI primitives. This library is design system agnostic, providing the high-level building blocks for both application and design-system developers", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.foundation:foundation-layout-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Layouts", + "description": "Compose layout implementations", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-annotations-jvm", + "artifactVersion": "1.1.1", + "name": "hot-reload-annotations", + "description": "Compose Hot Reload implementation", + "website": "https://github.com/JetBrains/compose-hot-reload", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-core", + "artifactVersion": "1.1.1", + "name": "hot-reload-core", + "description": "Compose Hot Reload implementation", + "website": "https://github.com/JetBrains/compose-hot-reload", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-devtools-api", + "artifactVersion": "1.1.1", + "name": "hot-reload-devtools-api", + "description": "Compose Hot Reload implementation", + "website": "https://github.com/JetBrains/compose-hot-reload", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-orchestration", + "artifactVersion": "1.1.1", + "name": "hot-reload-orchestration", + "description": "Compose Hot Reload implementation", + "website": "https://github.com/JetBrains/compose-hot-reload", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-runtime-api-jvm", + "artifactVersion": "1.1.1", + "name": "hot-reload-runtime-api", + "description": "Compose Hot Reload implementation", + "website": "https://github.com/JetBrains/compose-hot-reload", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.hot-reload:hot-reload-runtime-jvm", + "artifactVersion": "1.1.1", + "name": "hot-reload-runtime-jvm", + "description": "Compose Hot Reload implementation", + "website": "https://github.com/JetBrains/compose-hot-reload", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material3:material3-desktop", + "artifactVersion": "1.11.0-alpha07", + "name": "Compose Material3 Components", + "description": "Compose Material You Design Components library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material:material-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Material Components", + "description": "Compose Material Design Components library", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.material:material-ripple-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Material Ripple", + "description": "Material ripple used to build interactive components", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.runtime:runtime-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Runtime", + "description": "Tree composition support for code generated by the Compose compiler plugin and corresponding public API", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.runtime:runtime-saveable-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Saveable", + "description": "Compose components that allow saving and restoring the local ui state", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-backhandler-desktop", + "artifactVersion": "1.11.0", + "name": "Compose BackHandler", + "description": "Provides BackHandler in Compose Multiplatform projects", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-desktop", + "artifactVersion": "1.11.0", + "name": "Compose UI", + "description": "Compose UI primitives. This library contains the primitives that form the Compose UI Toolkit, such as drawing, measurement and layout.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-geometry-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Geometry", + "description": "Compose classes related to dimensions without units", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-graphics-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Graphics", + "description": "Compose graphics", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-text-desktop", + "artifactVersion": "1.11.0", + "name": "Compose UI Text", + "description": "Compose Text primitives and utilities", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-tooling-preview-desktop", + "artifactVersion": "1.11.0", + "name": "Compose UI Preview Tooling", + "description": "Compose tooling library API. This library provides the API required to declare @Preview composables in user apps.", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-unit-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Unit", + "description": "Compose classes for simple units", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.compose.ui:ui-util-desktop", + "artifactVersion": "1.11.0", + "name": "Compose Util", + "description": "Internal Compose utilities used by other modules", + "website": "https://github.com/JetBrains/compose-multiplatform", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlin:kotlin-stdlib", + "artifactVersion": "2.3.21", + "name": "Kotlin Stdlib", + "description": "Kotlin Standard Library", + "website": "https://kotlinlang.org/", + "developers": [ + { + "name": "Kotlin Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:atomicfu-jvm", + "artifactVersion": "0.28.0", + "name": "atomicfu", + "description": "AtomicFU utilities", + "website": "https://github.com/Kotlin/kotlinx.atomicfu", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-bom", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-bom", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-core", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-coroutines-swing", + "artifactVersion": "1.11.0", + "name": "kotlinx-coroutines-swing", + "description": "Coroutines support libraries for Kotlin", + "website": "https://github.com/Kotlin/kotlinx.coroutines", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-datetime-jvm", + "artifactVersion": "0.7.1", + "name": "kotlinx-datetime", + "description": "Kotlin Datetime Library", + "website": "https://github.com/Kotlin/kotlinx-datetime", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-bom", + "artifactVersion": "1.7.3", + "name": "kotlinx-serialization-bom", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-core-jvm", + "artifactVersion": "1.7.3", + "name": "kotlinx-serialization-core", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.kotlinx:kotlinx-serialization-json-jvm", + "artifactVersion": "1.11.0", + "name": "kotlinx-serialization-json", + "description": "Kotlin multiplatform serialization runtime library", + "website": "https://github.com/Kotlin/kotlinx.serialization", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.runtime:jbr-api", + "artifactVersion": "1.9.0", + "name": "jbr-api", + "description": "Interface for the functionality specific to https://github.com/JetBrains/JetBrainsRuntime", + "website": "https://github.com/JetBrains/JetBrainsRuntimeApi", + "developers": [ + { + "name": "Nikita Gubarkov", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.skiko:skiko", + "artifactVersion": "0.144.6", + "name": "Skiko KMP", + "description": "Kotlin Skia bindings", + "website": "https://www.github.com/JetBrains/skiko", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.skiko:skiko-awt", + "artifactVersion": "0.144.6", + "name": "Skiko Awt", + "description": "Kotlin Skia bindings", + "website": "https://www.github.com/JetBrains/skiko", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains.skiko:skiko-awt-runtime-linux-x64", + "artifactVersion": "0.144.6", + "name": "Skiko JVM Runtime for Linux X64", + "description": "Kotlin Skia bindings", + "website": "https://www.github.com/JetBrains/skiko", + "developers": [ + { + "name": "Compose Multiplatform Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jetbrains:annotations", + "artifactVersion": "23.0.0", + "name": "JetBrains Java Annotations", + "description": "A set of annotations used for code inspection support and code documentation.", + "website": "https://github.com/JetBrains/java-annotations", + "developers": [ + { + "name": "JetBrains Team", + "organisationUrl": "https://www.jetbrains.com" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, + { + "uniqueId": "org.jspecify:jspecify", + "artifactVersion": "1.0.0", + "name": "JSpecify annotations", + "description": "An artifact of well-named and well-specified annotations to power static analysis checks", + "website": "http://jspecify.org/", + "developers": [ + { + "name": "Kevin Bourrillion" + } + ], + "licenses": [ + "Apache-2.0" + ] + } + ], + "licenses": { + "Apache-2.0": { + "name": "Apache License 2.0", + "url": "https://spdx.org/licenses/Apache-2.0.html", + "content": "Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/\n\nTERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n1. Definitions.\n\n\"License\" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.\n\n\"Licensor\" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.\n\n\"Legal Entity\" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, \"control\" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.\n\n\"You\" (or \"Your\") shall mean an individual or Legal Entity exercising permissions granted by this License.\n\n\"Source\" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.\n\n\"Object\" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.\n\n\"Work\" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).\n\n\"Derivative Works\" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.\n\n\"Contribution\" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, \"submitted\" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as \"Not a Contribution.\"\n\n\"Contributor\" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.\n\n2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.\n\n3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.\n\n4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:\n\n (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.\n\n You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.\n\n5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.\n\n6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.\n\n7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.\n\n8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.\n\n9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.\n\nEND OF TERMS AND CONDITIONS\n\nAPPENDIX: How to apply the Apache License to your work.\n\nTo apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets \"[]\" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same \"printed page\" as the copyright notice for easier identification within third-party archives.\n\nCopyright [yyyy] [name of copyright owner]\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.", + "internalHash": "Apache-2.0", + "spdxId": "Apache-2.0", + "hash": "Apache-2.0" + } + } +} \ No newline at end of file From 0d06dd9b1a8124492b9b335ae3dc5e2308748802 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Wed, 27 May 2026 20:12:58 +0800 Subject: [PATCH 16/41] shared: Add composables for displaying library and link information Signed-off-by: Aayush Gupta --- desktopApp/build.gradle.kts | 5 + .../src/main/kotlin/net/newpipe/app/Main.kt | 2 +- gradle/libs.versions.toml | 4 + shared/build.gradle.kts | 19 ++ .../androidMain/assets/aboutlibraries.json | 32 +++- .../files => androidMain/assets}/keep.xml | 0 .../kotlin/net/newpipe/app/ComposeActivity.kt | 20 ++- .../app/platform/AndroidResourceHandler.kt | 23 +++ .../app/platform/AndroidShareHandler.kt | 36 ++++ .../drawable/ic_foreground.xml | 15 ++ .../composeResources/values/strings.xml | 27 +++ .../commonMain/kotlin/net/newpipe/app/App.kt | 16 +- .../kotlin/net/newpipe/app/Constants.kt | 7 + .../app/composable/about/LibraryListItem.kt | 60 +++++++ .../app/composable/about/LinkListItem.kt | 65 +++++++ .../di/serialization/SerializationModule.kt | 31 ++++ .../net/newpipe/app/model/AboutLibraries.kt | 42 +++++ .../net/newpipe/app/model/LicenseInfo.kt | 18 ++ .../kotlin/net/newpipe/app/model/Link.kt | 16 ++ .../net/newpipe/app/navigation/NavDisplay.kt | 11 +- .../net/newpipe/app/navigation/Screen.kt | 6 +- .../newpipe/app/platform/PlatformModule.kt | 20 +++ .../newpipe/app/platform/ResourceHandler.kt | 18 ++ .../net/newpipe/app/platform/ShareHandler.kt | 14 ++ .../app/preview/LibraryPreviewProvider.kt | 34 ++++ .../app/preview/LinkPreviewProvider.kt | 25 +++ .../net/newpipe/app/screen/about/AboutPage.kt | 169 ++++++++++++++++++ .../newpipe/app/screen/about/AboutScreen.kt | 111 ++++++++++++ .../newpipe/app/screen/about/LicenseDialog.kt | 92 ++++++++++ .../newpipe/app/screen/about/LicensePage.kt | 156 ++++++++++++++++ .../app/screen/about/navigation/Page.kt | 19 ++ .../kotlin/net/newpipe/app/theme/Color.kt | 2 + .../kotlin/net/newpipe/app/theme/Dimens.kt | 24 +++ .../kotlin/net/newpipe/app/theme/Theme.kt | 5 +- .../newpipe/app/viewmodel/ViewModelModule.kt | 18 ++ .../app/viewmodel/about/AboutViewModel.kt | 53 ++++++ .../composable/about/LibraryListItemTest.kt | 50 ++++++ .../app/composable/about/LinkListItemTest.kt | 44 +++++ .../app/screen/about/LicenseDialogTest.kt | 47 +++++ .../net/newpipe/app/MainViewController.kt | 8 +- .../app/platform/IOSResourceHandler.kt | 28 +++ .../newpipe/app/platform/IOSShareHandler.kt | 30 ++++ .../src/iosMain/resources/aboutlibraries.json | 22 +++ .../app/platform/JVMResourceHandler.kt | 21 +++ .../newpipe/app/platform/JVMShareHandler.kt | 25 +++ .../src/jvmMain/resources/aboutlibraries.json | 22 +++ 46 files changed, 1502 insertions(+), 10 deletions(-) rename shared/src/{commonMain/composeResources/files => androidMain/assets}/keep.xml (100%) create mode 100644 shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidResourceHandler.kt create mode 100644 shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidShareHandler.kt create mode 100644 shared/src/commonMain/composeResources/drawable/ic_foreground.xml create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LibraryListItem.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LinkListItem.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/di/serialization/SerializationModule.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/model/Link.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/platform/PlatformModule.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/platform/ResourceHandler.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/platform/ShareHandler.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/preview/LibraryPreviewProvider.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/preview/LinkPreviewProvider.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutPage.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutScreen.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/screen/about/navigation/Page.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/theme/Dimens.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/ViewModelModule.kt create mode 100644 shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt create mode 100644 shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LibraryListItemTest.kt create mode 100644 shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LinkListItemTest.kt create mode 100644 shared/src/commonTest/kotlin/net/newpipe/app/screen/about/LicenseDialogTest.kt create mode 100644 shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSResourceHandler.kt create mode 100644 shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSShareHandler.kt create mode 100644 shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMResourceHandler.kt create mode 100644 shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMShareHandler.kt diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts index a9b022737..5dabccc17 100644 --- a/desktopApp/build.gradle.kts +++ b/desktopApp/build.gradle.kts @@ -38,4 +38,9 @@ aboutLibraries { prettyPrint = true excludeFields.addAll("organization", "scm", "funding") } + license { + additionalLicenses.addAll( + "GPL-3.0-or-later" + ) + } } diff --git a/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt b/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt index 609ce7289..62330aae5 100644 --- a/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt +++ b/desktopApp/src/main/kotlin/net/newpipe/app/Main.kt @@ -13,6 +13,6 @@ import androidx.compose.ui.window.application */ fun main() = application { Window(onCloseRequest = ::exitApplication, title = "NewPipe") { - App() + App(onCloseRequest = ::exitApplication) } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 753aabdcb..2d4480046 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -13,6 +13,7 @@ assertj = "3.27.7" autoservice-google = "1.1.1" autoservice-zacsweers = "1.2.0" bridge = "v2.0.2" +browser = "1.10.0" cardview = "1.0.0" checkstyle = "13.4.2" coil = "3.4.0" @@ -29,6 +30,7 @@ groupie = "2.10.1" jsoup = "1.22.2" junit = "4.13.2" junit-ext = "1.3.0" +kermit = "2.1.0" koin = "4.2.1" koin-plugin = "1.0.0" kotlin = "2.3.21" @@ -81,6 +83,7 @@ acra-core = { module = "ch.acra:acra-core", version.ref = "acra" } android-desugar = { module = "com.android.tools:desugar_jdk_libs_nio", version.ref = "desugar" } androidx-activity = { module = "androidx.activity:activity-compose", version.ref = "activity" } androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" } +androidx-browser = { module = "androidx.browser:browser", version.ref = "browser" } androidx-cardview = { module = "androidx.cardview:cardview", version.ref = "cardview" } androidx-compose-test-ui-junit = { module = "androidx.compose.ui:ui-test-junit4-android", version.ref = "compose" } androidx-compose-test-ui-manifest = { module = "androidx.compose.ui:ui-test-manifest", version.ref = "compose" } @@ -164,6 +167,7 @@ squareup-leakcanary-core = { module = "com.squareup.leakcanary:leakcanary-androi squareup-leakcanary-plumber = { module = "com.squareup.leakcanary:plumber-android", version.ref = "leakcanary" } squareup-leakcanary-watcher = { module = "com.squareup.leakcanary:leakcanary-object-watcher-android", version.ref = "leakcanary" } squareup-okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" } +touchlab-kermit = { module = "co.touchlab:kermit", version.ref = "kermit" } zacsweers-autoservice-compiler = { module = "dev.zacsweers.autoservice:auto-service-ksp", version.ref = "autoservice-zacsweers" } [plugins] diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 68f878061..bdd32cd3a 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -109,6 +109,7 @@ kotlin { implementation(libs.koin.annotations) implementation(libs.russhwolf.settings.core) + implementation(libs.touchlab.kermit) } } commonTest.dependencies { @@ -120,6 +121,7 @@ kotlin { implementation(libs.jetbrains.compose.preview) implementation(libs.androidx.activity) implementation(libs.androidx.preference) + implementation(libs.androidx.browser) } val androidDeviceTest by getting { dependencies { @@ -154,4 +156,21 @@ aboutLibraries { variant = "metadataIosMain" excludeFields.addAll("organization", "scm", "funding") } + license { + additionalLicenses.addAll( + "GPL-3.0-or-later" + ) + // Ensure all licenses are known and have an SPDX ID (https://spdx.org/licenses/) + // When adding a new license here, also add it to net.newpipe.app.model.License for mapping + allowedLicenses.addAll( + "Apache-2.0", + "BSD-2-Clause", + "BSD-2-Clause", + "EPL-1.0", + "GPL-3.0-or-later", + "MIT", + "MIT-0", + "MPL-2.0" + ) + } } diff --git a/shared/src/androidMain/assets/aboutlibraries.json b/shared/src/androidMain/assets/aboutlibraries.json index c672a69bc..5198c1b0b 100644 --- a/shared/src/androidMain/assets/aboutlibraries.json +++ b/shared/src/androidMain/assets/aboutlibraries.json @@ -150,6 +150,21 @@ "Apache-2.0" ] }, + { + "uniqueId": "androidx.browser:browser", + "artifactVersion": "1.10.0", + "name": "Browser", + "description": "Provides support for embedding Custom Tabs in an app.", + "website": "https://developer.android.com/jetpack/androidx/releases/browser#1.10.0", + "developers": [ + { + "name": "The Android Open Source Project" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, { "uniqueId": "androidx.cardview:cardview", "artifactVersion": "1.0.0", @@ -1608,6 +1623,21 @@ "Apache-2.0" ] }, + { + "uniqueId": "co.touchlab:kermit-android-debug", + "artifactVersion": "2.1.0", + "name": "Kermit", + "description": "Kermit The Log", + "website": "https://github.com/touchlab/Kermit", + "developers": [ + { + "name": "Kevin Galligan" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, { "uniqueId": "co.touchlab:stately-concurrency-jvm", "artifactVersion": "2.1.0", @@ -3405,4 +3435,4 @@ "hash": "MPL-2.0" } } -} \ No newline at end of file +} diff --git a/shared/src/commonMain/composeResources/files/keep.xml b/shared/src/androidMain/assets/keep.xml similarity index 100% rename from shared/src/commonMain/composeResources/files/keep.xml rename to shared/src/androidMain/assets/keep.xml diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt b/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt index ccd7893a0..bab2ebfe0 100644 --- a/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt +++ b/shared/src/androidMain/kotlin/net/newpipe/app/ComposeActivity.kt @@ -9,9 +9,13 @@ import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.enableEdgeToEdge +import androidx.compose.runtime.DisposableEffect +import androidx.compose.ui.platform.LocalView +import androidx.core.view.WindowCompat import kotlinx.serialization.json.Json import net.newpipe.Constants import net.newpipe.app.navigation.Screen +import net.newpipe.app.theme.currentService /** * Entry point for compose-related UI components on Android @@ -26,8 +30,20 @@ class ComposeActivity : ComponentActivity() { // TODO: Change when everything is in compose and this is the primary activity startDestination = Json.decodeFromString( intent.getStringExtra(Constants.INTENT_SCREEN_KEY)!! - ) - ) + ), + onCloseRequest = ::finish + ) { + val view = LocalView.current + val service = currentService() + + DisposableEffect(service) { + val windowController = WindowCompat.getInsetsController(window, view) + windowController.isAppearanceLightStatusBars = service.isSchemeColorDensityLight + onDispose { + windowController.isAppearanceLightStatusBars = false + } + } + } } } } diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidResourceHandler.kt b/shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidResourceHandler.kt new file mode 100644 index 000000000..d162cd930 --- /dev/null +++ b/shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidResourceHandler.kt @@ -0,0 +1,23 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import android.content.Context +import org.koin.core.annotation.Singleton + +/** + * Handles working with resources on Android + * @property context Context on Android, injected automatically by Koin + */ +@Singleton(binds = [ResourceHandler::class]) +class AndroidResourceHandler(private val context: Context) : ResourceHandler { + + override fun readResourceToString(path: String): String { + return context.assets.open(path).use { inputStream -> + inputStream.bufferedReader().readText() + } + } +} diff --git a/shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidShareHandler.kt b/shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidShareHandler.kt new file mode 100644 index 000000000..8d55611a2 --- /dev/null +++ b/shared/src/androidMain/kotlin/net/newpipe/app/platform/AndroidShareHandler.kt @@ -0,0 +1,36 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import android.content.Context +import android.content.Intent +import androidx.browser.customtabs.CustomTabsIntent +import androidx.core.net.toUri +import co.touchlab.kermit.Logger +import org.koin.core.annotation.Singleton + +/** + * Handles sharing of data and information on Android + * @property context Context on Android, injected automatically by Koin + */ +@Singleton(binds = [ShareHandler::class]) +class AndroidShareHandler(private val context: Context) : ShareHandler { + + override fun openUrlInBrowser(url: String) { + try { + CustomTabsIntent.Builder() + .build() + .also { customIntent -> + customIntent.intent.addFlags( + Intent.FLAG_ACTIVITY_NEW_TASK + ) + } + .launchUrl(context, url.toUri()) + } catch (exception: Exception) { + Logger.e(messageString = "Failed to share URL", throwable = exception) + } + } +} diff --git a/shared/src/commonMain/composeResources/drawable/ic_foreground.xml b/shared/src/commonMain/composeResources/drawable/ic_foreground.xml new file mode 100644 index 000000000..e798f2981 --- /dev/null +++ b/shared/src/commonMain/composeResources/drawable/ic_foreground.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/shared/src/commonMain/composeResources/values/strings.xml b/shared/src/commonMain/composeResources/values/strings.xml index 74b75e7cd..c991e2413 100644 --- a/shared/src/commonMain/composeResources/values/strings.xml +++ b/shared/src/commonMain/composeResources/values/strings.xml @@ -8,4 +8,31 @@ Back + + + About NewPipe + Third-party Licenses + By %1$s under %2$s + About \u0026 FAQ + Licenses + Libre lightweight streaming on Android. + Contribute + Whether you have ideas of; translation, design changes, code cleaning, or real heavy code changes—help is always welcome. The more is done the better it gets! + View on GitHub + Donate + NewPipe is developed by volunteers spending their free time bringing you the best user experience. Give back to help developers make NewPipe even better while they enjoy a cup of coffee. + Give back + Website + Visit the NewPipe Website for more info and news. + NewPipe\'s Privacy Policy + The NewPipe project takes your privacy very seriously. Therefore, the app does not collect any data without your consent.\nNewPipe\'s privacy policy explains in detail what data is sent and stored when you send a crash report. + Read privacy policy + NewPipe\'s License + NewPipe is copyleft libre software: You can use, study, share, and improve it at will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + Read license + Frequently asked questions + If you are having trouble using the app, be sure to check out these answers to common questions! + View on website + Open in browser + Done diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/App.kt b/shared/src/commonMain/kotlin/net/newpipe/app/App.kt index 81cdbce63..691cc7844 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/App.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/App.kt @@ -7,6 +7,7 @@ package net.newpipe.app import androidx.compose.runtime.Composable import net.newpipe.app.di.KoinApp +import net.newpipe.app.navigation.NavDisplay import net.newpipe.app.navigation.Screen import net.newpipe.app.theme.AppTheme import org.koin.compose.KoinApplication @@ -14,12 +15,23 @@ import org.koin.plugin.module.dsl.koinConfiguration /** * Entry point for the multiplatform compose application - * @param startDestination Starting destination for the app + * @param startDestination Starting destination for the app; defaults to about + * @param onCloseRequest Callback to close the app + * @param withKoin Additional logic to execute after initialising Koin and setting content */ @Composable -fun App(startDestination: Screen? = null) { +fun App( + startDestination: Screen = Screen.About, + onCloseRequest: () -> Unit, + withKoin: @Composable () -> Unit = {} +) { KoinApplication(configuration = koinConfiguration()) { AppTheme { + NavDisplay( + startDestination = startDestination, + onCloseRequest = onCloseRequest + ) + withKoin() } } } diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt b/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt index 757f644a1..268be463d 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/Constants.kt @@ -6,5 +6,12 @@ package net.newpipe.app object Constants { + const val URL_GITHUB = "https://github.com/TeamNewPipe/NewPipe" + const val URL_DONATION = "https://newpipe.net/donate/" + const val URL_WEBSITE = "https://newpipe.net/" + const val URL_PRIVACY = "https://newpipe.net/legal/privacy/" + const val URL_FAQ = "https://newpipe.net/FAQ/" + const val URL_LICENSE = "https://github.com/TeamNewPipe/NewPipe/blob/master/LICENSE" + const val KEY_STREAMING_SERVICE = "service" } diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LibraryListItem.kt b/shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LibraryListItem.kt new file mode 100644 index 000000000..463d06053 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LibraryListItem.kt @@ -0,0 +1,60 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.composable.about + +import androidx.compose.foundation.layout.Column +import androidx.compose.material3.ListItem +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.PreviewLightDark +import androidx.compose.ui.tooling.preview.PreviewParameter +import androidx.compose.ui.tooling.preview.PreviewWrapper +import net.newpipe.app.model.Library +import net.newpipe.app.preview.LibraryPreviewProvider +import net.newpipe.app.preview.ThemePreviewProvider +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.license +import org.jetbrains.compose.resources.stringResource + +/** + * Composable to display library details which are being used in the app + * @param modifier Modifier for the composable + * @param library Library to show the details + * @param onClick Callback when this composable is clicked + */ +@Composable +fun LibraryListItem(modifier: Modifier = Modifier, library: Library, onClick: () -> Unit = {}) { + ListItem( + onClick = onClick, + content = { + Column { + Text( + text = library.name, + style = MaterialTheme.typography.titleMedium + ) + Text( + text = stringResource( + Res.string.license, + library.developers.first().name, + library.licenses.first() + ), + style = MaterialTheme.typography.bodyMedium + ) + } + } + ) +} + +@PreviewWrapper(ThemePreviewProvider::class) +@PreviewLightDark +@Composable +private fun LibraryListItemPreview( + @PreviewParameter(LibraryPreviewProvider::class) library: Library +) { + LibraryListItem(library = library) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LinkListItem.kt b/shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LinkListItem.kt new file mode 100644 index 000000000..1da5fe5a1 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/composable/about/LinkListItem.kt @@ -0,0 +1,65 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.composable.about + +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.wrapContentWidth +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.PreviewLightDark +import androidx.compose.ui.tooling.preview.PreviewParameter +import androidx.compose.ui.tooling.preview.PreviewWrapper +import net.newpipe.app.model.Link +import net.newpipe.app.preview.LinkPreviewProvider +import net.newpipe.app.preview.ThemePreviewProvider +import net.newpipe.app.theme.spaceXSmall + +/** + * Composable to display information about links + * @param link A link item with information + * @param onAction Callback when the action button is clicked + */ +@Composable +fun LinkListItem(modifier: Modifier = Modifier, link: Link, onAction: () -> Unit = {}) { + Column( + modifier = modifier + .fillMaxWidth() + .padding(spaceXSmall) + ) { + Text( + text = link.title, + style = MaterialTheme.typography.titleMedium + ) + Text( + text = link.description, + style = MaterialTheme.typography.bodyMedium + ) + + TextButton( + modifier = Modifier + .fillMaxWidth() + .wrapContentWidth(Alignment.End), + onClick = onAction + ) { + Text(text = link.action) + } + } +} + +@PreviewWrapper(ThemePreviewProvider::class) +@PreviewLightDark +@Composable +private fun LinkListItemPreview( + @PreviewParameter(LinkPreviewProvider::class) link: Link +) { + LinkListItem(link = link) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/di/serialization/SerializationModule.kt b/shared/src/commonMain/kotlin/net/newpipe/app/di/serialization/SerializationModule.kt new file mode 100644 index 000000000..fd5d21495 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/di/serialization/SerializationModule.kt @@ -0,0 +1,31 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.di.serialization + +import kotlinx.serialization.json.Json +import org.koin.core.annotation.ComponentScan +import org.koin.core.annotation.Configuration +import org.koin.core.annotation.Module +import org.koin.core.annotation.Singleton + +/** + * Serialization module to serialize various resources into kotlin classes. + */ +@Module +@ComponentScan +@Configuration +object SerializationModule { + + @Singleton + fun provideJson(): Json { + return Json { + prettyPrint = true + ignoreUnknownKeys = true + coerceInputValues = true + explicitNulls = true + } + } +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt b/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt new file mode 100644 index 000000000..4a86aa879 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt @@ -0,0 +1,42 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.model + +import kotlinx.serialization.SerialName +import kotlinx.serialization.Serializable + +/** + * Classes to hold information parsed from the BOM generated by the AboutLibraries plugin + */ +@Serializable +data class AboutLibraries( + val libraries: List, + val licenses: Map +) + +@Serializable +data class Library( + @SerialName("uniqueId") + val id: String, + val name: String, + val developers: List, + val licenses: List, + val website: String? = null +) + +@Serializable +data class Developer( + val name: String, + val organisationUrl: String? = null +) + +@Serializable +data class License( + val content: String, + val name: String, + val spdxId: String, + val url: String +) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt b/shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt new file mode 100644 index 000000000..791c8c08e --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt @@ -0,0 +1,18 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.model + +import kotlinx.serialization.Serializable + +/** + * Class to hold information about a license shown to user + */ +@Serializable +data class LicenseInfo( + val name: String, + val website: String, + val license: String +) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/model/Link.kt b/shared/src/commonMain/kotlin/net/newpipe/app/model/Link.kt new file mode 100644 index 000000000..448b39d0e --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/model/Link.kt @@ -0,0 +1,16 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.model + +/** + * Class to hold data for links shown to users + */ +data class Link( + val title: String, + val description: String, + val action: String, + val url: String +) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt index 8592b20b9..8b426bfb8 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/NavDisplay.kt @@ -9,18 +9,27 @@ import androidx.compose.runtime.Composable import androidx.navigation3.runtime.entryProvider import androidx.navigation3.runtime.rememberNavBackStack import androidx.navigation3.ui.NavDisplay +import net.newpipe.app.screen.about.AboutScreen /** * Navigation display for compose screens * @param startDestination Starting destination for the app + * @param onCloseRequest Callback to close app when there are no more screens left in backstack */ @Composable -fun NavDisplay(startDestination: Screen) { +fun NavDisplay(startDestination: Screen, onCloseRequest: () -> Unit) { val backstack = rememberNavBackStack(screenConfig, startDestination) + fun onNavigateUp() = if (backstack.size > 1) backstack.removeLastOrNull() else onCloseRequest() + NavDisplay( backStack = backstack, entryProvider = entryProvider { + entry { + AboutScreen( + onNavigateUp = ::onNavigateUp + ) + } } ) } diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt index 6f5822a50..f1be64927 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/navigation/Screen.kt @@ -16,7 +16,11 @@ import kotlinx.serialization.modules.polymorphic * Destinations for navigation in compose */ @Serializable -sealed interface Screen : NavKey +sealed interface Screen : NavKey { + + @Serializable + data object About : Screen +} /** * Saved state configuration for screens diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/platform/PlatformModule.kt b/shared/src/commonMain/kotlin/net/newpipe/app/platform/PlatformModule.kt new file mode 100644 index 000000000..07026defc --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/platform/PlatformModule.kt @@ -0,0 +1,20 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import org.koin.core.annotation.ComponentScan +import org.koin.core.annotation.Configuration +import org.koin.core.annotation.Module + +/** + * Module to access various common implementations that are dependent upon platform. + * See individual interfaces in this package and their implementations on platform packages + * for the declarations included in this module. + */ +@Module +@ComponentScan +@Configuration +object PlatformModule diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/platform/ResourceHandler.kt b/shared/src/commonMain/kotlin/net/newpipe/app/platform/ResourceHandler.kt new file mode 100644 index 000000000..b360cbe2f --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/platform/ResourceHandler.kt @@ -0,0 +1,18 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +/** + * Helper for working with platform-specific resources + * See individual platform classes for real implementation. + */ +interface ResourceHandler { + + /** + * Reads the resource at the given path + */ + fun readResourceToString(path: String): String +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/platform/ShareHandler.kt b/shared/src/commonMain/kotlin/net/newpipe/app/platform/ShareHandler.kt new file mode 100644 index 000000000..5f7ad7826 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/platform/ShareHandler.kt @@ -0,0 +1,14 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +/** + * Helper methods related to sharing of data and information + * See individual platform classes for real implementation. + */ +interface ShareHandler { + fun openUrlInBrowser(url: String) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/preview/LibraryPreviewProvider.kt b/shared/src/commonMain/kotlin/net/newpipe/app/preview/LibraryPreviewProvider.kt new file mode 100644 index 000000000..b3b1f82a5 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/preview/LibraryPreviewProvider.kt @@ -0,0 +1,34 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.preview + +import androidx.compose.ui.tooling.preview.PreviewParameterProvider +import net.newpipe.app.model.Developer +import net.newpipe.app.model.Library + +/** + * Preview provider for composable working with [Library] + */ +class LibraryPreviewProvider : PreviewParameterProvider { + + override val values: Sequence + get() = sequenceOf(library) + + companion object { + val library = Library( + id = "net.newpipe.extractor", + name = "NewPipe Extractor", + developers = listOf( + Developer( + name = "Team NewPipe", + organisationUrl = "https://newpipe.net/" + ) + ), + licenses = listOf("GPL-3.0-or-later"), + website = "https://github.com/TeamNewPipe/NewPipeExtractor/" + ) + } +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/preview/LinkPreviewProvider.kt b/shared/src/commonMain/kotlin/net/newpipe/app/preview/LinkPreviewProvider.kt new file mode 100644 index 000000000..72622c5eb --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/preview/LinkPreviewProvider.kt @@ -0,0 +1,25 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.preview + +import androidx.compose.ui.tooling.preview.PreviewParameterProvider +import net.newpipe.app.model.Link + +/** + * Preview provider for composable working with [Link] + */ +class LinkPreviewProvider : PreviewParameterProvider { + + override val values: Sequence + get() = sequenceOf( + Link( + title = "About NewPipe e.V.", + description = "A non-profit association founded in Germany in 2022, mostly by TeamNewPipe members.", + action = "Join the association", + url = "https://newpipe-ev.de/join/" + ) + ) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutPage.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutPage.kt new file mode 100644 index 000000000..12c4cb9c6 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutPage.kt @@ -0,0 +1,169 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.screen.about + +import androidx.compose.foundation.Image +import androidx.compose.foundation.background +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.asPaddingValues +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.navigationBars +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.requiredSize +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.clip +import androidx.compose.ui.text.style.TextAlign +import androidx.compose.ui.tooling.preview.PreviewLightDark +import androidx.compose.ui.tooling.preview.PreviewWrapper +import net.newpipe.app.BuildConfig +import net.newpipe.app.Constants +import net.newpipe.app.composable.about.LinkListItem +import net.newpipe.app.model.Link +import net.newpipe.app.platform.ShareHandler +import net.newpipe.app.preview.ThemePreviewProvider +import net.newpipe.app.theme.iconTVDPI +import net.newpipe.app.theme.logoBackground +import net.newpipe.app.theme.spaceLarge +import net.newpipe.app.theme.spaceXSmall +import net.newpipe.app.theme.spaceXXSmall +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.app_description +import newpipe.shared.generated.resources.app_name +import newpipe.shared.generated.resources.contribution_encouragement +import newpipe.shared.generated.resources.contribution_title +import newpipe.shared.generated.resources.donation_encouragement +import newpipe.shared.generated.resources.donation_title +import newpipe.shared.generated.resources.faq +import newpipe.shared.generated.resources.faq_description +import newpipe.shared.generated.resources.faq_title +import newpipe.shared.generated.resources.give_back +import newpipe.shared.generated.resources.ic_foreground +import newpipe.shared.generated.resources.open_in_browser +import newpipe.shared.generated.resources.privacy_policy_encouragement +import newpipe.shared.generated.resources.privacy_policy_title +import newpipe.shared.generated.resources.read_privacy_policy +import newpipe.shared.generated.resources.view_on_github +import newpipe.shared.generated.resources.website_encouragement +import newpipe.shared.generated.resources.website_title +import org.jetbrains.compose.resources.painterResource +import org.jetbrains.compose.resources.stringResource +import org.koin.compose.koinInject + +@get:Composable +private val DEFAULT_LINKS: List + get() = listOf( + Link( + title = stringResource(Res.string.faq_title), + description = stringResource(Res.string.faq_description), + action = stringResource(Res.string.faq), + url = Constants.URL_FAQ + ), + Link( + title = stringResource(Res.string.contribution_title), + description = stringResource(Res.string.contribution_encouragement), + action = stringResource(Res.string.view_on_github), + url = Constants.URL_GITHUB + ), + Link( + title = stringResource(Res.string.donation_title), + description = stringResource(Res.string.donation_encouragement), + action = stringResource(Res.string.give_back), + url = Constants.URL_DONATION + ), + Link( + title = stringResource(Res.string.website_title), + description = stringResource(Res.string.website_encouragement), + action = stringResource(Res.string.open_in_browser), + url = Constants.URL_WEBSITE + ), + Link( + title = stringResource(Res.string.privacy_policy_title), + description = stringResource(Res.string.privacy_policy_encouragement), + action = stringResource(Res.string.read_privacy_policy), + url = Constants.URL_PRIVACY + ) + ) + +@Composable +fun AboutPage(shareHandler: ShareHandler = koinInject()) { + AboutPageContent( + onOpenUrl = { url -> shareHandler.openUrlInBrowser(url) } + ) +} + +@Composable +fun AboutPageContent( + links: List = DEFAULT_LINKS, + onOpenUrl: (url: String) -> Unit = {} +) { + LazyColumn( + modifier = Modifier.fillMaxSize(), + contentPadding = WindowInsets.navigationBars.asPaddingValues(), + verticalArrangement = Arrangement.spacedBy(spaceXXSmall) + ) { + // Page Header + item { + Column( + modifier = Modifier + .padding(spaceLarge) + .fillMaxWidth(), + horizontalAlignment = Alignment.CenterHorizontally + ) { + Image( + modifier = Modifier + .requiredSize(iconTVDPI) + .clip(CircleShape) + .background(color = logoBackground), + painter = painterResource(Res.drawable.ic_foreground), + contentDescription = stringResource(Res.string.app_name) + ) + Spacer(modifier = Modifier.height(spaceXSmall)) + Text( + text = stringResource(Res.string.app_name), + style = MaterialTheme.typography.titleLarge, + textAlign = TextAlign.Center + ) + Text( + text = BuildConfig.VERSION_NAME, + style = MaterialTheme.typography.titleMedium, + textAlign = TextAlign.Center + ) + Text( + modifier = Modifier.fillMaxWidth(), + text = stringResource(Res.string.app_description), + textAlign = TextAlign.Center + ) + } + } + + // Links about NewPipe + items(items = links, key = { link -> link.url }) { link -> + LinkListItem( + link = link, + onAction = { onOpenUrl(link.url) } + ) + } + } +} + +@PreviewWrapper(ThemePreviewProvider::class) +@PreviewLightDark +@Composable +private fun AboutPagePreview() { + AboutPageContent() +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutScreen.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutScreen.kt new file mode 100644 index 000000000..732b697f1 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/AboutScreen.kt @@ -0,0 +1,111 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.screen.about + +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.pager.HorizontalPager +import androidx.compose.foundation.pager.rememberPagerState +import androidx.compose.material3.ColorScheme +import androidx.compose.material3.Scaffold +import androidx.compose.material3.SecondaryTabRow +import androidx.compose.material3.Tab +import androidx.compose.material3.TabRowDefaults +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.rememberCoroutineScope +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.Preview +import androidx.compose.ui.tooling.preview.PreviewWrapper +import androidx.compose.ui.util.fastForEachIndexed +import kotlinx.coroutines.launch +import net.newpipe.app.composable.TopAppBar +import net.newpipe.app.preview.ThemePreviewProvider +import net.newpipe.app.screen.about.navigation.Page +import net.newpipe.app.theme.currentServiceScheme +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.title_activity_about +import org.jetbrains.compose.resources.stringResource + +@Composable +fun AboutScreen(onNavigateUp: () -> Unit) { + AboutScreenContent( + onNavigateUp = onNavigateUp + ) +} + +@Composable +fun AboutScreenContent( + pages: List = listOf(Page.ABOUT, Page.LICENSE), + onNavigateUp: () -> Unit = {}, + serviceScheme: ColorScheme = currentServiceScheme() +) { + Scaffold( + topBar = { + TopAppBar( + title = stringResource(Res.string.title_activity_about), + onNavigateUp = onNavigateUp + ) + } + ) { paddingValues -> + Column( + modifier = Modifier + .fillMaxSize() + .padding(top = paddingValues.calculateTopPadding()) + ) { + val pagerState = rememberPagerState { pages.size } + val coroutineScope = rememberCoroutineScope() + + SecondaryTabRow( + modifier = Modifier.fillMaxWidth(), + containerColor = serviceScheme.primaryContainer, + indicator = { + TabRowDefaults.SecondaryIndicator( + modifier = Modifier.tabIndicatorOffset( + selectedTabIndex = pagerState.currentPage, + matchContentSize = false + ), + color = serviceScheme.onPrimaryContainer + ) + }, + selectedTabIndex = pagerState.currentPage + ) { + pages.fastForEachIndexed { index, _ -> + Tab( + selected = pagerState.currentPage == index, + text = { + Text( + text = stringResource(pages[index].localizedTitle), + color = serviceScheme.onPrimaryContainer + ) + }, + onClick = { + coroutineScope.launch { + pagerState.animateScrollToPage(index) + } + } + ) + } + } + + HorizontalPager(modifier = Modifier.fillMaxSize(), state = pagerState) { page -> + when (pages[page]) { + Page.ABOUT -> AboutPage() + Page.LICENSE -> LicensePage() + } + } + } + } +} + +@PreviewWrapper(ThemePreviewProvider::class) +@Preview +@Composable +private fun AboutScreenPreview() { + AboutScreenContent() +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt new file mode 100644 index 000000000..79b338976 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt @@ -0,0 +1,92 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.screen.about + +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items +import androidx.compose.material3.AlertDialog +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.runtime.remember +import androidx.compose.ui.Modifier +import androidx.compose.ui.platform.testTag +import androidx.compose.ui.tooling.preview.PreviewLightDark +import androidx.compose.ui.tooling.preview.PreviewWrapper +import net.newpipe.app.model.LicenseInfo +import net.newpipe.app.preview.ThemePreviewProvider +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.done +import newpipe.shared.generated.resources.website_title +import org.jetbrains.compose.resources.stringResource + +/** + * Test tag for lazy column hosting license text + */ +const val TEST_TAG_LICENSE_TEXT = "TEST_TAG_LICENSE_TEXT" + +/** + * Dialog to show license and other details for a library + * @param modifier Modifier for the dialog + * @param info License information to display + * @param onOpenWebsite Callback when action button to view library's website is clicked + * @param onDismiss Callback when the dialog is dismissed + */ +@Composable +fun LicenseDialog( + modifier: Modifier = Modifier, + info: LicenseInfo, + onOpenWebsite: (website: String) -> Unit = {}, + onDismiss: () -> Unit = {} +) { + val licenseContent = remember(info.license) { + info.license.lines() + } + + AlertDialog( + modifier = modifier, + title = { Text(text = info.name) }, + text = { + LazyColumn( + modifier = Modifier + .fillMaxWidth() + .testTag(TEST_TAG_LICENSE_TEXT) + ) { + items(items = licenseContent) { line -> + Text(text = line) + } + } + }, + onDismissRequest = onDismiss, + dismissButton = { + TextButton( + onClick = { onOpenWebsite(info.website) }, + enabled = info.website.isNotBlank() + ) { + Text(text = stringResource(Res.string.website_title)) + } + }, + confirmButton = { + TextButton(onClick = onDismiss) { + Text(text = stringResource(Res.string.done)) + } + } + ) +} + +@PreviewWrapper(ThemePreviewProvider::class) +@PreviewLightDark +@Composable +private fun LicenseDialogPreview() { + LicenseDialog( + info = LicenseInfo( + name = "NewPipe", + website = "https://newpipe.net/", + license = "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright \u00a9 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n\u201cThis License\u201d refers to version 3 of the GNU General Public License.\n\n\u201cCopyright\u201d also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\u201cThe Program\u201d refers to any copyrightable work licensed under this License. Each licensee is addressed as \u201cyou\u201d. \u201cLicensees\u201d and \u201crecipients\u201d may be individuals or organizations.\n\nTo \u201cmodify\u201d a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \u201cmodified version\u201d of the earlier work or a work \u201cbased on\u201d the earlier work.\n\nA \u201ccovered work\u201d means either the unmodified Program or a work based on the Program.\n\nTo \u201cpropagate\u201d a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \u201cconvey\u201d a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \u201cAppropriate Legal Notices\u201d to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \u201csource code\u201d for a work means the preferred form of the work for making modifications to it. \u201cObject code\u201d means any non-source form of a work.\n\nA \u201cStandard Interface\u201d means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \u201cSystem Libraries\u201d of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \u201cMajor Component\u201d, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \u201cCorresponding Source\u201d for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \u201ckeep intact all notices\u201d.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \u201caggregate\u201d if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \u201cUser Product\u201d is either (1) a \u201cconsumer product\u201d, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \u201cnormally used\u201d refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\u201cInstallation Information\u201d for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\u201cAdditional permissions\u201d are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered \u201cfurther restrictions\u201d within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn \u201centity transaction\u201d is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \u201ccontributor\u201d is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \u201ccontributor version\u201d.\n\nA contributor's \u201cessential patent claims\u201d are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \u201ccontrol\u201d includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \u201cpatent license\u201d is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \u201cgrant\u201d such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \u201cKnowingly relying\u201d means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \u201cdiscriminatory\u201d if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \u201cor any later version\u201d applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \u201cAS IS\u201d WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \u201ccopyright\u201d line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \u201cabout box\u201d.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \u201ccopyright disclaimer\u201d for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read ." + ) + ) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt new file mode 100644 index 000000000..d3f727a50 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt @@ -0,0 +1,156 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.screen.about + +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.WindowInsets +import androidx.compose.foundation.layout.asPaddingValues +import androidx.compose.foundation.layout.fillMaxSize +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.navigationBars +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.wrapContentWidth +import androidx.compose.foundation.lazy.LazyColumn +import androidx.compose.foundation.lazy.items +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.material3.TextButton +import androidx.compose.runtime.Composable +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.saveable.rememberSaveable +import androidx.compose.runtime.setValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.tooling.preview.PreviewLightDark +import androidx.compose.ui.tooling.preview.PreviewParameter +import androidx.compose.ui.tooling.preview.PreviewWrapper +import androidx.lifecycle.compose.collectAsStateWithLifecycle +import kotlin.random.Random +import net.newpipe.app.composable.about.LibraryListItem +import net.newpipe.app.model.Library +import net.newpipe.app.model.License +import net.newpipe.app.model.LicenseInfo +import net.newpipe.app.platform.ShareHandler +import net.newpipe.app.preview.LibraryPreviewProvider +import net.newpipe.app.preview.ThemePreviewProvider +import net.newpipe.app.theme.spaceMedium +import net.newpipe.app.theme.spaceXSmall +import net.newpipe.app.theme.spaceXXSmall +import net.newpipe.app.viewmodel.about.AboutViewModel +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.app_license +import newpipe.shared.generated.resources.app_license_title +import newpipe.shared.generated.resources.read_full_license +import newpipe.shared.generated.resources.title_licenses +import org.jetbrains.compose.resources.stringResource +import org.koin.compose.koinInject +import org.koin.compose.viewmodel.koinViewModel + +@Composable +fun LicensePage( + viewModel: AboutViewModel = koinViewModel(), + shareHandler: ShareHandler = koinInject() +) { + val libraries by viewModel.libraries.collectAsStateWithLifecycle() + val licenses by viewModel.licenses.collectAsStateWithLifecycle() + + LicensePageContent( + libraries = libraries, + licenses = licenses, + onOpenUrl = { url -> shareHandler.openUrlInBrowser(url) } + ) +} + +@Composable +fun LicensePageContent( + libraries: List = emptyList(), + licenses: List = emptyList(), + onOpenUrl: (url: String) -> Unit = {} +) { + var shouldShowLicenseDialog by rememberSaveable { mutableStateOf(null) } + shouldShowLicenseDialog?.let { info -> + LicenseDialog( + info = info, + onOpenWebsite = { website -> onOpenUrl(website) }, + onDismiss = { shouldShowLicenseDialog = null } + ) + } + + LazyColumn( + modifier = Modifier.fillMaxSize(), + contentPadding = WindowInsets.navigationBars.asPaddingValues(), + verticalArrangement = Arrangement.spacedBy(spaceXXSmall) + ) { + item { + Column( + modifier = Modifier + .fillMaxWidth() + .padding(spaceMedium), + verticalArrangement = Arrangement.spacedBy(spaceXSmall) + ) { + Text( + text = stringResource(Res.string.app_license_title), + style = MaterialTheme.typography.titleLarge + ) + Text( + text = stringResource(Res.string.app_license), + style = MaterialTheme.typography.bodyMedium + ) + + TextButton( + modifier = Modifier + .fillMaxWidth() + .wrapContentWidth(Alignment.End), + onClick = { + shouldShowLicenseDialog = LicenseInfo( + name = "NewPipe", + website = "https://newpipe.net/", + license = licenses.first { it.spdxId == "GPL-3.0-or-later" }.content + ) + } + ) { + Text(text = stringResource(Res.string.read_full_license)) + } + + Text( + text = stringResource(Res.string.title_licenses), + style = MaterialTheme.typography.titleLarge + ) + } + } + + // Third-party libraries and licenses + items(items = libraries, key = { library -> library.id }) { library -> + LibraryListItem( + library = library, + onClick = { + val license = licenses.first { license -> + license.spdxId == library.licenses.first() + } + shouldShowLicenseDialog = LicenseInfo( + name = library.name, + website = library.website ?: license.url, + license = license.content + ) + } + ) + } + } +} + +@PreviewWrapper(ThemePreviewProvider::class) +@PreviewLightDark +@Composable +private fun LicensePagePreview( + @PreviewParameter(LibraryPreviewProvider::class) library: Library +) { + val libraries = List(10) { + library.copy(id = Random.nextInt().toString()) + } + LicensePageContent(libraries = libraries) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/navigation/Page.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/navigation/Page.kt new file mode 100644 index 000000000..125f319c9 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/navigation/Page.kt @@ -0,0 +1,19 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.screen.about.navigation + +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.tab_about +import newpipe.shared.generated.resources.tab_licenses +import org.jetbrains.compose.resources.StringResource + +/** + * Possible pages to show in about screen + */ +enum class Page(val localizedTitle: StringResource) { + ABOUT(Res.string.tab_about), + LICENSE(Res.string.tab_licenses) +} diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt index 5bb59ee2e..ad51d7b7d 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Color.kt @@ -8,6 +8,8 @@ package net.newpipe.app.theme import androidx.compose.ui.graphics.Color +val logoBackground = Color(0xFFCD201F) + val primaryLight = Color(0xFF904A45) val onPrimaryLight = Color(0xFFFFFFFF) val primaryContainerLight = Color(0xFFFFDAD6) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Dimens.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Dimens.kt new file mode 100644 index 000000000..b6e43776b --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Dimens.kt @@ -0,0 +1,24 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.theme + +import androidx.compose.ui.unit.dp + +val spaceXXSmall = 2.dp +val spaceXSmall = 4.dp +val spaceSmall = 8.dp +val spaceMedium = 10.dp +val spaceNormal = 12.dp +val spaceLarge = 16.dp +val spaceXLarge = 32.dp + +val iconLDPI = 36.dp +val iconMDPI = 48.dp +val iconTVDPI = 64.dp +val iconHDPI = 72.dp +val iconXHDPI = 96.dp +val iconXXHDPI = 144.dp +val iconXXXHDPI = 192.dp diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt index 5500ffeff..b6f3c74be 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/theme/Theme.kt @@ -125,7 +125,10 @@ fun currentColorScheme( @Composable fun AppTheme( isPreview: Boolean = LocalInspectionMode.current, - colorScheme: ColorScheme = if (isPreview) lightScheme else currentColorScheme(), + colorScheme: ColorScheme = when { + isPreview -> if (isSystemInDarkTheme()) darkScheme else lightScheme + else -> currentColorScheme() + }, content: @Composable () -> Unit ) { MaterialExpressiveTheme( diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/ViewModelModule.kt b/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/ViewModelModule.kt new file mode 100644 index 000000000..b9d47b08a --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/ViewModelModule.kt @@ -0,0 +1,18 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.viewmodel + +import org.koin.core.annotation.ComponentScan +import org.koin.core.annotation.Configuration +import org.koin.core.annotation.Module + +/** + * Module to access ViewModels + */ +@Module +@ComponentScan +@Configuration +object ViewModelModule diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt b/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt new file mode 100644 index 000000000..45254f915 --- /dev/null +++ b/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt @@ -0,0 +1,53 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.viewmodel.about + +import androidx.lifecycle.ViewModel +import androidx.lifecycle.viewModelScope +import kotlinx.coroutines.Dispatchers +import kotlinx.coroutines.IO +import kotlinx.coroutines.flow.MutableStateFlow +import kotlinx.coroutines.flow.asStateFlow +import kotlinx.coroutines.launch +import kotlinx.serialization.json.Json +import net.newpipe.app.model.AboutLibraries +import net.newpipe.app.model.Library +import net.newpipe.app.model.License +import net.newpipe.app.platform.ResourceHandler +import org.koin.core.annotation.ComponentScan +import org.koin.core.annotation.KoinViewModel + +@KoinViewModel +@ComponentScan +class AboutViewModel( + private val json: Json, + private val resourceHandler: ResourceHandler +) : ViewModel() { + + private val _libraries = MutableStateFlow>(emptyList()) + val libraries = _libraries.asStateFlow() + + private val _licenses = MutableStateFlow>(emptyList()) + val licenses = _licenses.asStateFlow() + + init { + viewModelScope.launch(Dispatchers.IO) { + parseLibraries() + } + } + + private fun parseLibraries() { + val aboutLibraries = json.decodeFromString( + resourceHandler.readResourceToString(PATH_BOM) + ) + _libraries.value = aboutLibraries.libraries + _licenses.value = aboutLibraries.licenses.values.toList() + } + + companion object { + private const val PATH_BOM = "aboutlibraries.json" + } +} diff --git a/shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LibraryListItemTest.kt b/shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LibraryListItemTest.kt new file mode 100644 index 000000000..90b87baec --- /dev/null +++ b/shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LibraryListItemTest.kt @@ -0,0 +1,50 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.composable.about + +import androidx.compose.ui.test.ExperimentalTestApi +import androidx.compose.ui.test.assertIsDisplayed +import androidx.compose.ui.test.onNodeWithText +import androidx.compose.ui.test.performClick +import androidx.compose.ui.test.v2.runComposeUiTest +import kotlin.test.Test +import kotlin.test.assertTrue +import net.newpipe.app.model.Library +import net.newpipe.app.model.License + +@OptIn(ExperimentalTestApi::class) +class LibraryListItemTest { + + @Test + fun testLibraryListItem() = runComposeUiTest { + val library = Library( + id = "Test id", + name = "Test name", + developer = "Test developer", + license = License( + type = License.Companion.TYPE.APACHE_2_0, + text = "" + ), + website = "https://www.example.com" + ) + var clicked = false + setContent { + LibraryListItem( + library = library, + onClick = { + clicked = true + } + ) + } + + onNodeWithText(library.name).assertIsDisplayed() + onNodeWithText("By ${library.developer} under ${library.license.spdxId}").apply { + assertIsDisplayed() + performClick() + assertTrue(clicked) + } + } +} diff --git a/shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LinkListItemTest.kt b/shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LinkListItemTest.kt new file mode 100644 index 000000000..5172df447 --- /dev/null +++ b/shared/src/commonTest/kotlin/net/newpipe/app/composable/about/LinkListItemTest.kt @@ -0,0 +1,44 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.composable.about + +import androidx.compose.ui.test.ExperimentalTestApi +import androidx.compose.ui.test.assertIsDisplayed +import androidx.compose.ui.test.onNodeWithText +import androidx.compose.ui.test.performClick +import androidx.compose.ui.test.v2.runComposeUiTest +import kotlin.test.Test +import kotlin.test.assertTrue +import net.newpipe.app.model.Link + +@OptIn(ExperimentalTestApi::class) +class LinkListItemTest { + + @Test + fun testLinkListItem() = runComposeUiTest { + val link = Link( + title = "Test title", + description = "Test description", + action = "Test action", + url = "https://www.example.com" + ) + var actionClicked = false + setContent { + LinkListItem( + link = link, + onAction = { actionClicked = true } + ) + } + + onNodeWithText(link.title).assertIsDisplayed() + onNodeWithText(link.description).assertIsDisplayed() + onNodeWithText(link.action).apply { + assertIsDisplayed() + performClick() + assertTrue(actionClicked) + } + } +} diff --git a/shared/src/commonTest/kotlin/net/newpipe/app/screen/about/LicenseDialogTest.kt b/shared/src/commonTest/kotlin/net/newpipe/app/screen/about/LicenseDialogTest.kt new file mode 100644 index 000000000..04fab1a3e --- /dev/null +++ b/shared/src/commonTest/kotlin/net/newpipe/app/screen/about/LicenseDialogTest.kt @@ -0,0 +1,47 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.screen.about + +import androidx.compose.ui.test.ExperimentalTestApi +import androidx.compose.ui.test.assertIsDisplayed +import androidx.compose.ui.test.hasText +import androidx.compose.ui.test.onNodeWithTag +import androidx.compose.ui.test.onNodeWithText +import androidx.compose.ui.test.performClick +import androidx.compose.ui.test.performScrollToNode +import androidx.compose.ui.test.v2.runComposeUiTest +import kotlin.test.Test +import kotlin.test.assertTrue +import net.newpipe.app.preview.LibraryPreviewProvider +import newpipe.shared.generated.resources.Res +import newpipe.shared.generated.resources.website_title +import org.jetbrains.compose.resources.getString +import org.jetbrains.compose.resources.stringResource + +@OptIn(ExperimentalTestApi::class) +class LicenseDialogTest { + + @Test + fun testLicenseDialog() = runComposeUiTest { + val library = LibraryPreviewProvider.library + var websiteActionClicked = false + setContent { + LicenseDialog( + library = library, + onOpenWebsite = { websiteActionClicked = true } + ) + } + + onNodeWithText(library.name).assertIsDisplayed() + onNodeWithTag(TEST_TAG_LICENSE_TEXT) + .performScrollToNode(hasText("https://www.gnu.org/philosophy/why-not-lgpl.html", substring = true)) + .assertIsDisplayed() + onNodeWithText(getString(Res.string.website_title)).apply { + performClick() + assertTrue(websiteActionClicked) + } + } +} diff --git a/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt b/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt index 9a1701c0f..fa93532af 100644 --- a/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt +++ b/shared/src/iosMain/kotlin/net/newpipe/app/MainViewController.kt @@ -6,5 +6,11 @@ package net.newpipe.app import androidx.compose.ui.window.ComposeUIViewController +import platform.posix.exit -fun mainViewController() = ComposeUIViewController { App() } +fun mainViewController() = ComposeUIViewController { + App( + // TODO: Remove this as Apple doesn't likes quitting app manually + onCloseRequest = { exit(0) } + ) +} diff --git a/shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSResourceHandler.kt b/shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSResourceHandler.kt new file mode 100644 index 000000000..da4946a41 --- /dev/null +++ b/shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSResourceHandler.kt @@ -0,0 +1,28 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import kotlinx.cinterop.ExperimentalForeignApi +import org.koin.core.annotation.Singleton +import platform.Foundation.NSBundle +import platform.Foundation.NSString +import platform.Foundation.NSUTF8StringEncoding +import platform.Foundation.stringWithContentsOfFile + +/** + * Handles working with resources on iOS + */ +@OptIn(ExperimentalForeignApi::class) +@Singleton(binds = [ResourceHandler::class]) +class IOSResourceHandler : ResourceHandler { + + override fun readResourceToString(path: String): String { + val fileParts = path.substringBeforeLast('.') + val fileExtension = path.substringAfterLast('.', "") + val filePath = NSBundle.mainBundle.pathForResource(fileParts, fileExtension)!! + return NSString.stringWithContentsOfFile(filePath, NSUTF8StringEncoding, null)!! + } +} diff --git a/shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSShareHandler.kt b/shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSShareHandler.kt new file mode 100644 index 000000000..8ddd36a31 --- /dev/null +++ b/shared/src/iosMain/kotlin/net/newpipe/app/platform/IOSShareHandler.kt @@ -0,0 +1,30 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import co.touchlab.kermit.Logger +import org.koin.core.annotation.Singleton +import platform.Foundation.NSURL +import platform.SafariServices.SFSafariViewController +import platform.UIKit.UIApplication + +/** + * Handles sharing of data and information on iOS + */ +@Singleton(binds = [ShareHandler::class]) +class IOSShareHandler : ShareHandler { + + override fun openUrlInBrowser(url: String) { + val nsUrl = NSURL.URLWithString(url) + if (nsUrl == null) { + Logger.e(messageString = "Unable to open malformatted URL, bailing out!") + } else { + val safariVC = SFSafariViewController(uRL = nsUrl) + val rootVC = UIApplication.sharedApplication.keyWindow?.rootViewController + rootVC?.presentViewController(safariVC, animated = true, completion = null) + } + } +} diff --git a/shared/src/iosMain/resources/aboutlibraries.json b/shared/src/iosMain/resources/aboutlibraries.json index 78d987b10..a469497a5 100644 --- a/shared/src/iosMain/resources/aboutlibraries.json +++ b/shared/src/iosMain/resources/aboutlibraries.json @@ -240,6 +240,21 @@ "Apache-2.0" ] }, + { + "uniqueId": "co.touchlab:kermit-core", + "artifactVersion": "2.1.0", + "name": "Kermit", + "description": "Kermit The Log", + "website": "https://github.com/touchlab/Kermit", + "developers": [ + { + "name": "Kevin Galligan" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, { "uniqueId": "co.touchlab:stately-concurrency", "artifactVersion": "2.1.0", @@ -918,6 +933,13 @@ "internalHash": "Apache-2.0", "spdxId": "Apache-2.0", "hash": "Apache-2.0" + }, + "GPL-3.0-or-later": { + "name": "GNU General Public License v3.0 or later", + "url": "https://spdx.org/licenses/GPL-3.0-or-later.html", + "content": "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright \u00a9 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n\u201cThis License\u201d refers to version 3 of the GNU General Public License.\n\n\u201cCopyright\u201d also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\u201cThe Program\u201d refers to any copyrightable work licensed under this License. Each licensee is addressed as \u201cyou\u201d. \u201cLicensees\u201d and \u201crecipients\u201d may be individuals or organizations.\n\nTo \u201cmodify\u201d a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \u201cmodified version\u201d of the earlier work or a work \u201cbased on\u201d the earlier work.\n\nA \u201ccovered work\u201d means either the unmodified Program or a work based on the Program.\n\nTo \u201cpropagate\u201d a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \u201cconvey\u201d a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \u201cAppropriate Legal Notices\u201d to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \u201csource code\u201d for a work means the preferred form of the work for making modifications to it. \u201cObject code\u201d means any non-source form of a work.\n\nA \u201cStandard Interface\u201d means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \u201cSystem Libraries\u201d of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \u201cMajor Component\u201d, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \u201cCorresponding Source\u201d for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \u201ckeep intact all notices\u201d.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \u201caggregate\u201d if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \u201cUser Product\u201d is either (1) a \u201cconsumer product\u201d, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \u201cnormally used\u201d refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\u201cInstallation Information\u201d for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\u201cAdditional permissions\u201d are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered \u201cfurther restrictions\u201d within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn \u201centity transaction\u201d is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \u201ccontributor\u201d is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \u201ccontributor version\u201d.\n\nA contributor's \u201cessential patent claims\u201d are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \u201ccontrol\u201d includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \u201cpatent license\u201d is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \u201cgrant\u201d such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \u201cKnowingly relying\u201d means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \u201cdiscriminatory\u201d if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \u201cor any later version\u201d applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \u201cAS IS\u201d WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \u201ccopyright\u201d line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \u201cabout box\u201d.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \u201ccopyright disclaimer\u201d for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .", + "spdxId": "GPL-3.0-or-later", + "hash": "aa13f568b9f3d176bad132af7917c4ad" } } } \ No newline at end of file diff --git a/shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMResourceHandler.kt b/shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMResourceHandler.kt new file mode 100644 index 000000000..d9f2c015d --- /dev/null +++ b/shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMResourceHandler.kt @@ -0,0 +1,21 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import org.koin.core.annotation.Singleton + +/** + * Handles reading of resources on JVM + */ +@Singleton(binds = [ResourceHandler::class]) +class JVMResourceHandler : ResourceHandler { + + override fun readResourceToString(path: String): String { + return Thread.currentThread().contextClassLoader.getResourceAsStream(path)!!.use { stream -> + stream.bufferedReader().readText() + } + } +} diff --git a/shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMShareHandler.kt b/shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMShareHandler.kt new file mode 100644 index 000000000..4e6466aaa --- /dev/null +++ b/shared/src/jvmMain/kotlin/net/newpipe/app/platform/JVMShareHandler.kt @@ -0,0 +1,25 @@ +/* + * SPDX-FileCopyrightText: 2026 NewPipe e.V. + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +package net.newpipe.app.platform + +import co.touchlab.kermit.Logger +import java.awt.Desktop +import java.net.URI +import org.koin.core.annotation.Singleton + +/** + * Handles sharing of data and information on JVM + */ +@Singleton(binds = [ShareHandler::class]) +class JVMShareHandler : ShareHandler { + + override fun openUrlInBrowser(url: String) { + when { + Desktop.isDesktopSupported() -> Desktop.getDesktop().browse(URI(url)) + else -> Logger.e(messageString = "Unsupported platform! Cannot open URL in browser") + } + } +} diff --git a/shared/src/jvmMain/resources/aboutlibraries.json b/shared/src/jvmMain/resources/aboutlibraries.json index ce54fea25..2c76140b6 100644 --- a/shared/src/jvmMain/resources/aboutlibraries.json +++ b/shared/src/jvmMain/resources/aboutlibraries.json @@ -255,6 +255,21 @@ "Apache-2.0" ] }, + { + "uniqueId": "co.touchlab:kermit-core-jvm", + "artifactVersion": "2.1.0", + "name": "Kermit", + "description": "Kermit The Log", + "website": "https://github.com/touchlab/Kermit", + "developers": [ + { + "name": "Kevin Galligan" + } + ], + "licenses": [ + "Apache-2.0" + ] + }, { "uniqueId": "co.touchlab:stately-concurrency-jvm", "artifactVersion": "2.1.0", @@ -1124,6 +1139,13 @@ "internalHash": "Apache-2.0", "spdxId": "Apache-2.0", "hash": "Apache-2.0" + }, + "GPL-3.0-or-later": { + "name": "GNU General Public License v3.0 or later", + "url": "https://spdx.org/licenses/GPL-3.0-or-later.html", + "content": "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright \u00a9 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n\u201cThis License\u201d refers to version 3 of the GNU General Public License.\n\n\u201cCopyright\u201d also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\u201cThe Program\u201d refers to any copyrightable work licensed under this License. Each licensee is addressed as \u201cyou\u201d. \u201cLicensees\u201d and \u201crecipients\u201d may be individuals or organizations.\n\nTo \u201cmodify\u201d a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \u201cmodified version\u201d of the earlier work or a work \u201cbased on\u201d the earlier work.\n\nA \u201ccovered work\u201d means either the unmodified Program or a work based on the Program.\n\nTo \u201cpropagate\u201d a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \u201cconvey\u201d a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \u201cAppropriate Legal Notices\u201d to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \u201csource code\u201d for a work means the preferred form of the work for making modifications to it. \u201cObject code\u201d means any non-source form of a work.\n\nA \u201cStandard Interface\u201d means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \u201cSystem Libraries\u201d of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \u201cMajor Component\u201d, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \u201cCorresponding Source\u201d for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \u201ckeep intact all notices\u201d.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \u201caggregate\u201d if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \u201cUser Product\u201d is either (1) a \u201cconsumer product\u201d, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \u201cnormally used\u201d refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\u201cInstallation Information\u201d for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\u201cAdditional permissions\u201d are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered \u201cfurther restrictions\u201d within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn \u201centity transaction\u201d is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \u201ccontributor\u201d is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \u201ccontributor version\u201d.\n\nA contributor's \u201cessential patent claims\u201d are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \u201ccontrol\u201d includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \u201cpatent license\u201d is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \u201cgrant\u201d such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \u201cKnowingly relying\u201d means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \u201cdiscriminatory\u201d if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \u201cor any later version\u201d applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \u201cAS IS\u201d WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \u201ccopyright\u201d line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \u201cabout box\u201d.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \u201ccopyright disclaimer\u201d for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read .", + "spdxId": "GPL-3.0-or-later", + "hash": "aa13f568b9f3d176bad132af7917c4ad" } } } \ No newline at end of file From 43dca2b45b7ccdeee47405236d9856e118fe064b Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 2 Jun 2026 15:57:28 +0800 Subject: [PATCH 17/41] shared: Switch to reading licenses directly It seems the licenses in the generated BOM by aboutlibraries plugin isn't consistent and changes without any reason Licenses were downloaded using reuse tool reuse --root shared/src/commonMain/composeResources/files/ download Apache-2.0 BSD-2-Clause EPL-1.0 GPL-3.0-only GPL-3.0-or-later MIT MPL-2.0 MIT-0 Signed-off-by: Aayush Gupta --- desktopApp/build.gradle.kts | 5 - shared/build.gradle.kts | 17 - .../files/LICENSES/Apache-2.0.txt | 73 ++++ .../files/LICENSES/BSD-2-Clause.txt | 9 + .../files/LICENSES/EPL-1.0.txt | 73 ++++ .../files/LICENSES/GPL-3.0-only.txt | 232 +++++++++++ .../files/LICENSES/GPL-3.0-or-later.txt | 232 +++++++++++ .../composeResources/files/LICENSES/MIT-0.txt | 16 + .../composeResources/files/LICENSES/MIT.txt | 18 + .../files/LICENSES/MPL-2.0.txt | 373 ++++++++++++++++++ .../net/newpipe/app/model/AboutLibraries.kt | 11 +- .../app/model/{LicenseInfo.kt => License.kt} | 6 +- .../newpipe/app/screen/about/LicenseDialog.kt | 27 +- .../newpipe/app/screen/about/LicensePage.kt | 21 +- .../app/viewmodel/about/AboutViewModel.kt | 5 - 15 files changed, 1054 insertions(+), 64 deletions(-) create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/Apache-2.0.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/BSD-2-Clause.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/EPL-1.0.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-only.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-or-later.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/MIT-0.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/MIT.txt create mode 100644 shared/src/commonMain/composeResources/files/LICENSES/MPL-2.0.txt rename shared/src/commonMain/kotlin/net/newpipe/app/model/{LicenseInfo.kt => License.kt} (79%) diff --git a/desktopApp/build.gradle.kts b/desktopApp/build.gradle.kts index 5dabccc17..a9b022737 100644 --- a/desktopApp/build.gradle.kts +++ b/desktopApp/build.gradle.kts @@ -38,9 +38,4 @@ aboutLibraries { prettyPrint = true excludeFields.addAll("organization", "scm", "funding") } - license { - additionalLicenses.addAll( - "GPL-3.0-or-later" - ) - } } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index bdd32cd3a..28d985877 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -156,21 +156,4 @@ aboutLibraries { variant = "metadataIosMain" excludeFields.addAll("organization", "scm", "funding") } - license { - additionalLicenses.addAll( - "GPL-3.0-or-later" - ) - // Ensure all licenses are known and have an SPDX ID (https://spdx.org/licenses/) - // When adding a new license here, also add it to net.newpipe.app.model.License for mapping - allowedLicenses.addAll( - "Apache-2.0", - "BSD-2-Clause", - "BSD-2-Clause", - "EPL-1.0", - "GPL-3.0-or-later", - "MIT", - "MIT-0", - "MPL-2.0" - ) - } } diff --git a/shared/src/commonMain/composeResources/files/LICENSES/Apache-2.0.txt b/shared/src/commonMain/composeResources/files/LICENSES/Apache-2.0.txt new file mode 100644 index 000000000..137069b82 --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/Apache-2.0.txt @@ -0,0 +1,73 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. + +"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: + + (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. + + You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + +To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/shared/src/commonMain/composeResources/files/LICENSES/BSD-2-Clause.txt b/shared/src/commonMain/composeResources/files/LICENSES/BSD-2-Clause.txt new file mode 100644 index 000000000..5f662b354 --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/BSD-2-Clause.txt @@ -0,0 +1,9 @@ +Copyright (c) + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/shared/src/commonMain/composeResources/files/LICENSES/EPL-1.0.txt b/shared/src/commonMain/composeResources/files/LICENSES/EPL-1.0.txt new file mode 100644 index 000000000..70ed0f383 --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/EPL-1.0.txt @@ -0,0 +1,73 @@ +Eclipse Public License - v 1.0 + +THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. + +1. DEFINITIONS + +"Contribution" means: + a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and + b) in the case of each subsequent Contributor: + i) changes to the Program, and + ii) additions to the Program; + +where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program. +"Contributor" means any person or entity that distributes the Program. + +"Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program. + +"Program" means the Contributions distributed in accordance with this Agreement. + +"Recipient" means anyone who receives the Program under this Agreement, including all Contributors. + +2. GRANT OF RIGHTS + + a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form. + + b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder. + + c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program. + + d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement. + +3. REQUIREMENTS +A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that: + + a) it complies with the terms and conditions of this Agreement; and + + b) its license agreement: + i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose; + ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits; + iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and + iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange. + +When the Program is made available in source code form: + + a) it must be made available under this Agreement; and + + b) a copy of this Agreement must be included with each copy of the Program. +Contributors may not remove or alter any copyright notices contained within the Program. + +Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution. + +4. COMMERCIAL DISTRIBUTION +Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense. + +For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages. + +5. NO WARRANTY +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations. + +6. DISCLAIMER OF LIABILITY +EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +7. GENERAL + +If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. + +If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed. + +All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive. + +Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved. + +This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation. diff --git a/shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-only.txt b/shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-only.txt new file mode 100644 index 000000000..f6cdd22a6 --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-only.txt @@ -0,0 +1,232 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Use with the GNU Affero General Public License. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. + +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-or-later.txt b/shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-or-later.txt new file mode 100644 index 000000000..f6cdd22a6 --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/GPL-3.0-or-later.txt @@ -0,0 +1,232 @@ +GNU GENERAL PUBLIC LICENSE +Version 3, 29 June 2007 + +Copyright © 2007 Free Software Foundation, Inc. + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU General Public License is a free, copyleft license for software and other kinds of works. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. + +For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. + +Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. + +Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +“This License” refers to version 3 of the GNU General Public License. + +“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. + +To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. + +A “covered work” means either the unmodified Program or a work based on the Program. + +To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work. + +A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”. + + c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. + +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + + a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. + + d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or authors of the material; or + + e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. + +All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”. + +A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Use with the GNU Affero General Public License. +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. + +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. + +You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . + +The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . diff --git a/shared/src/commonMain/composeResources/files/LICENSES/MIT-0.txt b/shared/src/commonMain/composeResources/files/LICENSES/MIT-0.txt new file mode 100644 index 000000000..a4e9dc906 --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/MIT-0.txt @@ -0,0 +1,16 @@ +MIT No Attribution + +Copyright + +Permission is hereby granted, free of charge, to any person obtaining a copy of this +software and associated documentation files (the "Software"), to deal in the Software +without restriction, including without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/shared/src/commonMain/composeResources/files/LICENSES/MIT.txt b/shared/src/commonMain/composeResources/files/LICENSES/MIT.txt new file mode 100644 index 000000000..d817195da --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/MIT.txt @@ -0,0 +1,18 @@ +MIT License + +Copyright (c) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and +associated documentation files (the "Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO +EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/shared/src/commonMain/composeResources/files/LICENSES/MPL-2.0.txt b/shared/src/commonMain/composeResources/files/LICENSES/MPL-2.0.txt new file mode 100644 index 000000000..ee6256cdb --- /dev/null +++ b/shared/src/commonMain/composeResources/files/LICENSES/MPL-2.0.txt @@ -0,0 +1,373 @@ +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at https://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt b/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt index 4a86aa879..5ab79b814 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/model/AboutLibraries.kt @@ -13,8 +13,7 @@ import kotlinx.serialization.Serializable */ @Serializable data class AboutLibraries( - val libraries: List, - val licenses: Map + val libraries: List ) @Serializable @@ -32,11 +31,3 @@ data class Developer( val name: String, val organisationUrl: String? = null ) - -@Serializable -data class License( - val content: String, - val name: String, - val spdxId: String, - val url: String -) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt b/shared/src/commonMain/kotlin/net/newpipe/app/model/License.kt similarity index 79% rename from shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt rename to shared/src/commonMain/kotlin/net/newpipe/app/model/License.kt index 791c8c08e..fb84abd52 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/model/LicenseInfo.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/model/License.kt @@ -11,8 +11,8 @@ import kotlinx.serialization.Serializable * Class to hold information about a license shown to user */ @Serializable -data class LicenseInfo( +data class License( val name: String, - val website: String, - val license: String + val spdxID: String, + val website: String? = null ) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt index 79b338976..4709c66ee 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicenseDialog.kt @@ -12,12 +12,16 @@ import androidx.compose.material3.AlertDialog import androidx.compose.material3.Text import androidx.compose.material3.TextButton import androidx.compose.runtime.Composable +import androidx.compose.runtime.LaunchedEffect +import androidx.compose.runtime.getValue +import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember +import androidx.compose.runtime.setValue import androidx.compose.ui.Modifier import androidx.compose.ui.platform.testTag import androidx.compose.ui.tooling.preview.PreviewLightDark import androidx.compose.ui.tooling.preview.PreviewWrapper -import net.newpipe.app.model.LicenseInfo +import net.newpipe.app.model.License import net.newpipe.app.preview.ThemePreviewProvider import newpipe.shared.generated.resources.Res import newpipe.shared.generated.resources.done @@ -32,24 +36,27 @@ const val TEST_TAG_LICENSE_TEXT = "TEST_TAG_LICENSE_TEXT" /** * Dialog to show license and other details for a library * @param modifier Modifier for the dialog - * @param info License information to display + * @param license License information to display * @param onOpenWebsite Callback when action button to view library's website is clicked * @param onDismiss Callback when the dialog is dismissed */ @Composable fun LicenseDialog( modifier: Modifier = Modifier, - info: LicenseInfo, + license: License, onOpenWebsite: (website: String) -> Unit = {}, onDismiss: () -> Unit = {} ) { - val licenseContent = remember(info.license) { - info.license.lines() + var licenseContent by remember { mutableStateOf>(emptyList()) } + LaunchedEffect(key1 = Unit) { + licenseContent = Res.readBytes("files/LICENSES/${license.spdxID}.txt") + .decodeToString() + .lines() } AlertDialog( modifier = modifier, - title = { Text(text = info.name) }, + title = { Text(text = license.name) }, text = { LazyColumn( modifier = Modifier @@ -64,8 +71,8 @@ fun LicenseDialog( onDismissRequest = onDismiss, dismissButton = { TextButton( - onClick = { onOpenWebsite(info.website) }, - enabled = info.website.isNotBlank() + onClick = { onOpenWebsite(license.website!!) }, + enabled = !license.website.isNullOrBlank() ) { Text(text = stringResource(Res.string.website_title)) } @@ -83,10 +90,10 @@ fun LicenseDialog( @Composable private fun LicenseDialogPreview() { LicenseDialog( - info = LicenseInfo( + license = License( name = "NewPipe", website = "https://newpipe.net/", - license = "GNU GENERAL PUBLIC LICENSE\nVersion 3, 29 June 2007\n\nCopyright \u00a9 2007 Free Software Foundation, Inc. \n\nEveryone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.\n\nPreamble\n\nThe GNU General Public License is a free, copyleft license for software and other kinds of works.\n\nThe licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.\n\nWhen we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.\n\nTo protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.\n\nFor example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.\n\nDevelopers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.\n\nFor the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.\n\nSome devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.\n\nFinally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.\n\nThe precise terms and conditions for copying, distribution and modification follow.\n\nTERMS AND CONDITIONS\n\n0. Definitions.\n\n\u201cThis License\u201d refers to version 3 of the GNU General Public License.\n\n\u201cCopyright\u201d also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.\n\n\u201cThe Program\u201d refers to any copyrightable work licensed under this License. Each licensee is addressed as \u201cyou\u201d. \u201cLicensees\u201d and \u201crecipients\u201d may be individuals or organizations.\n\nTo \u201cmodify\u201d a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a \u201cmodified version\u201d of the earlier work or a work \u201cbased on\u201d the earlier work.\n\nA \u201ccovered work\u201d means either the unmodified Program or a work based on the Program.\n\nTo \u201cpropagate\u201d a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.\n\nTo \u201cconvey\u201d a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.\n\nAn interactive user interface displays \u201cAppropriate Legal Notices\u201d to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.\n\n1. Source Code.\nThe \u201csource code\u201d for a work means the preferred form of the work for making modifications to it. \u201cObject code\u201d means any non-source form of a work.\n\nA \u201cStandard Interface\u201d means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.\n\nThe \u201cSystem Libraries\u201d of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A \u201cMajor Component\u201d, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.\n\nThe \u201cCorresponding Source\u201d for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.\n\nThe Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.\n\nThe Corresponding Source for a work in source code form is that same work.\n\n2. Basic Permissions.\nAll rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.\n\nYou may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.\n\nConveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.\n\n3. Protecting Users' Legal Rights From Anti-Circumvention Law.\nNo covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.\n\nWhen you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.\n\n4. Conveying Verbatim Copies.\nYou may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.\n\nYou may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.\n\n5. Conveying Modified Source Versions.\nYou may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to \u201ckeep intact all notices\u201d.\n\n c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.\n\nA compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an \u201caggregate\u201d if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.\n\n6. Conveying Non-Source Forms.\nYou may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.\n\n d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.\n\nA separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.\n\nA \u201cUser Product\u201d is either (1) a \u201cconsumer product\u201d, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, \u201cnormally used\u201d refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.\n\n\u201cInstallation Information\u201d for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.\n\nIf you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).\n\nThe requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.\n\nCorresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.\n\n7. Additional Terms.\n\u201cAdditional permissions\u201d are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.\n\nWhen you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.\n\nNotwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.\n\nAll other non-permissive additional terms are considered \u201cfurther restrictions\u201d within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.\n\nIf you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.\n\nAdditional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.\n\n8. Termination.\nYou may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).\n\nHowever, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.\n\nMoreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.\n\nTermination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.\n\n9. Acceptance Not Required for Having Copies.\nYou are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.\n\n10. Automatic Licensing of Downstream Recipients.\nEach time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.\n\nAn \u201centity transaction\u201d is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.\n\nYou may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.\n\n11. Patents.\nA \u201ccontributor\u201d is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's \u201ccontributor version\u201d.\n\nA contributor's \u201cessential patent claims\u201d are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, \u201ccontrol\u201d includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.\n\nEach contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.\n\nIn the following three paragraphs, a \u201cpatent license\u201d is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To \u201cgrant\u201d such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.\n\nIf you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. \u201cKnowingly relying\u201d means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.\n\nIf, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.\n\nA patent license is \u201cdiscriminatory\u201d if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.\n\nNothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.\n\n12. No Surrender of Others' Freedom.\nIf conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.\n\n13. Use with the GNU Affero General Public License.\nNotwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.\n\n14. Revised Versions of this License.\nThe Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License \u201cor any later version\u201d applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.\n\nIf the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.\n\nLater license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.\n\n15. Disclaimer of Warranty.\nTHERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \u201cAS IS\u201d WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n16. Limitation of Liability.\nIN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.\n\n17. Interpretation of Sections 15 and 16.\nIf the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.\n\nEND OF TERMS AND CONDITIONS\n\nHow to Apply These Terms to Your New Programs\n\nIf you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.\n\nTo do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the \u201ccopyright\u201d line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n\n This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an \u201cabout box\u201d.\n\nYou should also get your employer (if you work as a programmer) or school, if any, to sign a \u201ccopyright disclaimer\u201d for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see .\n\nThe GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read ." + spdxID = "GPL-3.0-or-later" ) ) } diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt index d3f727a50..7c9151389 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/screen/about/LicensePage.kt @@ -34,7 +34,6 @@ import kotlin.random.Random import net.newpipe.app.composable.about.LibraryListItem import net.newpipe.app.model.Library import net.newpipe.app.model.License -import net.newpipe.app.model.LicenseInfo import net.newpipe.app.platform.ShareHandler import net.newpipe.app.preview.LibraryPreviewProvider import net.newpipe.app.preview.ThemePreviewProvider @@ -57,11 +56,9 @@ fun LicensePage( shareHandler: ShareHandler = koinInject() ) { val libraries by viewModel.libraries.collectAsStateWithLifecycle() - val licenses by viewModel.licenses.collectAsStateWithLifecycle() LicensePageContent( libraries = libraries, - licenses = licenses, onOpenUrl = { url -> shareHandler.openUrlInBrowser(url) } ) } @@ -69,13 +66,12 @@ fun LicensePage( @Composable fun LicensePageContent( libraries: List = emptyList(), - licenses: List = emptyList(), onOpenUrl: (url: String) -> Unit = {} ) { - var shouldShowLicenseDialog by rememberSaveable { mutableStateOf(null) } + var shouldShowLicenseDialog by rememberSaveable { mutableStateOf(null) } shouldShowLicenseDialog?.let { info -> LicenseDialog( - info = info, + license = info, onOpenWebsite = { website -> onOpenUrl(website) }, onDismiss = { shouldShowLicenseDialog = null } ) @@ -107,10 +103,10 @@ fun LicensePageContent( .fillMaxWidth() .wrapContentWidth(Alignment.End), onClick = { - shouldShowLicenseDialog = LicenseInfo( + shouldShowLicenseDialog = License( name = "NewPipe", website = "https://newpipe.net/", - license = licenses.first { it.spdxId == "GPL-3.0-or-later" }.content + spdxID = "GPL-3.0-or-later" ) } ) { @@ -129,13 +125,10 @@ fun LicensePageContent( LibraryListItem( library = library, onClick = { - val license = licenses.first { license -> - license.spdxId == library.licenses.first() - } - shouldShowLicenseDialog = LicenseInfo( + shouldShowLicenseDialog = License( name = library.name, - website = library.website ?: license.url, - license = license.content + website = library.website, + spdxID = library.licenses.first() ) } ) diff --git a/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt b/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt index 45254f915..c69907f26 100644 --- a/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt +++ b/shared/src/commonMain/kotlin/net/newpipe/app/viewmodel/about/AboutViewModel.kt @@ -15,7 +15,6 @@ import kotlinx.coroutines.launch import kotlinx.serialization.json.Json import net.newpipe.app.model.AboutLibraries import net.newpipe.app.model.Library -import net.newpipe.app.model.License import net.newpipe.app.platform.ResourceHandler import org.koin.core.annotation.ComponentScan import org.koin.core.annotation.KoinViewModel @@ -30,9 +29,6 @@ class AboutViewModel( private val _libraries = MutableStateFlow>(emptyList()) val libraries = _libraries.asStateFlow() - private val _licenses = MutableStateFlow>(emptyList()) - val licenses = _licenses.asStateFlow() - init { viewModelScope.launch(Dispatchers.IO) { parseLibraries() @@ -44,7 +40,6 @@ class AboutViewModel( resourceHandler.readResourceToString(PATH_BOM) ) _libraries.value = aboutLibraries.libraries - _licenses.value = aboutLibraries.licenses.values.toList() } companion object { From 8392cd56bdf6ee95f1d07ca527c5799a3c467813 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 2 Jun 2026 16:38:04 +0800 Subject: [PATCH 18/41] app: Switch to compose implementation of AboutActivity Signed-off-by: Aayush Gupta --- .../java/org/schabi/newpipe/util/NavigationHelper.java | 7 ++++--- shared/build.gradle.kts | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java b/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java index 9632b9bee..59cd71d02 100644 --- a/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java +++ b/app/src/main/java/org/schabi/newpipe/util/NavigationHelper.java @@ -25,11 +25,13 @@ import androidx.fragment.app.FragmentTransaction; import com.jakewharton.processphoenix.ProcessPhoenix; +import net.newpipe.app.extensions.ContextKt; +import net.newpipe.app.navigation.Screen; + import org.schabi.newpipe.MainActivity; import org.schabi.newpipe.NewPipeDatabase; import org.schabi.newpipe.R; import org.schabi.newpipe.RouterActivity; -import org.schabi.newpipe.about.AboutActivity; import org.schabi.newpipe.database.feed.model.FeedGroupEntity; import org.schabi.newpipe.download.DownloadActivity; import org.schabi.newpipe.error.ErrorUtil; @@ -682,8 +684,7 @@ public final class NavigationHelper { } public static void openAbout(final Context context) { - final Intent intent = new Intent(context, AboutActivity.class); - context.startActivity(intent); + ContextKt.navigateTo(context, Screen.About.INSTANCE); } public static void openSettings(final Context context) { diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 28d985877..197f4a72f 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -101,7 +101,8 @@ kotlin { implementation(libs.jetbrains.lifecycle.viewmodel) - implementation(libs.jetbrains.navigation3.ui) + // Use API as java compiler cannot see NavKey for some reason + api(libs.jetbrains.navigation3.ui) implementation(libs.jetbrains.lifecycle.navigation3) implementation(libs.kotlinx.serialization.json) From ac180ced84eda6986b48e9e75e63aa42be226c29 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Tue, 2 Jun 2026 16:39:43 +0800 Subject: [PATCH 19/41] app: Drop about activity implementation Signed-off-by: Aayush Gupta --- app/src/main/assets/apache2.html | 162 ----- app/src/main/assets/epl1.html | 245 ------- app/src/main/assets/gpl_3.html | 639 ------------------ app/src/main/assets/mit.html | 26 - app/src/main/assets/mpl2.html | 261 ------- .../org/schabi/newpipe/about/AboutActivity.kt | 260 ------- .../java/org/schabi/newpipe/about/License.kt | 11 - .../schabi/newpipe/about/LicenseFragment.kt | 142 ---- .../newpipe/about/LicenseFragmentHelper.kt | 55 -- .../schabi/newpipe/about/SoftwareComponent.kt | 17 - .../schabi/newpipe/about/StandardLicenses.kt | 21 - app/src/main/res/layout/activity_about.xml | 39 -- app/src/main/res/layout/fragment_about.xml | 148 ---- app/src/main/res/layout/fragment_licenses.xml | 55 -- 14 files changed, 2081 deletions(-) delete mode 100644 app/src/main/assets/apache2.html delete mode 100644 app/src/main/assets/epl1.html delete mode 100644 app/src/main/assets/gpl_3.html delete mode 100644 app/src/main/assets/mit.html delete mode 100644 app/src/main/assets/mpl2.html delete mode 100644 app/src/main/java/org/schabi/newpipe/about/AboutActivity.kt delete mode 100644 app/src/main/java/org/schabi/newpipe/about/License.kt delete mode 100644 app/src/main/java/org/schabi/newpipe/about/LicenseFragment.kt delete mode 100644 app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt delete mode 100644 app/src/main/java/org/schabi/newpipe/about/SoftwareComponent.kt delete mode 100644 app/src/main/java/org/schabi/newpipe/about/StandardLicenses.kt delete mode 100644 app/src/main/res/layout/activity_about.xml delete mode 100644 app/src/main/res/layout/fragment_about.xml delete mode 100644 app/src/main/res/layout/fragment_licenses.xml diff --git a/app/src/main/assets/apache2.html b/app/src/main/assets/apache2.html deleted file mode 100644 index de86cde66..000000000 --- a/app/src/main/assets/apache2.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - Apache License - Version 2.0, January 2004 - - -

Apache License
Version 2.0, January 2004
- http://www.apache.org/licenses/

-

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

-

1. Definitions.

-

"License" shall mean the terms and conditions for use, reproduction, and - distribution as defined by Sections 1 through 9 of this document.

-

"Licensor" shall mean the copyright owner or entity authorized by the - copyright owner that is granting the License.

-

"Legal Entity" shall mean the union of the acting entity and all other - entities that control, are controlled by, or are under common control with - that entity. For the purposes of this definition, "control" means (i) the - power, direct or indirect, to cause the direction or management of such - entity, whether by contract or otherwise, or (ii) ownership of fifty - percent (50%) or more of the outstanding shares, or (iii) beneficial - ownership of such entity.

-

"You" (or "Your") shall mean an individual or Legal Entity exercising - permissions granted by this License.

-

"Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation source, - and configuration files.

-

"Object" form shall mean any form resulting from mechanical transformation - or translation of a Source form, including but not limited to compiled - object code, generated documentation, and conversions to other media types.

-

"Work" shall mean the work of authorship, whether in Source or Object form, - made available under the License, as indicated by a copyright notice that - is included in or attached to the work (an example is provided in the - Appendix below).

-

"Derivative Works" shall mean any work, whether in Source or Object form, - that is based on (or derived from) the Work and for which the editorial - revisions, annotations, elaborations, or other modifications represent, as - a whole, an original work of authorship. For the purposes of this License, - Derivative Works shall not include works that remain separable from, or - merely link (or bind by name) to the interfaces of, the Work and Derivative - Works thereof.

-

"Contribution" shall mean any work of authorship, including the original - version of the Work and any modifications or additions to that Work or - Derivative Works thereof, that is intentionally submitted to Licensor for - inclusion in the Work by the copyright owner or by an individual or Legal - Entity authorized to submit on behalf of the copyright owner. For the - purposes of this definition, "submitted" means any form of electronic, - verbal, or written communication sent to the Licensor or its - representatives, including but not limited to communication on electronic - mailing lists, source code control systems, and issue tracking systems that - are managed by, or on behalf of, the Licensor for the purpose of discussing - and improving the Work, but excluding communication that is conspicuously - marked or otherwise designated in writing by the copyright owner as "Not a - Contribution."

-

"Contributor" shall mean Licensor and any individual or Legal Entity on - behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work.

-

2. Grant of Copyright License. Subject to the - terms and conditions of this License, each Contributor hereby grants to You - a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, publicly - display, publicly perform, sublicense, and distribute the Work and such - Derivative Works in Source or Object form.

-

3. Grant of Patent License. Subject to the terms - and conditions of this License, each Contributor hereby grants to You a - perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, use, - offer to sell, sell, import, and otherwise transfer the Work, where such - license applies only to those patent claims licensable by such Contributor - that are necessarily infringed by their Contribution(s) alone or by - combination of their Contribution(s) with the Work to which such - Contribution(s) was submitted. If You institute patent litigation against - any entity (including a cross-claim or counterclaim in a lawsuit) alleging - that the Work or a Contribution incorporated within the Work constitutes - direct or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate as of the - date such litigation is filed.

-

4. Redistribution. You may reproduce and - distribute copies of the Work or Derivative Works thereof in any medium, - with or without modifications, and in Source or Object form, provided that - You meet the following conditions:

-
    -
  1. You must give any other recipients of the Work or Derivative Works a - copy of this License; and
  2. - -
  3. You must cause any modified files to carry prominent notices stating - that You changed the files; and
  4. - -
  5. You must retain, in the Source form of any Derivative Works that You - distribute, all copyright, patent, trademark, and attribution notices from - the Source form of the Work, excluding those notices that do not pertain to - any part of the Derivative Works; and
  6. - -
  7. If the Work includes a "NOTICE" text file as part of its distribution, - then any Derivative Works that You distribute must include a readable copy - of the attribution notices contained within such NOTICE file, excluding - those notices that do not pertain to any part of the Derivative Works, in - at least one of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or documentation, - if provided along with the Derivative Works; or, within a display generated - by the Derivative Works, if and wherever such third-party notices normally - appear. The contents of the NOTICE file are for informational purposes only - and do not modify the License. You may add Your own attribution notices - within Derivative Works that You distribute, alongside or as an addendum to - the NOTICE text from the Work, provided that such additional attribution - notices cannot be construed as modifying the License. -
    -
    - You may add Your own copyright statement to Your modifications and may - provide additional or different license terms and conditions for use, - reproduction, or distribution of Your modifications, or for any such - Derivative Works as a whole, provided Your use, reproduction, and - distribution of the Work otherwise complies with the conditions stated in - this License. -
  8. - -
- -

5. Submission of Contributions. Unless You - explicitly state otherwise, any Contribution intentionally submitted for - inclusion in the Work by You to the Licensor shall be under the terms and - conditions of this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify the - terms of any separate license agreement you may have executed with Licensor - regarding such Contributions.

-

6. Trademarks. This License does not grant - permission to use the trade names, trademarks, service marks, or product - names of the Licensor, except as required for reasonable and customary use - in describing the origin of the Work and reproducing the content of the - NOTICE file.

-

7. Disclaimer of Warranty. Unless required by - applicable law or agreed to in writing, Licensor provides the Work (and - each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT - WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, - without limitation, any warranties or conditions of TITLE, - NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You - are solely responsible for determining the appropriateness of using or - redistributing the Work and assume any risks associated with Your exercise - of permissions under this License.

-

8. Limitation of Liability. In no event and - under no legal theory, whether in tort (including negligence), contract, or - otherwise, unless required by applicable law (such as deliberate and - grossly negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a result - of this License or out of the use or inability to use the Work (including - but not limited to damages for loss of goodwill, work stoppage, computer - failure or malfunction, or any and all other commercial damages or losses), - even if such Contributor has been advised of the possibility of such - damages.

-

9. Accepting Warranty or Additional Liability. - While redistributing the Work or Derivative Works thereof, You may choose - to offer, and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this License. - However, in accepting such obligations, You may act only on Your own behalf - and on Your sole responsibility, not on behalf of any other Contributor, - and only if You agree to indemnify, defend, and hold each Contributor - harmless for any liability incurred by, or claims asserted against, such - Contributor by reason of your accepting any such warranty or additional - liability.

- - \ No newline at end of file diff --git a/app/src/main/assets/epl1.html b/app/src/main/assets/epl1.html deleted file mode 100644 index 7123552dd..000000000 --- a/app/src/main/assets/epl1.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - - - Eclipse Public License - Version 1.0 - - - - - -

Eclipse Public License - v 1.0

- -

THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE - PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR - DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS - AGREEMENT.

- -

1. DEFINITIONS

- -

"Contribution" means:

- -

a) in the case of the initial Contributor, the initial - code and documentation distributed under this Agreement, and

-

b) in the case of each subsequent Contributor:

-

i) changes to the Program, and

-

ii) additions to the Program;

-

where such changes and/or additions to the Program - originate from and are distributed by that particular Contributor. A - Contribution 'originates' from a Contributor if it was added to the - Program by such Contributor itself or anyone acting on such - Contributor's behalf. Contributions do not include additions to the - Program which: (i) are separate modules of software distributed in - conjunction with the Program under their own license agreement, and (ii) - are not derivative works of the Program.

- -

"Contributor" means any person or entity that distributes - the Program.

- -

"Licensed Patents" mean patent claims licensable by a - Contributor which are necessarily infringed by the use or sale of its - Contribution alone or when combined with the Program.

- -

"Program" means the Contributions distributed in accordance - with this Agreement.

- -

"Recipient" means anyone who receives the Program under - this Agreement, including all Contributors.

- -

2. GRANT OF RIGHTS

- -

a) Subject to the terms of this Agreement, each - Contributor hereby grants Recipient a non-exclusive, worldwide, - royalty-free copyright license to reproduce, prepare derivative works - of, publicly display, publicly perform, distribute and sublicense the - Contribution of such Contributor, if any, and such derivative works, in - source code and object code form.

- -

b) Subject to the terms of this Agreement, each - Contributor hereby grants Recipient a non-exclusive, worldwide, - royalty-free patent license under Licensed Patents to make, use, sell, - offer to sell, import and otherwise transfer the Contribution of such - Contributor, if any, in source code and object code form. This patent - license shall apply to the combination of the Contribution and the - Program if, at the time the Contribution is added by the Contributor, - such addition of the Contribution causes such combination to be covered - by the Licensed Patents. The patent license shall not apply to any other - combinations which include the Contribution. No hardware per se is - licensed hereunder.

- -

c) Recipient understands that although each Contributor - grants the licenses to its Contributions set forth herein, no assurances - are provided by any Contributor that the Program does not infringe the - patent or other intellectual property rights of any other entity. Each - Contributor disclaims any liability to Recipient for claims brought by - any other entity based on infringement of intellectual property rights - or otherwise. As a condition to exercising the rights and licenses - granted hereunder, each Recipient hereby assumes sole responsibility to - secure any other intellectual property rights needed, if any. For - example, if a third party patent license is required to allow Recipient - to distribute the Program, it is Recipient's responsibility to acquire - that license before distributing the Program.

- -

d) Each Contributor represents that to its knowledge it - has sufficient copyright rights in its Contribution, if any, to grant - the copyright license set forth in this Agreement.

- -

3. REQUIREMENTS

- -

A Contributor may choose to distribute the Program in object code - form under its own license agreement, provided that:

- -

a) it complies with the terms and conditions of this - Agreement; and

- -

b) its license agreement:

- -

i) effectively disclaims on behalf of all Contributors - all warranties and conditions, express and implied, including warranties - or conditions of title and non-infringement, and implied warranties or - conditions of merchantability and fitness for a particular purpose;

- -

ii) effectively excludes on behalf of all Contributors - all liability for damages, including direct, indirect, special, - incidental and consequential damages, such as lost profits;

- -

iii) states that any provisions which differ from this - Agreement are offered by that Contributor alone and not by any other - party; and

- -

iv) states that source code for the Program is available - from such Contributor, and informs licensees how to obtain it in a - reasonable manner on or through a medium customarily used for software - exchange.

- -

When the Program is made available in source code form:

- -

a) it must be made available under this Agreement; and

- -

b) a copy of this Agreement must be included with each - copy of the Program.

- -

Contributors may not remove or alter any copyright notices contained - within the Program.

- -

Each Contributor must identify itself as the originator of its - Contribution, if any, in a manner that reasonably allows subsequent - Recipients to identify the originator of the Contribution.

- -

4. COMMERCIAL DISTRIBUTION

- -

Commercial distributors of software may accept certain - responsibilities with respect to end users, business partners and the - like. While this license is intended to facilitate the commercial use of - the Program, the Contributor who includes the Program in a commercial - product offering should do so in a manner which does not create - potential liability for other Contributors. Therefore, if a Contributor - includes the Program in a commercial product offering, such Contributor - ("Commercial Contributor") hereby agrees to defend and - indemnify every other Contributor ("Indemnified Contributor") - against any losses, damages and costs (collectively "Losses") - arising from claims, lawsuits and other legal actions brought by a third - party against the Indemnified Contributor to the extent caused by the - acts or omissions of such Commercial Contributor in connection with its - distribution of the Program in a commercial product offering. The - obligations in this section do not apply to any claims or Losses - relating to any actual or alleged intellectual property infringement. In - order to qualify, an Indemnified Contributor must: a) promptly notify - the Commercial Contributor in writing of such claim, and b) allow the - Commercial Contributor to control, and cooperate with the Commercial - Contributor in, the defense and any related settlement negotiations. The - Indemnified Contributor may participate in any such claim at its own - expense.

- -

For example, a Contributor might include the Program in a commercial - product offering, Product X. That Contributor is then a Commercial - Contributor. If that Commercial Contributor then makes performance - claims, or offers warranties related to Product X, those performance - claims and warranties are such Commercial Contributor's responsibility - alone. Under this section, the Commercial Contributor would have to - defend claims against the other Contributors related to those - performance claims and warranties, and if a court requires any other - Contributor to pay any damages as a result, the Commercial Contributor - must pay those damages.

- -

5. NO WARRANTY

- -

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS - PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS - OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, - ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY - OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely - responsible for determining the appropriateness of using and - distributing the Program and assumes all risks associated with its - exercise of rights under this Agreement , including but not limited to - the risks and costs of program errors, compliance with applicable laws, - damage to or loss of data, programs or equipment, and unavailability or - interruption of operations.

- -

6. DISCLAIMER OF LIABILITY

- -

EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT - NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, - INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING - WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR - DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED - HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

- -

7. GENERAL

- -

If any provision of this Agreement is invalid or unenforceable under - applicable law, it shall not affect the validity or enforceability of - the remainder of the terms of this Agreement, and without further action - by the parties hereto, such provision shall be reformed to the minimum - extent necessary to make such provision valid and enforceable.

- -

If Recipient institutes patent litigation against any entity - (including a cross-claim or counterclaim in a lawsuit) alleging that the - Program itself (excluding combinations of the Program with other - software or hardware) infringes such Recipient's patent(s), then such - Recipient's rights granted under Section 2(b) shall terminate as of the - date such litigation is filed.

- -

All Recipient's rights under this Agreement shall terminate if it - fails to comply with any of the material terms or conditions of this - Agreement and does not cure such failure in a reasonable period of time - after becoming aware of such noncompliance. If all Recipient's rights - under this Agreement terminate, Recipient agrees to cease use and - distribution of the Program as soon as reasonably practicable. However, - Recipient's obligations under this Agreement and any licenses granted by - Recipient relating to the Program shall continue and survive.

- -

Everyone is permitted to copy and distribute copies of this - Agreement, but in order to avoid inconsistency the Agreement is - copyrighted and may only be modified in the following manner. The - Agreement Steward reserves the right to publish new versions (including - revisions) of this Agreement from time to time. No one other than the - Agreement Steward has the right to modify this Agreement. The Eclipse - Foundation is the initial Agreement Steward. The Eclipse Foundation may - assign the responsibility to serve as the Agreement Steward to a - suitable separate entity. Each new version of the Agreement will be - given a distinguishing version number. The Program (including - Contributions) may always be distributed subject to the version of the - Agreement under which it was received. In addition, after a new version - of the Agreement is published, Contributor may elect to distribute the - Program (including its Contributions) under the new version. Except as - expressly stated in Sections 2(a) and 2(b) above, Recipient receives no - rights or licenses to the intellectual property of any Contributor under - this Agreement, whether expressly, by implication, estoppel or - otherwise. All rights in the Program not expressly granted under this - Agreement are reserved.

- -

This Agreement is governed by the laws of the State of New York and - the intellectual property laws of the United States of America. No party - to this Agreement will bring a legal action under this Agreement more - than one year after the cause of action arose. Each party waives its - rights to a jury trial in any resulting litigation.

- - - - \ No newline at end of file diff --git a/app/src/main/assets/gpl_3.html b/app/src/main/assets/gpl_3.html deleted file mode 100644 index 7e885a640..000000000 --- a/app/src/main/assets/gpl_3.html +++ /dev/null @@ -1,639 +0,0 @@ - - - - - - GNU General Public License v3.0 - GNU Project - Free Software Foundation (FSF) - - - -

GNU GENERAL PUBLIC LICENSE

-

Version 3, 29 June 2007

- -

Copyright © 2007 Free Software Foundation, Inc. - <http://fsf.org/>

- Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed.

- -

Preamble

- -

The GNU General Public License is a free, copyleft license for -software and other kinds of works.

- -

The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too.

- -

When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things.

- -

To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others.

- -

For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights.

- -

Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it.

- -

For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions.

- -

Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users.

- -

Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free.

- -

The precise terms and conditions for copying, distribution and -modification follow.

- -

TERMS AND CONDITIONS

- -

0. Definitions.

- -

“This License” refers to version 3 of the GNU General Public License.

- -

“Copyright” also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks.

- -

“The Program” refers to any copyrightable work licensed under this -License. Each licensee is addressed as “you”. “Licensees” and -“recipients” may be individuals or organizations.

- -

To “modify” a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a “modified version” of the -earlier work or a work “based on” the earlier work.

- -

A “covered work” means either the unmodified Program or a work based -on the Program.

- -

To “propagate” a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well.

- -

To “convey” a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying.

- -

An interactive user interface displays “Appropriate Legal Notices” -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion.

- -

1. Source Code.

- -

The “source code” for a work means the preferred form of the work -for making modifications to it. “Object code” means any non-source -form of a work.

- -

A “Standard Interface” means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language.

- -

The “System Libraries” of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -“Major Component”, in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it.

- -

The “Corresponding Source” for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work.

- -

The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source.

- -

The Corresponding Source for a work in source code form is that -same work.

- -

2. Basic Permissions.

- -

All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law.

- -

You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you.

- -

Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary.

- -

3. Protecting Users' Legal Rights From Anti-Circumvention Law.

- -

No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures.

- -

When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures.

- -

4. Conveying Verbatim Copies.

- -

You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program.

- -

You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee.

- -

5. Conveying Modified Source Versions.

- -

You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions:

- -
    -
  • a) The work must carry prominent notices stating that you modified - it, and giving a relevant date.
  • - -
  • b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - “keep intact all notices”.
  • - -
  • c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it.
  • - -
  • d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so.
  • -
- -

A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -“aggregate” if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate.

- -

6. Conveying Non-Source Forms.

- -

You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways:

- -
    -
  • a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange.
  • - -
  • b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge.
  • - -
  • c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b.
  • - -
  • d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements.
  • - -
  • e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d.
  • -
- -

A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work.

- -

A “User Product” is either (1) a “consumer product”, which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, “normally used” refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product.

- -

“Installation Information” for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made.

- -

If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM).

- -

The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network.

- -

Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying.

- -

7. Additional Terms.

- -

“Additional permissions” are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions.

- -

When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission.

- -

Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms:

- -
    -
  • a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or
  • - -
  • b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or
  • - -
  • c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or
  • - -
  • d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or
  • - -
  • e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or
  • - -
  • f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors.
  • -
- -

All other non-permissive additional terms are considered “further -restrictions” within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying.

- -

If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms.

- -

Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way.

- -

8. Termination.

- -

You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11).

- -

However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation.

- -

Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice.

- -

Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10.

- -

9. Acceptance Not Required for Having Copies.

- -

You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so.

- -

10. Automatic Licensing of Downstream Recipients.

- -

Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License.

- -

An “entity transaction” is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts.

- -

You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it.

- -

11. Patents.

- -

A “contributor” is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's “contributor version”.

- -

A contributor's “essential patent claims” are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, “control” includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License.

- -

Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version.

- -

In the following three paragraphs, a “patent license” is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To “grant” such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party.

- -

If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. “Knowingly relying” means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid.

- -

If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it.

- -

A patent license is “discriminatory” if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007.

- -

Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law.

- -

12. No Surrender of Others' Freedom.

- -

If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program.

- -

13. Use with the GNU Affero General Public License.

- -

Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such.

- -

14. Revised Versions of this License.

- -

The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns.

- -

Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License “or any later version” applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation.

- -

If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program.

- -

Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version.

- -

15. Disclaimer of Warranty.

- -

THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

- -

16. Limitation of Liability.

- -

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES.

- -

17. Interpretation of Sections 15 and 16.

- -

If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee.

- - diff --git a/app/src/main/assets/mit.html b/app/src/main/assets/mit.html deleted file mode 100644 index 909d61acb..000000000 --- a/app/src/main/assets/mit.html +++ /dev/null @@ -1,26 +0,0 @@ - - - -

Copyright (c) <year> <copyright holders>

- -

Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions:

- -

-The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software.

-

-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE.
-NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

- - diff --git a/app/src/main/assets/mpl2.html b/app/src/main/assets/mpl2.html deleted file mode 100644 index 5e988a70c..000000000 --- a/app/src/main/assets/mpl2.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - Mozilla Public License, version 2.0 - - -

Mozilla Public License
Version 2.0

-

1. Definitions

-
-
1.1. “Contributor”
-

means each individual or legal entity that creates, contributes to the creation of, or - owns Covered Software.

-
-
1.2. “Contributor Version”
-

means the combination of the Contributions of others (if any) used by a Contributor and - that particular Contributor’s Contribution.

-
-
1.3. “Contribution”
-

means Covered Software of a particular Contributor.

-
-
1.4. “Covered Software”
-

means Source Code Form to which the initial Contributor has attached the notice in - Exhibit A, the Executable Form of such Source Code Form, and Modifications of such Source - Code Form, in each case including portions thereof.

-
-
1.5. “Incompatible With Secondary Licenses”
-

means

-
    -
  1. that the initial Contributor has attached the notice described in Exhibit B to - the Covered Software; or

  2. -
  3. that the Covered Software was made available under the terms of version 1.1 or - earlier of the License, but not also under the terms of a Secondary License.

    -
  4. -
-
-
1.6. “Executable Form”
-

means any form of the work other than Source Code Form.

-
-
1.7. “Larger Work”
-

means a work that combines Covered Software with other material, in a separate file or - files, that is not Covered Software.

-
-
1.8. “License”
-

means this document.

-
-
1.9. “Licensable”
-

means having the right to grant, to the maximum extent possible, whether at the time of - the initial grant or subsequently, any and all of the rights conveyed by this License.

-
-
1.10. “Modifications”
-

means any of the following:

-
    -
  1. any file in Source Code Form that results from an addition to, deletion from, or - modification of the contents of Covered Software; or

  2. -
  3. any new file in Source Code Form that contains any Covered Software.

  4. -
-
-
1.11. “Patent Claims” of a Contributor
-

means any patent claim(s), including without limitation, method, process, and apparatus - claims, in any patent Licensable by such Contributor that would be infringed, but for the - grant of the License, by the making, using, selling, offering for sale, having made, import, - or transfer of either its Contributions or its Contributor Version.

-
-
1.12. “Secondary License”
-

means either the GNU General Public License, Version 2.0, the GNU Lesser General Public - License, Version 2.1, the GNU Affero General Public License, Version 3.0, or any later - versions of those licenses.

-
-
1.13. “Source Code Form”
-

means the form of the work preferred for making modifications.

-
-
1.14. “You” (or “Your”)
-

means an individual or a legal entity exercising rights under this License. For legal - entities, “You” includes any entity that controls, is controlled by, or is under common - control with You. For purposes of this definition, “control” means (a) the power, direct or - indirect, to cause the direction or management of such entity, whether by contract or - otherwise, or (b) ownership of more than fifty percent (50%) of the outstanding shares or - beneficial ownership of such entity.

-
-
-

2. License Grants and Conditions

-

2.1. Grants

-

Each Contributor hereby grants You a world-wide, royalty-free, non-exclusive license:

-
    -
  1. under intellectual property rights (other than patent or trademark) Licensable by such - Contributor to use, reproduce, make available, modify, display, perform, distribute, and - otherwise exploit its Contributions, either on an unmodified basis, with Modifications, or - as part of a Larger Work; and

  2. -
  3. under Patent Claims of such Contributor to make, use, sell, offer for sale, have made, - import, and otherwise transfer either its Contributions or its Contributor Version.

  4. -
-

2.2. Effective Date

-

The licenses granted in Section 2.1 with respect to any Contribution become effective for - each Contribution on the date the Contributor first distributes such Contribution.

-

2.3. Limitations on Grant Scope

-

The licenses granted in this Section 2 are the only rights granted under this License. No - additional rights or licenses will be implied from the distribution or licensing of Covered - Software under this License. Notwithstanding Section 2.1(b) above, no patent license is - granted by a Contributor:

-
    -
  1. for any code that a Contributor has removed from Covered Software; or

  2. -
  3. for infringements caused by: (i) Your and any other third party’s modifications of - Covered Software, or (ii) the combination of its Contributions with other software (except - as part of its Contributor Version); or

  4. -
  5. under Patent Claims infringed by Covered Software in the absence of its - Contributions.

  6. -
-

This License does not grant any rights in the trademarks, service marks, or logos of any - Contributor (except as may be necessary to comply with the notice requirements in Section 3.4).

-

2.4. Subsequent Licenses

-

No Contributor makes additional grants as a result of Your choice to distribute the Covered - Software under a subsequent version of this License (see Section 10.2) or under the terms - of a Secondary License (if permitted under the terms of Section 3.3).

-

2.5. Representation

-

Each Contributor represents that the Contributor believes its Contributions are its original - creation(s) or it has sufficient rights to grant the rights to its Contributions conveyed by - this License.

-

2.6. Fair Use

-

This License is not intended to limit any rights You have under applicable copyright doctrines of - fair use, fair dealing, or other equivalents.

-

2.7. Conditions

-

Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted in Section 2.1.

-

3. Responsibilities

-

3.1. Distribution of Source Form

-

All distribution of Covered Software in Source Code Form, including any Modifications that You - create or to which You contribute, must be under the terms of this License. You must inform - recipients that the Source Code Form of the Covered Software is governed by the terms of this - License, and how they can obtain a copy of this License. You may not attempt to alter or - restrict the recipients’ rights in the Source Code Form.

-

3.2. Distribution of Executable Form

-

If You distribute Covered Software in Executable Form then:

-
    -
  1. such Covered Software must also be made available in Source Code Form, as described in - Section 3.1, and You must inform recipients of the Executable Form how they can obtain - a copy of such Source Code Form by reasonable means in a timely manner, at a charge no more - than the cost of distribution to the recipient; and

  2. -
  3. You may distribute such Executable Form under the terms of this License, or sublicense it - under different terms, provided that the license for the Executable Form does not attempt to - limit or alter the recipients’ rights in the Source Code Form under this License.

  4. -
-

3.3. Distribution of a Larger Work

-

You may create and distribute a Larger Work under terms of Your choice, provided that You also - comply with the requirements of this License for the Covered Software. If the Larger Work is a - combination of Covered Software with a work governed by one or more Secondary Licenses, and the - Covered Software is not Incompatible With Secondary Licenses, this License permits You to - additionally distribute such Covered Software under the terms of such Secondary License(s), so - that the recipient of the Larger Work may, at their option, further distribute the Covered - Software under the terms of either this License or such Secondary License(s).

-

3.4. Notices

-

You may not remove or alter the substance of any license notices (including copyright notices, - patent notices, disclaimers of warranty, or limitations of liability) contained within the - Source Code Form of the Covered Software, except that You may alter any license notices to the - extent required to remedy known factual inaccuracies.

-

3.5. Application of Additional Terms

-

You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability - obligations to one or more recipients of Covered Software. However, You may do so only on Your - own behalf, and not on behalf of any Contributor. You must make it absolutely clear that any - such warranty, support, indemnity, or liability obligation is offered by You alone, and You - hereby agree to indemnify every Contributor for any liability incurred by such Contributor as a - result of warranty, support, indemnity or liability terms You offer. You may include additional - disclaimers of warranty and limitations of liability specific to any jurisdiction.

-

4. Inability to Comply Due to Statute or - Regulation

-

If it is impossible for You to comply with any of the terms of this License with respect to some - or all of the Covered Software due to statute, judicial order, or regulation then You must: (a) - comply with the terms of this License to the maximum extent possible; and (b) describe the - limitations and the code they affect. Such description must be placed in a text file included - with all distributions of the Covered Software under this License. Except to the extent - prohibited by statute or regulation, such description must be sufficiently detailed for a - recipient of ordinary skill to be able to understand it.

-

5. Termination

-

5.1. The rights granted under this License will terminate automatically if You fail to comply - with any of its terms. However, if You become compliant, then the rights granted under this - License from a particular Contributor are reinstated (a) provisionally, unless and until such - Contributor explicitly and finally terminates Your grants, and (b) on an ongoing basis, if such - Contributor fails to notify You of the non-compliance by some reasonable means prior to 60 days - after You have come back into compliance. Moreover, Your grants from a particular Contributor - are reinstated on an ongoing basis if such Contributor notifies You of the non-compliance by - some reasonable means, this is the first time You have received notice of non-compliance with - this License from such Contributor, and You become compliant prior to 30 days after Your receipt - of the notice.

-

5.2. If You initiate litigation against any entity by asserting a patent infringement claim - (excluding declaratory judgment actions, counter-claims, and cross-claims) alleging that a - Contributor Version directly or indirectly infringes any patent, then the rights granted to You - by any and all Contributors for the Covered Software under Section 2.1 of this License - shall terminate.

-

5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user license - agreements (excluding distributors and resellers) which have been validly granted by You or Your - distributors under this License prior to termination shall survive termination.

-

6. Disclaimer of Warranty

-

Covered Software is provided under this License on an “as is” basis, without warranty of any - kind, either expressed, implied, or statutory, including, without limitation, warranties that - the Covered Software is free of defects, merchantable, fit for a particular purpose or - non-infringing. The entire risk as to the quality and performance of the Covered Software is - with You. Should any Covered Software prove defective in any respect, You (not any Contributor) - assume the cost of any necessary servicing, repair, or correction. This disclaimer of warranty - constitutes an essential part of this License. No use of any Covered Software is authorized - under this License except under this disclaimer.

-

7. Limitation of Liability

-

Under no circumstances and under no legal theory, whether tort (including negligence), - contract, or otherwise, shall any Contributor, or anyone who distributes Covered Software as - permitted above, be liable to You for any direct, indirect, special, incidental, or - consequential damages of any character including, without limitation, damages for lost profits, - loss of goodwill, work stoppage, computer failure or malfunction, or any and all other - commercial damages or losses, even if such party shall have been informed of the possibility of - such damages. This limitation of liability shall not apply to liability for death or personal - injury resulting from such party’s negligence to the extent applicable law prohibits such - limitation. Some jurisdictions do not allow the exclusion or limitation of incidental or - consequential damages, so this exclusion and limitation may not apply to You.

-

8. Litigation

-

Any litigation relating to this License may be brought only in the courts of a jurisdiction where - the defendant maintains its principal place of business and such litigation shall be governed by - laws of that jurisdiction, without reference to its conflict-of-law provisions. Nothing in this - Section shall prevent a party’s ability to bring cross-claims or counter-claims.

-

9. Miscellaneous

-

This License represents the complete agreement concerning the subject matter hereof. If any - provision of this License is held to be unenforceable, such provision shall be reformed only to - the extent necessary to make it enforceable. Any law or regulation which provides that the - language of a contract shall be construed against the drafter shall not be used to construe this - License against a Contributor.

-

10. Versions of the License

-

10.1. New Versions

-

Mozilla Foundation is the license steward. Except as provided in Section 10.3, no one other - than the license steward has the right to modify or publish new versions of this License. Each - version will be given a distinguishing version number.

-

10.2. Effect of New Versions

-

You may distribute the Covered Software under the terms of the version of the License under which - You originally received the Covered Software, or under the terms of any subsequent version - published by the license steward.

-

10.3. Modified Versions

-

If you create software not governed by this License, and you want to create a new license for - such software, you may create and use a modified version of this License if you rename the - license and remove any references to the name of the license steward (except to note that such - modified license differs from this License).

-

10.4. - Distributing Source Code Form that is Incompatible With Secondary Licenses

-

If You choose to distribute Source Code Form that is Incompatible With Secondary Licenses under - the terms of this version of the License, the notice described in Exhibit B of this License must - be attached.

-

Exhibit A - Source Code Form License - Notice

-
-

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a - copy of the MPL was not distributed with this file, You can obtain one at - https://mozilla.org/MPL/2.0/.

-
-

If it is not possible or desirable to put the notice in a particular file, then You may include - the notice in a location (such as a LICENSE file in a relevant directory) where a recipient - would be likely to look for such a notice.

-

You may add additional accurate notices of copyright ownership.

-

Exhibit B - “Incompatible With - Secondary Licenses” Notice

-
-

This Source Code Form is “Incompatible With Secondary Licenses”, as defined by the Mozilla - Public License, v. 2.0.

-
- - - \ No newline at end of file diff --git a/app/src/main/java/org/schabi/newpipe/about/AboutActivity.kt b/app/src/main/java/org/schabi/newpipe/about/AboutActivity.kt deleted file mode 100644 index ed5951f04..000000000 --- a/app/src/main/java/org/schabi/newpipe/about/AboutActivity.kt +++ /dev/null @@ -1,260 +0,0 @@ -package org.schabi.newpipe.about - -import android.os.Bundle -import android.view.LayoutInflater -import android.view.MenuItem -import android.view.View -import android.view.ViewGroup -import android.widget.Button -import androidx.annotation.StringRes -import androidx.appcompat.app.AppCompatActivity -import androidx.fragment.app.Fragment -import androidx.fragment.app.FragmentActivity -import androidx.viewpager2.adapter.FragmentStateAdapter -import com.google.android.material.tabs.TabLayoutMediator -import org.schabi.newpipe.BuildConfig -import org.schabi.newpipe.R -import org.schabi.newpipe.databinding.ActivityAboutBinding -import org.schabi.newpipe.databinding.FragmentAboutBinding -import org.schabi.newpipe.util.ThemeHelper -import org.schabi.newpipe.util.external_communication.ShareUtils - -class AboutActivity : AppCompatActivity() { - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - ThemeHelper.setTheme(this) - title = getString(R.string.title_activity_about) - - val aboutBinding = ActivityAboutBinding.inflate(layoutInflater) - setContentView(aboutBinding.root) - setSupportActionBar(aboutBinding.aboutToolbar) - supportActionBar?.setDisplayHomeAsUpEnabled(true) - - // Create the adapter that will return a fragment for each of the three - // primary sections of the activity. - val mAboutStateAdapter = AboutStateAdapter(this) - // Set up the ViewPager with the sections adapter. - aboutBinding.aboutViewPager2.adapter = mAboutStateAdapter - TabLayoutMediator( - aboutBinding.aboutTabLayout, - aboutBinding.aboutViewPager2 - ) { tab, position -> - tab.setText(mAboutStateAdapter.getPageTitle(position)) - }.attach() - } - - override fun onOptionsItemSelected(item: MenuItem): Boolean { - if (item.itemId == android.R.id.home) { - finish() - return true - } - return super.onOptionsItemSelected(item) - } - - /** - * A placeholder fragment containing a simple view. - */ - class AboutFragment : Fragment() { - private fun Button.openLink(@StringRes url: Int) { - setOnClickListener { - ShareUtils.openUrlInApp(context, requireContext().getString(url)) - } - } - - override fun onCreateView( - inflater: LayoutInflater, - container: ViewGroup?, - savedInstanceState: Bundle? - ): View { - FragmentAboutBinding.inflate(inflater, container, false).apply { - aboutAppVersion.text = BuildConfig.VERSION_NAME - aboutGithubLink.openLink(R.string.github_url) - aboutDonationLink.openLink(R.string.donation_url) - aboutWebsiteLink.openLink(R.string.website_url) - aboutPrivacyPolicyLink.openLink(R.string.privacy_policy_url) - faqLink.openLink(R.string.faq_url) - return root - } - } - } - - /** - * A [FragmentStateAdapter] that returns a fragment corresponding to - * one of the sections/tabs/pages. - */ - private class AboutStateAdapter(fa: FragmentActivity) : FragmentStateAdapter(fa) { - private val posAbout = 0 - private val posLicense = 1 - private val totalCount = 2 - - override fun createFragment(position: Int): Fragment { - return when (position) { - posAbout -> AboutFragment() - posLicense -> LicenseFragment.newInstance(SOFTWARE_COMPONENTS) - else -> error("Unknown position for ViewPager2") - } - } - - override fun getItemCount(): Int { - // Show 2 total pages. - return totalCount - } - - fun getPageTitle(position: Int): Int { - return when (position) { - posAbout -> R.string.tab_about - posLicense -> R.string.tab_licenses - else -> error("Unknown position for ViewPager2") - } - } - } - - companion object { - /** - * List of all software components. - */ - private val SOFTWARE_COMPONENTS = arrayListOf( - SoftwareComponent( - "ACRA", - "2013", - "Kevin Gaudin", - "https://github.com/ACRA/acra", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "AndroidX", - "2005 - 2011", - "The Android Open Source Project", - "https://developer.android.com/jetpack", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "ExoPlayer", - "2014 - 2020", - "Google, Inc.", - "https://github.com/google/ExoPlayer", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "GigaGet", - "2014 - 2015", - "Peter Cai", - "https://github.com/PaperAirplane-Dev-Team/GigaGet", - StandardLicenses.GPL3 - ), - SoftwareComponent( - "Groupie", - "2016", - "Lisa Wray", - "https://github.com/lisawray/groupie", - StandardLicenses.MIT - ), - SoftwareComponent( - "Android-State", - "2018", - "Evernote", - "https://github.com/Evernote/android-state", - StandardLicenses.EPL1 - ), - SoftwareComponent( - "Bridge", - "2021", - "Livefront", - "https://github.com/livefront/bridge", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "Jsoup", - "2009 - 2020", - "Jonathan Hedley", - "https://github.com/jhy/jsoup", - StandardLicenses.MIT - ), - SoftwareComponent( - "Markwon", - "2019", - "Dimitry Ivanov", - "https://github.com/noties/Markwon", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "Material Components for Android", - "2016 - 2020", - "Google, Inc.", - "https://github.com/material-components/material-components-android", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "NewPipe Extractor", - "2017 - 2020", - "Christian Schabesberger", - "https://github.com/TeamNewPipe/NewPipeExtractor", - StandardLicenses.GPL3 - ), - SoftwareComponent( - "NoNonsense-FilePicker", - "2016", - "Jonas Kalderstam", - "https://github.com/spacecowboy/NoNonsense-FilePicker", - StandardLicenses.MPL2 - ), - SoftwareComponent( - "OkHttp", - "2019", - "Square, Inc.", - "https://square.github.io/okhttp/", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "Coil", - "2023", - "Coil Contributors", - "https://coil-kt.github.io/coil/", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "PrettyTime", - "2012 - 2020", - "Lincoln Baxter, III", - "https://github.com/ocpsoft/prettytime", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "ProcessPhoenix", - "2015", - "Jake Wharton", - "https://github.com/JakeWharton/ProcessPhoenix", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "RxAndroid", - "2015", - "The RxAndroid authors", - "https://github.com/ReactiveX/RxAndroid", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "RxBinding", - "2015", - "Jake Wharton", - "https://github.com/JakeWharton/RxBinding", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "RxJava", - "2016 - 2020", - "RxJava Contributors", - "https://github.com/ReactiveX/RxJava", - StandardLicenses.APACHE2 - ), - SoftwareComponent( - "SearchPreference", - "2018", - "ByteHamster", - "https://github.com/ByteHamster/SearchPreference", - StandardLicenses.MIT - ) - ) - } -} diff --git a/app/src/main/java/org/schabi/newpipe/about/License.kt b/app/src/main/java/org/schabi/newpipe/about/License.kt deleted file mode 100644 index fc50c646d..000000000 --- a/app/src/main/java/org/schabi/newpipe/about/License.kt +++ /dev/null @@ -1,11 +0,0 @@ -package org.schabi.newpipe.about - -import android.os.Parcelable -import java.io.Serializable -import kotlinx.parcelize.Parcelize - -/** - * Class for storing information about a software license. - */ -@Parcelize -class License(val name: String, val abbreviation: String, val filename: String) : Parcelable, Serializable diff --git a/app/src/main/java/org/schabi/newpipe/about/LicenseFragment.kt b/app/src/main/java/org/schabi/newpipe/about/LicenseFragment.kt deleted file mode 100644 index bd0632c13..000000000 --- a/app/src/main/java/org/schabi/newpipe/about/LicenseFragment.kt +++ /dev/null @@ -1,142 +0,0 @@ -package org.schabi.newpipe.about - -import android.os.Bundle -import android.util.Base64 -import android.view.LayoutInflater -import android.view.View -import android.view.ViewGroup -import android.webkit.WebView -import androidx.appcompat.app.AlertDialog -import androidx.core.os.BundleCompat -import androidx.core.os.bundleOf -import androidx.fragment.app.Fragment -import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers -import io.reactivex.rxjava3.core.Observable -import io.reactivex.rxjava3.disposables.CompositeDisposable -import io.reactivex.rxjava3.disposables.Disposable -import io.reactivex.rxjava3.schedulers.Schedulers -import org.schabi.newpipe.BuildConfig -import org.schabi.newpipe.R -import org.schabi.newpipe.databinding.FragmentLicensesBinding -import org.schabi.newpipe.databinding.ItemSoftwareComponentBinding -import org.schabi.newpipe.ktx.parcelableArrayList -import org.schabi.newpipe.util.external_communication.ShareUtils - -/** - * Fragment containing the software licenses. - */ -class LicenseFragment : Fragment() { - private lateinit var softwareComponents: List - private var activeSoftwareComponent: SoftwareComponent? = null - private val compositeDisposable = CompositeDisposable() - - override fun onCreate(savedInstanceState: Bundle?) { - super.onCreate(savedInstanceState) - softwareComponents = arguments?.parcelableArrayList(ARG_COMPONENTS)!! - .sortedBy { it.name } // Sort components by name - activeSoftwareComponent = savedInstanceState?.let { - BundleCompat.getSerializable(it, SOFTWARE_COMPONENT_KEY, SoftwareComponent::class.java) - } - } - - override fun onDestroy() { - compositeDisposable.dispose() - super.onDestroy() - } - - override fun onCreateView( - inflater: LayoutInflater, - container: ViewGroup?, - savedInstanceState: Bundle? - ): View { - val binding = FragmentLicensesBinding.inflate(inflater, container, false) - binding.licensesAppReadLicense.setOnClickListener { - compositeDisposable.add( - showLicense(NEWPIPE_SOFTWARE_COMPONENT) - ) - } - for (component in softwareComponents) { - val componentBinding = ItemSoftwareComponentBinding - .inflate(inflater, container, false) - componentBinding.name.text = component.name - componentBinding.copyright.text = getString( - R.string.copyright, - component.years, - component.copyrightOwner, - component.license.abbreviation - ) - val root: View = componentBinding.root - root.tag = component - root.setOnClickListener { - compositeDisposable.add( - showLicense(component) - ) - } - binding.licensesSoftwareComponents.addView(root) - registerForContextMenu(root) - } - activeSoftwareComponent?.let { compositeDisposable.add(showLicense(it)) } - return binding.root - } - - override fun onSaveInstanceState(savedInstanceState: Bundle) { - super.onSaveInstanceState(savedInstanceState) - activeSoftwareComponent?.let { savedInstanceState.putSerializable(SOFTWARE_COMPONENT_KEY, it) } - } - - private fun showLicense( - softwareComponent: SoftwareComponent - ): Disposable { - return if (context == null) { - Disposable.empty() - } else { - val context = requireContext() - activeSoftwareComponent = softwareComponent - Observable.fromCallable { getFormattedLicense(context, softwareComponent.license) } - .subscribeOn(Schedulers.io()) - .observeOn(AndroidSchedulers.mainThread()) - .subscribe { formattedLicense -> - val webViewData = Base64.encodeToString( - formattedLicense.toByteArray(), - Base64.NO_PADDING - ) - val webView = WebView(context) - webView.loadData(webViewData, "text/html; charset=UTF-8", "base64") - - val builder = AlertDialog.Builder(requireContext()) - .setTitle(softwareComponent.name) - .setView(webView) - .setOnCancelListener { activeSoftwareComponent = null } - .setOnDismissListener { activeSoftwareComponent = null } - .setPositiveButton(R.string.done) { dialog, _ -> dialog.dismiss() } - - if (softwareComponent != NEWPIPE_SOFTWARE_COMPONENT) { - builder.setNeutralButton(R.string.open_website_license) { _, _ -> - ShareUtils.openUrlInApp(requireContext(), softwareComponent.link) - } - } - - builder.show() - } - } - } - - companion object { - private const val ARG_COMPONENTS = "components" - private const val SOFTWARE_COMPONENT_KEY = "ACTIVE_SOFTWARE_COMPONENT" - private val NEWPIPE_SOFTWARE_COMPONENT = SoftwareComponent( - "NewPipe", - "2014-2023", - "Team NewPipe", - "https://newpipe.net/", - StandardLicenses.GPL3, - BuildConfig.VERSION_NAME - ) - - fun newInstance(softwareComponents: ArrayList): LicenseFragment { - val fragment = LicenseFragment() - fragment.arguments = bundleOf(ARG_COMPONENTS to softwareComponents) - return fragment - } - } -} diff --git a/app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt b/app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt deleted file mode 100644 index 32e4f812f..000000000 --- a/app/src/main/java/org/schabi/newpipe/about/LicenseFragmentHelper.kt +++ /dev/null @@ -1,55 +0,0 @@ -package org.schabi.newpipe.about - -import android.content.Context -import java.io.IOException -import org.schabi.newpipe.R -import org.schabi.newpipe.util.ThemeHelper - -/** - * @param context the context to use - * @param license the license - * @return String which contains a HTML formatted license page - * styled according to the context's theme - */ -fun getFormattedLicense(context: Context, license: License): String { - try { - return context.assets.open(license.filename).bufferedReader().use { it.readText() } - // split the HTML file and insert the stylesheet into the HEAD of the file - .replace("", "") - } catch (e: IOException) { - throw IllegalArgumentException("Could not get license file: ${license.filename}", e) - } -} - -/** - * @param context the Android context - * @return String which is a CSS stylesheet according to the context's theme - */ -fun getLicenseStylesheet(context: Context): String { - val isLightTheme = ThemeHelper.isLightThemeSelected(context) - val licenseBackgroundColor = getHexRGBColor( - context, - if (isLightTheme) R.color.light_license_background_color else R.color.dark_license_background_color - ) - val licenseTextColor = getHexRGBColor( - context, - if (isLightTheme) R.color.light_license_text_color else R.color.dark_license_text_color - ) - val youtubePrimaryColor = getHexRGBColor( - context, - if (isLightTheme) R.color.light_youtube_primary_color else R.color.dark_youtube_primary_color - ) - return "body{padding:12px 15px;margin:0;background:#$licenseBackgroundColor;color:#$licenseTextColor}" + - "a[href]{color:#$youtubePrimaryColor}pre{white-space:pre-wrap}" -} - -/** - * Cast R.color to a hexadecimal color value. - * - * @param context the context to use - * @param color the color number from R.color - * @return a six characters long String with hexadecimal RGB values - */ -fun getHexRGBColor(context: Context, color: Int): String { - return context.getString(color).substring(3) -} diff --git a/app/src/main/java/org/schabi/newpipe/about/SoftwareComponent.kt b/app/src/main/java/org/schabi/newpipe/about/SoftwareComponent.kt deleted file mode 100644 index a43ddfd5e..000000000 --- a/app/src/main/java/org/schabi/newpipe/about/SoftwareComponent.kt +++ /dev/null @@ -1,17 +0,0 @@ -package org.schabi.newpipe.about - -import android.os.Parcelable -import java.io.Serializable -import kotlinx.parcelize.Parcelize - -@Parcelize -class SoftwareComponent -@JvmOverloads -constructor( - val name: String, - val years: String, - val copyrightOwner: String, - val link: String, - val license: License, - val version: String? = null -) : Parcelable, Serializable diff --git a/app/src/main/java/org/schabi/newpipe/about/StandardLicenses.kt b/app/src/main/java/org/schabi/newpipe/about/StandardLicenses.kt deleted file mode 100644 index c5b9618fe..000000000 --- a/app/src/main/java/org/schabi/newpipe/about/StandardLicenses.kt +++ /dev/null @@ -1,21 +0,0 @@ -package org.schabi.newpipe.about - -/** - * Class containing information about standard software licenses. - */ -object StandardLicenses { - @JvmField - val GPL3 = License("GNU General Public License, Version 3.0", "GPLv3", "gpl_3.html") - - @JvmField - val APACHE2 = License("Apache License, Version 2.0", "ALv2", "apache2.html") - - @JvmField - val MPL2 = License("Mozilla Public License, Version 2.0", "MPL 2.0", "mpl2.html") - - @JvmField - val MIT = License("MIT License", "MIT", "mit.html") - - @JvmField - val EPL1 = License("Eclipse Public License, Version 1.0", "EPL 1.0", "epl1.html") -} diff --git a/app/src/main/res/layout/activity_about.xml b/app/src/main/res/layout/activity_about.xml deleted file mode 100644 index 661c4affc..000000000 --- a/app/src/main/res/layout/activity_about.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml deleted file mode 100644 index 5e6e11d00..000000000 --- a/app/src/main/res/layout/fragment_about.xml +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - - - - - - - - - - -