Commit Graph

574 Commits (d5a23098bcb51a76c3ead93679dfda41d2cf79bd)

Author SHA1 Message Date
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
2 years ago
Simon Marquis 7bdf942a47 Merge branch 'main' into firebase-ktx
2 years ago
Yuya 907be7d667 Update thumbTrackSizePercent calculation for readability
2 years ago
Yuya cc6677872d Update thumb movement range by thumb size, in app scrollbars
2 years ago
Ben Trengrove 20002b25ed Merge pull request #1067 from android/ben/itemstate
2 years ago
dahunsi 58567379dc Fix typo in app scrollbars
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
2 years ago
Simon Marquis 6a3a5ea692 Kotlinify codebase
2 years ago
Simon Marquis 8d0b893459 Update Robolectric 4.11.1
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
2 years ago
rosariopf 137a5de28c remove ktx import from FirebaseAnalyticsHelper.kt
2 years ago
Mario Manhique 9d43ecfdb9 Update MainDispatcherRule.kt
2 years ago
Don Turner bbcabea220 Fix formatting issues
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
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
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
2 years ago
Don Turner 97933b1686 Merge pull request #959 from McGalanes/convention-plugins-toml
2 years ago
dahunsi 0ccd6d2f29 Fix spotless
2 years ago
dahunsi 401b42388a Address PR feedback
2 years ago
Don Turner 6628ddfdaf Merge pull request #912 from lihenggui/main
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
2 years ago
dahunsi 9c8f1256a0 Fix spotless
2 years ago
dahunsi 768c484090 Use lazy vertical staggered grid in feed to maximize space utilization
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
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)
2 years ago
Don Turner a2c0450965 Merge pull request #925 from SimonMarquis/remove-dispatcher
2 years ago
Simon Marquis 7f5a8619fe Remove unnecessary dispatcher switch in `DefaultRecentSearchRepository`
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)
2 years ago
Roy Matero 6122d92cf8 Renamed toggle function signature with boolean parameters
2 years ago
Milosz Moczkowski 7ddd177402 Merge pull request #759 from SimonMarquis/lint/sarif
2 years ago
Jose Alcérreca 9748be62c5 Adds Screenshot testing with Roborazzi (#876)
2 years ago
lihenggui f7df999c22 Upgrade Gradle to v8.3
2 years ago
Milosz Moczkowski 7c7b2f5a95 Merge pull request #889 from RivanParmar/main
2 years ago
Jose Alcérreca 2ddeb7a456 Fixes icons size in onboarding and restores LocalInspection for images (#909)
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
2 years ago
Adetunji Dahunsi adfa471cd5 Merge pull request #850 from qamarelsafadi/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
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
2 years ago
Don Turner 148d388b2b Merge pull request #874 from SimonMarquis/string-decoder
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
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
2 years ago
Simon Marquis a9df0e45c0 Replace StringDecoder injection with simpler API
2 years ago
Simon Marquis 54ad808e74 Fix miscellaneous warnings
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
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
2 years ago
qamarelsafadi 3e04a65ca4 feat: Show loading progress for Image Component as a solve for
2 years ago
qamarelsafadi 51c007c51c feat: Show loading progress for Image Component as a solve for
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
2 years ago
TJ Dahunsi 451c2e9b74 Interact with scrollbar only if drag direction matches scrollbar orientation
2 years ago
TJ Dahunsi 3e7aa961c5 Replace usages of 'displacement' to 'moved' in parameter names
2 years ago
TJ Dahunsi f77f6c134d PR feedback
2 years ago
TJ Dahunsi 7a889b64a6 PR feedback
2 years ago
TJ Dahunsi 843826a68f Check if first item size == 0
2 years ago
TJ Dahunsi 208e03709b Even better names
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
2 years ago
Simon Marquis 150e1426f0 Add protobuf generated sources to the sourceSets
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
2 years ago
Don Turner ecd8a4a3f7 Merge pull request #812 from Askeri-Muhendis/main
2 years ago
TJ Dahunsi 9cba513495 Track when deep link notifications are opened
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
2 years ago
Tomáš Mlynarič f5a5811506 Add contentType to news feed
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
2 years ago
Adetunji Dahunsi 1ef0ced20c Merge pull request #776 from SimonMarquis/fix/714
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
2 years ago
Simon Marquis 769e5dd458 Keep track of matching `Network`s inside `NetworkCallback`
2 years ago
Miłosz Moczkowski bdc607d289 Remove redundant suppressions
2 years ago
Miłosz Moczkowski 31dd5ecf59 Remove redundant statements
2 years ago
Simon Marquis 9085cad91c Cleanup unused string resources
2 years ago
Simon Marquis d562d566a8 Android Lint improvements
2 years ago
Adetunji Dahunsi ee64466308 Merge pull request #749 from android/tj/reactive-only-dao
2 years ago
Don Turner e9c72913cd Provide Default dispatcher for instrumented tests
2 years ago
Don Turner e74d70cc38 Updating TestDataStoreModule to use ApplicationScope
2 years ago
TJ Dahunsi 56034631b5 Fix tests
2 years ago
Don Turner 46d39ed85d Add top level application scope, use IO dispatcher for DataStore
2 years ago
TJ Dahunsi 0d416f2404 Ensure DAO exposes only reactive types
2 years ago
Simon Marquis 100cd47161 Grant `POST_NOTIFICATIONS` permission in more instrumented tests
2 years ago
Don Turner 5dd82b3829 Merge pull request #681 from SimonMarquis/di/coroutine-scope
2 years ago
Neelansh Sahai 467c8b6415 Merge pull request #706 from gururani-abhishek/remove-onItemClick-parameter
2 years ago
Alex Vanyo 3a89b11811 Adjust JDK setup to remove toolchain
2 years ago
Milosz Moczkowski 8146e84cab Merge pull request #583 from SimonMarquis/jvmToolchain
2 years ago
Adetunji Dahunsi 3ec9746ce9 Merge pull request #716 from SimonMarquis/SimonMarquis-patch-3
2 years ago
Don Turner 89e1bbefd1 Merge pull request #719 from android/add-search-analytics
2 years ago
James Rose 2bd3bc7bb2 Mark all news resources read on first sync
2 years ago
Don Turner cec53a996c Add analytics for search queries
2 years ago
Simon Marquis 8e39c933bd Update ConnectivityManagerNetworkMonitor.kt
2 years ago
Simon Marquis 32698353c5 Extract common code to update the Flow value
2 years ago
Simon Marquis 3fcdda6bb6 Update ConnectivityManagerNetworkMonitor.kt
2 years ago
Simon Marquis cbe308f8a2 Update ConnectivityManagerNetworkMonitor.kt
2 years ago
Simon Marquis b3a0b43eba Update ConnectivityManagerNetworkMonitor.kt
2 years ago
Simon Marquis 5e33c57144 Simplify handling of nullability in `ConnectivityManagerNetworkMonitor`
2 years ago
TJ Dahunsi 757fecc403 Fix build
2 years ago
TJ Dahunsi bdff1bfc01 Route notification deep link through for you screen, with spotless fixes
2 years ago
TJ Dahunsi 7312b33e9e Route notification deep link through for you screen
2 years ago
TJ Dahunsi 03c4f27434 Add pending intent for opening notification links
2 years ago
TJ Dahunsi 6a4b8f65ef Notify users when news are updated
2 years ago
Simon Marquis 62820784e1 Merge branch 'main' into jvmToolchain
2 years ago
gururani-abhishek 8645c1bbff added comment to document what happens on tapping news resource card.
2 years ago
gururani-abhishek c65cbc6c2a added back launchCustomChromeTab()
2 years ago
gururani-abhishek 4e658ac537 fix #614 : removed unused onItemClick parameter from NewsResourceCardList.kt
2 years ago
Don Turner b4e1209911 Merge pull request #667 from SimonMarquis/cleanup/warnings
2 years ago
Milosz Moczkowski 6168049ac5 Merge pull request #598 from takagimeow/fix/clean-up-unused-update-topics
2 years ago
Simon Marquis 1df26b4b20 Replace unused variable with simpler method calls
2 years ago
Simon Marquis 119550fe38 Remove `DSL_SCOPE_VIOLATION` suppression as it is now fixed in Gradle 8.1
2 years ago
Don Turner 59d48f472e Merge pull request #662 from android/av/agp-8.0
2 years ago
Takeshi Hagikura 61db05b707 Implement search feature (#685)
2 years ago
Adetunji Dahunsi d7bdee8e0c Merge pull request #649 from android/tj/backend-requested-sync
2 years ago
Adetunji Dahunsi aa8a86acd7 Applied code review suggestions
2 years ago
Adetunji Dahunsi a4c0b91f95 Update core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepositoryTest.kt
2 years ago
Adetunji Dahunsi 9661005128 Used more explicit variable names in tests
2 years ago
Adetunji Dahunsi 18830eef5f Add comments explaining backend sync and made variable names easier to grok
2 years ago
Adetunji Dahunsi a6b1bb7177 Update core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt
2 years ago
Simon Marquis c0f1423427 Run Spotless
2 years ago
Simon Marquis 1a89c975b8 Add Application-wide `CoroutineScope` in the DI graph
2 years ago
Simon Marquis fd826c8e23 Delete no longer used `AUTHORS_ASSET` reference
2 years ago
Milosz Moczkowski d12eaacf92 Merge pull request #671 from android/kotlin-version-updates
2 years ago
Márton Braun dc9d2cf72f Update Kotlin, Compose compiler, serialization versions
2 years ago
Adetunji Dahunsi d2d42e1095 Wire up backend requested sync
2 years ago
James Rose f2680a8973 Add missing method doc
2 years ago
James Rose bb973872c7 Merge branch 'main' into jr/track-viewed
2 years ago
James Rose 08d87ecb1a Rename getUserNewsResources to observeAll
2 years ago
Alex Vanyo 534e39a771 Update to AGP 8.0
2 years ago
Milosz Moczkowski 2ffe3af41c Merge pull request #575 from takagimeow/fix/provide-true-to-local-inspection-mode
2 years ago
Milosz Moczkowski dd3c6827d2 Merge pull request #600 from takagimeow/cleanup-unused-args
2 years ago
Milosz Moczkowski 3ca31bedec Merge branch 'main' into patch-2
2 years ago
Adetunji Dahunsi 1961b56ea8 Backend triggered sync
2 years ago
Milosz Moczkowski c6c600dd82 Merge pull request #624 from SimonMarquis/gradle-sort
2 years ago
Chris Sinco 577fdc790c Fix trailing commas based on spotless check
3 years ago
Chris Sinco 738325af29 Merge branch 'main' into ui-polish
3 years ago
James Rose 317f47c3cf Incorporate code review changes: Move UserNewsResourceRepository to data
3 years ago
Simon Marquis 3d7b71963c Sort and group Gradle dependencies thanks to square/gradle-dependencies-sorter
3 years ago
James Rose b1286ca188 Display unread state on the news feed and bottom nav bar
3 years ago
James Rose 0e19a2746c Replace GetUserNewsResourcesUseCase with UserNewsResourceRepository
3 years ago
James Rose b8fc2c9302 Add viewed status for news resources to data layer
3 years ago
Adetunji Dahunsi 48a0f3d501 Merge pull request #608 from android/tunjid-batch-sync
3 years ago
Keisuke Takagi 13202f99fd Merge branch 'main' of https://github.com/takagimeow/nowinandroid into fix/clean-up-unused-update-topics
3 years ago
Don Turner 09a697c8a1 Merge pull request #607 from android/mv/tests
3 years ago
Adetunji Dahunsi 4cb7d6dda1 Fix tests for batched news resource sync
3 years ago
Adetunji Dahunsi 6be949aed4 Spotless fix
3 years ago
Adetunji Dahunsi 4d6188e7ab Batch sync news resources from remote
3 years ago
Alex Vanyo 042b5ff393 Merge pull request #603 from amalhanaja/redundant-managed-device
3 years ago
Manuel Vivo b9cf596927 Fix spotless
3 years ago
Manuel Vivo aa98df6666 Provide a CoroutineScope to fake DataStores
3 years ago
Don Turner 2b5e3332bc Make Hilt provide Firebase.analytics
3 years ago
AlfianHanantio 1fb989bba9 Remove redundant code block for managed virtual device creation
3 years ago
Keisuke Takagi a1dae8c858 remove newsResourceTitle
3 years ago
Keisuke Takagi 8cd9750877 Merge branch 'main' of github.com:takagimeow/nowinandroid into fix/clean-up-unused-update-topics
3 years ago
Adetunji Dahunsi eae24bc821 Merge pull request #592 from android/tj/news-resource-query
3 years ago
Adetunji Dahunsi 3da3911180 Add NewsResourceQuery to better query encapsulation
3 years ago
Keisuke Takagi be7c335bba remove invalid overriding method
3 years ago
Keisuke Takagi 77ae65db53 remove unused updateNewsResources method
3 years ago
Keisuke Takagi d72f9a31e3 remove invalid overriding method
3 years ago
Keisuke Takagi e94af21e22 remove unused updateTopics method
3 years ago
Caren 769b5a5d12 Merge pull request #582 from yschimke/loaders
3 years ago
Keisuke Takagi 30759e68db Merge branch 'main' of github.com:takagimeow/nowinandroid into fix/provide-true-to-local-inspection-mode
3 years ago
Simon Marquis 5cb1fa2fa3 Configure jvmToolchain on the single Kotlin jvm project
3 years ago
Yuri Schimke 2c6cd4af12 Fixes
3 years ago
Yuri Schimke 2e5c29c9e4 Improve network pooling and avoid startup image fetches.
3 years ago
Don Turner 3d6ca9b7d8 Merge remote-tracking branch 'github/main' into feb9automerger
3 years ago
Márton Braun 39c76443b1 Remove unused DropdownMenu component
3 years ago
Márton Braun 2f5de17634 Route topic chip tap events up to NiaNavHost
3 years ago
Don Turner a1bd4beadb Add Firebase analytics. See go/nia-firebase-services.
3 years ago
Keisuke Takagi 0cd5abe77b Provide true to LocalInspectionMode
3 years ago
Simon Marquis bf9e388610 Migrate custom room configuration into a convention plugin
3 years ago
Miłosz Moczkowski 7b11622c5d Replace global variables with PreviewParameterProvider
3 years ago
Márton Braun 56ecffbadd Run Spotless to add trailing commas (and apply other rule updates)
3 years ago
Angie Sasmita 463d7ac6e8 Merge pull request #542 from android/as/dynamic-color-option
3 years ago
mlykotom 61c044a712 Merge branch 'main' into tm/fix-benchmarks-no-people
3 years ago
Mohsen Rzna 816be8b385 Android-CI workflow -> GMD refactor (#537)
3 years ago
Angie Sasmita 2159f12d3f Small fix for naming and boolean logic
3 years ago
Angie Sasmita 2430c8c25b Fix Spotless issue manually
3 years ago
Angie Sasmita c97e7980c8 Add dynamic color option in settings for API >=32
3 years ago
Takeshi Hagikura 7d22f3103f Introduce GMD + ATD (#479)
3 years ago
Don Turner 5ef7084baa Refactor Topics news feed, tidy a few other bits up
3 years ago
magicalmeghan 286196a43d fixed string issue for testTopicsChipColorBackground_matchesFollowedState test
3 years ago
magicalmeghan 103a497415 Merge remote-tracking branch 'github/mm/chipcolor' into mm/chipcolor
3 years ago
magicalmeghan 00fe2292ad removed hardcoded strings
3 years ago
Don Turner 44c01135b9 fix spotless, tidy test data
3 years ago
magicalmeghan 45144528a3 Updated NewsResourceCardTest
3 years ago
Don Turner b9771fdb1b mapToUserNewsResources converts List<NewsResource> to List<UserNewsResource>
3 years ago
Don Turner e825185652 Move mapping logic into secondary constructor
3 years ago
Don Turner c629c72f69 Move construction of UserNewsResource into separate function
3 years ago