Simon Marquis
1c61be7b7b
Update color mapping
...
| Type | Plugin ID | Color |
|-------------|------------------------------------|------------------------|
| Application | `nowinandroid.android.application` | `#CAFFBF` PastelGreen |
| Feature | `nowinandroid.android.feature` | `#FFD6A5` PastelOrange |
| Library | `nowinandroid.android.library` | `#9BF6FF` PastelBlue |
| Test | `nowinandroid.android.test` | `#A0C4FF` PastelMauve |
| JVM | `nowinandroid.jvm.library` | `#BDB2FF` PastelPurple |
| Unknown | `?` | `#FFADAD` PastelRed |
5 days ago
Simon Marquis
c94e82849b
Merge remote-tracking branch 'origin/main' into graphs
2 weeks ago
Simon Marquis
e8dc43b58b
graphUpdate
3 weeks ago
Simon Marquis
e079e68815
Delete old graphs
3 weeks ago
Aurimas Liutikas
4d45004820
Upgrade to latest stable AGP 8.12.2
...
- Upgrades to a newer version of compose bom that pulls in newer
versions of lint checks that work with AGP 8.12.2
- Bump the minSdk to 23 because compose now requires minSdk 23
- Update Navigation_fontScale2.png due to compose upgrade
- Clean up BuildConfig set up since we already use Gradle 9.0.0
Test: ./gradlew build
3 weeks ago
Aurimas Liutikas
7ff1913855
Fixes host test tasks that were accidentally attemping to run
...
Gradle 9.0.0 has the new enforcement that Test task runs that
have sources but no tests run should fail. Without this change we get
Execution failed for task ':core:analytics:testDemoDebugUnitTest'.
> There are test sources present and no filters are applied, but the test task did not discover any tests to execute. This is likely due to a misconfiguration. Please check your test configuration. If this is not a misconfiguration, this error can be disabled by setting the 'failOnNoDiscoveredTests' property to false.
We get this because before this change AndroidCompose was always setting
isIncludeAndroidResources = true which generates a source to the test
task and in the case of :core:analytics it is the only source.
Instead of setting isIncludeAndroidResources in AndroidCompose move to
setting it in relevant build.gradle.kts files (most already had it)
1 month ago
Aurimas Liutikas
abac757e9f
Add a comment for simplification
2 months ago
Aurimas Liutikas
149a345595
Move to a custom setup for BuildConfig.BACKEND_URL
...
secrets gradle plugin is not Gradle project isolation compatible and is
using deprecated AGP variant API. This change removes the usage by using
a custom provider to set this value.
Inspiration https://github.com/android/gradle-recipes/blob/agp-8.10/addCustomBuildConfigFields/build-logic/plugins/src/main/kotlin/CustomPlugin.kt
https://github.com/android/nowinandroid/issues/1842
Test: ./gradlew core:network:assemble -> BuildConfig.java has correct
value
2 months ago
hoangchungk53qx1
3c5026065d
Refactor: Replace list initialization with emptyList() for clarity
2 months ago
Don Turner
b77f6f8da7
Refactor change to make it clearer when the deserialization workaround is required.
9 months ago
Jaehwa Noh
696bd7de62
Create `getDemoDataFromJson` method and use it.
...
Change-Id: I19336b061e74a378cc70470fbd6af8ee4c7533e0
9 months ago
Jaehwa Noh
5084e5c3d6
Revert exposed `readText` method.
...
Change-Id: I8076fabed4b4f2f460c74b43ad1c3e38a5268005
9 months ago
Jaehwa Noh
80172dcf82
Replace manual string converter to readText method.
...
Change-Id: If8cc6c27bd399fcdf8446ec411626f13d39e707c
9 months ago
Jaehwa Noh
301f7f5ad6
Pass new DemoAssetManager with open and readText methods.
...
Change-Id: I4b58c250e76f6d41e794087ff3b467fc61c88eca
9 months ago
Jaehwa Noh
9320d592b4
Override readText.
...
Change-Id: Ibf7fca9de5461e7285ed6d68092e36d70408f3bd
9 months ago
Jaehwa Noh
008b989397
Create readText method.
...
Change-Id: I15df6f18343bcf36d2d583a19cd47d6344942201
9 months ago
Jaehwa Noh
868bfad12d
Merge branch 'android-remote-main' into api-21
...
Change-Id: Iecf9c37a262bf6ae59953ac50bca2523bcab8843
# Conflicts:
# .github/workflows/Build.yaml
9 months ago
Don Turner
b478ceae54
Fix failing UI test, add unit test and refactor
11 months ago
Don Turner
ecfb5157dd
Improve test data and add UI test for topic chip
11 months ago
Simon Marquis
dc14461490
Update retrofit from 2.9.0 to 2.11.0
...
- Replace Jake Wharton's Kotlinx Serialization converter with new retrofit's `converter-kotlinx-serialization`.
- Remove custom Proguard rules that are now part of the dependency: https://github.com/square/retrofit/tree/trunk/retrofit-response-type-keeper#readme
Changelog: https://github.com/square/retrofit/blob/trunk/CHANGELOG.md
1 year ago
Simon Marquis
d56e06e676
Merge Android & JVM plugins into a single `HiltConventionPlugin`
1 year ago
Jaehwa Noh
622ae698db
Remove `okio.use` and redundant length init.
...
Change-Id: Ibac659c7aff6d8be99f52d012d603f8251bbd23d
1 year ago
Jaehwa Noh
6a205b14a7
Add KDoC for convertStreamToString.
...
Change-Id: Idb7fc085e889f8012234d14ad7bc0a4713073d6e
1 year ago
Jaehwa Noh
29e514f359
Take capability below API 24, and add comment.
...
Change-Id: I86d99fa9e74a8475c0b2bad202cfb4697ab1016b
1 year ago
Jaehwa Noh
a928bf1c51
Create convertStreamToString.
...
Change-Id: I07dbb58813bc891f407773fddab7f1487f1ed24f
1 year ago
Jaehwa Noh
a888c87c5f
Below than api24,use decodeFromString
...
Change-Id: Icf428ebfe7e153e132e112c2dc6926bd40ab3951
1 year ago
Jaehwa Noh
3c70183ce6
Change name Fake to Demo.
...
Change-Id: Ife321dd95238227bfdfc1f13f6832472bd699b6f
2 years ago
Jaehwa Noh
cd294a8654
Change lint ignore name in lint.xml.
...
Change-Id: I3b1e19dedd238ec96bd8debee5fcbcc91bc25094
2 years ago
Jaehwa Noh
2739168e33
Revert "Move main to demo."
...
This reverts commit a5be299e3d
.
2 years ago
Jaehwa Noh
a5be299e3d
Move main to demo.
...
Change-Id: I48bb3c26ef02d6302cb7caabcaa17d5b4659031a
2 years ago
Jaehwa Noh
5d99f381e9
Remove VisibleForTesting.
...
Change-Id: Icd7005ec38495a1a4bc6f1594f70a2c1228538ab
2 years ago
Jaehwa Noh
27ca860745
Rename fake to demo.
...
Change-Id: I5b1d7963e623832a766900aa74ef1085aac0cacc
2 years ago
Don Turner
a5025390af
Add title to READMEs to describe the dependency graph
...
Change-Id: Ifb4b44e67df53ddd8ed048122c6c12a904e61528
2 years ago
Don Turner
80a82de945
Update module dependency graphs and add script to create them
...
Change-Id: I7b2ae264ec84491c847a44869934e2f238564c31
2 years ago
Tomáš Mlynarič
4cdc2ad345
Add comment for Retrofit async OkHttp
...
Change-Id: Ic7a6887b76caf26f00b58b0753271d426b67e75b
2 years ago
Tomáš Mlynarič
d110d92b87
Optimize OkHttp initialization for Retrofit
...
Change-Id: I347f1080ab5adf774a0cdd3c659cbf25c4820f9a
2 years ago
Tomáš Mlynarič
5f0612102d
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
Don Turner
0f0511748e
Merge pull request #1088 from SimonMarquis/cleanup-dependencies
...
Reduce overall build complexity
2 years ago
lihenggui
d671126f9e
Move @Suppress("ktlint:standard:max-line-length") to function scope
2 years ago
lihenggui
fb5bd225be
Spotless
2 years ago
Simon Marquis
f27a2e176e
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
Jonathan Koren
5482d81fdc
fixed for PR 985
2 years ago
Don Turner
a381d13199
Merge pull request #958 from McGalanes/main
...
Use typesafe project accessors
2 years ago
Melwin Magalhaes
6247712064
Add convention plugins to version catalogs
2 years ago
Melwin Magalhaes
b1266dc05a
Use typesafe project accessors for project modules
2 years ago
Simon Marquis
a33dafccad
Migrate from `java` to `kotlin` sourceSet directory
2 years ago
Simon Marquis
c98e6236d5
Replace identical `InstantSerializer` with KotlinX datetime default serializer
2 years ago
Simon Marquis
0377fd8712
Replace `NewsResourceType` enum with simpler String type
...
See this discussion for rationale: https://github.com/android/nowinandroid/discussions/901
2 years ago
Tatsuya Fujisaki
4eeb045287
Rename constants
2 years ago
İbrahim Ethem Şen
56f8a27132
Kotlin coding conventions places companion object at the bottom of the class
2 years ago