Simon Marquis
caa482bc71
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
988002e692
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
Milosz Moczkowski
5087c86412
Merge pull request #1054 from android/revert-adaptive
...
Revert "Merge pull request #942 from android/feature/navigation-suite…
2 years ago
Miłosz Moczkowski
9c89e98e5b
Revert "Merge pull request #942 from android/feature/navigation-suite-scaffold"
...
This reverts commit 335a7ec68c
, reversing
changes made to aa8ce0e1f6
.
2 years ago
Milosz Moczkowski
335a7ec68c
Merge pull request #942 from android/feature/navigation-suite-scaffold
...
Replace manual navigation component switching with new NavigationSuiteScaffold
2 years ago
mmoczkowski
f365e8b782
🤖 Updates screenshots
2 years ago
Miłosz Moczkowski
816a7b60c1
Replace manual navigation component switching with new NavigationSuiteScaffold
...
Change-Id: I54b402e28b6e1bd400c9f44644bd4dd35c98e723
2 years ago
Ben Weiss
aa8ce0e1f6
Add automated baseline profile generation ( #880 )
...
Baseline profile generation is disabled for the PR level Build task. Release tasks require a fresh baseline profile. A new profile is generated using the baseline profile Gradle plugin.
* Prepare for usage of dex layout optimizations which can be actively used once NiA switches to AGP 8.2+.
* Add GMD config to release build
* Switch to macos-latest
* Update names for StartupBenchmark tests to better reflect states
* Stable release and recent GMD device
* Reduce flakiness by adding wait to benchmark
* More convenient waiting for objects
* Rename junit dependency to androidx-junit
* Only run baseline profile benchmarks during GH workflow
* Enable automatic BP generation for only release builds
* Disable BP generation from Build workflow
* Specify modules and skip benchmarking Build workflow
Bug: b/299334172
2 years ago
Don Turner
d4ef172c51
Merge pull request #1024 from SimonMarquis/patch-1
...
Update AGP 8.1.3
2 years ago
Don Turner
f3b2655e2f
Merge pull request #933 from danysantiago/main
...
Update to Hilt 2.48 and use the KSP version
2 years ago
Daniel Santiago
c908f989c8
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
Jose Alcérreca
3f22248cb7
[CI] Better caching and fewer jobs run
...
* [CI] Runs build in macos to generate a cache for androidTest runs
* Build projects before running emulator
* Fixes flaky coroutines test
* Moves spotless up in local tests job
* Enables config cache by setting problems to warn. Fixes #1022
2 years ago
Simon Marquis
13a67b96a4
Update AGP 8.1.3
2 years ago
Don Turner
5f5bd91a68
Merge pull request #1017 from mariomanhique/mariomanhique-main-dispatcher-rule-1
...
Update MainDispatcherRule.kt
2 years ago
Don Turner
f414cd482e
Merge pull request #1013 from android/av/sdkconstants-for-aapt2
...
Use SdkConstants for getting aapt2 executable location
2 years ago
Don Turner
5bdd375b8f
Merge pull request #1014 from android/av/autofix-badging-with-correct-task-name
...
Use specific task name to update badging for checking badging error message
2 years ago
Mario Manhique
b2c1c11218
Update MainDispatcherRule.kt
...
Updated MainDispatcherRule parameter accessibility to private because its only needs to be accessible inside that class.
2 years ago
Alex Vanyo
c70049edd8
Use specific task name for updating badging
...
Change-Id: I52b75fb3ed2ae3a76656c211b7aee1aa521f1112
2 years ago
Alex Vanyo
c730cf20fa
Use SdkConstants for getting aapt2 executable location
...
Change-Id: Ibc9ece0c3ade51a29954caee3af3a669ed99c384
2 years ago
Don Turner
3ccacba0fe
Merge pull request #1012 from android/revert-1010-dt/apply-spotless-in-ci
...
Revert "Apply spotless automatically during build and commit to PR"
2 years ago
Don Turner
e695df3757
Revert "Apply spotless automatically during build and commit to PR"
2 years ago
Don Turner
dca54fd984
Merge pull request #1010 from android/dt/apply-spotless-in-ci
...
Apply spotless automatically during build and commit to PR
2 years ago
Don Turner
58a1694334
Fix action name and version
...
Change-Id: I218dd886b3cc00ffdb05036892a11df3013198d8
2 years ago
Don Turner
be062d6c9e
Apply spotless automatically during build and commit back to PR
...
Change-Id: Id822a3179fe866ffe2bb63157e399003f1b3ae4d
2 years ago
Don Turner
59994b9af1
Merge pull request #1009 from lihenggui/main
...
Fix #1008 : Use capitalized variant name when registering badging tasks
2 years ago
lihenggui
66cb30a811
Fix #1008 : Use capitalized variant name when registering gradle tasks
2 years ago
Don Turner
c8c83d4be8
Merge pull request #1001 from android/av/badging
...
Add automatic badging verification
2 years ago
Alex Vanyo
360b33eb82
Add automatic checks for badging
...
Change-Id: Ic8fca86d7aa84675fa91fb1aa99abcc6e19d663e
2 years ago
Don Turner
15f8861da1
Merge pull request #999 from KDW03/convert-to-data-object
...
refactor/Convert object to data object in sealed interface
2 years ago
Don Turner
74ed483029
Merge pull request #987 from android/renovate/all
...
Update all dependencies
2 years ago
kimdowoo
129099e219
refactor/Convert object to data object in sealed interface
2 years ago
Don Turner
1b0852eaba
Rollback runtime tracing version to avoid pulling in new Compose runtime
...
Change-Id: Ie194b90d6bff6b738cabac6c9708f037eb18ea08
2 years ago
Don Turner
340753b2c5
Merge pull request #983 from KDW03/feature/consistent-waitAndFindObject
...
Apply consistent use of waitAndFindObject extension
2 years ago
Don Turner
f2bc315eaf
Merge pull request #899 from SimonMarquis/lint-test-detector
...
Create `TestMethodDetector` Lint to detect common naming patterns we want to avoid
2 years ago
renovate[bot]
6c8fe164c8
Update all dependencies
2 years ago
Adetunji Dahunsi
13b2747c56
Merge pull request #989 from tjmtic/now-update-800
...
Create different icons for each build variant
2 years ago
Simon Marquis
3cfe4df048
Update lint/src/main/kotlin/com/google/samples/apps/nowinandroid/lint/NiaIssueRegistry.kt
2 years ago
Don Turner
9747255e33
Remove underscore check
...
Change-Id: Iec1d07787a6e1cd350b9d8d082e729ef62492013
2 years ago
TM
d3d5b02428
Inline color values for app icons
2 years ago
TM
9b83237bfd
Removed Comments
2 years ago
TM
afb427b9c5
Use colors from design palette in build variant icons
2 years ago
Don Turner
8ffffe5faf
Update pull request template
2 years ago
Don Turner
93032b9e3a
Fix for pull request template not being used. Fixes #769
2 years ago
TM
38d0c15d33
Create different icons for each build variant
...
Added color values for DEBUG and BENCHMARK build variants.
2 years ago
Adetunji Dahunsi
78573b8efc
Merge pull request #972 from tjmtic/now-update-888
...
Update primitive mutable states to mutableState API where applicable
2 years ago
Simon Marquis
16fd42a766
Restore lazy API call
2 years ago
Simon Marquis
ba19aa6da0
Rename `TestMethodDetector` to `TestMethodNameDetector` as suggested
2 years ago
Simon Marquis
4732249443
Update regex to match expected format
2 years ago
Simon Marquis
f9abb3115b
Fix test
2 years ago
Simon Marquis
058f0e4375
Add missing import
2 years ago