Cuvva は Compose でビルドを高速化し、品質を向上させています
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Cuvva は、スマートフォンから保険を柔軟に管理できる方法を提供することで、保険を大幅に改善しています。Cuvva の Android エンジニアは、アプリを再構築する時間を確保し、単方向データフローと Jetpack Compose を採用することにしました。これにより、カスタム View ベースのデザイン システムから移行できるようになりました。このシステムは、処理速度が遅く、操作が難しく、Android の古いバージョンでは予測が困難でした。
Ultimate Guitar の取り組み
Cuvva チームは、新しいデザイン コンポーネントをゼロから作成し、相互運用性 API を使用して既存のレイアウト内にコンポーザブルを配置しました。そして、時間をかけて View ベースの画面を置き換え、Compose で新しい画面を構築しました。「Compose を使用すると、新しいデザイン コンポーネントをはるかに迅速に作成でき、状態管理やフラグメンテーションの回避に費やす時間を減らすことができます。これらのコンポーネントのライブラリが十分に構築されると、新しい画面のリリースが非常に迅速になり、生産性の向上に間違いなく貢献しました。」
結果
Compose を使用することで、高品質のアプリをより迅速に構築できるようになりました。「Compose が新機能の統合を可能にするスピードのおかげで、反復処理をより高速に進めることができ、以前より品質の高いエクスペリエンスをより迅速にお客様に提供できます。」
Compose を使用すると、記述する必要がある行数、つまり読み取り、理解、保守する必要がある行数が減ります。「アプリでリストやアニメーションを作成するのに必要な行がとても少なくって喜んでいます。Compose を使用すると、UI のビルドに必要なコード行数が大幅に減ります。」
カスタム コンポーネントは実装が容易です。「お客様の運転スコアを表示するために、円形のダイヤル コンポーネントを作成しました。Compose を使用して進行状況と色をアニメーション化することは、以前よりもはるかに簡単で、とても楽しいものでした。Compose では、新しいコンポーネントの作成や既存のコンポーネントの動作の変更など、カスタム処理がはるかに簡単になります。」
始める
詳しくは、Compose をご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2021-07-28 UTC。
[null,null,["最終更新日 2021-07-28 UTC。"],[],[],null,["[Cuvva](https://www.cuvva.com/) is making insurance radically better\nby giving you a truly flexible way to manage your cover, all from your phone.\nThe Android engineers at Cuvva got to spend some time re-architecting their app\nand decided to adopt a unidirectional data flow and Jetpack Compose. That way\nthey could **move away from their custom View based design system**, which was\nslower and harder to work with, and less predictable on older versions of\nAndroid.\n\nWhat they did\n\nThe Cuvva team created new design components from scratch, then used the\ninteroperability APIs to place Composables inside existing layouts and, with\ntime, replace View-based screens and build new screens with Compose. *\"We found\nthat Compose lets us create new design components from scratch **much more\nrapidly** and spend less time trying to work around state management or\nfragmentation. Once we had built up a large enough library of these components,\nshipping a new screen became very fast, and it has definitely helped us to be\nmore productive.\"*\n\nResults\n\nCompose allowed them to build a higher quality app faster: *\"The speed at which\nCompose allows us to put together a new feature means **we can iterate more\nrapidly, providing a higher-quality experience** for our customers faster than\nbefore.\"*\n\nWith Compose the number of lines you need to write, and therefore read,\nunderstand, and maintain, decreases: *\"we were very pleased to see how few lines\nwere required to create lists or animations in our app. Compose has definitely\n**dramatically reduced the number of lines of code** required to build our UI.\"*\n\nCustom components are easier to implement: *\"We created a circular dial\ncomponent which is used to show customers their driving score. **Animating** its\nprogress and colours with Compose was **far easier and a lot more fun** than it\nwould have been previously. Doing anything custom, whether that's new\ncomponents or changing the behaviour of existing ones, is far easier in\nCompose.\"*\n\nGet started\n\nLearn more about [Compose](/jetpack/compose)."]]