Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This project houses **Stream Android Core**, the shared runtime used by Stream C

## Project structure
- `stream-android-core/` – main library (models, socket/session, token handling, processors, batching, retry, queueing)
- `stream-android-core-ui/` – shared design tokens (`StreamDesign`, `StreamTokens`) as immutable Compose classes, consumed by the Chat and Video Compose themes; no dependency on `stream-android-core`
- `stream-android-core-annotations/` – annotations + KSP helpers consumed by core
- `stream-android-core-lint/` – lint checks shipped with the library
- `app/` – demo/debug client used for manual verification
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ Rather than duplicating infrastructure code across multiple SDKs, Stream Android
└─────────────────────────────────────────────────────────┘
```

### Modules

| Artifact | Contents |
| --- | --- |
| `io.getstream:stream-android-core` | The runtime described in this README: connectivity, tokens, state, reliability. |
| `io.getstream:stream-android-core-ui` | The shared design tokens (`StreamDesign`, `StreamTokens`) as immutable Compose classes, consumed by the Chat and Video Compose themes. It does not depend on `stream-android-core`. |

## Overview

**Stream Android Core** provides shared primitives and infrastructure for Stream's Android SDKs:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ streamProject {
}

coverage {
includedModules = setOf("stream-android-core")
includedModules = setOf("stream-android-core", "stream-android-core-ui")
}

publishing {
Expand Down
3 changes: 3 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ androidx-activity-compose = { group = "androidx.activity", name = "activity-comp
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
androidx-ui-graphics = { group = "androidx.compose.ui", name = "ui-graphics" }
androidx-ui-text = { group = "androidx.compose.ui", name = "ui-text" }
androidx-ui-unit = { group = "androidx.compose.ui", name = "ui-unit" }
androidx-compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
androidx-ui-tooling = { group = "androidx.compose.ui", name = "ui-tooling" }
androidx-ui-tooling-preview = { group = "androidx.compose.ui", name = "ui-tooling-preview" }
androidx-ui-test-manifest = { group = "androidx.compose.ui", name = "ui-test-manifest" }
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ rootProject.name = "stream-android-core"
include(":app")
include(":stream-android-core-lint")
include(":stream-android-core")
include(":stream-android-core-ui")
477 changes: 477 additions & 0 deletions stream-android-core-ui/api/stream-android-core-ui.api

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions stream-android-core-ui/build.gradle.kts
Comment thread
gpunto marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* Copyright (c) 2014-2025 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-core-android/blob/main/LICENSE
*
* 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.
*/

import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.stream.android.library)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.arturbosch.detekt)
}

kotlin {
explicitApi()
compilerOptions {
jvmTarget.set(JvmTarget.JVM_11)
freeCompilerArgs.add("-opt-in=io.getstream.android.core.annotations.StreamInternalApi")
}
}

android {
namespace = "io.getstream.android.core.ui"

buildFeatures {
compose = true
}

lint {
abortOnError = true
warningsAsErrors = true
lintConfig = rootProject.file("lint.xml")
}
}

dependencies {
// Linter
lintChecks(project(":stream-android-core-lint"))

detektPlugins(libs.detekt.formatting)

api(project(":stream-android-core-annotations"))

// Compose. The token classes expose these types in their public API, so consumers get them
// transitively. The BOM is in the api scope so it also sets the version floor for consumers.
api(platform(libs.androidx.compose.bom))
api(libs.androidx.compose.runtime)
api(libs.androidx.ui.graphics)
api(libs.androidx.ui.text)
api(libs.androidx.ui.unit)

testImplementation(kotlin("test"))
testImplementation(libs.junit)
}
Loading
Loading