Márton Braun
e7eca7a085
Update baseline profile
...
Change-Id: Ida83e612d5595ea1d43f9105ac7e76f7db2f6caa
3 years ago
Márton Braun
8e5fc3e03e
Remove `Stream` suffixes
...
Change-Id: I45decae965d7e35289d3fa31fc58b8c463fbead1
3 years ago
Alex Vanyo
01d18396d9
Fix spotless
...
Change-Id: Ib46c68c765342d8c172cf2f224bb7f885803b483
3 years ago
Alex Vanyo
9f85cc851a
Add accompanist/testharness
...
Adds a usage of accompanist/testharnness to force a given DpSize for its content, overriding the density if necessary to ensure that the size is achieved. This allows testing UI at arbitrary sizes on arbitrary emulators, lessening the need for using multiple emulators at different sizes (and filtering tests) when Android-specific window size has been hoisted appropriately.
The initial test using it is a test for checking whether or not the navigation bar or navigation rail is being shown, and these tests can run on any emulator.
Change-Id: I315384e5eafac23a3cd6d3818d9828f6d3c1acfc
3 years ago
Tomáš Mlynarič
7527146da1
Merge pull request #458 from android/tm/fix-benchmarks
...
Fix benchmarks
3 years ago
mlykotom
a8867de20e
Update BLP
3 years ago
Masood Fallahpoor
c6e3551172
Make functions 'shouldUseDarkTheme' and 'shouldUseDarkTheme' private
3 years ago
Milosz Moczkowski
0bbc4ba032
Merge pull request #420 from SimonMarquis/patch/kotlin-test
...
Migrate from JUnit assertions to Kotlin's test framework
3 years ago
Don Turner
b129e36202
Merge pull request #326 from MaximillianLeonov/redundant-label-on-activity
...
Remove redundant label on activity
3 years ago
Don Turner
6961fba0e2
Merge pull request #324 from MaximillianLeonov/unused-color-resources
...
Remove redundant unused color resources
3 years ago
Simon Marquis
a09ea875b8
Migrate from JUnit assertions to Kotlin's test framework
...
Fixes #419
3 years ago
Don Turner
7413e22377
Add data from the last 10 episodes
3 years ago
Ben Weiss
141a5dc2f3
Merge pull request #316 from android/bw/gradleCleanup
...
Update Baseline Profile generation
3 years ago
Ben Weiss
c859e42cfe
New baseline profile
...
Change-Id: I8a20ab2f44b198afaf57f26d1bee20054ed1ce6d
3 years ago
Yura Laguta
e24dcf40c6
Resolves #206 , enables predictive back navigation support
3 years ago
Don Turner
71fc07625c
Add workaround for top app bar overlapping nav rail
3 years ago
Don Turner
0d7bd9170d
Update app/src/main/java/com/google/samples/apps/nowinandroid/ui/NiaApp.kt
...
Co-authored-by: Alex Vanyo <vanyo@google.com>
3 years ago
Don Turner
391bc1e900
Fix minor issues
3 years ago
Don Turner
8506958fb1
Resolve conflict with navigation changes from main
3 years ago
Don Turner
c3bcdd75e0
Address review feedback from Manu
3 years ago
Don Turner
bc17052c21
Fix getter for settings dialog state
3 years ago
Don Turner
91f77bf6ef
Remove Scaffold from top level screens
3 years ago
Don Turner
afa5c2eecd
Add comment about splashScreen.setKeepOnScreenCondition
3 years ago
Don Turner
eb721f8295
Add MainActivity view model
3 years ago
Don Turner
d6467ca16c
Fix spotless issues
3 years ago
Don Turner
6a4a01dcf5
Add tests
3 years ago
Don Turner
8cb5216d8e
Add settings module, refactor top bar
3 years ago
Don Turner
88e6581633
Fix typo
3 years ago
Don Turner
f1e15d6b83
Fix spotless issues
3 years ago
Alex Vanyo
e596e76714
Add data logic for theme switcher
...
Change-Id: Ifffadb897de4f6e08f7115103f99c156a7098b70
3 years ago
Manuel Vivo
38670449ee
Updates Navigation approach with new guidance ( #347 )
3 years ago
Ben Weiss
b6204656b8
Merge pull request #328 from android/bw/moreJankstats
...
Add more jank tracking
3 years ago
Ben Weiss
5315d2d957
Add more jank tracking
3 years ago
Wojtek Kaliciński
222f65e9e8
Migrate packages to namespaces in build files
...
Change-Id: I21e021caa0ea72a7097dfd9af04a3c07a0cc9aa5
3 years ago
Ben Weiss
2230fb0259
Shorten navigation trace, fixes #271
...
Change-Id: I4b33800a538b13996fc68b48854be56251a9db2c
3 years ago
Maximillian Leonov
83cf30e792
Remove redundant label on activity
3 years ago
Maximillian Leonov
1fa840ac04
Remove redundant unused color resources
3 years ago
Alex Vanyo
5d1fef2ac8
Apply spotless
...
Change-Id: I49eeb1984cb3e978a9cee5c1e4d53e856a10bb4e
3 years ago
Alex Vanyo
0630159e2e
Refine backgrounds and navigation colors
...
Change-Id: I9fd863cc608f21078ab78c39c2c3d227aedbac7c
3 years ago
Alex Vanyo
cdbcf54ba0
Update to material3 1.0.0-beta03 wih built-in insets support
...
Change-Id: I4d07f89d4faa6e3417468ad78acf3fbb161f0797
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
Jolanda Verhoef
e54f3b1d17
Merge pull request #231 from android/jv/app-icon
...
Update app icon using Image Asset Studio
3 years ago
Jolanda Verhoef
a958706946
Add round icon again for API 25.
3 years ago
Jolanda Verhoef
f68af5d8c1
Add monochrome to v26 app icon, remove round icon (as per documentation: You may also define an icon drawable resource using the android:roundIcon attribute—but only if you require a different icon asset for circular masks, for example in a case where your branding relies on a circular shape.)
3 years ago
Alex Vanyo
b2411367da
Fix dark mode system icons
...
Change-Id: I8af3435d2b83ebbd55b8adaa3f2066fbe2d22fa5
3 years ago
Jolanda Verhoef
dbc74472e9
Add v33 launcher icon with support for adaptive icons
3 years ago
Jolanda Verhoef
e23a8a8c6b
Update app icon using Image Asset Studio
...
Change-Id: I9eb8281abbb59da0b653dbe6c36786c90d330556
3 years ago
Alex Vanyo
625a82f9d2
Merge pull request #217 from android/av/splash-screen
...
Removes non-Compose Material library and adds splash screen
3 years ago
Alex Vanyo
58c22df2e3
Rename NightAdjusted.Splash to NightAdjusted.Theme.Splash
...
Change-Id: I2493c664945d3cfbe1c52397133fdc955265ac56
3 years ago
Ben Weiss
0c005f25fa
Merge pull request #219 from android/bw/metricsUpdate
...
Update JankStats to 1.0.0-alpha03
3 years ago
Ben Weiss
182482b64c
Update JankStats to 1.0.0-alpha03
...
Accomodating API changes along the way.
3 years ago
Alex Vanyo
9e41a0ac82
Add splashscreen integration
...
Change-Id: I1fbc5b7e663497ae52759afb7bcd6169c5987ce6
3 years ago
Alex Vanyo
d9c0b762ef
Remove non-Compose material
...
Change-Id: I62a639b6c12e7d523c3dc5ad0766f180120d9e92
3 years ago
Jolanda Verhoef
715fc547b6
[NiA] Implement LazyVerticalGrid for Feed
...
Change-Id: I0fd51bdd4c64a3d9ceaba05244d384bb9b463315
3 years ago
Jolanda Verhoef
6ef0355fc1
Merge remote-tracking branch 'github/main' into jul22automerger
...
Change-Id: Ic54190a9d825ae9649d34a4e2bd9c83855511b71
3 years ago
Manuel Vivo
abe1507709
Add more KDocs and nav args encoding
3 years ago
Manuel Vivo
13a5b8c5f9
Make the state holder stable
3 years ago
Manuel Vivo
af7e2517f2
Add state holder for NiaApp composable
3 years ago
Don Turner
729dd4c3a2
Merge remote-tracking branch 'github/main'
...
* github/main: (21 commits)
Add stacktrace for test command
Add TODO comment with bug
Update Compose compiler to 1.2.0, Kotlin to 1.7.0
Consistent tags & named parameter usage
Address review comments
Remove redundant dependency
Fix spotless
Move JankStats metric gathering further down
Add ForYou TopicSelection scrolling state
Add ForYou feed scrolling state
Add JankMetricDisposableEffect
Add AuthorsCarousel scrolling state
Add JankMetricEffect
Remove InterestItem state
Use DisposableEffect + rememberMetricsStateHolder for Interests tab selection
Use rememberMetricsStateHolder for navigation
Add rememberMetricsStateHolder composable
Introduce view extension to track jank
Inject JankStats with Hilt
Add jankStats and rudamentary jank logging
...
Change-Id: I1ff0fb3ccb7d6082c17c6e69f5d9ea9cabe1d733
3 years ago
Jolanda Verhoef
b769f07f22
[NiA] Add Saved functionality
...
Change-Id: I38320a16999d063a023bbe9d329a275af4e78b1e
3 years ago
Ben Weiss
c1603ccebc
Merge branch 'main' into bw/initialMetrics
3 years ago
Ben Weiss
567c993073
Address review comments
...
* Introduce gradle plugin for firebase perf
* Create TrackScrollJank composable to mask tracking code
3 years ago
Ben Weiss
f62ee8ae25
Merge branch 'main' into bw/initialMetrics
3 years ago
Tomáš Mlynarič
13a5ff8c4c
Update baseline profile
...
Contains CUJs:
- scrolling for you feed
- scrolling interests topics
- scrolling interests people
Change-Id: Iad124aafae9858b2922dcfa49302fe1f8aacae48
3 years ago
Tomáš Mlynarič
47a9034088
Add testTag to access composables from UiAutomator
...
Change-Id: I5125cae0778151b11868b72f74f74f979774625c
3 years ago
Jolanda Verhoef
dbb75969a8
Merge pull request #68 from RivanParmar/main
...
Fix Navigation Bar in landscape mode.
3 years ago
Nick Rout
1f984bef26
Improve design system usage and add lint checks
...
Change-Id: I05f9400a9410e31bdf1534e458d560fe793b809f
3 years ago
Rivan
ecb41fbb96
Fix SpotlessApply.
3 years ago
Ben Weiss
efc60bf2cc
Merge branch 'main' into bw/initialMetrics
3 years ago
Rivan Parmar
fbbc08cc73
Merge branch 'android:main' into main
3 years ago
Ben Weiss
e6b301a89b
Move JankStats metric gathering further down
...
This isn't the thing a developer should be focusing on when first
opening the file. So moving it further down in the composable.
3 years ago
Ben Weiss
f627eea6a7
Update baseline profile and generation logic ( #61 )
3 years ago
Ben Weiss
f9610786bc
Merge branch 'bw/initialMetrics' of github.com:android/nowinandroid into bw/initialMetrics
3 years ago
Rivan
6e3192a72a
Fix Navigation Bar in landscape mode.
3 years ago
Rivan
cd84100864
Fix Navigation Bar in landscape mode.
3 years ago
Alex Vanyo
0d85dcefd2
Merge pull request #56 from sud007/fix/nia-naming-convention
...
Fix Bug #41 | Nia Naming conventions
3 years ago
Tomáš Mlynarič
9dd50480f4
Add JankMetricDisposableEffect
...
Change-Id: Idcab0faa2e9b4cc9986064f45217cab101843697
3 years ago
Tomáš Mlynarič
4db051b4a8
Use rememberMetricsStateHolder for navigation
...
Change-Id: I3b038a9bbc6eed9b21343aa0fd75c044049386a4
3 years ago
kbuilder
4282bf37f3
Merge branch 'github/main'
3 years ago
Sudhanshu
c07dba5e63
Fix Bug #41
...
Fix bug #41 Made Naming Convention symmetrical. as 'Nia' instead of 'NiA' as that sounds more subtle and easy to follow in camel-case notation based Naming
3 years ago
Simon Marquis
ba65429d1c
Remove ClearRippleTheme CompositionLocal from NavigationBar
...
Fixes #36
3 years ago
Ben Weiss
e5378b8edd
Introduce view extension to track jank
3 years ago
Ben Weiss
c6646b357f
Inject JankStats with Hilt
3 years ago
Ben Weiss
3bdb7a4c9f
Add jankStats and rudamentary jank logging
3 years ago
Ben Weiss
1676032cd1
Add tracing library and start using it
...
Currently tracing sync and main navigation.
3 years ago
kbuilder
f5e1efc191
Merge branch 'github/main'
3 years ago
Jolanda Verhoef
90e8dfe80d
Merge pull request #44 from serbelga/fix_themed_app_icon_round
...
Fix themed app icon launcher roundIcon
3 years ago
Sergio Belda
4be907d0a0
Add cutout version of ic_launcher_foreground for drawable-v24 in app module in order to distinguish it from the nia-app-catalog version
3 years ago
Sergio Belda
6f48d52ad7
Add monochrome attribute to ic_launcher_round.xml in :app and :app-nia-catalog
3 years ago
Simona Stojanovic
7511941f56
Fix nested navigation graphs
...
Change-Id: I2c3ad0a0f6c132230b821d3621389913cf37247c
3 years ago
Ben Weiss
e9b47ee1fb
Update benchmarking & baseline profiles
...
Uses newest versions from I/O release
Also updates baseline profile to match latest changes
Change-Id: I83c709338ea37d2187d1e8437f5b5d8e98a42f22
3 years ago
Simona Stojanovic
5ca7b6c607
Refactor navigation
...
Change-Id: I3501446e73976f3872592038501fcef8c8324f74
3 years ago
Ben Weiss
6cfc521cad
Update baseline profile
...
Change-Id: I6b69df704e14ba9568494d773690a1121226273e
3 years ago
Adetunji Dahunsi
383b6d29d8
Add AuthorScreen and corresponding components
...
Change-Id: Iee5e8bd0932d1b68770aaa1e23fa660451109601
3 years ago
Simona Stojanovic
bea5ee7194
Rename following to interests
...
Change-Id: Iabcb8b495717e0cb3a993ecc0e09e3338fe5140f
3 years ago
Jolanda Verhoef
ad57a93b64
Add gradient background to For You Screen
...
Change-Id: I6a85ee82a78b1897020f1737503611bd100764a1
3 years ago
Alex Vanyo
7c52414724
Add multi-column support for cards on the for you feed
...
Fixes: 228074722
Change-Id: Id077b4dd93452b5f9399f94161c9b66594436975
3 years ago
Alex Vanyo
403afba03f
Configure spotless for kts and xml files
...
Fixes: 230874524
Change-Id: I147b9f16d5424b3459435e3c5422867b40c480b7
3 years ago
Alex Vanyo
47107e86be
Fix large screen insets handling
...
Bug: 228374243
Change-Id: I2a7af72e60450be3280872b46bd84eb1079b533d
3 years ago
Adetunji Dahunsi
68d146a7c7
Converted model ids from ints to strings
...
Change-Id: Iad07926e04113bcd2c6d9e06e5e2a4e802a79b80
3 years ago
Alex Vanyo
eb96ce2169
Update to Kotlin 1.6.20 and using material3-window-size-class
...
Change-Id: I30bc9f729ab91f007de530af3a12b281430ac1cb
3 years ago
Alex Vanyo
8b1311c5f5
Remove material non-3 components
...
Bug: 228974929
Change-Id: Ie74189bd6ce1a4a2ece36962e0ad1627ac9c71dd
3 years ago
Manuel Vivo
ca8fd5a4f3
Add People to interests screen
...
Screenshot: https://screenshot.googleplex.com/3XqkTwJQwgfoPsT
Change-Id: Iac7dc06c84523b4db8d05f538b74a08741d2c347
3 years ago
Jose Alcérreca
a50b0f5d6a
Adds topic screen
...
Bug: 213876743
Tests: Local + UI tests + Navigation test
Change-Id: I6c521695d6b777084a6255c6d62623a4def83063
3 years ago
Ran Nachmany
71cef7951b
Improving For You onboaring [ http://b/223204846 ]
...
Test: updated tests that were failing in firebase testlab due to the UI change.
Change-Id: If892a7a81eecc69bf71f41d75c11af363903f962
3 years ago
Don Turner
184097bf13
Add new fields to Topic and display SVG icon.
...
This CL makes the following changes to the Topic model:
Renamed description -> shortDescription
Added longDescription, url and imageUrl (this is the URL of the icon)
This makes the model of Topic in the app match the model in the back end.
The icon (an SVG file) for each topic is displayed in the Topic list UI.
Change-Id: Ibbb35c8be879ae4d6e45b69fa0eafa88f3537052
3 years ago
Adetunji Dahunsi
c84c024048
Added launcher icons
...
Change-Id: I2c7fbfd36d91866956d7787e547affe1b90f4fbc
3 years ago
Adetunji Dahunsi
4bcaae8152
Integrate WorkManager (WIP)
...
Change-Id: Iedf81220336911ab3ed6ea4ca71b10f07e645bc9
3 years ago
Don Turner
a4a18d6d57
Remove episodes and saved destinations
...
Bug: 223215076
Change-Id: If71b9190c145f9fc298f33fe2145a87886419d68
4 years ago
Ben Weiss
1bbb547bbc
Add baseline profile
...
Create proguard-rules.pro, disabling obfuscation.
The BaselineProfileGenerator needs to run on an AOSP emulator.
Classes in StartupBenchmark should run on a physical device to produce
reliable data.
The baseline-prof.txt file should be re-generated for each release.
Change-Id: Iaceb4e5c6d2f927dc545454a44dea43951dfaf6d
4 years ago
Ran Nachmany
58c1b05f09
Merge "Adding device class breakopints ( http://b/216019537 )" into main
4 years ago
Caren Chang
3e0c247a81
Add Internet permission
...
Change-Id: I3b7e042a6fac971597f554049895dbc1cc38fba7
4 years ago
Ran Nachmany
bb233da401
Adding device class breakopints ( http://b/216019537 )
...
Adding NavRail for MEDIUM / EXPANDED classes (http://b/216019759 )
Change-Id: I19a8888de558e1466d186a48f2ea293bb1b8ba4b
4 years ago
Alex Vanyo
d20e08ebcc
Add test dispatchers
...
This adds a test implementation of dispatchers with an injected TestDispatcher.
The normal IO dispatcher is automatically swapped out via a TestInstallsIn in core-testing.
This update also updates DataStore to use an injected dispatcher, which allows removing the waitUntil in the navigation tests because we can eagerly read from disk with runTest.
Change-Id: I82abb8c8a57c2beed5ef37bf1e252acf379278cd
4 years ago
Simona Stojanovic
1411b1576b
Modularise the app
...
Change-Id: I63791eaf27d08a837598d774df53c96bb01b5864
4 years ago
Jolanda Verhoef
1b06dc97ea
Fixing UI tests
...
Change-Id: Iaa0ce3ae92e0c736aef5809c1e471c9cbff695a9
4 years ago
Simona Stojanovic
53248e6dac
Merge "Add Following - Topics feature base" into main
4 years ago
Caren Chang
4f3776406c
Merge "NewsResourceCard: Display Title, Bookmark Icon and Description" into main
4 years ago
Simona Stojanovic
d355a70292
Add Following - Topics feature base
...
Acceptance criteria: https://b.corp.google.com/issues/213886281
Change-Id: I129fb3d076b831aa00c16533090cb03b2bdebdd7
4 years ago
Adetunji Dahunsi
e089012a8d
Replace module interfaces with objects
...
Change-Id: Ieab7533120e7b8d5a770963e37b9db405e229630
4 years ago
TJ Dahunsi
8b1852cf5e
Merge "Add DAOs for Room and provisions for their Hilt injections" into main
4 years ago
Caren Chang
8d8e72667b
NewsResourceCard: Display Title, Bookmark Icon and Description
...
Screenshot of change: https://screenshot.googleplex.com/957TAnWp96uX8Ea
Bug: 216019530
Change-Id: I58fd1b4fda06b0fb8cc5df2ba5baf7e8ddcd5a1d
4 years ago
Adetunji Dahunsi
cbcb24c08f
Add DAOs for Room and provisions for their Hilt injections
...
Change-Id: Ia14c225cc1632ded38abffc201b673a6a60f4451
4 years ago
Alex Vanyo
a36c0da93a
Replace accompanist/insets
...
Replaces the insets support from accompanist with the in-progress support from Compose itself.
This is a pretty simple change on the usage side, since we only used it in one place.
Change-Id: I05ce768d13fcdeb6471012dde774636526cf35f3
4 years ago
Adetunji Dahunsi
9f11f6ae8b
Update copyright accross all files
...
Change-Id: I3d30bf58ded466f936772958bebcd7b7817ad809
4 years ago
Adetunji Dahunsi
c75f7ed025
Add entity relationships and defined network deserialization strategy
...
Change-Id: I239cdc28237a87a0ed6599892e8ac7c61776a46d
4 years ago
Caren Chang
632bc62ed5
Rename ResourceCard -> NewsResourceCard
...
Bug: 217354204
Change-Id: Ib854b1fe91fc36777760f97e863d68c37ff25782
4 years ago
Caren Chang
68ba1ba477
Resource Card: Add bookmark icon
...
Change-Id: I61ae5ca4ba542415165265dfdf0aea4ee0a63f44
4 years ago
Alex Vanyo
1b41864a2c
Merge "For You initial screen" into main
4 years ago
Alex Vanyo
5b89ea4fe5
For You initial screen
...
Change-Id: Ic1975802934e64b59ef151c0e2063ddeb9645690
4 years ago
Caren Chang
841f9af5d1
Create template for composable Resource card
...
Change-Id: Idcfcd92bd2c102078ab612a3e2637c317e195525
Bug: 216019530
4 years ago
Adetunji Dahunsi
41874d73ef
Add DI scaffolding
...
Change-Id: I2441067d5b8314f2e8bfd9369c2b2ee46fd9fbe8
4 years ago
Jolanda Verhoef
1e3520dddf
[NiA] Implement top level navigation
...
Change-Id: I84ed2330de00c3644db644e33351daaf9bb3afed
4 years ago
Adetunji Dahunsi
85e078298e
Implement FakeNewsResourceRepository with test
...
Change-Id: I8e3ce0addf78d5d3d23066f6f55479c751fcd8c7
4 years ago
Adetunji Dahunsi
12cff2074c
Rename episode to NewsResource, add episode to NewsResource, add mockk and unit test, address comments
...
Change-Id: I473cb22cfed2ba33664296183da8136d41b37a63
4 years ago
Don Turner
008bca1472
Add initial app scaffolding
...
Change-Id: If8ff7226949b534e5f0fcaf4c3b58351ffe86d93
4 years ago