3 Commits

Author SHA1 Message Date
jbibik
bc3db63eb4 Fix various DeveloperGuide lint errors
- Add kotlin-compose plugin for recognising of @Composable functions as not Functions
- Add qualifier names and normalize their use between Java and Kotlin
- Rename var to val for unchanging locals
- Use kotlin ext `String.toUri`
- Remove unnecessary "new" and semicolons from Kotlin snippets

PiperOrigin-RevId: 817178697
2025-10-09 07:35:39 -07:00
ibaker
079e891771 Fix gradle config for doc-samples module
Also remove some unused dependencies.

Follow-up to 46d4066733

PiperOrigin-RevId: 797302191
2025-08-20 07:15:57 -07:00
ibaker
46d4066733 Add preload DAC snippets
This file is copied from
https://github.com/android/snippets/blob/main/misc/src/main/java/com/example/snippets/PreloadManagerKotlinSnippets.kt

I had to make the following changes to make it compile against the tip
of the `main` branch (and these will need to be undone when
cherrypicking this change to the `release` branch):

1. Rename `DefaultPreloadManager.PreloadStatus.TRACKS_SELECTED/SOURCE_PREPARED`
   to `PRELOAD_STATUS_TRACKS_SELECTED/_SOURCE_PREPARED`.
2. Change `getTargetPreloadStatus` to return a non-null `PreloadStatus`
   and `PRELOAD_STATUS_NOT_PRELOADED` instead of `null`.

PiperOrigin-RevId: 797259358
2025-08-20 04:39:32 -07:00