Skip to content

Commit

Permalink
add stream-chat-android-ui-components-metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
andremion committed Dec 31, 2024
1 parent 3a4eb7d commit fd400c9
Show file tree
Hide file tree
Showing 10 changed files with 164 additions and 2 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-client stream-chat-android-offline stream-chat-android-compose"
MODULES: "stream-chat-android-client stream-chat-android-offline stream-chat-android-ui-components stream-chat-android-compose"
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-client stream-chat-android-offline stream-chat-android-compose"
MODULES: "stream-chat-android-client stream-chat-android-offline stream-chat-android-ui-components stream-chat-android-compose"
VARIANTS: "debug release"
METRICS_FILE: "metrics/size.json"
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ apiValidation {
'stream-chat-android-client-metrics-stream',
'stream-chat-android-offline-metrics-baseline',
'stream-chat-android-offline-metrics-stream',
'stream-chat-android-ui-components-metrics-baseline',
'stream-chat-android-ui-components-metrics-stream',
'stream-chat-android-compose-metrics-baseline',
'stream-chat-android-compose-metrics-stream',
]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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.ui.components.metrics.baseline"
buildTypes {
release {
signingConfig = signingConfigs.findByName("debug")
}
}
}

dependencies {
detektPlugins(Dependencies.detektFormatting)

implementation(Dependencies.coroutinesCore)
implementation(Dependencies.androidxAppCompat)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
>

<application>
<activity
android:name=".MainActivity"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
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.ui.components.metrics.baseline

import androidx.activity.ComponentActivity

class MainActivity : ComponentActivity()
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.ui.components.metrics.stream"
buildTypes {
release {
signingConfig = signingConfigs.findByName("debug")
}
}
}

dependencies {
detektPlugins(Dependencies.detektFormatting)

implementation(Dependencies.coroutinesCore)
implementation(Dependencies.androidxAppCompat)

implementation(project(":stream-chat-android-ui-components"))
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
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.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
>

<application>
<activity
android:name=".MainActivity"
android:exported="true"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
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.ui.components.metrics.stream

import androidx.activity.ComponentActivity

class MainActivity : ComponentActivity()
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ include (
':metrics:stream-chat-android-client-metrics-stream',
':metrics:stream-chat-android-offline-metrics-baseline',
':metrics:stream-chat-android-offline-metrics-stream',
':metrics:stream-chat-android-ui-components-metrics-baseline',
':metrics:stream-chat-android-ui-components-metrics-stream',
':metrics:stream-chat-android-compose-metrics-baseline',
':metrics:stream-chat-android-compose-metrics-stream',
)
Expand Down

0 comments on commit fd400c9

Please sign in to comment.