Skip to content

Commit f57e457

Browse files
committed
Add feature:video module
1 parent 5311db7 commit f57e457

File tree

10 files changed

+67
-5
lines changed

10 files changed

+67
-5
lines changed

app/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ plugins {
2424

2525
android {
2626
namespace = "io.getstream.whatsappclone"
27-
compileSdk = Configurations.compileSdk
2827

2928
defaultConfig {
3029
applicationId = "io.getstream.whatsappclone"
@@ -60,6 +59,7 @@ dependencies {
6059
implementation(project(":features:chats"))
6160
implementation(project(":features:status"))
6261
implementation(project(":features:calls"))
62+
implementation(project(":features:video"))
6363

6464
// material
6565
implementation(libs.androidx.appcompat)

benchmark/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ plugins {
2121

2222
android {
2323
namespace = "io.getstream.whatsappclone.benchmark"
24-
compileSdk = Configurations.compileSdk
24+
compileSdk = 34
2525

2626
compileOptions {
2727
sourceCompatibility = JavaVersion.VERSION_17

build-logic/convention/src/main/kotlin/io/getstream/whatsappclone/KotlinAndroid.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal fun Project.configureKotlinAndroid(
1616
commonExtension: CommonExtension<*, *, *, *, *>,
1717
) {
1818
commonExtension.apply {
19-
compileSdk = 33
19+
compileSdk = 34
2020

2121
defaultConfig {
2222
minSdk = 21

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ buildscript {
77

88
plugins {
99
alias(libs.plugins.android.application) apply false
10+
alias(libs.plugins.android.library) apply false
11+
alias(libs.plugins.kotlin.android) apply false
1012
alias(libs.plugins.kotlin.jvm) apply false
1113
alias(libs.plugins.kotlin.serialization) apply false
1214
alias(libs.plugins.ksp) apply false

buildSrc/src/main/kotlin/Configurations.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
object Configurations {
2-
const val compileSdk = 34
32
const val targetSdk = 34
43
const val minSdk = 24
54
const val majorVersion = 1

features/video/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

features/video/build.gradle.kts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/*
2+
* Copyright 2023 Stream.IO, Inc. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
plugins {
17+
id("getstream.android.library")
18+
id("getstream.android.library.compose")
19+
id("getstream.android.feature")
20+
id("getstream.android.hilt")
21+
id("getstream.spotless")
22+
}
23+
24+
android {
25+
namespace = "io.getstream.whatsappclone.video"
26+
}
27+
28+
dependencies {
29+
// core modules
30+
implementation(project(":core:uistate"))
31+
implementation(project(":core:network"))
32+
implementation(project(":core:data"))
33+
34+
implementation(libs.stream.video.compose)
35+
36+
implementation(libs.androidx.lifecycle.runtimeCompose)
37+
implementation(libs.androidx.lifecycle.viewModelCompose)
38+
implementation(libs.androidx.startup)
39+
implementation(libs.stream.log)
40+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
Copyright 2023 Stream.IO, Inc. All Rights Reserved.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
-->
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
18+
19+
</manifest>

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,6 @@ android-test = { id = "com.android.test", version.ref = "androidGradlePlugin" }
106106
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
107107
hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
108108
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
109+
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
109110
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
110111
spotless = { id = "com.diffplug.spotless", version.ref = "spotless" }

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
@file:Suppress("UnstableApiUsage")
2-
32
pluginManagement {
43
includeBuild("build-logic")
54
repositories {
@@ -30,4 +29,5 @@ include(":features:camera")
3029
include(":features:chats")
3130
include(":features:status")
3231
include(":features:calls")
32+
include(":features:video")
3333
include(":benchmark")

0 commit comments

Comments
 (0)