تنشئ شركة Cuvva أكثر سرعة وبجودة أعلى من خلال Compose.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تعمل شركة Cuvva على تحسين تجربة التأمين بشكل جذري
من خلال توفير طريقة مرنة لإدارة تغطيتك التأمينية، وكل ذلك من هاتفك.
استفاد مهندسو Android في Cuvva من بعض الوقت لإعادة تصميم تطبيقهم، وقرّروا استخدام تدفق البيانات أحادي الاتجاه وJetpack Compose. بهذه الطريقة، تمكّنوا من التخلّي عن نظام التصميم المخصّص المستند إلى View، والذي كان أبطأ وأصعب في الاستخدام، وأقل قابلية للتوقّع على إصدارات Android القديمة.
الإجراءات التي اتخذتها الشركة
أنشأ فريق Cuvva مكونات تصميم جديدة من البداية، ثم استخدم واجهات برمجة التطبيقات الخاصة بالتوافق لتضمين عناصر Composables داخل التصاميم الحالية، ومع مرور الوقت، استبدل الشاشات المستندة إلى View وأنشأ شاشات جديدة باستخدام Compose. "لقد تبيّن لنا أنّ Compose يتيح لنا إنشاء مكوّنات تصميم جديدة من البداية بشكل أسرع، كما يوفّر علينا الوقت الذي كنا نستغرقه في محاولة حلّ المشاكل المتعلقة بإدارة الحالة أو التجزئة. بعد أن أنشأنا مكتبة كبيرة بما يكفي من هذه المكوّنات، أصبح إطلاق شاشة جديدة سريعًا جدًا، وقد ساعدنا ذلك بالتأكيد على أن نكون أكثر إنتاجية".
النتائج
وقد أتاحت لهم Compose إنشاء تطبيق أعلى جودة بشكل أسرع: "إنّ السرعة التي تتيحها Compose في تجميع ميزة جديدة تعني أنّه يمكننا تكرار العملية بشكل أسرع، ما يوفّر تجربة أعلى جودة لعملائنا بشكل أسرع من ذي قبل".
باستخدام Compose، ينخفض عدد الأسطر التي تحتاج إلى كتابتها، وبالتالي قراءتها وفهمها وصيانتها: "لقد سررنا كثيرًا عندما رأينا عدد الأسطر القليل
المطلوب لإنشاء قوائم أو رسوم متحركة في تطبيقنا. لقد ساهمت Compose بالتأكيد في
الحدّ بشكل كبير من عدد أسطر الرمز المطلوبة لإنشاء واجهة المستخدم".
تسهيل تنفيذ المكوّنات المخصّصة: "أنشأنا مكوّنًا على شكل قرص دائري
يُستخدم لعرض نتيجة القيادة للعملاء. كانت عملية تحريك مستوى التقدم والألوان باستخدام Compose أسهل بكثير وأكثر متعة من السابق. إنّ تنفيذ أي شيء مخصّص، سواء كان ذلك إنشاء مكونات جديدة أو تغيير سلوك المكونات الحالية، أسهل بكثير في Compose".
البدء
مزيد من المعلومات حول ميزة "إنشاء"
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2021-07-28 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2021-07-28 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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)."]]