Skip to content

Commit 14f817b

Browse files
riggarooarriolacMagicalMeghancompose-devrel-github-botmlykotom
authored
Latest -> Main (#322)
* Add snippets for Indication and Ripple migration (#191) * Add ripple snippets. * Add new ripple APIs. * Add snippets for interactions. * Added more ripple snippets. * Update foundation and material to 1.7.0-alpha01 * Fix snippet tag. * Apply Spotless --------- Co-authored-by: arriolac <[email protected]> * Convert NeonIndication to data class. (#193) * Adding pip snippets to latest branch (#196) * Adding pip snippets to latest branch * Apply Spotless * Adding pip snippets to latest --------- Co-authored-by: MagicalMeghan <[email protected]> * Delete pictureInPicture. (#213) * Update activity compose level and align log tag with main branch (#215) * Migrate recomposeHighlighter to Modifier.Node (#197) (#238) * Migrate recomposeHighlighter to Modifier.Node * Apply Spotless * Simplify recompose highlighter * Apply Spotless --------- Co-authored-by: Tomáš Mlynarič <[email protected]> Co-authored-by: mlykotom <[email protected]> * Adding samples for ContextualFlowRow (#234) * Add snippets for ContextualFlowRow * Apply Spotless * Update flow snippets * Apply Spotless --------- Co-authored-by: riggaroo <[email protected]> * Update libs.versions.toml (#247) (#248) Update Compose BOM to 2024.04.00 Co-authored-by: MagicalMeghan <[email protected]> * Update Bitmap to image snippet to use new Graphics Layers (#254) * Update libs.versions.toml (#251) * Replace Graphics bitmap snippets with new Graphics Layer snippets. * Replace Graphics bitmap snippets with new Graphics Layer snippets. * Apply Spotless --------- Co-authored-by: Simona <[email protected]> Co-authored-by: riggaroo <[email protected]> * add shared element snippets * Apply Spotless * Split snippets into different files. * Apply Spotless * Shared element snippets (#256) * add shared element snippets * Apply Spotless * Split snippets into different files. * Apply Spotless --------- Co-authored-by: riggaroo <[email protected]> * Update libs.versions.toml (#251) (#252) Co-authored-by: Simona <[email protected]> * Snippet updates based on peer feedback. * Shared element snippets (#258) * add shared element snippets * Apply Spotless * Split snippets into different files. * Apply Spotless * Snippet updates based on peer feedback. * Apply Spotless --------- Co-authored-by: riggaroo <[email protected]> * Unique key snippet * Update SharedElementsWithNavigationSnippets.kt * Update AsyncImage snippet * Add placeholder size example * Add comment to snippet about unmatched bounds * 🤖 Sync main to latest (#259) * Update libs.versions.toml (#251) * Updated ListDetailPaneScaffold use to alpha12 (#255) This eliminates storing state outside and directly uses the navigator as the source of truth. This also gets rid of the Modifier for AnimatedPane as it's no longer a required argument. * Added NavigationSuiteScaffold snippets (#261) * Added NavigationSuiteScaffold snippets * Apply Spotless * 🤖 Update Dependencies (#262) * Added snippets for SupportingPaneScaffold (#260) * Added snippets for SupportingPaneScaffold * Apply Spotless * Update compose/snippets/src/main/java/com/example/compose/snippets/adaptivelayouts/SampleSupportingPaneScaffold.kt * Migrate to material3-adaptive WindowSizeClass method (#264) * Migrate to material3-adaptive WindowSizeClass method * Update comments to be single line * Apply Spotless --------- Co-authored-by: Simona <[email protected]> Co-authored-by: Ian G. Clifton <[email protected]> Co-authored-by: Alex Vanyo <[email protected]> Co-authored-by: compose-devrel-github-bot <[email protected]> * Update to new lazy list snippets. (#265) * Compose - beta01 (#270) * Update to new beta01 version * Apply Spotless * Update shared element text composable * Apply Spotless --------- Co-authored-by: riggaroo <[email protected]> * Added snippet for AnimatedVisibility usage with Shared elements (#272) * Added AnimatedVisibility shared element examples. * Apply Spotless * Switch to using LazyColumn instead of Grid as it has better animation support at present. * Apply Spotless * Fixed import. * Apply Spotless * Seperate samples into different files, simplify snippet. * Apply Spotless --------- Co-authored-by: riggaroo <[email protected]> * Add clickable text snippets (#297) * 🤖 Sync main to latest (#266) * Update CenterAlignedTopAppBar snippet to use centerAlignedTopAppBarColors * Time pickers comments (#295) * Adding advanced examples * Apply Spotless * Adding advanced examples * Rename AdvancedTimePickerExample * Rename AdvancedTimePickerExample --------- Co-authored-by: jakeroseman <[email protected]> * Adds preview and breakpoint --------- Co-authored-by: Jamal Eason <[email protected]> Co-authored-by: Jake Roseman <[email protected]> Co-authored-by: jakeroseman <[email protected]> Co-authored-by: Kat Kuan <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> * 🤖 Sync main to latest (#301) * Update CenterAlignedTopAppBar snippet to use centerAlignedTopAppBarColors * Time pickers comments (#295) * Adding advanced examples * Apply Spotless * Adding advanced examples * Rename AdvancedTimePickerExample * Rename AdvancedTimePickerExample --------- Co-authored-by: jakeroseman <[email protected]> * Adds preview and breakpoint * Updating DeviceConfigurationOverride snippet comment (#232) * Timepickers redux (#296) * Reworking the time picker examples to be more friendly to copy-pasting * Apply Spotless * Updating the time picker examples to be more copy-pastable * Change in-use tag name back to the current form. * Apply Spotless * Renaming region tags * Renaming region tags --------- Co-authored-by: jakeroseman <[email protected]> * Date pickers (#302) * Reworking the time picker examples to be more friendly to copy-pasting * Apply Spotless * Updating the time picker examples to be more copy-pastable * Change in-use tag name back to the current form. * Apply Spotless * Renaming region tags * Renaming region tags * Adding date picker snippets * Apply Spotless * fixing region tags * Adding additional range tags --------- Co-authored-by: jakeroseman <[email protected]> * Break long instruction in 2 lines to optimize for DAC * Prevent redrawing twice and running timer when compositions =0 (#304) --------- Co-authored-by: Jamal Eason <[email protected]> Co-authored-by: Jake Roseman <[email protected]> Co-authored-by: jakeroseman <[email protected]> Co-authored-by: Kat Kuan <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Alex Vanyo <[email protected]> Co-authored-by: Tomáš Mlynarič <[email protected]> * Snippet updates for type safe navigation APIs * Downgrade compileSdk to 34 * 🤖 Sync main to latest (#313) * Update CenterAlignedTopAppBar snippet to use centerAlignedTopAppBarColors * Time pickers comments (#295) * Adding advanced examples * Apply Spotless * Adding advanced examples * Rename AdvancedTimePickerExample * Rename AdvancedTimePickerExample --------- Co-authored-by: jakeroseman <[email protected]> * Adds preview and breakpoint * Updating DeviceConfigurationOverride snippet comment (#232) * Timepickers redux (#296) * Reworking the time picker examples to be more friendly to copy-pasting * Apply Spotless * Updating the time picker examples to be more copy-pastable * Change in-use tag name back to the current form. * Apply Spotless * Renaming region tags * Renaming region tags --------- Co-authored-by: jakeroseman <[email protected]> * Date pickers (#302) * Reworking the time picker examples to be more friendly to copy-pasting * Apply Spotless * Updating the time picker examples to be more copy-pastable * Change in-use tag name back to the current form. * Apply Spotless * Renaming region tags * Renaming region tags * Adding date picker snippets * Apply Spotless * fixing region tags * Adding additional range tags --------- Co-authored-by: jakeroseman <[email protected]> * Break long instruction in 2 lines to optimize for DAC * Prevent redrawing twice and running timer when compositions =0 (#304) * Allow Spotless to make commits on a user's behalf (#312) See diffplug/spotless#1242 --------- Co-authored-by: Jamal Eason <[email protected]> Co-authored-by: Jake Roseman <[email protected]> Co-authored-by: jakeroseman <[email protected]> Co-authored-by: Kat Kuan <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Alex Vanyo <[email protected]> Co-authored-by: Tomáš Mlynarič <[email protected]> Co-authored-by: Jolanda Verhoef <[email protected]> * Latest beta06 updates for Compose (#300) * Do latest 1.7.0-beta06 version updates * Apply Spotless * Code cleanup * Apply Spotless * Fix broken test * Fix tests --------- Co-authored-by: riggaroo <[email protected]> * Migrate CompositionLocal snippets to m3 (#321) (#323) Co-authored-by: Ben Trengrove <[email protected]> * Update snippets to use material3-adaptive rc01 (#324) * Migrate many snippets to use Material 3 instead of Material 2. (#320) * Do latest 1.7.0-beta06 version updates * Apply Spotless * Code cleanup * Apply Spotless * Fix broken test * Remove M2 usage from many snippets. * Apply Spotless * Remove M2 usage from many snippets. * Remove M2 usage from many snippets. * Revert incorrect commit --------- Co-authored-by: riggaroo <[email protected]> * Revert shape changes for now. * Fix text snippets in latest (#326) * Fix text snippets in latest * Apply Spotless * 🤖 Sync main to latest (#327) * Migrate CompositionLocal snippets to m3 (#321) * Migrate Custom design system page to M3 (#325) * Migrate Custom design system page to M3 * Apply Spotless --------- Co-authored-by: riggaroo <[email protected]> --------- Co-authored-by: Ben Trengrove <[email protected]> Co-authored-by: Rebecca Franks <[email protected]> Co-authored-by: riggaroo <[email protected]> * Updating DeviceConfigurationOverride snippet comment (#232) (cherry picked from commit a84c80d) * Bump actions/checkout from 3 to 4 (#222) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 2f34f3b) * Create dependabot.yml (#218) (cherry picked from commit db5ffc0) * Bump stefanzweifel/git-auto-commit-action from 4 to 5 (#221) Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4 to 5. - [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases) - [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md) - [Commits](stefanzweifel/git-auto-commit-action@v4...v5) --- updated-dependencies: - dependency-name: stefanzweifel/git-auto-commit-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit d8ef2dd) * Bump actions/setup-java from 2 to 4 (#220) Bumps [actions/setup-java](https://github.com/actions/setup-java) from 2 to 4. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@v2...v4) --- updated-dependencies: - dependency-name: actions/setup-java dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit cea0c7d) * Set git config user for sync_main_latest workflow. (#230) * Set git config user for sync_main_latest workflow. * Update PR description. (cherry picked from commit ad9ffb0) * Fix merge * Fix merge * Apply Spotless * Fix merge --------- Co-authored-by: Chris Arriola <[email protected]> Co-authored-by: arriolac <[email protected]> Co-authored-by: MagicalMeghan <[email protected]> Co-authored-by: MagicalMeghan <[email protected]> Co-authored-by: compose-devrel-github-bot <[email protected]> Co-authored-by: compose-devrel-github-bot <[email protected]> Co-authored-by: Tomáš Mlynarič <[email protected]> Co-authored-by: mlykotom <[email protected]> Co-authored-by: riggaroo <[email protected]> Co-authored-by: Simona <[email protected]> Co-authored-by: Ian G. Clifton <[email protected]> Co-authored-by: Alex Vanyo <[email protected]> Co-authored-by: compose-devrel-github-bot <[email protected]> Co-authored-by: Ben Trengrove <[email protected]> Co-authored-by: Jamal Eason <[email protected]> Co-authored-by: Jake Roseman <[email protected]> Co-authored-by: jakeroseman <[email protected]> Co-authored-by: Kat Kuan <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Chiara Chiappini <[email protected]> Co-authored-by: Don Turner <[email protected]> Co-authored-by: Don Turner <[email protected]> Co-authored-by: Jolanda Verhoef <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent b2a0075 commit 14f817b

File tree

73 files changed

+3312
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+3312
-468
lines changed

bluetoothle/src/main/java/com/sample/android/bluetoothle/kotlin/MainActivity.kt

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import android.content.Context
66
import android.content.Intent
77
import android.os.Bundle
88
import androidx.appcompat.app.AppCompatActivity
9-
import com.sample.android.bluetoothle.java.MainActivity
109

1110
class MainActivity : AppCompatActivity() {
1211

build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ plugins {
88
alias(libs.plugins.kapt) apply false
99
alias(libs.plugins.hilt) apply false
1010
alias(libs.plugins.kotlin.parcelize) apply false
11+
alias(libs.plugins.compose.compiler) apply false
12+
alias(libs.plugins.kotlin.serialization) apply false
1113
}
1214

1315
apply("${project.rootDir}/buildscripts/toml-updater-config.gradle")

compose/recomposehighlighter/build.gradle.kts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
alias(libs.plugins.android.application)
33
alias(libs.plugins.kotlin.android)
4+
alias(libs.plugins.compose.compiler)
45
}
56
android {
67
compileSdk = libs.versions.compileSdk.get().toInt()
@@ -40,9 +41,6 @@ android {
4041
viewBinding = true
4142
}
4243

43-
composeOptions {
44-
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
45-
}
4644
}
4745
dependencies {
4846
val composeBom = platform(libs.androidx.compose.bom)

compose/snippets/build.gradle.kts

+3-4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ plugins {
2020
alias(libs.plugins.kapt)
2121
alias(libs.plugins.hilt)
2222
alias(libs.plugins.kotlin.parcelize)
23+
alias(libs.plugins.compose.compiler)
24+
alias(libs.plugins.kotlin.serialization)
2325
}
2426

2527
android {
@@ -62,10 +64,6 @@ android {
6264
viewBinding = true
6365
}
6466

65-
composeOptions {
66-
kotlinCompilerExtensionVersion = libs.versions.compose.compiler.get()
67-
}
68-
6967
packaging.resources {
7068
// Multiple dependency bring these files in. Exclude them to enable
7169
// our test APK to build (has no effect on our AARs)
@@ -138,6 +136,7 @@ dependencies {
138136
implementation(libs.androidx.navigation.compose)
139137
implementation(libs.hilt.android)
140138
implementation(libs.androidx.hilt.navigation.compose)
139+
implementation(libs.kotlinx.serialization.json)
141140

142141
implementation(libs.androidx.recyclerview)
143142

compose/snippets/src/main/java/com/example/compose/snippets/SnippetsActivity.kt

+5-3
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ import androidx.navigation.compose.NavHost
2828
import androidx.navigation.compose.composable
2929
import androidx.navigation.compose.rememberNavController
3030
import com.example.compose.snippets.animations.AnimationExamplesScreen
31+
import com.example.compose.snippets.animations.sharedelement.PlaceholderSizeAnimated_Demo
3132
import com.example.compose.snippets.components.AppBarExamples
3233
import com.example.compose.snippets.components.BadgeExamples
3334
import com.example.compose.snippets.components.ButtonExamples
35+
import com.example.compose.snippets.components.CardExamples
3436
import com.example.compose.snippets.components.CheckboxExamples
3537
import com.example.compose.snippets.components.ChipExamples
3638
import com.example.compose.snippets.components.ComponentsScreen
@@ -45,14 +47,13 @@ import com.example.compose.snippets.components.SliderExamples
4547
import com.example.compose.snippets.components.SwitchExamples
4648
import com.example.compose.snippets.components.TimePickerExamples
4749
import com.example.compose.snippets.graphics.ApplyPolygonAsClipImage
48-
import com.example.compose.snippets.graphics.BitmapFromComposableSnippet
50+
import com.example.compose.snippets.graphics.BitmapFromComposableFullSnippet
4951
import com.example.compose.snippets.graphics.BrushExamplesScreen
5052
import com.example.compose.snippets.images.ImageExamplesScreen
5153
import com.example.compose.snippets.landing.LandingScreen
5254
import com.example.compose.snippets.navigation.Destination
5355
import com.example.compose.snippets.navigation.TopComponentsDestination
5456
import com.example.compose.snippets.ui.theme.SnippetsTheme
55-
import com.example.topcomponents.CardExamples
5657

5758
class SnippetsActivity : ComponentActivity() {
5859
override fun onCreate(savedInstanceState: Bundle?) {
@@ -76,13 +77,14 @@ class SnippetsActivity : ComponentActivity() {
7677
Destination.BrushExamples -> BrushExamplesScreen()
7778
Destination.ImageExamples -> ImageExamplesScreen()
7879
Destination.AnimationQuickGuideExamples -> AnimationExamplesScreen()
79-
Destination.ScreenshotExample -> BitmapFromComposableSnippet()
80+
Destination.ScreenshotExample -> BitmapFromComposableFullSnippet()
8081
Destination.ComponentsExamples -> ComponentsScreen {
8182
navController.navigate(
8283
it.route
8384
)
8485
}
8586
Destination.ShapesExamples -> ApplyPolygonAsClipImage()
87+
Destination.SharedElementExamples -> PlaceholderSizeAnimated_Demo()
8688
}
8789
}
8890
}

compose/snippets/src/main/java/com/example/compose/snippets/adaptivelayouts/SampleListDetailPaneScaffold.kt

-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ import androidx.compose.material3.adaptive.layout.ListDetailPaneScaffold
3535
import androidx.compose.material3.adaptive.layout.ListDetailPaneScaffoldRole
3636
import androidx.compose.material3.adaptive.navigation.rememberListDetailPaneScaffoldNavigator
3737
import androidx.compose.runtime.Composable
38-
import androidx.compose.runtime.getValue
39-
import androidx.compose.runtime.setValue
4038
import androidx.compose.ui.Modifier
4139
import androidx.compose.ui.graphics.Color
4240
import androidx.compose.ui.tooling.preview.Preview

compose/snippets/src/main/java/com/example/compose/snippets/adaptivelayouts/SampleNavigationSuiteScaffold.kt

-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
* limitations under the License.
1515
*/
1616

17-
@file:OptIn(ExperimentalMaterial3AdaptiveNavigationSuiteApi::class)
18-
1917
package com.example.compose.snippets.adaptivelayouts
2018

2119
import androidx.annotation.StringRes
@@ -29,7 +27,6 @@ import androidx.compose.material3.MaterialTheme
2927
import androidx.compose.material3.NavigationBarItemDefaults
3028
import androidx.compose.material3.Text
3129
import androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
32-
import androidx.compose.material3.adaptive.navigationsuite.ExperimentalMaterial3AdaptiveNavigationSuiteApi
3330
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteDefaults
3431
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteScaffold
3532
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteScaffoldDefaults

compose/snippets/src/main/java/com/example/compose/snippets/animations/AnimationQuickGuide.kt

-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ import androidx.compose.runtime.mutableStateOf
8787
import androidx.compose.runtime.remember
8888
import androidx.compose.runtime.setValue
8989
import androidx.compose.ui.Alignment
90-
import androidx.compose.ui.ExperimentalComposeUiApi
9190
import androidx.compose.ui.Modifier
9291
import androidx.compose.ui.draw.clip
9392
import androidx.compose.ui.draw.drawBehind
@@ -720,7 +719,6 @@ private fun LoadingScreen() {
720719
}
721720
}
722721

723-
@OptIn(ExperimentalComposeUiApi::class)
724722
@Preview
725723
@Composable
726724
fun AnimationLayout() {

0 commit comments

Comments
 (0)