Moshi
Lottie for Android, iOS, and React Native
Our great sponsors
Moshi | Lottie for Android, iOS, and React Native | |
---|---|---|
17 | 43 | |
9,500 | 34,656 | |
0.8% | 0.3% | |
8.6 | 8.3 | |
14 days ago | 5 days ago | |
Kotlin | Java | |
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.
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
Lottie for Android, iOS, and React Native
-
Animotion – a visual CSS animation app
Worth mentioning that After Effects can export CSS/SVG/canvas animations with the free bodymovin/Lottie plugin. This is my personal go to for creating web key frame animations and elements.
Not every after effects feature is exportable, but it’s the best and most reliable solution I’ve found for this type of workflow, maybe due in part though to my previous experience with AE.
Currently supported features: http://airbnb.io/lottie/#/supported-features
- Any advanced image animation library available?
-
Develop Animated Splash Screens on Fire TV with Lottie
A smooth and visually appealing on-boarding experience can greatly impact how users perceive the quality of your app. In my previous article, we explored how to create custom splash screens on Fire TV apps to optimize the startup time and improve user experience. Building on that knowledge we will take a step further and learn how to develop an animated splash screen using Lottie for Fire TV applications.
-
How to play/export .JSON animation with assets
They are most likely Lottie animations: http://airbnb.io/lottie/
-
What view to use for animated splash screen?
I'd suggest Lottie with a JSON animation file
-
How stable is lottie-android in your production app?
We was thinking of https://github.com/airbnb/lottie-android
-
One of the few libraries I thought would stay much longer
But he did have a commit 3 weeks ago https://github.com/airbnb/lottie-android/commit/7479ebb2847365e5ed0575249a9b639d86808dfa
-
Ask HN: Are there things that Flash did that we still can’t do with today’s web?
Lottie[1], an Adobe After Effects plugin, fills a gap in vector animation authoring and is quite widely used (primarily in mobile applications but also works on the web, Discord for example supports them for stickers).
It's a pity SVG animation authoring tools never eventuated since it's an underutilized native format.
[1] (ignore the GIF-converted examples, the originals are lightweight and vector-based) https://airbnb.io/lottie/
-
Oldhead here - what has replaced Flash for highly interactive, complex animated content?
Unity can export to WebGL/WASM, so that's one option if you're making some kind of heavy interactive experience and you don't mind waiting for it to load. For just animations there are tools like Lottie that can help. I think things are generally a lot more fragmented than they were in the Flash/Shockwave days though.
-
10 Useful Android Library for Every New Developer
6. Lottie
What are some alternatives?
Jackson - Core part of Jackson that defines Streaming API as well as basic shared abstractions
android-page-curl - Page Curl for Android
Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back
shimmer-android - An easy, flexible way to add a shimmering effect to any view in an Android app.
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
Skia - Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.
Jackson JSON Processor - Main Portal page for the Jackson project
rlottie - A platform independent standalone library that plays Lottie Animation.
ktor-moshi - Ktor feature that adds Moshi JSON serialization support
World Country Data, flags, currency and more - Android library for country flag, currency, and other country information
LoganSquare - Screaming fast JSON parsing and serialization library for Android.
Material-Animations - Android Transition animations explanation with examples.