accompanist
Moshi
accompanist | Moshi | |
---|---|---|
15 | 17 | |
7,225 | 9,505 | |
0.6% | 0.4% | |
8.3 | 8.5 | |
8 days ago | 22 days ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
accompanist
-
Android Development: A Bug-Laden Ballet on a Spaghetti Tightrope
The truly disheartening part is that whenever you choose something that works, for example ViewPager1, you need to defend that yes, this thing actually works as intended, yes, there's nothing in it that would "break over time" just because Googlers added the @Deprecated on it, and yes, you still don't want to use Compost for this because you still cannot scroll vertically in a horizontal Pager if your view is a WebView.
-
Do Company form the industry actually use Jetpack Compose?
Compose on the other hand came out half-baked, significant performance issues, missing features, bugs and bugs and bugs and bugs and bugs and bugs and bugs and bugs and bugs.
-
tide/surf app for watch
Just to add to the list, Accompanist is a collection of compose libraries that helps a lot with some features. I can recommend Navigation-Animationand Permissions. https://github.com/google/accompanist
-
Photo Picker Everywhere
To give a bit of context, libraries not released as Jetpack libraries as experiment projects. Once they're released as Jetpack libraries, we have stricter release schedule in place and more resources to provide better stability for developers. That's why some Accompanist libraries end up as part of Compose foundation set, while others are still being shipped as part of the Accompanist project.
-
What do you use for compose navigation?
So you're going to get support for Parcelables in argument passing, animation support without having to fear crashes, and if you drink the ScopedServices koolaid you even get to get DI with lifecycle management and scope inheritance.
-
Jetpack compose navigation vs fragments
Here's a fun bug though https://github.com/google/accompanist/issues/1233
- Accompanist v0.25.0 is released!
-
Clean Empty Jetpack Compose App Template
There is a bug the preview is not working when System UI controller is used. See issue tracker here.
-
I ported the Spotify Mobius GitHub wiki to GitHub Pages + MkDocs with light and dark modes. I just created the issue and filed the PR. Let's see what happens!
๐ I have been using Mobius personally and for work for over two years now. It's a lot of fun to use and I would definitely recommend the community to consider using it. I frequently visit their GitHub repo because they still have their documentation in the GitHub wiki, unlike new repos such as Accompanist. So, I thought what better way to give back than do the grunt work of porting their wiki to GitHub Pages + MkDocs โค๏ธ๐ฅ
-
What are the most common used (3rd party) libraries and frameworks used in Android development?
Accompanist for unofficial stuff that's still useful
Moshi
-
Kotlin DSL is Now the Default for New Gradle Builds
Honestly, when you look at a build.gradle.kts written by someone who knows what they're doing, it's not that bad (that reminds me, I should really clean up the build.gradle.kts on my personal project, I haven't heavily edited it since I knew a lot less about gradle...). For example, here's the build.gradle.kts for Moshi, a JSON serialization library from Square. It uses the root build.gradle.kts for the project a bit, which is here. The root one is a little more complex, but that's mostly because it has to deal with a multi-release build and has to configure a few plugins, like dokka. (If you're wondering where all the library versions are, they're here, using a new feature in Gradle you might like: The version catalog)
-
Modern Android Development in 2023
Moshi
-
Why don't you write unit tests and integration tests to ksp project
This approach is also used by square/moshi. You can also refer this.
-
Apple's Swift rewrite of its Foundation framework will be open source
Best practice in Android would be Moshi, which is written by many of the same authors as Gson but is still actively maintained. It's more or less a breaking upgrade from Gson.
-
Converting Json to Java object
Thanks for the info. Just checked the GitHub and it is indeed the case that Gson is not maintained anymore. The main dev left Google it seems and therefore abandoned Gson. He and some other people however created a new project called Moshi that's probably intended as a kind of Gson 3.0: https://github.com/square/moshi the last commit was three months ago and there are a crowd of contributors listed so I guess that's the better option than ye olde Gson.
-
Soursop and Ponies in Kona: A C++ Committee Trip Report
Java annotations have enabled compile-time reflection since Java 1.6, and of course it has been used for serialization: https://github.com/square/moshi/#codegen
-
What are the most common used (3rd party) libraries and frameworks used in Android development?
JSON de/serialization: Kotlin serialization, Moshi
-
Help parsing JSON with Retrofit & Moshi
However i am getting an error "Expected BEGIN-ARRAY but was BEGIN-OBJECT at $". Looking over the moshi documentation (https://github.com/square/moshi) I think I need to use an adapter as my JSON response starts with "{ }" not the expected "[ ]". I am just struggling to understand how to implement the adapter as I think the built in adapter should work.
- Moshi 1.13.0 with Kotlin 1.6 compatibility now available
-
Release Kotlin 1.6.0 ยท JetBrains/kotlin
Moshi users are currently blocked to update until Moshi 1.13.0 is released: https://github.com/square/moshi/issues/1368
What are some alternatives?
compose-samples - Official Jetpack Compose samples.
Jackson - Core part of Jackson that defines Streaming API as well as basic shared abstractions
Learn-Jetpack-Compose-By-Example - ๐ This project contains various examples that show how you would do things the "Jetpack Compose" way
Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back
datmusic-android - Music search, downloader & player app using Jetpack Compose
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
lyricist - ๐ The missing I18N/L10N (internationalization/localization) multiplatform library for Jetpack Compose!
Jackson JSON Processor - Main Portal page for the Jackson project
simple-stack - [ACTIVE] Simple Stack, a backstack library / navigation framework for simpler navigation and state management (for fragments, views, or whatevers).
ktor-moshi - Ktor feature that adds Moshi JSON serialization support
orbit-mvi - A simple MVI framework for Kotlin Multiplatform and Android
LoganSquare - Screaming fast JSON parsing and serialization library for Android.