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
Milosz Moczkowski
6168049ac5
Merge pull request #598 from takagimeow/fix/clean-up-unused-update-topics
...
Clean up unused updateTopics and updateNewsResources methods
2 years ago
Takeshi Hagikura
61db05b707
Implement search feature ( #685 )
...
Implement search feature
- Add a feature module named "search"
- Add a SearchScreen that is navigated by tapping the search icon at the top left corner
- Add a data layer that takes care of populating the *Fts tables and querying them by a search query
- Add a SearchViewModel that wires up the data layer of the Fts tables with the SearchScreen
The SearchScreen has following features:
- The user is able to type the search query in the TextField
- The search result is displayed as the user types
- When the search result is clicked, it navigates to:
- The InterestsScreen when a topic is clicked
- Chrome custom tab with the URL of the clicked news resource
- When the search result is clicked or the IME is explicitly closed by the user, the current search query in the TextField is saved as recent searches
- Latest recent searches are displayed in the SearchScreen
2 years ago
Adetunji Dahunsi
d7bdee8e0c
Merge pull request #649 from android/tj/backend-requested-sync
...
Wire up backend requested sync
2 years ago
Adetunji Dahunsi
aa8a86acd7
Applied code review suggestions
...
Change-Id: I12fab8e0d27a8a1805e0063054ec3382bebd78f1
2 years ago
Adetunji Dahunsi
a4c0b91f95
Update core/data/src/test/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepositoryTest.kt
...
Co-authored-by: Don Turner <dturner@users.noreply.github.com>
2 years ago
Adetunji Dahunsi
9661005128
Used more explicit variable names in tests
...
Change-Id: I2e0ebead70441eced05eb786aaa7683bfefa8976
2 years ago
Adetunji Dahunsi
18830eef5f
Add comments explaining backend sync and made variable names easier to grok
...
Change-Id: I90cd7444de95efa20bf243a922a772f7849a23ec
2 years ago
Adetunji Dahunsi
a6b1bb7177
Update core/data/src/main/java/com/google/samples/apps/nowinandroid/core/data/repository/OfflineFirstNewsRepository.kt
...
Co-authored-by: Don Turner <dturner@users.noreply.github.com>
2 years ago
Adetunji Dahunsi
d2d42e1095
Wire up backend requested sync
...
Change-Id: I1d4485b589c7e94527a2a02f371cd3f030231622
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
Milosz Moczkowski
3ca31bedec
Merge branch 'main' into patch-2
3 years ago
Adetunji Dahunsi
1961b56ea8
Backend triggered sync
...
Change-Id: I53c43b136ebb755f6258b1e815301dddb3b536a3
3 years ago
James Rose
317f47c3cf
Incorporate code review changes: Move UserNewsResourceRepository to data
...
module; move UserNewsResource to model module. Implement unread dot for
bookmarked articles. Keep the flows cold in UserNewsResourceRepository.
3 years ago
Simon Marquis
3d7b71963c
Sort and group Gradle dependencies thanks to square/gradle-dependencies-sorter
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
...
Batch sync news resources from remote
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
Adetunji Dahunsi
4cb7d6dda1
Fix tests for batched news resource sync
...
Change-Id: I37545eba8618edc936eb12fa38628d98f85f52ed
3 years ago
Adetunji Dahunsi
6be949aed4
Spotless fix
...
Thought I was cool enough to edit code in the browser. Spotless said no.
3 years ago
Adetunji Dahunsi
4d6188e7ab
Batch sync news resources from remote
...
Batch sync news resources from remote to reduce json payload size.
3 years ago
Manuel Vivo
aa98df6666
Provide a CoroutineScope to fake DataStores
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
3da3911180
Add NewsResourceQuery to better query encapsulation
...
Change-Id: I93f8c8ae2d1144975f6f9ff1ba93be9a4600768a
3 years ago
Keisuke Takagi
be7c335bba
remove invalid overriding method
3 years ago
Keisuke Takagi
d72f9a31e3
remove invalid overriding method
3 years ago
Don Turner
a1bd4beadb
Add Firebase analytics. See go/nia-firebase-services.
...
Change-Id: I0cbbda0bba761d8019241f6165db231fe94fb689
3 years ago
Márton Braun
56ecffbadd
Run Spotless to add trailing commas (and apply other rule updates)
...
Change-Id: I5f8e49a3ef004c7e9e7dfe4bc55f0a35dc575209
3 years ago
Angie Sasmita
c97e7980c8
Add dynamic color option in settings for API >=32
...
Change-Id: Ib42c1cbd0208e98ef7610a1c8aca5d721aa464e6
3 years ago
Jolanda Verhoef
a09612ec80
Remove author concept from app
...
Change-Id: Icd03c0288ba5f3f23dbcbdbefbbe802db2815793
3 years ago
Márton Braun
8e5fc3e03e
Remove `Stream` suffixes
...
Change-Id: I45decae965d7e35289d3fa31fc58b8c463fbead1
3 years ago
Milosz Moczkowski
b55f3e2f9e
Merge pull request #441 from android/refactor/remote_fake_data_source
...
Remove FakeDataSource
3 years ago
Simon Marquis
8a720477dc
Configure `isReturnDefaultValues` to fix #448
3 years ago
Don Turner
b0e01316c7
Fix comment
3 years ago
Adetunji Dahunsi
145b0782db
Check active network for connectivity state each time network changes
...
Change-Id: I5d3eb0251f62a57a5767911167067d35aeec8e6a
3 years ago
Miłosz Moczkowski
f906e6b42c
Spotless apply
...
Change-Id: Iaf82b44487f001417265ad97acfe6eea8dd6a78f
3 years ago
Miłosz Moczkowski
1c1ded4296
Replace networkJson and FakeAssetManager with FakeNiaDataSource in all repositories
...
Change-Id: Ibeb9fd09bd862000794f41edcddd2cea434a9bb1
3 years ago
Simon Marquis
1d63cb4d40
Add missing binding in NetworkModule
3 years ago
Simon Marquis
be30d2869c
Merge remote-tracking branch 'fork/main' into patch/assets-as-json-files
3 years ago
Simon Marquis
67ebe8de38
Fix spotless issues
3 years ago
Simon Marquis
90a8c6f048
Migrate hard-coded JSON data into JSON assets files
...
JSON minification is no longer necessary since assets files are already gzipped during APK/AAB packaging.
Fixes #391
3 years ago
Simon Marquis
a09ea875b8
Migrate from JUnit assertions to Kotlin's test framework
...
Fixes #419
3 years ago
Don Turner
f81c7222e2
Rename hasDismissedOnboarding to shouldHideOnboarding
...
Change-Id: I8a6b35f7216f9944652d8da346e7458614311e08
3 years ago
Don Turner
be88f4f03d
Refactor onboarding to save interests to user data
...
Change-Id: I97772a8b65e1e94a95187ebb7c514104af2d3a08
3 years ago
Alex Vanyo
e596e76714
Add data logic for theme switcher
...
Change-Id: Ifffadb897de4f6e08f7115103f99c156a7098b70
3 years ago
Wojtek Kaliciński
222f65e9e8
Migrate packages to namespaces in build files
...
Change-Id: I21e021caa0ea72a7097dfd9af04a3c07a0cc9aa5
3 years ago
Adetunji Dahunsi
d54dabe76b
Merge pull request #311 from yveskalume/main
...
Use @Upsert from Room instead of a custom helper
3 years ago
YvesKalume
05fb700c13
fix failling tests
...
Change-Id: I88b6d80dfb473010f8742890d9f6b17ed153ecc5
3 years ago
Don Turner
9cf5efee98
Merge pull request #310 from android/documentation/dep_graphs
...
Add dependency graphs to every module
3 years ago
YvesKalume
0390d65f03
update : Use @Upsert from Room instead of a custom helper
...
Change-Id: I21194fda29976e069d5cfc1e083cf48d3dd149fe
3 years ago
Adetunji Dahunsi
c1316a2f23
Give feedback when syncing on ForYouScreen
...
Change-Id: I10a646e8a17f81d96351e69d36f0cb6ccf28e05c
3 years ago
Milosz Moczkowski
2d60785879
Add dependency graphs to every module
...
Change-Id: I629fef818f7521c13bb3069a3ff9ed9bc42e57f3
3 years ago
Milosz Moczkowski
f2c64a1f68
Merge pull request #299 from android/refactor/remove_episodes
...
Remove episodes related code
3 years ago
Milosz Moczkowski
a4553d4cfb
Spotless improvements
3 years ago
Milosz Moczkowski
ab8053f087
Remove episodes related code
3 years ago
Wojtek Kaliciński
79de18507a
Move spotless to init script
...
Also adds automatic git hooks installation
Change-Id: I18debbee43af27db7b95a4202f824fa87e186713
3 years ago
Wojtek Kaliciński
70ff3831a2
Build cleanup
...
* Move Hilt setup to convention plugin
* Disable Hilt on modules where it's not needed
* Enable non-transitive R classes
* Fix `configuration` blocks called in wrong scope
* Move imperative Flavors code from build.gradle
* Disable unnecessary build features globally
* Disable configure-on-demand as it's not encouraged
* Don't use internal AGP packages in plugins
Change-Id: I1bee3e3fd0103054637b979a350f9fd2312ae8ba
3 years ago
madroid
40efeed4ed
Move 'core-' module to core subfolder
3 years ago