Skip to content

Add performance module and 1 code snippet - #1068

Open
pengzhi-cb wants to merge 1 commit into
android:mainfrom
StellarElements:add-performance-module
Open

Add performance module and 1 code snippet#1068
pengzhi-cb wants to merge 1 commit into
android:mainfrom
StellarElements:add-performance-module

Conversation

@pengzhi-cb

Copy link
Copy Markdown

This PR is to add a performance module so that hard-coded snippets in Performance DAC can be migrated to this repo. Once this PR is merged, subsequent PRs with actual content will follow.

The module mirrors the initial minimalistic structure of :media, taking the namespace com.example.performance.

It contains one migrated snippet from Performance so that the module is not empty.

@pengzhi-cb
pengzhi-cb requested a review from a team as a code owner September 3, 2026 19:05
@snippet-bot

snippet-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@kkuan2011 kkuan2011 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once comments are addressed!

import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

private object LaunchTimeSnippet {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to put the activity in a private object?

}

android {
namespace = "com.example.performance"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we add android in there?

com.example.android.performance?

and same for applicationId below too

-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add the MainActivity here instead of having an empty manifest?


dependencies {
val composeBom = platform(libs.androidx.compose.bom)
implementation(composeBom)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are all these dependencies required? if not, can you remove any unused ones?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants