Skip to content

Commit

Permalink
add stream-chat-android-offline-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
andremion committed Dec 31, 2024
1 parent b1d20f3 commit af32726
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 39 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:

env:
MODULES: "stream-chat-android-compose"
MODULES: "stream-chat-android-compose stream-chat-android-offline"
METRICS_FILE: "metrics/size.json"
MAX_TOLERANCE: 500
FINE_TOLERANCE: 250
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sdk-size-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
# cancel-in-progress: true

env:
MODULES: "stream-chat-android-compose"
MODULES: "stream-chat-android-compose stream-chat-android-offline"
VARIANTS: "debug release"
METRICS_FILE: "metrics/size.json"
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand Down
24 changes: 24 additions & 0 deletions .idea/inspectionProfiles/ktlint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ apiValidation {
'stream-chat-android-ui-guides',
'stream-chat-android-compose-metrics-baseline',
'stream-chat-android-compose-metrics-stream',
'stream-chat-android-offline-metrics-baseline',
'stream-chat-android-offline-metrics-stream',
]

nonPublicMarkers += [
Expand Down
35 changes: 0 additions & 35 deletions metrics/stream-chat-android-compose-baseline/build.gradle.kts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import io.getstream.chat.android.Dependencies

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}

apply(from = "$rootDir/scripts/android.gradle")

android {
namespace = "io.getstream.chat.android.offline.metrics.baseline"
buildTypes {
release {
signingConfig = signingConfigs.findByName("debug")
}
}
}

dependencies {
detektPlugins(Dependencies.detektFormatting)

implementation(Dependencies.coroutinesCore)
implementation(Dependencies.androidxAppCompat)
implementation(Dependencies.androidxCoreKtx)
implementation(Dependencies.androidxLifecycleLiveDataKtx)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2014-2024 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-chat-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.
*/

package io.getstream.chat.android.offline.metrics.baseline

import androidx.activity.ComponentActivity

class MainActivity : ComponentActivity()
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import io.getstream.chat.android.Dependencies

plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
}

apply(from = "$rootDir/scripts/android.gradle")

android {
namespace = "io.getstream.chat.android.offline.metrics.baseline"
buildTypes {
release {
signingConfig = signingConfigs.findByName("debug")
}
}
}

dependencies {
detektPlugins(Dependencies.detektFormatting)

implementation(Dependencies.coroutinesCore)
implementation(Dependencies.androidxAppCompat)
implementation(Dependencies.androidxCoreKtx)
implementation(Dependencies.androidxLifecycleLiveDataKtx)

implementation(project(":stream-chat-android-offline"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package io.getstream.metrics.compose.stream
package io.getstream.chat.android.offline.metrics.stream

import androidx.activity.ComponentActivity

Expand Down
4 changes: 3 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ include (
':stream-chat-android-benchmark',
':stream-chat-android-ai-assistant',
':metrics:stream-chat-android-compose-metrics-baseline',
':metrics:stream-chat-android-compose-metrics-stream'
':metrics:stream-chat-android-compose-metrics-stream',
':metrics:stream-chat-android-offline-metrics-baseline',
':metrics:stream-chat-android-offline-metrics-stream',
)

dependencyResolutionManagement {
Expand Down

0 comments on commit af32726

Please sign in to comment.