dturner
b3ff8aa940
🤖 Updates screenshots
2 years ago
Don Turner
1e14339924
Fix individual UI components
...
Change-Id: I7dec3672b9efc3524371811743b06efc1e113a36
2 years ago
dturner
5c83771326
🤖 Updates screenshots
2 years ago
Don Turner
a04a43d5cf
Fix spotless (really should enable the commit hook to do this)
...
Change-Id: I68cb9bd989a809e5db1bca3157c2c978ad8c8906
2 years ago
Don Turner
502edda0b7
Fix text styles and spacing now that includeFontPadding is false
...
Change-Id: I6894836a7cd3a6139511a5d1ac0a96702a265186
2 years ago
dturner
1c9c47fda4
🤖 Updates screenshots
2 years ago
Don Turner
d07783be5d
Revert fontSize change
...
Change-Id: I4011205f8a07c418653ee463d7355fe1e4ff6f44
2 years ago
Don Turner
811bdf801b
Fix spotless (again)
...
Change-Id: If6b292af514df435d7bd233bd634657904c67d6b
2 years ago
Don Turner
e04cb4e00d
Merge branch 'main' into update-compose-bom
2 years ago
Don Turner
3ab68c72ea
Merge pull request #1040 from SimonMarquis/fix-unit-test
...
Fix `emptyResultIsReturned_withNotMatchingQuery` unit test
2 years ago
Don Turner
9fc80d8611
Remove includeFontPadding, default behaviour is fine
...
Change-Id: I334c5a488c1e2a2b49670a97b16385a7df1791c8
2 years ago
Tomáš Mlynarič
7737a83eb9
Merge branch 'main' into mlykotom/tz-perf-improvement
...
Change-Id: I8730afc0cc3786784ea47276873fdf48dd82081c
# Conflicts:
# app/dependencies/prodReleaseRuntimeClasspath.txt
# build-logic/convention/src/main/kotlin/AndroidFeatureConventionPlugin.kt
2 years ago
dturner
77bb7f95d1
🤖 Updates screenshots
2 years ago
Don Turner
82b15d38f1
Switch default padding to true since this was actually false by default since Compose 1.6.0-alpha01
...
Change-Id: Ifd291b247f848cea43e084cc0fb99917e47e26eb
2 years ago
Don Turner
e750cdda90
Switch off default font padding to avoid changing UI
...
Change-Id: Ida974df8fd4b1aba6f9525ef5335a6cbe02ddb18
2 years ago
Don Turner
954afd6810
Fix ShortText icon
...
Change-Id: I8b243ef88c1cc8be83f5fbeaee6a2576c453a062
2 years ago
dturner
4a1015287d
🤖 Updates screenshots
2 years ago
Don Turner
f5ccb99e8a
Update Compose BOM to 2024.02.00. Fixes #1218
...
Change-Id: I838b81bf8e7fd7cb135f422653a8d8041829b28b
2 years ago
Tomáš Mlynarič
226ef1ac25
Add comment for Retrofit async OkHttp
...
Change-Id: Ic7a6887b76caf26f00b58b0753271d426b67e75b
2 years ago
Tomáš Mlynarič
f4dc167da2
Optimize OkHttp initialization for Retrofit
...
Change-Id: I347f1080ab5adf774a0cdd3c659cbf25c4820f9a
2 years ago
Tomáš Mlynarič
41b576d294
Improve lazy loading for Coil + OkHttp
...
This way, we can load Coil's backend on a background thread and not block the MainThread with it.
Previously, the Coil image loader was initialized with the first composed image, which caused ~10ms duration and most likely skipped frames.
Change-Id: Iaa583b6adc1df7d7a51dbae1473e539f2c0b0b62
2 years ago
Tomáš Mlynarič
8e959e9803
Improve converting to kotlin timezone
...
Change-Id: I2af929c341cb274ae6b93bb8dffe696de6ed1c63
2 years ago
Tomáš Mlynarič
77d4f5f57f
Use trySend multiple times
...
Change-Id: Ie00c4180d07fc4bb9d457647f3b7ddadd5a3c032
2 years ago
Simon Marquis
37af179716
Move `:core:data` fake repositories to `:core:data-test`
...
Now that these fake implementations are no longer used in the production source code (only in tests), we can safely extract them out of this module.
Hopefully, we'll later be able to use Kotlin testFixtures for that.
References:
- #709
- #875
2 years ago
Simon Marquis
e3a0f119c3
Merge branch 'main' into jvm-alt
2 years ago
Tomáš Mlynarič
251b1bbc2c
Use androidx.tracing everywhere
...
Change-Id: I9a77c4434d271e2e23700823f9f513aa61d177f8
2 years ago
Tomáš Mlynarič
e208bd0bfd
Use kotlinx.datetime.Timezone instead of java ZoneId
...
Change-Id: I62c4d044b319a9b59e06bb42fd12971d992e8628
2 years ago
Simon Marquis
7a5df77bc3
Replace comments with proper `@TestOnly` annotations
2 years ago
Simon Marquis
17b006ed43
Fix addNewsResources issue
2 years ago
Simon Marquis
e4917b1332
Fix `emptyResultIsReturned_withNotMatchingQuery` unit test
...
`searchResultUiState` transitively relied on `getSearchContentsCount` updates and on `userDataRepository` to emit something.
2 years ago
Tomáš Mlynarič
6c7a136de2
More readable zoneId creation
...
Change-Id: I912dc021554e4886a5d09e63799aa5c81e8fd16a
2 years ago
Tomáš Mlynarič
e19d435317
Rename LocalTimeZone -> LocalZoneId + collects with lifecycle
...
Change-Id: I429c563765a489965d0a1741e36c98a30e5d0ef3
2 years ago
Tomáš Mlynarič
64a325ae6c
Conflate TimeZoneMonitor emissions
...
Co-authored-by: Alex Vanyo <vanyo@google.com>
2 years ago
Tomáš Mlynarič
fa16457b5e
Fix spotless
...
Change-Id: I6583fa9ed7c1563f6164653be9bbaf7904ec0215
2 years ago
Tomáš Mlynarič
c432f74054
Add TimeZoneMonitor to prevent multiple TimeZoneBroadcastReceivers
...
This way, we can save ~1ms per composed item on screen.
Change-Id: Ib9ada3cea53304fca4fb2b36c48c175845bc683d
2 years ago
Simon Marquis
c307446e69
Move `androidx.compose.ui:ui-tooling` dependency to convention plugin
2 years ago
Don Turner
ecd7b035c7
Merge pull request #785 from SimonMarquis/optimize-avd
...
Optimize AVD to fix long vector paths Lint warning
2 years ago
Simon Marquis
c3bb7ce4b5
Merge branch 'main' into firebase-ktx
2 years ago
Simon Marquis
ae55eb8e1a
Optimize AVD to fix long vector paths Lint warning
...
... with SVGOM, but you'll have to check on Android Studio the AVD diff.
https://googlesamples.github.io/android-custom-lint-rules/checks/VectorPath.md.html
2 years ago
Simon Marquis
35caa8547c
Merge branch 'main' into move-android-instrumented-test
2 years ago
Simon Marquis
de331fafb5
Apply suggestions from code review
2 years ago
Simon Marquis
987b534f1c
Migrate `:core:common` to pure JVM module
...
The notification icons are now stored in `:core:notifications`.
This forces `:sync:work` to depend on it.
Another solution could be to provide the resource id through Hilt, but it would require more changes.
2 years ago
Simon Marquis
62a0f1c84e
Prep work for JVM alternatives to modules/plugins
2 years ago
Don Turner
4843216871
Merge branch 'main' into kotlinify
2 years ago
Don Turner
305f049429
Merge pull request #1088 from SimonMarquis/cleanup-dependencies
...
Reduce overall build complexity
2 years ago
Simon Marquis
6cd965d70c
Replace `Enum.values()` with `Enum.entries`
...
'Enum.values()' is recommended to be replaced by 'Enum.entries' since 1.9
2 years ago
Don Turner
137944ab9a
Merge pull request #767 from SimonMarquis/resource-prefix
...
Enforce `resourcePrefix` on Android library modules
2 years ago
Simon Marquis
dad6f3dcdc
Update core/designsystem/src/main/kotlin/com/google/samples/apps/nowinandroid/core/designsystem/component/scrollbar/ScrollbarExt.kt
...
Co-authored-by: Don Turner <dturner@users.noreply.github.com>
2 years ago
Don Turner
e4991aff96
Merge branch 'main' into kotlinify
2 years ago
Simon Marquis
2e663d3572
Merge branch 'main' into kotlinify
2 years ago
lihenggui
d7727f1cac
Ignore function naming check when annotated with @Test
2 years ago
lihenggui
97ecd911c5
Suppress ktlint:standard:function-naming in ResultKtTest
2 years ago
lihenggui
9dac5b80c3
Move @Suppress("ktlint:standard:max-line-length") to function scope
2 years ago
lihenggui
5aa9122f08
Remove violations: property-naming
2 years ago
lihenggui
402ca7d782
Remove violations: discouraged-comment-location
2 years ago
lihenggui
5e965962c5
Spotless
2 years ago
Simon Marquis
171e2e83f5
Reduce overall build complexity
...
- Reduce the visibility of multiple Hilt `Module`s and implementations of public interfaces
- Correctly configure the visibility of dependencies:
- `api` when it's part of it's public `api`
- `implementation` when it's part of it's internal `implementation`
- Remove unnecessary dependencies in build.gradle.kts files
- Remove unnecessary dependencies provided by plugins
- Remove unnecessary applied plugins (i.e. roborazzi)
- Sort dependencies in `build.gradle.kts`
- Delete unused entries in `libs.versions.toml`
2 years ago
Simon Marquis
7bdf942a47
Merge branch 'main' into firebase-ktx
2 years ago
Yuya
907be7d667
Update thumbTrackSizePercent calculation for readability
...
Change-Id: I7ef067a950b4b5911b8c2e6a8c1f72c3e95d938d
2 years ago
Yuya
cc6677872d
Update thumb movement range by thumb size, in app scrollbars
...
Change-Id: I4438debd5037965a837758e0c78b110ab8197da5
2 years ago
Ben Trengrove
20002b25ed
Merge pull request #1067 from android/ben/itemstate
...
Remove redundant mutable state in NewsFeed
2 years ago
dahunsi
58567379dc
Fix typo in app scrollbars
...
Change-Id: Ie72f1410fa8e5a68a520321c34d4fad251016486
2 years ago
Ben Trengrove
1d65b7b702
Remove redundant mutable state
2 years ago
Ben Trengrove
41a7a697da
Apply spotless
2 years ago
Ben Trengrove
a7c7b520a4
Use custom Modifier.Node instead of background
2 years ago
Ben Trengrove
6a95579954
Move state into a state holder and remove redundant Box
2 years ago
Ben Trengrove
a142660048
Move scrollbar changes out of composition
2 years ago
Simon Marquis
4c8e0319ee
spotless
2 years ago
Simon Marquis
6d93ce5ead
Firebase: Migrate to using the Kotlin extensions (KTX) APIs in the main modules
...
https://firebase.google.com/docs/android/kotlin-migration
Requirements: Firebase BoM 32.5.0, but let's update to the latest 32.6.0.
And remove warnings:
- `'logEvent(String, ParametersBuilder.() -> Unit): Unit' is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration .`
- `'param(String, String): Unit' is deprecated. Migrate to use the KTX API from the main module: https://firebase.google.com/docs/android/kotlin-migration .`
2 years ago
Simon Marquis
6a3a5ea692
Kotlinify codebase
...
- Remove unnecessary nullable types
- Replace no-op method bodies with Unit
- Convert to expression body
- Replace if with when
- Remove braces from 'when' entries
- Remove braces from if statement
- Convert to single line lambda
- oneline if/returns
- Replace 'contains' call with 'in' operator
Following this refactor, it could be great to envision a more "strict" code formatter like ktlint 1.0 (we are currently stuck at 0.48.1)
2 years ago
Simon Marquis
8d0b893459
Update Robolectric 4.11.1
...
- https://github.com/robolectric/robolectric/releases/tag/robolectric-4.11
- https://github.com/robolectric/robolectric/releases/tag/robolectric-4.11.1
> Robolectric 4.11 adds support for Android SDK 34 (U). It also contains many bug fixes, performance improvements, and Shadow API enhancements. Robolectric 4.11 removes support for Android SDKs 18 and below.
Removing explicit API 33 Robolectric configuration.
2 years ago
Simon Marquis
142a37cd94
Move Android instrumented test `ThemeTest` to unit test
2 years ago
Daniel Santiago
20129f083b
Update to Hilt 2.48.1 and use the KSP version
...
* Moved protobuf to separate module to avoid having to wire KSP's Plugin with the Protobuf Plugin.
* `@Binds` function cannot be an extension function.
* Commented `kotlin.compiler.execution.strategy=in-process` in CI to circumvent OOMs due to increased metaspace usage.
2 years ago
rosariopf
137a5de28c
remove ktx import from FirebaseAnalyticsHelper.kt
2 years ago
Mario Manhique
9d43ecfdb9
Update MainDispatcherRule.kt
...
Updated MainDispatcherRule parameter accessibility to private because its only needs to be accessible inside that class.
2 years ago
Don Turner
bbcabea220
Fix formatting issues
...
Change-Id: Ia90a4aad72db737455b70de9b4583689d6a0e5d6
2 years ago
rosariopf
9abc0cc2d4
upgrade to Firebase BoM 32.5.0 and drop Firebase KTX
2 years ago
Adetunji Dahunsi
53d8bef434
Merge pull request #972 from tjmtic/now-update-888
...
Update primitive mutable states to mutableState API where applicable
2 years ago
Jonathan Koren
45b11a0571
fixed for PR 985
2 years ago
TM
0d31a62bbd
Merge remote-tracking branch 'upstream/main' into now-update-888
2 years ago
Simon Marquis
c85e361ef9
Fix compiler warning: Remove single lambda parameter declaration
2 years ago
Adetunji Dahunsi
27dd4e66ad
Merge pull request #947 from android/tj/staggered-grid-feed
...
Use lazy vertical staggered grid in feed to maximize space utilization
2 years ago
TM
190189b7e4
Update compose-runtime version; Update primitive mutable states to mutableState API where applicable
2 years ago
Don Turner
3d85cd06d0
Merge pull request #958 from McGalanes/main
...
Use typesafe project accessors
2 years ago
Don Turner
97933b1686
Merge pull request #959 from McGalanes/convention-plugins-toml
...
Add convention plugins to version catalogs
2 years ago
dahunsi
0ccd6d2f29
Fix spotless
...
Change-Id: Ia931fc5662af50a6045a51783d72cb5b68e2486a
2 years ago
dahunsi
401b42388a
Address PR feedback
...
Change-Id: I50b49d3e216535e384b64849f915b37f6e2acbbc
2 years ago
Don Turner
6628ddfdaf
Merge pull request #912 from lihenggui/main
...
Upgrade Gradle to v8.3
2 years ago
Minseong Kim
a147118fdd
Fit typo in SystemTrayNotifier.kt
2 years ago
Melwin Magalhaes
f470be2860
Add convention plugins to version catalogs
2 years ago
Melwin Magalhaes
d089ccd9d7
Use typesafe project accessors for project modules
2 years ago
dahunsi
738fbc190d
Use animateItemPlacement() on feed
...
Change-Id: Id120a6e84e0641679fa54ebf0e34bb04165aa419
2 years ago
dahunsi
9c8f1256a0
Fix spotless
...
Change-Id: I7ee8bc84beb38d00983aa7b0da3f3073e1249992
2 years ago
dahunsi
768c484090
Use lazy vertical staggered grid in feed to maximize space utilization
...
Change-Id: I66fff57bd0f11f5f73e7e5c9b5c51b0fa6a76926
2 years ago
Simon Marquis
79bb3b9edf
Merge remote-tracking branch 'origin/main' into resource-prefix
2 years ago
Simon Marquis
415e35c35e
Enforce `resourcePrefix` on Android library modules
...
```
:ui-test-hilt-manifest -> ui_test_hilt_manifest_
:core:analytics -> core_analytics_
:core:common -> core_common_
:core:data -> core_data_
:core:data-test -> core_data_test_
:core:database -> core_database_
:core:datastore -> core_datastore_
:core:datastore-test -> core_datastore_test_
:core:designsystem -> core_designsystem_
:core:domain -> core_domain_
:core:network -> core_network_
:core:notifications -> core_notifications_
:core:testing -> core_testing_
:core:ui -> core_ui_
:feature:bookmarks -> feature_bookmarks_
:feature:foryou -> feature_foryou_
:feature:interests -> feature_interests_
:feature:search -> feature_search_
:feature:settings -> feature_settings_
:feature:topic -> feature_topic_
:sync:sync-test -> sync_test_
:sync:work -> sync_work_
```
2 years ago
Simon Marquis
2bbb982b3a
Migrate from `java` to `kotlin` sourceSet directory
2 years ago
Jose Alcérreca
ff9f38198f
Adds screenshot tests to :core:designsystem ( #931 )
...
* WIP: Adds screenshot tests to :core:designsystem
Change-Id: I0672845feba4064652dd8d60f07047b87864e121
* 🤖 Updates screenshots
* Creates tests for more components and cleans up
Change-Id: I61fe3ae6a4e8a41a599d520e16fc14aa6a643a22
* WIP: More cleanup and more combinations of themes
Change-Id: I34312bc7d147b31f1c638cd505a9c241f8267523
* Added the rest of the screenshot tests for designsystem
Change-Id: Ic427db5491910781c038882055524e3f3dbed194
* Some more cleanup
Change-Id: I7384e55864719af9122ad9da8e50a09cb9a60180
* Spotless
Change-Id: I22aa46e1f56b8b638c9d609ababbe49d471a26c6
* 🤖 Updates screenshots
* ScreenshotHelper cleanup
Change-Id: Ic94d41618e7850ab47f294d8022b405f18c843f0
2 years ago
Don Turner
a2c0450965
Merge pull request #925 from SimonMarquis/remove-dispatcher
...
Remove unnecessary dispatcher switch in `DefaultRecentSearchRepository`
2 years ago
Simon Marquis
7f5a8619fe
Remove unnecessary dispatcher switch in `DefaultRecentSearchRepository`
...
As mentioned in the following discussion: https://github.com/android/nowinandroid/discussions/818
Room already takes care of switching dispatchers if the DAO method is correctly annotated with the `suspend` modifier.
2 years ago
Roy Matero
bde73dbbfa
Merge branch 'android:main' into main
2 years ago
Simon Marquis
14bd622e05
Replace identical `InstantSerializer` with KotlinX datetime default serializer
2 years ago
Jose Alcérreca
a84292a4a5
Adds dark screenshot tests and fixes background colors in ForYou ( #918 )
...
* Adds dark screenshot tests and fixes background colors in ForYou
* 🤖 Updates screenshots
2 years ago
Roy Matero
6122d92cf8
Renamed toggle function signature with boolean parameters
...
Change-Id: I0d6c0ed4d4c0ee4bd387e5645fc558970f5f202b
2 years ago
Milosz Moczkowski
7ddd177402
Merge pull request #759 from SimonMarquis/lint/sarif
...
Android Lint improvements
2 years ago
Jose Alcérreca
9748be62c5
Adds Screenshot testing with Roborazzi ( #876 )
...
* Adds screenshot tests using Roborazzi (Robolectric Native Graphics)
- Adds Roborazzi to convention plugins
- Adds Screenshot helper in :core-testing
- Creates screenshot suites for :app and :feature-foryou
* CI and spotless
* Moves :app tests to testDemo and makes NiaAppScreenSizesScreenshotTests prettier
* CI: Moves local tests to their own step
* CI: Adds --rerun to screenshot task
* CI: Moves screenshots before local tests
* CI: Fixes wrong if statement in workflow
* CI WIP: trying to trigger the push step
* CI: Re-enables roborazzi verification
* Fixes flaky screenshot tests by setting LocalInspectionMode on
* CI: screenshot commits now use the original author intead of bot account
* CI: Disables globbing because file_pattern didn't work
* CI: Trying new file pattern for png files
* CI: Adds a check for forks
* 🤖 Updates screenshots
* Code review: toml cleanup, comments
* Use new github.event.pull_request.head.repo.fork
Co-authored-by: Simon Marquis <contact@simon-marquis.fr>
* Uses Robolectric qualifiers to set the dpi, adds section to README
* Spotless
* Delegates creation of repository to Hilt in test
* Revert "Use new github.event.pull_request.head.repo.fork"
* 🤖 Updates screenshots
* Empty commit to trigger GHA on main branch
* Makes time zones deterministic in screenshot tests
* Increases GMD timeout to 90m, but it has to be reduced
---------
Co-authored-by: Simon Marquis <contact@simon-marquis.fr>
2 years ago
lihenggui
f7df999c22
Upgrade Gradle to v8.3
2 years ago
Milosz Moczkowski
7c7b2f5a95
Merge pull request #889 from RivanParmar/main
...
Rename SearchResult.kt.kt to SearchResult.kt
2 years ago
Jose Alcérreca
2ddeb7a456
Fixes icons size in onboarding and restores LocalInspection for images ( #909 )
...
* Fixes icons size in onboarding and restores LocalInspection for images
2 years ago
Simon Marquis
bd6fc86158
Widen `isNotEmpty` with `isNotBlank` to potentially catch blank values
2 years ago
Simon Marquis
5503aba044
Update `var` with fake default value to the more "correct" `lateinit var`
2 years ago
Simon Marquis
b924cfd6f2
Restore `Unknown` type as empty `String`
2 years ago
Simon Marquis
66a7cb6dca
Fix broken text
2 years ago
Simon Marquis
642d32bf38
Restore original `type` labels
2 years ago
Simon Marquis
9c60c758ee
Fix missing removal
2 years ago
Simon Marquis
26e41f18b2
spotlessApply
2 years ago
Simon Marquis
81bec2e367
Replace `NewsResourceType` enum with simpler String type
...
See this discussion for rationale: https://github.com/android/nowinandroid/discussions/901
2 years ago
Adetunji Dahunsi
adfa471cd5
Merge pull request #850 from qamarelsafadi/loading-progress-for-image
...
Fix #849 : Loading progress for image
2 years ago
RivanParmar
f72c80bde1
Rename SearchResult.kt.kt to SearchResult.kt
2 years ago
Don Turner
596a036dcc
Merge pull request #873 from SimonMarquis/misc-warnings
...
Fix miscellaneous warnings
2 years ago
qamarelsafadi
9adac89946
Merge remote-tracking branch 'origin/loading-progress-for-image' into loading-progress-for-image
2 years ago
Qamar A. Safadi
9abe814915
Merge branch 'android:main' into loading-progress-for-image
2 years ago
qamarelsafadi
eecf95eaf7
fix formatting
2 years ago
Don Turner
6014a3118c
Merge pull request #872 from SimonMarquis/data-objects
...
Convert 'sealed' sub-object to 'data object'
2 years ago
Don Turner
148d388b2b
Merge pull request #874 from SimonMarquis/string-decoder
...
Replace StringDecoder injection with simpler API
2 years ago
qamarelsafadi
b291ac5f38
feat: replacing SubcomposeAsyncImage as its not recommended to use with lazyLayout
2 years ago
Qamar A. Safadi
1574ad250c
Merge branch 'android:main' into loading-progress-for-image
2 years ago
Don Turner
f225d46363
Merge pull request #879 from tatsuyafujisaki/rename-constants
...
Rename constants
2 years ago
AlirezaJoon
60775d6bf8
fix: add label to animations for fixing lint issue
2 years ago
Qamar A. Safadi
72e515d512
Merge branch 'android:main' into loading-progress-for-image
2 years ago
Tatsuya Fujisaki
0e28640b15
Rename constants
2 years ago
Adetunji Dahunsi
c650518885
Merge pull request #722 from android/tj/scrollbars
...
Add scrollbars to app
2 years ago
Simon Marquis
a9df0e45c0
Replace StringDecoder injection with simpler API
...
The initial reason for this `StringDecoder` was to make sure the AndroidX navigation route would not use incompatible chars in the resulting String.
For that, `Uri.encode(String)` was used, but this is an Android API (`android.net.Uri`).
Unit tests would fail because Uri is not mocked (since we are not using Robolectric).
Therefore, a `StringDecoder` interface was introduced with 2 implementations: `UriDecoder` and `FakeStringDecoder`, Hilt modules were added, etc.
FWIW, the naming of the API was misleading: `StringDecoder.decodeString(encodedString: String)` does not inform how encoded the input is, so `UriDecoder` could "decode" something that was not necessarily uri "encoded".
The solution to this problem was to simply use regular Java APIs:
- `URLDecoder.decode(urlEncodedTopicId, "UTF-8")`
- `URLEncoder.encode(topicId, "UTF-8")`
2 years ago
Simon Marquis
54ad808e74
Fix miscellaneous warnings
...
- Remove unused namespace declaration
- Collapse empty manifest tags
- Remove redundant qualifier name
- Remove redundant suppression
2 years ago
Simon Marquis
28c9412cc9
Convert 'sealed' sub-object to 'data object'
2 years ago
qamarelsafadi
64365f818a
feat: make painter in one line
2 years ago
qamarelsafadi
a913c85c4d
feat: move the placeholder default value to the method
2 years ago
Qamar A. Safadi
86c51d369c
Merge branch 'android:main' into loading-progress-for-image
2 years ago
prosixe
a132e331bc
Typo fix for topics
...
tocpis -> topics
2 years ago
qamarelsafadi
58a42a6c85
feat: remove check if placeholder null and put a default placeholder if its not passed.
2 years ago
qamarelsafadi
6bc6fe1551
fix: modifier to Modifier
2 years ago
qamarelsafadi
ef7141d361
fix: review notes
2 years ago
qamarelsafadi
13fe767fb9
feat: fix format issue
2 years ago
qamarelsafadi
325dfb6edb
Merge remote-tracking branch 'origin/loading-progress-for-image' into loading-progress-for-image
2 years ago
Qamar A. Safadi
a9c16ab94e
Merge branch 'android:main' into loading-progress-for-image
2 years ago
qamarelsafadi
8166ec18cb
feat: fix format issue
2 years ago
Adetunji Dahunsi
867e2464db
Merge pull request #835 from blackbracken/avoid_retrieving_unnecessary_entity
...
Call getNewsResourceIds instead of getNewsResources
2 years ago
qamarelsafadi
3e04a65ca4
feat: Show loading progress for Image Component as a solve for
...
//TODO b/228077205,
2 years ago
qamarelsafadi
51c007c51c
feat: Show loading progress for Image Component as a solve for
...
//TODO b/228077205,
2 years ago
qamarelsafadi
acc5942978
Merge remote-tracking branch 'origin/main'
2 years ago
Qamar Safadi
e33036f039
feat: Show loading progress for Image Component as a solve for
...
//TODO b/228077205,
2 years ago
TJ Dahunsi
451c2e9b74
Interact with scrollbar only if drag direction matches scrollbar orientation
...
Change-Id: I8fb5a64098ea83458d25fd2b7363a6b5dd3fef2f
2 years ago
TJ Dahunsi
3e7aa961c5
Replace usages of 'displacement' to 'moved' in parameter names
...
Change-Id: I5b3da60041b046454e848d187f6dd2bfadf22b9a
2 years ago
TJ Dahunsi
f77f6c134d
PR feedback
...
Change-Id: I6e9f4a2ba53e81d32d07e229eb848541801eca18
2 years ago
TJ Dahunsi
7a889b64a6
PR feedback
...
Change-Id: I48492e3c121ff8b2ee6bbbac08aa1829f6a6467f
2 years ago
TJ Dahunsi
843826a68f
Check if first item size == 0
...
Change-Id: I41acffad84d9db1cf407f77b04530643933f98bf
2 years ago
TJ Dahunsi
208e03709b
Even better names
...
Change-Id: Ia699c3ce8fd1ce7a6e406b00c81dc196b487ed65
2 years ago
TJ Dahunsi
a97dec9633
Fix spotless
2 years ago
TJ Dahunsi
81c6076153
Added clarifying comments to code and used better variable names
2 years ago
TJ Dahunsi
b27c1b3d0d
Default scrollbars to dormant
2 years ago
TJ Dahunsi
ef85588d40
Extract scrollbar values to constants
2 years ago
TJ Dahunsi
acf0526226
Add hoverable to scrollbar
2 years ago
TJ Dahunsi
66a4e78105
Add scrollbars to app
2 years ago
Márton Braun
1bef42844f
Merge pull request #752 from SimonMarquis/kotlin-1.9.0
...
Kotlin 1.9.0
2 years ago
Simon Marquis
150e1426f0
Add protobuf generated sources to the sourceSets
...
And update to version 3.23.4.
2 years ago
blackbracken
143d28d240
reformat by spotless
2 years ago
blackbracken
5a9ab08cfc
add kdoc for getNewsResourceIds
2 years ago
blackbracken
8dff654571
Call getNewsResourceIds instead of getNewsResources
2 years ago
Milosz Moczkowski
182131da16
Merge pull request #823 from ahmed-madhoun1/allow_localised_date_format
...
Allow localised date format
2 years ago
Don Turner
ecd8a4a3f7
Merge pull request #812 from Askeri-Muhendis/main
...
Kotlin Coding conventions
2 years ago
TJ Dahunsi
9cba513495
Track when deep link notifications are opened
...
Change-Id: I223b1c8fbca36f9b7f2a35d9cb2fa901d6f5be91
2 years ago
ahmedmadhoun1
39244db2d8
Allow localised date format
2 years ago
Simon Marquis
9236bf5007
Merge branch 'main' into lint/sarif
2 years ago
İbrahim Ethem Şen
6f727c4eb6
Merge branch 'android:main' into main
2 years ago
İbrahim Ethem Şen
83ee29744e
Kotlin coding conventions places companion object at the bottom of the class
2 years ago
Tomáš Mlynarič
43c087d7aa
Add named arguments
...
Change-Id: Ic91ae4fc04bf8eb92c3e5845c7e984475526ec91
2 years ago
Tomáš Mlynarič
f5a5811506
Add contentType to news feed
...
Before
ScrollForYouFeedBenchmark_scrollFeedCompilationFull
frameDurationCpuMs P50 4.9, P90 6.9, P95 7.6, P99 9.5
frameOverrunMs P50 -10.3, P90 -6.8, P95 -2.8, P99 -2.1
Traces: Iteration 0 1 2 3 4 5 6 7 8 9
After
ScrollForYouFeedBenchmark_scrollFeedCompilationFull
frameDurationCpuMs P50 4.6, P90 6.3, P95 7.2, P99 9.2
frameOverrunMs P50 -10.6, P90 -8.7, P95 -7.8, P99 -4.7
Traces: Iteration 0 1 2 3 4 5 6 7 8 9
Change-Id: I5589776f9627c27154873529c9ca9dd055a8a8ef
2 years ago
Simon Marquis
e125658335
Merge branch 'main' into lint/sarif
2 years ago
James Rose
09a7b4bfda
Merge pull request #748 from SimonMarquis/fix/permissions
...
Grant `POST_NOTIFICATIONS` permission in more instrumented tests
2 years ago
Adetunji Dahunsi
1ef0ced20c
Merge pull request #776 from SimonMarquis/fix/714
...
Keep track of matching `Network`s inside `NetworkCallback`
2 years ago
Simon Marquis
06d07dbca4
Apply changes from review comments
2 years ago
Miłosz Moczkowski
da09e124a7
Refactor icons
2 years ago
Milosz Moczkowski
38201a0314
Merge pull request #770 from android/refactor/remove_unused_statements
...
Remove unused statements
2 years ago
Simon Marquis
769e5dd458
Keep track of matching `Network`s inside `NetworkCallback`
...
This will ensure the connectivity state remains synchronized with the `ConnectivityManager`.
Fixes #714
2 years ago
Miłosz Moczkowski
bdc607d289
Remove redundant suppressions
...
Change-Id: Iae08b6f284cf7a387922fdec34c8a0aa0da809ef
2 years ago
Miłosz Moczkowski
31dd5ecf59
Remove redundant statements
...
Change-Id: Iaa25b7ba033d5e9c85cc2dc433197ed7b8b6cb89
2 years ago
Simon Marquis
9085cad91c
Cleanup unused string resources
2 years ago
Simon Marquis
d562d566a8
Android Lint improvements
...
- Create `LintConventionPlugin` to configure Lint on all compatible modules: Android applications, Android libraries and JVM modules.
- Run `lintProdRelease` in CI instead of the default `lintDemoDebug` which is less important compared to production code.
- Rearrange CI steps to make it more clear that Lint should is an additional step after build (build -> test -> lint).
- Enable SARIF support and upload results to GitHub's CodeQL to get inline feedback on PRs.
If we really need better perfs, we could restore `lint.checkDependencies = true` on the `:app` module and only execute `:app:lintProdRelease`.
But in practice, this does not change the total build time on this project.
2 years ago
Adetunji Dahunsi
ee64466308
Merge pull request #749 from android/tj/reactive-only-dao
...
Ensure DAO exposes only reactive types
2 years ago
Don Turner
e9c72913cd
Provide Default dispatcher for instrumented tests
...
Change-Id: I488a9b9d9d3864ce9496614ab35332ec19d06bcc
2 years ago
Don Turner
e74d70cc38
Updating TestDataStoreModule to use ApplicationScope
2 years ago
TJ Dahunsi
56034631b5
Fix tests
...
Change-Id: Ie6b62071d2023e3a7ffe1553ab606e3f6b386a5e
2 years ago
Don Turner
46d39ed85d
Add top level application scope, use IO dispatcher for DataStore
...
Change-Id: I1512b1665587c73abd5e8a78aa9abd3eed24ab79
2 years ago
TJ Dahunsi
0d416f2404
Ensure DAO exposes only reactive types
...
Change-Id: I8992ccf6525cd4c5ea9503d532b500e4d310b7fb
2 years ago
Simon Marquis
100cd47161
Grant `POST_NOTIFICATIONS` permission in more instrumented tests
...
Continues the work initiated in #738 .
Extract the SDK version check inside a `GrantPostNotificationPermissionRule` class that delegates to a regular `GrantPermissionRule`.
2 years ago
Don Turner
5dd82b3829
Merge pull request #681 from SimonMarquis/di/coroutine-scope
...
Add Application-wide `CoroutineScope` in the DI graph
2 years ago
Neelansh Sahai
467c8b6415
Merge pull request #706 from gururani-abhishek/remove-onItemClick-parameter
...
fix #614 : removed unused onItemClick parameter from NewsResourceCardList.kt
2 years ago
Alex Vanyo
3a89b11811
Adjust JDK setup to remove toolchain
...
Change-Id: Ie0f43cb8f0fe504ed3e98ef35703949959688699
2 years ago
Milosz Moczkowski
8146e84cab
Merge pull request #583 from SimonMarquis/jvmToolchain
...
Configure jvmToolchain for Android and Kotlin projects
2 years ago
Adetunji Dahunsi
3ec9746ce9
Merge pull request #716 from SimonMarquis/SimonMarquis-patch-3
...
Simplify handling of nullability in `ConnectivityManagerNetworkMonitor`
2 years ago