<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[H2G Signal - Medium]]></title>
        <description><![CDATA[H2G Lab Publications - Medium]]></description>
        <link>https://medium.com/h2g-signal?source=rss----4e43a6d0bf50---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>H2G Signal - Medium</title>
            <link>https://medium.com/h2g-signal?source=rss----4e43a6d0bf50---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 09:44:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/h2g-signal" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to get Designers and Developers working together?]]></title>
            <link>https://medium.com/h2g-signal/how-to-get-designers-and-developers-working-together-60d8fa1886f2?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/60d8fa1886f2</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[design-tools]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[process]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Laura Berger]]></dc:creator>
            <pubDate>Mon, 29 Jul 2019 07:01:01 GMT</pubDate>
            <atom:updated>2019-07-29T07:01:01.286Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SocipNKmX8WP0uJR6W3xpw.jpeg" /></figure><h4>Sharing Best Practices: insights from Heetch and H2G Lab</h4><p>In a dream team, everyone successfully communicates with his/her team mates. Whatever if they are Developers, Marketing &amp; Sales persons or Designers, this dream team fights for one big common purpose: the Product.</p><p>Well, if you are working in such a team, you found a goldmine. If team workflows justify a full time job for COOs, it can also means there is something non-intuitive in working within a diverse team.</p><p>In that way, Designers and Developers have a very different job and background, and sometimes struggle to work efficiently together. Julien (Heetch) and Yann (H2G Lab) are Heads of Product Design and tell you about how they succeed in smoothing this relationship.</p><h3>A bit of context</h3><p><a href="http://www.heetch.com/">Heetch</a> is a ride-sharing app operating in France, Belgium and Africa. The team is composed of 200 people, among them 40 developers. The team is remote friendly and the developers are widespread all around Europe. This is why the team implemented specific tools to collaborate in trio: Developers, Designers and Product Manager. The team is composed of senior people who are focused on building a product: they work in reduced teams (squads) and can thus closely collaborate, without silos.</p><p><strong>Ratio: 1 Designer for 1 mobile/front Dev (per platform) = heavy design density</strong></p><p><a href="http://www.h2g.io/">H2G Lab</a> is a Product Design Studio, creating heavy technical apps for startups and publishing B2B tools as Exodus or Shuttle. The team is composed of 12 people, among them 6 developers. Yann is the only one working in Product Design, among other hats like Product Management and Pre-Sales. The team is Senior and is taking part in every step of the product design.</p><p><strong>Ratio: 1 PM/Designer for 6 Developers (per product) = heavy tech density</strong></p><h3>Some Designers’ Challenges</h3><p>Both Julien and Yann had to (re)create a Design Business Unit, with new workflows and tools, to improve the team’s inputs. And it was no piece of cake.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*VMoDnPer7E_yf1kV9oMF9g.jpeg" /></figure><p>At Heetch, the priority for the PM was to reduce the time developers should work on implementing the design.</p><p>When he joined Heetch 3 years ago, Julien realized that there were some mismatches between several design components. He needed to create a real Design System, which was meant to document the design and make it evolve within the team.</p><p>At H2G Lab, the challenge for Yann at first was to engage the developers as soon as possible in the design process to develop faster and better.</p><p>For both teams, <strong>prototyping</strong> is a key element for a successful design workflow. It allows the team to be more proactive by showing the user and the developers what is expected upstream. Prototyping prevents from having a heavy QA and testing phase, as the development team is not part yet of the process.</p><h4>Former Design Stack</h4><ul><li><a href="https://www.sketch.com/">Sketch</a> (design)</li><li><a href="http://dropbox.com/">Dropbox</a> (storage &amp; collaboration)</li><li><a href="http://invisionapp.com/">InVision</a> (prototyping and demo)</li><li><a href="http://zeplin.io/">Zeplin</a> (clients’ demo): nicer file than Sketch for a quick demo</li><li>Prototyping: <a href="http://origami.design/">Origami</a> (create logics), <a href="http://framer.com/">Framer</a> (JS), <a href="https://www.invisionapp.com/studio">InVision Studio</a>.</li></ul><p><strong>… and their drags:</strong></p><ul><li>OS limitation for Sketch</li><li>Versioning on Dropbox</li><li>Licensing on Sketch for Developers</li><li>No simultaneous collaboration between teams</li></ul><h3>Figma as all-in-one Solution</h3><p>Julien and Yann chose <a href="http://figma.com/">Figma</a>, a web-based solution available on any OS. They appreciate the <strong>collaboration features</strong> like live comments and pings. It makes it easier for remote teams to work together. It resolves the versioning problem, although the lack of timeframe can look a bit messy (e.g. how do the developers know which version is in production?).</p><blockquote>« Figma is as big a revolution for product design as Spotify used to be for the music industry: it overcomes problems like collaboration, sharing and synchronization with a single web app »<em> </em><strong><em>Fabiano, Product Designer at Heetch</em></strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*LDQE9qWUHNo1csAn6ITFzA.png" /></figure><h3>Beyond Design</h3><p>Yann and Julien agree on the bigger picture: Figma, or other solutions, are « just » tools. Besides, <strong>process and documentation </strong>remain essential for a good team work.</p><p>In his daily routine, Yann uses <a href="http://productboard.com/">ProductBoard</a>: he selects a user insight, details the need, weights the effort and prioritizes it into a roadmap. This feature is linked to a spec into <a href="https://docs.google.com/">Google Docs</a> and is coauthored by a 3 persons squad team (dev, designer, reviewer). Finally, the Google Doc is linked to <a href="http://gitlab.com/">Gitlab</a> and <a href="http://figma.com/">Figma</a>. With such process, every stakeholder has a comprehensive overview of each feature.</p><p>In Julien’s team, each squad has a specific quarterly roadmap based on objectives into <a href="https://www.atlassian.com/software/jira">Jira</a>. The workflow is based on a product framework: 1. Opportunity Assessments, 2. Discovery, 3. Delivery and 4. Product Assessment. <a href="https://www.notion.so/">Notion</a> is used as knowledge basis for this Product framework, and is plugged to <a href="http://figma.com/">Figma</a>.</p><h3>Some impact</h3><ul><li>a better collaboration between all teams and with the clients/testers</li><li>the developers can participate in context and earlier (even in remote)</li><li>a cost reduction: one tool to replace many others</li></ul><p>In short, the choice of good collaborative tools and the setting up of clear workflows are the basis of a successful collaboration between Developers and Designers.</p><p>— — —</p><p>This article is based on the meetup <a href="https://www.meetup.com/fr-FR/Mobile-Talks-Lyon/events/261514766/"><strong>Mobile Talk #3</strong></a> (11.06.2019, Lyon) animated by <a href="https://www.linkedin.com/in/jupelletier/"><strong>Julien Pelletier</strong></a>, Head of Product Design at <a href="http://heetch.com/">Heetch</a> and <a href="https://www.linkedin.com/in/yannhermouet/"><strong>Yann Hermouet</strong></a>, Product Designer at <a href="http://h2g.io/">H2G Lab</a></p><p><strong>Check out the </strong><a href="https://www.youtube.com/watch?v=JzAs3o0DNqc"><strong>Video of the talk</strong></a> (French)</p><p><strong>Read info on </strong><a href="https://www.meetup.com/fr-FR/Mobile-Talks-Lyon/?source=post_page---------------------------"><strong>Mobile Talks</strong></a><strong> </strong>(French) and <a href="http://h2g.io/?source=post_page---------------------------"><strong>H2G Lab</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60d8fa1886f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/how-to-get-designers-and-developers-working-together-60d8fa1886f2">How to get Designers and Developers working together?</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User Onboarding: 7 keys to get proud(er) of your conversion rate]]></title>
            <link>https://medium.com/h2g-signal/user-onboarding-7-keys-to-get-proud-er-of-your-conversion-rate-6ef266d830e2?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/6ef266d830e2</guid>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[onboarding]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[conversion-optimization]]></category>
            <category><![CDATA[chatbots]]></category>
            <dc:creator><![CDATA[Laura Berger]]></dc:creator>
            <pubDate>Fri, 19 Apr 2019 10:15:02 GMT</pubDate>
            <atom:updated>2019-04-19T10:14:31.320Z</atom:updated>
            <content:encoded><![CDATA[<h4>How to convert a lot more users on your mobile apps with a great on-boarding?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ebEuW_Kc8HubhGqrPkqGig.png" /></figure><h3><strong>From “acquired” to “active” users</strong></h3><p>As we are clearly heading to a mobile-first society, the biggest problem for Marketing Managers has moved from acquisition to conversion of users on their mobile apps.</p><p>Every day, around 6000 applications are published on the public app stores, however each one of us is only using 30 apps (on average) on the same period. As a result, the competition between mobile products on the stores is sharp and the costs of acquisition are raising to attract new users.</p><p>And here comes a second problem : among all the users you’d acquire through (expensive) webmarketing campaigns, only 20% of them would effectively be active on your app. If we put into perspective the number of active users vs. the overall cost of acquisition, we can count on billions of euros that are directly thrown away.</p><h3><strong>First, pick your brain</strong></h3><p>Starting with the <strong>WHY: </strong>do you have an idea what makes your users drop in process? To answer this question, you have to <strong>assess</strong> your on-boarding step by step and imagine each informations request to your user as a potentiel drag (name, localisation, email, birthdates, etc.).</p><p>Also take into consideration the <strong>interruptions</strong>, like a phone call or a flat battery, which disconnect your user from your app.</p><p>In order to overcome these risks, let’s find out <strong>what your users expect</strong> during their on-boarding. <br>According to a <a href="https://clutch.co/app-developers/resources/mobile-app-onboarding-survey-2017">study published by Clutch (2017)</a>: <br>- <strong>44% think an on-boarding should be fun</strong><br>- 72% think it should last less than 60secs<br>- 76% want to make sure their personal data are not misused</p><p>From there, <strong>HOW</strong> can we build a good on-boarding that answers these risks and needs?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d7w5o_3uv1XCDn6sgX90tA.jpeg" /></figure><h3><strong>3 criteria for a good on-boarding</strong></h3><ul><li><strong>Get emotional</strong>: from the very first seconds of your on-boarding, try to stimulate both parts of your users’ brain. Among logic and emotion, you can count on this last one to better stimulate the attention and reactivity on your app. Personalization and humor are your best assets.</li><li><strong>Be efficient</strong>: your on-boarding needs to be as fast as possible, but also include all information you need about your users. Try to make the path smoother with for example: a pre-filling of some fields, a preview of the code in your SMS confirmation…</li><li><strong>Remain responsible</strong>: try not to ask too many questions in a row, but keep some for after the subscription process. Most users get afraid when arrives the Terms of Services page, so choose a strategic moment to pop it up.</li></ul><p>You are already fulfilling all the 3 criteria? You are ready for the next step!</p><h3><strong>2 keys to build a GREAT on-boarding</strong></h3><ul><li><strong>Gamification</strong>: play around with your user and make his path fun! The objective is to keep his attention and motivation as high as possible. Start with easy actions and (like levels in video games) spice things progressively without forgetting offering a reward at each step (nice messages, emojis, GIFs, personalized tips, etc.).</li><li><strong>Conversational interface</strong>: they allow you to disrupt the way your users normally communicate with your app. Let’s drop the boring standard form to introduce more interactions thanks to a chatbot which will entertain your user.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iRMnQ4nn-7itLfJaGPo6VA.jpeg" /><figcaption>powered by <a href="https://www.86percent.co/">86%</a></figcaption></figure><p>To sum it up, mobile-first trends have heavily changed the habits of consuming digital products, and our mobile has become (almost) our best friend. As it has turned into one of the most intimate device in our life, we must adapt the way our contents (apps) communicate with the users.</p><p>This is on this statement that <a href="https://www.linkedin.com/in/olivier-berni-91668220/?originalSubdomain=fr">Olivier Berni</a>, CPO of <a href="https://www.google.com/search?q=lunabee&amp;rlz=1C5CHFA_enFR824FR824&amp;oq=lunabee&amp;aqs=chrome..69i57j69i60j0l4.1172j0j7&amp;sourceid=chrome&amp;ie=UTF-8">Lunabee Studio</a> launched <a href="https://www.86percent.co/index2.html?utm_expid=186597157-0.qUhyUXyuRNOc77x4DsOo2w.1&amp;utm_referrer=https%3A%2F%2Fwww.google.com%2F"><strong>86%</strong></a><strong>, an in-app chatbot which vivifies your on-boarding</strong>.</p><p>— — —</p><p>This article is based on the meetup <a href="https://www.meetup.com/fr-FR/Mobile-Talks-Lyon/"><strong>Mobile Talk #2</strong></a> (02.04.2019, Lyon) animated by <a href="https://www.linkedin.com/in/olivier-berni-91668220/?originalSubdomain=fr"><strong>Olivier Berni</strong></a>, Chief Product Officer of 86%-SDK</p><p><strong>Check out the </strong><a href="https://www.youtube.com/watch?v=JvWRrWbKcng&amp;feature=youtu.be"><strong>Video of the talk</strong> </a>(French)</p><p><strong>Read info on </strong><a href="https://www.meetup.com/fr-FR/Mobile-Talks-Lyon/"><strong>Mobile Talks</strong></a><strong> </strong>(French) and <a href="http://h2g.io/"><strong>H2G Lab</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ny3_1wJb7OubPQ2cyG6llw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ef266d830e2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/user-onboarding-7-keys-to-get-proud-er-of-your-conversion-rate-6ef266d830e2">User Onboarding: 7 keys to get proud(er) of your conversion rate</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mobile app beta testing : 4 reasons why you shouldn’t underestimate your distribution]]></title>
            <link>https://medium.com/h2g-signal/mobile-app-beta-testing-4-reasons-why-you-shouldnt-underestimate-your-distribution-cbba6592fad5?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/cbba6592fad5</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[beta-testing]]></category>
            <category><![CDATA[app-development]]></category>
            <category><![CDATA[app-distribution]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Laura Berger]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 09:43:00 GMT</pubDate>
            <atom:updated>2019-02-08T09:39:55.968Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Mobile app beta testing : 4 reasons why you shouldn’t underestimate your distribution</strong></h3><p>This article is not about WHY you should test your apps (if you still don’t, a lot of articles might be of interest for you, like <a href="https://medium.com/@FizzyInTheHall/testing-mobile-apps-a-primer-889f62a85e40">this one</a>), but about HOW you should manage to distribute them to testers and/or clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eiSYuXxv9S6-2Vm9w93UUg.jpeg" /></figure><p>Beta distribution — the “<strong>last mile</strong>” after your CI/CD — is broadly overlooked. It is though the closest step to your users before you reach them through the App Store/Play Store.</p><p>When you think about testing your mobile app before publishing it, you first realize it is not all about one app, but two. Android and iOS are like oil and water: so close to each other but unable to mix. Distributing your beta release is then one more two-sided brick in your workflow. Result: you are fragmenting your workflow using several tools to distribute in-dev beta.</p><h3><strong>Here are 4 reasons why you should not neglect your beta distribution tool</strong></h3><h4><strong>1. It will help you monitor your apps</strong></h4><p>Those who work in big app companies know how hard it is to find information about their apps: are they published, in testing, in production, or even obsolete? Not to mention the number of persons who will access these beta: testers, developers, product owners, project managers, customers/users…</p><p>This <strong>complexity</strong> raises some questions:</p><p>Which of these apps are still compatible with the current stores’ version?</p><p>Why was this app version of 2016 even released?</p><p>How many releases are needed to publish an iOS app?</p><p>Is my Android app well ahead or relatively late comparing to the iOS version?</p><p>How do I find info on my apps to make them GDPR compliant?…</p><p>To find answers, you will often have to look back into your commits and play archeologist. To avoid this waste of time for your tech team, why not anticipating and using an internal beta app store? Having a single dashboard would help you <strong>centralise</strong> all your mobile products, your iOS/Android apps and the subsequent releases in one place. <strong>Track</strong> the historic, set up an app status, manage permissions to know what you distributed, to whom, when and eventually why.</p><h4><strong>2. It unifies your mobile team(s)</strong></h4><p>Have you noticed that some topics can be spicy among iOS and Android developers? Each technical « church » got used to evolve separately, building their own processes with specific tools.</p><p>Finally, when are these teams working together apart from the conception phasis? You bet it: rarely. The risk is that the technical prevails over the functional, although our users only perceive the functional part. The lack of <strong>unicity</strong> in the workflow shouldn’t affect the final product: in the end, our users should have the same product in hands.</p><p>The distribution of beta releases is in the same vein. Whatever the receivers ( QA team, clients, investors…), it will have an impact on their perception of your product. What does it reflect if they struggle to install a build? Or if the on-boarding and identification process is radically different from a platform to another? It contributes to accentuate the<strong> two-sided effect</strong>.</p><p>Giving your tech team a simple and unique tool to ship its beta is one way to override the technical diversity and finally talk about the product and the UX.</p><h4><strong>3. It simplifies your workflows</strong></h4><p>As said above: the mobile app development is fragmented. You can easily get lost in the diversity of tools for each « church ». Why not try to tackle <strong>redundancies</strong> and get rid of the « multi » (access, tools, token, ID, etc.)</p><p>Developers already have enough to deal with, help them get rid of the « paperwork » e.g. meeting up accounts, check who has access or not.</p><p>Likewise, project managers or product owners have an impressive toolbox, but often lack bridges in between.</p><p>Not to talk about your non-tech users, whose on-boarding is sometimes painful.</p><p>A well-established process is sometimes your worst enemy when is comes to mobile development. Choose your toolbox on its ability to <strong>integrate</strong> your process and your users’ ways.</p><h4><strong>4. It gives you control on your data</strong></h4><p>Last but not least, keep in mind that each beta is a strategic asset which has to be protected. The data location of builds might be essential to many big companies with security matters.</p><p>For example, what if an e-commerce platform doesn’t want to be hosted on AWS? Although the GDPR eventually rose interest on this matter, the control of ones data is not still guaranteed. Still guessing why some tech tools are “free”? Start answering it with an old quotation: “<a href="https://theconversation.com/if-its-free-online-you-are-the-product-95182">if you are not paying for it, you are the product</a>”.</p><p>The entire toolchain of your developers should be protected for their safety and the ones of the users. Can you easily revoke access to a user? Can you prevent an app from launching on a previously used smartphone?</p><p>In beta app distribution, choose a tool that will be flexible enough to comply these important topics and avoid that your builds end on the loose.</p><p><strong>For at least these 4 reasons, you shouldn’t neglect this last mile service: the shipping of your builds.</strong></p><p>As many tech forged teams, we developed our own distribution solution. Today, it has become an open source, flexible and user-friendly product: <a href="http://www.shuttle.tools/">Shuttle</a>. Come talk with us about it on <a href="https://join.slack.com/t/shuttle-project/shared_invite/enQtMzc3NjQ5MTk1Mjk3LTk4YzAzZWFmMDZkYjZkMmVhZDEwOTQyNGIzZTZiZTVkODcwNTcwYmNhMTM0NjY2ZWY0NmE1OWE4NDVhNjJkMDY">Slack</a><em> </em>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gjccQ-gTK7DKjhkjqu2sgg.jpeg" /><figcaption>Damien Gosset at Mobile Talk #1, Lyon 01.15.2019</figcaption></figure><p>This article is based on the meetup <strong>Mobile Talk #1</strong> (01.15.19, Lyon) animated by <a href="https://www.linkedin.com/in/damiengosset/"><strong>Damien Gosset</strong></a>, Head of Engineering at H2G Lab.</p><p><strong>Check out the </strong><a href="https://www.youtube.com/watch?v=3tkrvlSkabE"><strong>Video</strong></a><strong> of the talk</strong> (French)</p><p><strong>Read info on </strong><a href="https://www.meetup.com/fr-FR/Mobile-Talks-Lyon/"><strong>Mobile Talks</strong></a><strong> </strong>(French)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbba6592fad5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/mobile-app-beta-testing-4-reasons-why-you-shouldnt-underestimate-your-distribution-cbba6592fad5">Mobile app beta testing : 4 reasons why you shouldn’t underestimate your distribution</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Keys to rock your User Retention Rate on your mobile app: lessons from Mobile.One 2018 ]]></title>
            <link>https://medium.com/h2g-signal/3-keys-to-rock-your-user-retention-rate-on-your-mobile-app-lessons-from-mobile-one-2018-6f7e9c18e8d4?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/6f7e9c18e8d4</guid>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[mobile-app-marketing]]></category>
            <category><![CDATA[mobile]]></category>
            <dc:creator><![CDATA[Coralie Tersigni]]></dc:creator>
            <pubDate>Thu, 17 Jan 2019 14:41:18 GMT</pubDate>
            <atom:updated>2018-12-05T15:41:40.054Z</atom:updated>
            <content:encoded><![CDATA[<p>197 billion apps were downloaded in 2017!</p><p>In such a jungle, what can make or break your app ? What do other app developers do to get so many users, and keep them?</p><p>The best way to understand this is to analyse how the major actors of the sector operate and learn from their experience. <a href="https://www.mobile.one/">The Mobile One 2018 </a>event (formerly AppDays) in Paris provided us a great occasion to learn from the best Mobile Product Teams.</p><p>Let’s dive into the secrets of apps like SeLoger, AVendreALouer, Deezer, and be inspired by their best practices.</p><p><em>(I’m sharing below what I personnally learnt during the 2-days session, according to the conferences I attended with a focus on marketing, design and UX.)</em></p><p><strong>1. Be FUN! 🎉</strong></p><p>We are are all just children who loooove to play, and our users too!</p><p>As explained by Olivier Berni, co-founder &amp; managing director of Lunabee — 86%, there are two major trends to make your user experience fun, and retain him in your app:</p><p><strong>👾 Gamify your process, to optimize your users’ engagement</strong></p><p><strong>💬 Use conversationnal interfaces to create proximity with your users</strong></p><p>For him, a successful onboarding gathers 3 major characteristics, to better engage your users:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IdJLvlvDrwppfZW2qDPkQ.jpeg" /><figcaption>Olivier Berni, co-founder &amp; managing director of Lunabee — 86%, Mobile One 2018</figcaption></figure><p><strong>2. Be Simple! 👈🏻</strong></p><p>When creating an app, we are all tempted to answer all the needs of our users, answering all the possible cases with one (or several!) dedicated feature(s), but…</p><blockquote><em>the best in the enemy of good</em></blockquote><p>…and to remain efficient, a product should be SIM-PLE!</p><p>Sandy Castagna, Head of Mobile Product at SeLoger, illustrates this perfectly in her presentation. One of their strategic choice, when SeLoger fully redesigned its app was:</p><h4><strong>🎯 a better user experience instead of a “functionnalities factory”</strong></h4><p>I also really appreciate her simple-but-efficient recipe to better prioritize the items :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rzn3wZ8gp_o9q60aBm9SCA.jpeg" /><figcaption>Sandy Castagna, Head of Mobile Product at SeLoger, Mobile One 2018</figcaption></figure><p>What you <em>MUST</em> do immediatly — what you <em>SHOULD</em> do asap — what would be <em>NICE TO HAVE</em>.</p><p>The redesign of their app showed a great success in several fields, such as App Store rating and a strong increase of visits and conversions!</p><p>Nicolas Oisel, who deals with Mobile Marketing Product and Innovation for AVendreALouer.fr explains that same choices were done to simplify their product:</p><ul><li>a <strong>clear use. “</strong><em>this is just like a joke: if you need to explain it, then there’s a problem with it</em>”</li><li>a<strong> unique interface</strong> whatever the plateform (mobile, desktop…)</li><li>a <strong>minimum viable pack of functionnalities</strong>: only the expected features are displayed at first sight</li><li>a second level of <strong>extended elements</strong> for the most advanced users</li></ul><p>These 2 examples also show us that you should not be afraid of deeply redesigning your app.</p><p>💡 Their recipe: motivating every strategic choice, measuring its impact, and engaging the whole team on the project are the best ways to succeed!</p><p><strong>3. Be CLOSE</strong> to your users, from the beginning</p><p>Deezer showed us how they differenciate from competitors and engage more users thanks to ASO, from one of the very first steps: the App Stores!</p><p>Indeed, with the help of Apptweak, they improve drastically their conversion rate by following 3 simple rules:</p><ul><li>💬 <strong>Speak your users’ language</strong>: title, subtitle and keyword fields allow to optimise the number of impressions. Don’t hesitate to explore longtrail keywords and adapt to what your users expect to find,</li><li>🌇 Refine your <strong>images to seduce</strong> the user, not to explain him what your app is doing. App icon and app preview are, according to Apptweak, the most impacting factors for downloads,</li><li>✅ Check your <strong>competitors’ elements</strong>: analyze how they appear, what they put forward and try to differenciate with an element the users are waiting for!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C56YqhuKyDYsQ94tcbAY3A.jpeg" /><figcaption>Presentation by Simon Thillay — Deezer &amp; Marie-Laure Cruyt — AppTweak</figcaption></figure><p>A second example of the importance of beeing close to your users was given by <strong>Aptus Health</strong>. Their healthcare professionnals plateform provided global and local contents to users in 5 european countries, with iOS and Android apps for each.</p><p>This was not really scalable and heavy to maintain, so, in order to keep on growing, they made the choice of “<em>thinking global and acting local</em>” by gathering all in <strong>One-App with country specified features</strong>.</p><p>Their detailed route was very interesting to hear: strategic decisions, marketing impacts and also the different steps of their well-thought user migration.</p><p>The key points of their succes was the different tactics used to drive their users during all the migration, from the first information of this project to the end of the migration itself:</p><ul><li>by <strong>talking to users directly</strong>: via push notifications, newsletters, web articles,</li><li>by building a brand new, very simple <strong>user’s journey</strong></li><li>by providing him a <strong>friction-free process</strong>: import profile from the old app, auto-login to the new one, etc.</li><li>by putting forward the <strong>incentives</strong>: lighter app, UI refresh, new features…</li></ul><p>This migration was a success: 95% of their users migrated in less than 6 months to the One-App. They also improved their retention rate and their app store rankings!</p><p>Being close to your users, communicating clearly with them is always beneficial for your retention rate, especially in the strategic gaps you are trying to cross.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2jwDD2S4rV4QaYQMigay6Q.jpeg" /><figcaption>Antoine Yassa &amp; Gabriel Soares— Aptus Health, Mobile One 2018</figcaption></figure><p>In the <a href="https://medium.com/u/4523521510d4">H2G Lab</a> team, like in Aptus Health team, we strongly believe that unifying tools is a great way to optimize processes and leads to better products. This is why, at the same time we are developing apps and co-leading mobile projects with our customers , we have created in-house tools to simplify our technical team workflows and letting them focus on what matters: building better products.</p><p>A few weeks ago, we took the step to officially release one of these internal tools to the public hoping it will help other Mobile Developpement teams out there improve their workflows and daily life.</p><p><a href="http://www.shuttle.tools/">Shuttle</a> helps Lead Developers or Product managers gather their iOS and Android teams on a single plateform, where they can store all their builds and releases and then distribute them to both internal and external users.</p><p>As well as being one of this year Mobile One edition sponsors, we also took the stage on Thursday to explain <em>why unifying teams is critical to ensure your product success</em>. You can find below the link to our presentation.</p><blockquote>Download our slides (in french🇫🇷): <a href="https://docsend.com/view/rr4efqs">Unifying the distribution of your mobile apps : iOS &amp; Android (then) hand-in-hand!</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iX3inN_aO8wNSHjrNPvHmg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K1V6AwnQyMzBuuqZjT79rA.jpeg" /></figure><p>Curious about how to unify your mobile dev teams? <a href="http://www.shuttle.tools/">Get your 30-days free trial of Shuttle here</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*1o_kRrHhLE1N86sqco5jyw.png" /><figcaption>More on <a href="http://www.shuttle.tools/">www.shuttle.tools</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tn8Yy2G4gPOTE2tiZLUO1w.jpeg" /><figcaption>Mobile One 2018, Paris</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6f7e9c18e8d4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/3-keys-to-rock-your-user-retention-rate-on-your-mobile-app-lessons-from-mobile-one-2018-6f7e9c18e8d4">3 Keys to rock your User Retention Rate on your mobile app: lessons from Mobile.One 2018 🚀</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launching Shuttle: why we created a platform to centralise your apps management and deployment.]]></title>
            <link>https://medium.com/h2g-signal/launching-shuttle-why-we-created-a-platform-to-centralise-your-apps-management-and-deployment-75ebcf7d37aa?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/75ebcf7d37aa</guid>
            <category><![CDATA[shuttle]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[creation]]></category>
            <dc:creator><![CDATA[Quentin Lemaire]]></dc:creator>
            <pubDate>Mon, 12 Nov 2018 17:01:39 GMT</pubDate>
            <atom:updated>2019-03-26T09:19:43.139Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XMCE-1-1EXA42MZqterG1Q.png" /></figure><p>It is a very special moment for the Shuttle Team, and we wanted to share it with you today.</p><blockquote>Management &amp; distribution of builds have always been a challenge for lead developers</blockquote><p>For the past months, we’ve been working on a large project, with the focus on helping to <strong>unify iOS and Android developers teams</strong>. Indeed, as mobile developers ourselves we knew the management and distribution of builds have always been a challenge for lead developers, mainly due to the partitioning of different OS. So, we decided to do something about it! and this is how it all started.</p><p>After months of hard work, thanks to our amazing team and with the help of our community of developers and beta testers, this project became <strong>Shuttle</strong>.</p><blockquote>Shuttle provides a global and relevant overview of the different builds and releases of any OS</blockquote><p>Shuttle is a single platform which centralises the management of all mobile apps and lets you deploy them easily to all your users. As a complete dashboard of the apps production cycle, Shuttle provides a global and relevant overview of the different builds and releases of any OS throughout their development. Shuttle then allows you to deploy them to both internal and external users: teams of developers, testers, customers…</p><p>After a Beta phase we are excited to announce that <a href="https://shuttle.tools/">Shuttle is available in SaaS version</a> with a <strong>30-days free trial</strong>, so that you can explore before adopting it in your apps production cycle.</p><p>Shuttle is going to increase productivity and efficiency within your organisation, and we are here to answer any questions you may have.</p><p><strong>The Shuttle Team</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=75ebcf7d37aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/launching-shuttle-why-we-created-a-platform-to-centralise-your-apps-management-and-deployment-75ebcf7d37aa">Launching Shuttle: why we created a platform to centralise your apps management and deployment.</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retrospective on Swift Island 2018]]></title>
            <link>https://medium.com/h2g-signal/retrospective-on-swift-island-2018-d5833945a216?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/d5833945a216</guid>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[wwdc]]></category>
            <dc:creator><![CDATA[Tarek M. Ben Lechhab]]></dc:creator>
            <pubDate>Thu, 12 Jul 2018 10:36:47 GMT</pubDate>
            <atom:updated>2018-07-12T16:30:14.130Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week, I had the chance to attend Swift Island 2018, <a href="https://swiftisland.nl/">the very first edition of this event</a>, on <a href="https://maps.apple.com/?q=53.114790,4.897072">Texel, Netherlands</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*59lYjkTaYgrpE0sLrrUWlg.jpeg" /><figcaption>Credits: Niels van Hoorn</figcaption></figure><p>Aside from local meet-ups and an event here and there happening in Lyon (<a href="https://h2g.io/">where we’re based</a>), I’m not the kind of guy to attend a lot of conferences, for various reasons.</p><p>But when I saw what Swift Island promised, right when they first announced it, something clicked. Was it the location, the mentors, the post-WWDC-hands-on-workshops concept, the biking, the nature, the sheep, the seals, all of the above or something else? I couldn’t tell you, but I was sold.</p><p>If you’re not familiar with Swift Island, here’s the pitch as I understood it: WWDC brings excitement and fun, but often it cools down after WWDC week, we go back to our regular schedule, and seldom have time to play with new APIs. We may even end up forgetting or not even testing something that we were eager to get our hands on when announced.</p><p>This was made famous by this very, very scientific chart by Niels van Hoorn, one of the organizers:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*foKlmJwYWazVoHxlmSieTw.png" /><figcaption><em>(Credits: Niels van Hoorn. You can hear the explanation on his talk “ARKit in practice” at MobileWarsaw 2018: </em><a href="https://www.youtube.com/watch?v=aA4Omx9kAXM"><em>https://www.youtube.com/watch?v=aA4Omx9kAXM</em></a><em>)</em></figcaption></figure><p>Swift Island aims to break this by having its conf about a month after WWDC, with workshops only.</p><p>So after an understandable initial surprise (again, not the conference type I told you, and my colleagues know it!), my boss gave me the go. (👋s to everybody at <a href="https://signal.h2g.io/">H2G Lab</a> by the way!)</p><p>Fast forward, and it’s Tuesday 3rd of July, in a lovely venue, <a href="https://maps.apple.com/?q=53.114790,4.897072">right by the Wadden Sea</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PYcAhHfztg6lPvKxoTN_0w.jpeg" /><figcaption>The venue: Prins Hendrik Hotel</figcaption></figure><p>Getting on Texel is pretty easy, we were even able to opt for a <em>hassle-free</em> ticket, for which the staff took care of everything: train/ferry tickets, and even an itinerary to get to the location.</p><p>Public transportation was easily navigable from Amsterdam to Texel (coming from a french who had never been yet to the Netherlands and doesn’t speak a single word of Dutch).</p><p>If needed we could easily contact the organization which would answer almost instantaneously and help us.</p><p>The hotel staff, the volunteers, and the organizers gave us all a warm welcome, and everything was prepared for our arrival. Clearly, a lot of work was put in, and everything went smoothly.</p><h3>Workshops</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*mKwps_2loLiUGXpP6Nkivg.jpeg" /><figcaption>This is how you could identify me 😅</figcaption></figure><p>Then, the morning after, the workshops began. The format was pretty simple, but unusual enough, and efficient:</p><ul><li>8 mentors, 8 workshops</li><li>2 days, 4 workshops each day</li><li>We could pick 3 workshops per day</li><li>Roughly 2 hours per workshop</li><li>Socializing events in the evening and on the third day</li></ul><p>The workshops I attended were, chronologically:</p><p><strong>First day</strong></p><ul><li>Siri Shortcuts by <a href="https://twitter.com/dimsumthinking">Daniel Steinberg</a></li><li>Dynamic Swift (@dynamicMemberLookup and @dynamicCallable) by <a href="https://twitter.com/dhartbit">David Hart</a></li><li>ARKit Part 1 (basics, object placing, lighting, measuring, physics…) by <a href="https://twitter.com/KateCastellano">Kate Castellano</a> and <a href="https://twitter.com/codePrincess">Manu Rink</a></li></ul><p><strong>Second day</strong></p><ul><li>Machine Learning (fundamental concepts, training using turicreate, Vision framework, and CoreML) by <a href="https://twitter.com/meghafon">Meghan Kane</a></li><li>The other new iOS12 frameworks by <a href="https://twitter.com/marmelroy">Roy Marmelstein</a></li><li>ARKit Part 2 (mostly focusing on ARKit 2 features: image tracking, multipeer world)</li></ul><p>Talking about every single thing I learned throughout those two days wouldn’t be possible, and I don’t think anybody would be interested anyway. So I’ll have to trim it down to what impacted me the most. Please keep in mind this restitution is purely subjective, on my sensibility about the topics, and what I can/envision to use day to day.</p><p>Again, let’s do it chronologically.</p><ul><li>Daniel helped us dive deep in Siri Shortcuts, and we pretty much covered everything this (crazy) new API has to offer. I genuinely think Siri Shortcuts are gonna be big for power users, perhaps for everybody, and change how we interact with our pocket computers. They just might make Siri actually useful for me! (oops 🤭)</li><li>Kate and Manu prepared so many things. They really made it straightforward and taught us in the best way possible. I never touched ARKit nor SceneKit before the workshop, and I was able to follow, understand, and apply what we were doing. Plus they provided some great tips and tricks, optimizations. The project ideas were great: multi-user synchronized scrum board on a wall, and making the animated Harry Potter newspaper.</li><li>Meghan took us from nothing, explained some concepts of machine learning (tailored to her audience: we asked so much questions it became pretty much a conversation). Then we trained our own models with turicreate (through a nice and intuitive interface via a <a href="https://jupyter.org/">Jupyter Notebook</a>) to detect whether a painting was from Dali or Van Gogh. (Yes, a nice Dutch touch 😉). Finally, through transfer learning, we were able to take a picture and Van Gogh-ify it.</li></ul><p>I have to mention that in every workshop I attended, a lot more material was available, I talked above just about what <em>I individually</em> was able to do.</p><p>Over the last few years, I noticed I enjoyed much more going to workshops rather than talks. It is perhaps due to the fact that the number of talks available online grew exponentially. At any rate, locking a few hours to dive into a topic under the training of mentor in an experience I would definitely recommend. To illustrate this, look at what an attendee made by combining two workshops, right on site:</p><h3>Bruno Scheele 🌺 on Twitter</h3><p>If you need material to convince your boss that you should go to @SwiftIslandNL, show them this. Nothing beats mentored workshops for actually being able to make great things quickly! https://t.co/UI3p32k0iK</p><h3>Socializing</h3><p>Of course, while attending such an event, one the main aspects is to get yourself acquainted with new people, share experiences, talk about our field, our products, projects.</p><p>Well, it clearly was a success as well, I met so many incredibly interesting people, whom I hope will stay friends in the years to come. (hopefully I wasn’t too pushy talking about our new product, Shuttle, <em>your custom build management and distribution platform </em>😅<em>. B</em>y the way, you can still sign up for our private beta here ➡️ <a href="https://www.shuttle.tools/">https://www.shuttle.tools</a>)</p><p>Talking with insightful people from various parts of the world, and various working environments: freelancers, workers for small to huge companies, allowed me to broaden my thinking, get a sense of belonging, and make connections that I believe will be valuable both in my personal and professional life. Don’t get me wrong: I know that this side effect is not exclusive to this conference, but I do believe that the overall setup made it easier to happen, and in particularly enjoyable contexts.</p><p>One crucial aspect was that thankfully, I didn’t notice any wrong behaviour or toxic culture that is sometimes encountered when a lot of people suddenly gather in a small place. The organizers established a clear Code of Conduct pretty early in the process. Shout out to them for that! Inclusivity and diversity were attending Swift Island as well. 😉</p><p>Here’s a thread that expresses a general feedback I would concur with:</p><h3>Abizer Nasir 🦁🦁🦁👕 on Twitter</h3><p>I&#39;m waiting for my ferry transfer so I thought I&#39;d put down some thoughts about @SwiftIslandNL</p><p>After the last workshop, a good bunch of attendees (yours truly included, although for full disclosure I have to mention I had an e-bike) made it to the lighthouse riding our bikes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*7mvONK4OuepKFmDW8CdyWQ.jpeg" /></figure><h3>To sum it up</h3><p>By now you probably got it: I had a great time at Swift Island. The idea behind it was on spot, and the execution met my expectations. I came back inspired, confident about what I learnt, and happy to have met new like-minded friends.</p><p>Of course, like in every event, there were some hiccups, but pretty minor in my opinion. WiFi was… let’s say, <em>challenging</em>, but it didn’t really impact the workshops, since many USB sticks were prepared so that every trainee could get the material without network access.</p><p>I can’t thank enough the organizers: <a href="https://twitter.com/sidneydekoning">Sidney de Koning</a> and <a href="https://twitter.com/nvh">Niels van Hoorn</a>, for putting together such a great event, always with a good mood and answers to our questions, before, during, and after the event. Of course they weren’t the only ones involved, so huge thanks are in order for the volunteers as well, the hotel staff, the mentors, and the attendees, whether we met or not.</p><p>Finally greetings to everybody I got to know, in the order I met you (yeah I know… but ordering is a big deal for me!): <em>Naufal, Esther, Fernando, Niels, Ellen, Daniel, Sidney, Donal, David, Kate, Manu, Nabil, Paul, Meghan, Audrey, Shuichi, Chris, Boris, Marijn, Vinh</em>, and everybody I may have omitted (and sorry about that if that’s the case).</p><p>Look at us, aren’t we cute?</p><h3>Swift Island on Twitter</h3><p>See you next year! 😉 Yes. We&#39;ll be doing this again! #swiftisland2018 https://t.co/xtR4iyoBFL</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5833945a216" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/retrospective-on-swift-island-2018-d5833945a216">Retrospective on Swift Island 2018</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Shuttle Private Beta launch ]]></title>
            <link>https://medium.com/h2g-signal/shuttle-private-beta-launch-36d1987841ab?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/36d1987841ab</guid>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[continuous-delivery]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Yann Hermouet]]></dc:creator>
            <pubDate>Wed, 04 Jul 2018 12:02:07 GMT</pubDate>
            <atom:updated>2018-07-05T08:55:22.003Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*CwBFuKLgrEJrvM6of9mq1A.gif" /></figure><p>Hi everyone, quick post to let you know what we’ve been doing in secret over the past months. Of course we were busy creating beautiful apps and services for our customers like <a href="https://www.lumapps.com/">Lumapps</a> , <a href="http://www.nelio.io/">Nelio</a>, <a href="http://www.projet-nu.fr/">NU!</a> or <a href="https://www.teazit.fr/">Teazit</a> but we’ve also been working hard on prepping for the launch of our new baby: <a href="http://www.shuttle.tools/"><strong>Shuttle</strong></a>!!!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1isT5z3nAxr3bnwT7dJsHA.png" /><figcaption>https://shuttle.tools</figcaption></figure><p><strong>TL;DR: H2G Lab launches its new major product</strong></p><p>Dedicated to mobile App distribution Shuttle fits at the end of your CI/CD. First built as an internal tool only, its destiny turned out to be a product for everyone to use. Until the end of August 2018 we will keep it in a Private Beta phase. We plan to release the product Open Source and operate it as a SaaS offering (Open Core baby!). If you develop mobile apps, you MUST read the article below, check our dedicated page <a href="http://www.shuttle.tools/">here</a> and request a Beta instance <a href="https://h2glab.typeform.com/to/Ygzjm1">here</a>. Of course never be shy if you have a questions or a feedback and reach out directly on Slack <a href="https://join.slack.com/t/shuttle-project/shared_invite/enQtMzc3NjQ5MTk1Mjk3LTk4YzAzZWFmMDZkYjZkMmVhZDEwOTQyNGIzZTZiZTVkODcwNTcwYmNhMTM0NjY2ZWY0NmE1OWE4NDVhNjJkMDY">here</a>.</p><p><strong>Shuttle’s prep in a few words</strong></p><p>In the mobile development world, signing, building and distributing an app build has always been a challenge. It’s a struggle to easily get the right build to the right user (dev team, testing team, customer) during the different development phases. Only in recent years has emerged a set of tools that facilitate this process. These solutions usually lie in the realm of Continuous Integration where each of them covers a different stage of the development process, from the code repo to the build itself, but rarely the distribution (internal or external). And it is that last step which Shuttle is addressing in the easiest and most flexible way.</p><p>Obviously, we are not the only team who struggled with this problem nor the first ones decided to solve it. Some smart teams shipped great solutions but all were either too broad, too complex to implement or simply too expensive. We needed a solution which could fit our workflow and lightweight enough for us to setup and maintain. As we couldn’t find the right solution we did what any good engineering team usually do: build our own…</p><p>Fast forward, we’ve been running Shuttle internally for a while now and it has reached its two main objectives:</p><p>1. It’s super efficient and <strong>fits perfectly our workflow</strong>.</p><p>2. It <strong>gets the job done</strong>: all our customers get their staged and final released builds from it, they love the simplicity and efficiency of the tool.</p><p>It was a taylor made solution for H2G Lab and we could have kept using it internally but our evolving and self-reinventing industry had others plans for us…</p><p><strong>The wake up call from the market of Apps/Builds distribution tools</strong></p><p>Over the past twelve months we witnessed an impressive diversification of the existing tools altogether with a market consolidation trend with the major players being bought and merged within existing solution portfolio. Key players in CI/CD expanded their features and services aiming at becoming “The One” developer workflow of choice (We love you GitLab but you are going everywhere). Major actors in the distribution field have been acqui-hired by mobile platform owners to ease their own proprietary process (We are looking at you HockeyApp and buddybuild!). As acquisitions goes, they are usually followed by a focus on a specific OS, leaving developers in the need for additional products in order to cover the whole mobile ecosystem. This situation leaves us with either small and independent actors susceptible to disappear at anytime; or big actors which objectives are to gather and keep the developer herd within their closed ecosystem. Not much choice and flexibility in all that…</p><p>At H2G Lab we believe developers teams should have the broader possible choice, we want many things:</p><ul><li>the leanest development processes</li><li>to have the most long-lasting workflow possible in theses processes</li><li>to compose the workflow that fits the most our needs</li><li>to choose the tools that fit the most our workflow</li><li>to choose the editors that provide these tools</li><li>to be able to operate these tools as we see fit</li><li>to pay a reasonable price for these tools</li></ul><p>Apps/Builds distribution was such a headache for our peers that we’ve decided to release Shuttle to the public, and we are on a mission to ease a bit this situation.</p><p><strong>How we are going to operate this?</strong></p><p>&gt; Open to the Core: Like the distribution model chosen by GitLab, we are going to release Shuttle Open-Source for everyone to download, implement, run, modify, adapt and improve. We are looking forward to your input!</p><p>&gt; SaaS: We are going to operate Shuttle as a SaaS offering with different data location options (hello GDPR and CLOUD Act). For those who don’t want to bother implementing, operating and maintaining the solution, we will run an instance for you.</p><p><strong>How we are going to stage this?</strong></p><p>Shuttle was a custom tool dedicated to our needs which fits in our workflow. To help other teams with different workflow our actual product development focus is on expanding Shuttle compatibility and scalability.</p><p>Until the end of August 18 we will run Shuttle in a Private Beta mode. If you want an instance to test and integrate Shuttle within your workflow, please apply here: <a href="https://tinyurl.com/ShuttlePrivateBeta">https://tinyurl.com/ShuttlePrivateBeta</a> . We’ll get back to you as soon as we can spin an instance for you.</p><p>As we get into Fall and when we feel we have captured enough feedback and comments from users we will both push the code to a public repo and launch the SaaS offering. Bear in mind that we are continuously working on the product and the offer, so things can move. One sure thing: we will introduce a Free Tier for everyone to enjoy.</p><p><strong>Finally…</strong></p><p>We will never ask it loud enough: developers from all nations, please share your thoughts, send feedback, argue, complain, adopt, contribute, discuss about anything with us, we are in this for the long haul. Planet Mars is still far away.</p><p>For more information about Shuttle, check: <a href="http://www.shuttle.tools/">www.shuttle.tools</a></p><p>To talk to us directly, join our public Slack channel: <a href="https://join.slack.com/t/shuttle-project/shared_invite/enQtMzc3NjQ5MTk1Mjk3LTk4YzAzZWFmMDZkYjZkMmVhZDEwOTQyNGIzZTZiZTVkODcwNTcwYmNhMTM0NjY2ZWY0NmE1OWE4NDVhNjJkMDY">here</a></p><p>To get notified when Shuttle is finally released Open Source, watch our dedicated Shuttle GitHub project on: <a href="https://github.com/ShuttleProject">https://github.com/ShuttleProject</a></p><p>Or any other communication means like twitter @Shuttle_Project or email at <a href="/service/mailto:contact@shuttle.tools">contact@shuttle.tools</a>.</p><p>Talk to you soon.</p><p>The H2G Lab Team</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36d1987841ab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/shuttle-private-beta-launch-36d1987841ab">Shuttle Private Beta launch 🚀</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase with Kotlin : Firebase Cloud Functions [Bonus]]]></title>
            <link>https://medium.com/h2g-signal/firebase-with-kotlin-firebase-cloud-functions-bonus-55557754b3e1?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/55557754b3e1</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[firebase-cloud-functions]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Martial Maillot]]></dc:creator>
            <pubDate>Wed, 28 Mar 2018 07:57:43 GMT</pubDate>
            <atom:updated>2018-03-28T07:57:42.837Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IpBydhG7DUWJgqs-rZB4A.jpeg" /></figure><p>In part <a href="https://medium.com/@martial.maillot/firebase-with-kotlin-introduction-part-1-of-2-39541a3fa87b">one</a> and <a href="https://medium.com/@martial.maillot/firebase-cloud-functions-with-kotlin-firebase-cloud-functions-part-2-of-2-e0d5c1d6b217">two</a>, we saw how to wrap existing JavaScript library and how to use it to create an ExpressJS app for Firebase Cloud Functions. In this bonus part, we’ll focus more on Kotlin DSL functionalities.</p><h3>Kotlin DSL</h3><p>With ExpressJS, routes are defined through methods get/post/delete/put… let’s examine this code for example:</p><pre>val app = Express()<br>app.get(&quot;/players&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Get players&quot;)<br><strong>}</strong>)<br>app.get(&quot;/game/babyfoot&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Get babyfoot games&quot;)<br><strong>}</strong>)<br>app.post(&quot;/game/babyfoot&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Update babyfoot game&quot;)<br><strong>}</strong>)<br>app.put(&quot;/game/babyfoot&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Create babyfoot game&quot;)<br><strong>}</strong>)<br>app.get(&quot;/game/pingpong&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Get pingpong games&quot;)<br><strong>}</strong>)<br>app.post(&quot;/game/pingpong&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Update pingpong game&quot;)<br><strong>}</strong>)<br>app.put(&quot;/game/pingpong&quot;, <strong>{</strong>_, res <strong>-&gt;<br>    </strong>res.send(&quot;Create pingpong game&quot;)<br><strong>}</strong>)</pre><p>All APIs are available here with their type and endpoint. Now, Let me introduce Kotlin DSL :</p><pre>app.initRoutes(<em>application </em><strong>{<br>    </strong>&quot;/players&quot; <em>bind </em><strong>{<br>        </strong>GET <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>            </strong>res.send(&quot;Get players&quot;)<br>        <strong>}<br>    }<br>     </strong>&quot;/game&quot; <em>bind </em><strong>{<br>         </strong>&quot;/babyfoot&quot; <em>bind </em><strong>{<br>             </strong>GET <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>                 </strong>res.send(&quot;Get babyfoot games&quot;)<br>             <strong>}<br>             </strong>POST <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>                 </strong>res.send(&quot;Update babyfoot games&quot;)<br>             <strong>}<br>             </strong>PUT <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>                 </strong>res.send(&quot;Update babyfoot games&quot;)<br>             <strong>}<br>         }<br>         </strong>&quot;/pingpong&quot; <em>bind </em><strong>{<br>             </strong>GET <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>                 </strong>res.send(&quot;Get pingpong games&quot;)<br>             <strong>}<br>             </strong>POST <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>                 </strong>res.send(&quot;Update pingpong games&quot;)<br>             <strong>}<br>             </strong>PUT <em>to </em><strong>{</strong>_, res <strong>-&gt;<br>                 </strong>res.send(&quot;Update pingpong games&quot;)<br>             <strong>}<br>         }<br>     }<br>}</strong>)</pre><p>How beautiful is that? If you like it, the first version of this DSL is available on my <a href="https://github.com/m-maillot/expresskt/tree/master/src/main/kotlin/com/expressjs/dsl">expressjs wrapper repo</a>, feel free to use it!</p><p>The main idea behind this is to create a wrapper overlay to adapt JavaScript to Kotlin. It’s very interesting, you don’t need to develop all library’s core functionalities, you only need to focus on how to use it 😉</p><h3>To go further…</h3><ul><li>Unit Test with kotlinJS and Firebase Cloud Functions</li><li>Improve wrappers and improve the DSL layer</li><li>How to debug my code like a boss ?</li></ul><p>If you have any other questions, leave a comment! Thanks for your time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55557754b3e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/firebase-with-kotlin-firebase-cloud-functions-bonus-55557754b3e1">Firebase with Kotlin : Firebase Cloud Functions [Bonus]</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase with Kotlin : Firebase Cloud Functions [Part 2 of 2]]]></title>
            <link>https://medium.com/h2g-signal/firebase-cloud-functions-with-kotlin-firebase-cloud-functions-part-2-of-2-e0d5c1d6b217?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/e0d5c1d6b217</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[firebase-cloud-functions]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Martial Maillot]]></dc:creator>
            <pubDate>Wed, 28 Mar 2018 07:57:12 GMT</pubDate>
            <atom:updated>2018-03-28T07:57:11.937Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IpBydhG7DUWJgqs-rZB4A.jpeg" /></figure><p>In the<a href="https://medium.com/@martial.maillot/firebase-with-kotlin-introduction-part-1-of-2-39541a3fa87b"> previous part</a>, we saw how to write a NodeJS application with Kotlin. Now, let’s apply this knowledge to create our first Cloud Functions with Kotlin 👌</p><h3>Create Firebase Cloud Functions project</h3><p>First, I recommend you to follow the <a href="https://firebase.google.com/docs/functions/get-started">firebase documentation</a>.</p><p>Resumed in two simple commands:</p><pre>npm install -g firebase-tools<br>firebase init</pre><h3>Migrate to Kotlin</h3><p>We have a project with a functions folder in it which contains the code executed by the Firebase Cloud Functions. Let’s add the Kotlin support.</p><p>Create the build.gradle at the root of the project</p><pre>buildscript {<br>    ext.kotlin_version = &#39;1.2.30&#39;<br><br>    repositories {<br>        mavenCentral()<br>    }<br>    dependencies {<br>        classpath &quot;org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version&quot;<br>    }<br>}<br><br>apply plugin: &#39;kotlin2js&#39;<br><br>repositories {<br>    mavenCentral()<br>}<br><br>dependencies {<br>    compile &quot;org.jetbrains.kotlin:kotlin-stdlib-js:$kotlin_version&quot;<br>    testCompile &quot;org.jetbrains.kotlin:kotlin-test-js:$kotlin_version&quot;<br>}<br><br>compileKotlin2Js.kotlinOptions {<br>    moduleKind = &quot;commonjs&quot;<br>    outputFile = &quot;functions/index.js&quot;<br>    sourceMap = true<br>}</pre><p><strong>Note</strong>: outputFile must point to functions/index.js</p><p>Init gradle wrapper:</p><pre>gradle wrapper</pre><p>This command creates a gradlew script with a gradle folder which contains a gradle wrapper to avoid conflicts.</p><p>Create the source folder at the root of the project</p><pre>src/main/kotlin</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SuzJ39X_J2tXBLR-1ATZtw.png" /><figcaption>IntelliJ pro tip: Flag kotlin folder as source code folder (File &gt; Project Structure…)</figcaption></figure><h3>Use wrappers</h3><p>I start by creating a set of wrappers for ExpressJS and Firebase. I use the documentation and TypeScript files definition. These wrappers try to be the most accurate as possible.</p><p><strong>ExpressJS wrappers</strong> are available on my github <a href="https://github.com/m-maillot/expresskt/tree/master/src/main/kotlin/com/expressjs/wrapper">here</a>.</p><p><strong>Firebase wrappers</strong> are available on my github <a href="https://github.com/m-maillot/firebasekt/tree/master/src/main/kotlin/com/firebase/wrappers">here</a>.</p><p>Copy all wrappers into src/main/kotlin , we’ll use them to create our first cloud function.</p><h3>First Cloud Function</h3><p>Let’s create a ToDo backend. The ToDo app will have 3 APIs :</p><ul><li>PUT /v1/task : Create a new task</li><li>GET /v1/task/{id}? : Get a task or a task list</li><li>DELETE /v1/task/{id} : Delete a task</li></ul><p>Create Index.kt file into src/main/kotlin</p><pre>external val <em>exports</em>: dynamic<br><br>fun main(args: Array&lt;String&gt;) {<br><br>    val app = Express()<br>    Admin.initializeApp(Functions.config().<strong><em>firebase</em></strong>)<br>    val db = Admin.firestore()<br><br>    // PUT method here<br>    // GET method here<br>    // DELETE method here</pre><pre><em>    exports</em>.<strong><em>v1 </em></strong>= Functions.https.onRequest(app)<br>}</pre><pre>data class Task(val id: String? = undefined, val label: String, val time: Double) : DocumentData</pre><p>Using wrappers, we have created an ExpressJS application and declared it to the Cloud Functions. We have only one dynamic type for the exports. All the code is strictly checked by Kotlin compiler 💪</p><h4>Create a new task</h4><pre>app.put(&quot;/task&quot;, <strong>{ </strong>req, res <strong>-&gt;<br>    </strong>val input = req.body.<em>unsafeCast</em>&lt;TaskInput&gt;()<br>    val inputTask = Task(label = input.label, time = Date().getTime())<br><br>    // Hack because firestore checks the object prototype and KotlinJS has his own<br>    db.collection(&quot;task&quot;).add(<em>jsObject </em><strong>{<br>        <em>label </em></strong>= inputTask.label<br>        <strong><em>time </em></strong>= inputTask.time<br>    <strong>}</strong>).then(<strong>{ </strong>ref <strong>-&gt;<br>        </strong>res.status(201).json(Task(ref.id, inputTodo.label, inputTodo.time))<br>    <strong>}</strong>).catch(<strong>{ </strong>error <strong>-&gt;<br>        </strong>res.status(500).json(error)<br>    <strong>}</strong>)<br><strong>}</strong>)</pre><p>To add a new task, we’ve created a put request. The body of the req contains a <em>json</em> already <a href="https://firebase.google.com/docs/functions/http-events#read_values_from_the_request">parsed by Firebase</a>. We “unsafe cast” the body into Kotlin data class. Params are available through the TaskInput class. We create a new document into the <strong>task</strong> collection. In case of success, we return a status 201 (CREATED) with the task content as <em>json</em>.</p><pre>data class TaskInput(val label: String? = null)<br>inline fun jsObject(init: dynamic.() -&gt; Unit): dynamic {<br>    val o = <em>js</em>(&quot;{}&quot;)<br>    init(o)<br>    return o<br>}</pre><p>jsObject is a hack to create JavaScript object dynamically. Firebase requires plain JavaScript object (<a href="https://github.com/firebase/firebase-js-sdk/blob/master/packages/firestore/src/util/input_validation.ts#L243">check the prototype</a>) but Kotlin creates objects with a specific prototype…</p><h4>Get one or more tasks</h4><pre>app.get(&quot;/<em>task</em>/:id?&quot;, <strong>{ </strong>req, res <strong>-&gt;<br>    </strong>val params = req.params.<em>unsafeCast</em>&lt;Params&gt;()<br>    if (params.id != <em>undefined</em>) {<br>        db.collection(&quot;<em>task</em>&quot;).doc(params.id).get().then(<strong>{ </strong>doc <strong>-&gt;</strong><br>            if (!doc.exists) {<br>                res.status(404).json(Message(&quot;Task not found!&quot;))<br>            } else {<br>                val data = doc.data().<em>unsafeCast</em>&lt;Task&gt;()<br>                res.status(200).json(Task(doc.id, data.label, data.time))<br>            }<br>        <strong>}</strong>).catch(<strong>{ </strong>err <strong>-&gt;<br>            </strong>res.status(500).json(err)<br>        <strong>}</strong>)<br>    } else {<br>        db.collection(&quot;task&quot;).get().then(<strong>{ </strong>snapshot <strong>-&gt;<br>            </strong>val result = snapshot.docs.<em>toList</em>().<em>map </em><strong>{<br>                </strong>Task(<strong>it</strong>.id, <strong>it</strong>.data()!![&quot;label&quot;] as String, <strong>it</strong>.data()!![&quot;time&quot;] as Double)<br>            <strong>}<br>            </strong>res.status(200).json(result)<br>        <strong>}</strong>).catch(<strong>{ </strong>err <strong>-&gt;<br>            </strong>res.status(500).json(err)<br>        <strong>}</strong>)<br>    }<br><strong>}</strong>)</pre><p>We have created a get method with optional id parameter. If an id is provided, we would get the associated document. Else, we would get all documents. You can see we use .toList().map{} which is specific to Kotlin and it works perfectly 👍</p><pre>data class Params(val id: String? = <em>undefined</em>)<br>data class Message(val msg: String)</pre><h4>Delete a task</h4><pre>app.delete(&quot;/<em>task</em>/:id&quot;, <strong>{ </strong>req, res <strong>-&gt;<br>    </strong>val params = req.params.<em>unsafeCast</em>&lt;Params&gt;()<br>    db.collection(&quot;<em>task</em>&quot;).doc(params.id).delete().then(<strong>{<br>        </strong>res.status(200).json(Message(&quot;Task has been deleted&quot;))<br>    <strong>}</strong>)<br><strong>}</strong>)</pre><p>We have created a delete method which remove the document with the id provided. We didn’t check here if the deletion was successful or not, here(You can improve it if you want 😉).</p><h3>Test it</h3><p>Last step but not least ! We want to test our new cloud functions and the good news is… it’s very easy!</p><p>Generate the JavaScript code :</p><pre>./gradlew build</pre><p>Run the local server (from functions folder)</p><pre>npm run serve</pre><p>And test any methods using one of these sample curl commands:</p><p>Create a new task</p><pre>curl -X PUT \<br>  http://localhost:5000/todomedium/us-central1/v1/<em>task \<br>  </em>-d &#39;label=New%20task!&#39;</pre><p>Get the list of tasks</p><pre>curl -X GET \<br>  http://localhost:5000/todomedium/us-central1/v1/<em>task</em></pre><p>Get the task with TASK_ID</p><pre>curl -X GET \<br>  http://localhost:5000/todomedium/us-central1/v1/<em>task/TASK_ID</em></pre><p>Delete a Task with TASK_ID</p><pre>curl -X DELETE \<br>  http://localhost:5000/todomedium/us-central1/v1/<em>task/TASK_ID</em></pre><p>Source code is available on this <a href="https://github.com/m-maillot/FirebaseFunctionToDo">github project</a></p><p>and voilà ! you can make beautiful cloud functions with Kotlin now 🎉</p><p>Bonus : <a href="https://medium.com/@martial.maillot/firebase-with-kotlin-firebase-cloud-functions-part-3-of-3-55557754b3e1">Kotlinify it</a>!</p><p>I hope you enjoyed it and feel free to share it with your fellow friends and colleagues 😉</p><p>…and if you have any questions, ask them in the comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0d5c1d6b217" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/firebase-cloud-functions-with-kotlin-firebase-cloud-functions-part-2-of-2-e0d5c1d6b217">Firebase with Kotlin : Firebase Cloud Functions [Part 2 of 2]</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Firebase with Kotlin : Firebase Cloud Functions [Part 1 of 2]]]></title>
            <link>https://medium.com/h2g-signal/firebase-with-kotlin-introduction-part-1-of-2-39541a3fa87b?source=rss----4e43a6d0bf50---4</link>
            <guid isPermaLink="false">https://medium.com/p/39541a3fa87b</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[firebase]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[firebase-cloud-functions]]></category>
            <dc:creator><![CDATA[Martial Maillot]]></dc:creator>
            <pubDate>Wed, 28 Mar 2018 07:56:10 GMT</pubDate>
            <atom:updated>2018-03-28T07:56:10.243Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6IpBydhG7DUWJgqs-rZB4A.jpeg" /></figure><p>Recently, I’ve been working on projects which using Firebase as backend. Firebase is very helpful to start a project (like a MVP) quickly. You don’t need to install and configure a server. The cost is low, even free at the beginning!</p><p>I’m developing Android mobile applications for 8 years now. I moved to kotlin last year when Google starts to support it officially. I felt in love with Kotlin.</p><p>Firebase Cloud Functions supports JavaScript or TypeScript. I’m not a huge fan of these languages. After some research, I found the <a href="https://kotlinlang.org/docs/tutorials/javascript/kotlin-to-javascript/kotlin-to-javascript.html">Kotlin to JavaScript</a> project which can generate JavaScript from Kotlin code. I’ll show you how I use it with Firebase.</p><h3>Create a Kotlin project</h3><p>To create a Kotlin project, I recommend to use IntelliJ editor. The community edition (free) supports Kotlin. It’s available <a href="https://www.jetbrains.com/idea/download">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ukw8ax4eJETCC0PDuLA6Ow.png" /></figure><p>After installation and setup, create a new project File &gt; new Project</p><p>Select Gradle then check Kotlin (JavaScript) and follow the instructions to create a new project.</p><h3>Hello world</h3><p>In src/main/kotlin create a Kotlin file. We’ll develop the famous Hello World 🙂</p><pre>fun main(args: Array&lt;String&gt;) {<br> <em>print</em>(&quot;Hello world&quot;)<br>}</pre><p>Nice! Now, we’ll generate the JavaScript code.</p><h3>JavaScript code generation</h3><p>This step is very straightforward. We want to generate the code in a js folder at the root of our project. We’ll configure the gradle dsl to generate JavaScript code into the right folder. We add these lines to your build.gradle file (at the bottom)</p><pre>compileKotlin2Js.kotlinOptions {<br>    moduleKind = &quot;commonjs&quot;<br>    outputFile = &quot;js/index.js&quot;<br>    sourceMap = true<br>}</pre><p>Here, we have defined the JavaScript module systems ( commonjs for NodeJS) and the location of the generated JavaScript code.</p><p>Now we can generate the code with ./gradlew build. We can now see generated JavaScript in js/index.js file. That’s it! 👍</p><h3>ExpressJS application</h3><p>It’s time to make our first web service. It’ll serve the string “hello world”. To make it, we’ll use <a href="http://expressjs.com/">ExpressJS</a> library. A popular and minimalist web framework for NodeJS and supported by Firebase Cloud Functions 🙌</p><p>First, we need to call existing JavaScript code (expressJS code) from Kotlin. I’ve found two approaches to link my Kotlin code to JavaScript code. Use dynamic type or wrappers.</p><h4>Using dynamic</h4><p>The first is to use the <strong>dynamic</strong> type from Kotlin. It’s a JavaScript type. You can set everything you want or call everything you want with this type. Compiler doesn’t check, error will come at runtime (like in JavaScript 😥)</p><pre>external fun require(module: String): dynamic<br><br>fun main(args: Array&lt;String&gt;) {<br> val app = <em>require</em>(&quot;express&quot;)<br> app.<strong><em>get</em></strong>(&quot;/hello&quot;, <strong>{</strong>req, res <strong>-&gt;<br>  </strong>res.<strong><em>send</em></strong>(&quot;Hello world!&quot;)<br> <strong>}</strong>)<br>}</pre><p>I’ve converted the previous snippet we saw earlier into a simple expressJS application. Let’s take a look at the require function.</p><pre>external fun require(module: String): dynamic</pre><p>We have two new keywords : <strong>external</strong> &amp; <strong>dynamic</strong>. <strong>External</strong> means the function is implemented inside existing JavaScript code (no implementation required). <strong>Dynamic</strong> is doing <em>magic stuff</em> and allow us to call a method without any checks if it already exists.</p><p>Sadly with this, we loose auto completion, compilation checks,… And, to me, it’s a shame to loose the major benefit of a typed language like Kotlin.</p><pre>external fun require(module: String): dynamic<br><br>fun main(args: Array&lt;String&gt;) {<br> val app = <em>require</em>(&quot;express&quot;)<br> app.<strong><em>unknownMethod</em></strong>(&quot;test&quot;)<br>}</pre><p>For example, we call unknownMethod on the app variable. This method doesn’t exist in the expressJS framework but the code compile 😢. Kotlin can’t do any magic. So we need to help Kotlin! To do this, the best approach is to define wrappers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/1*AELSRLVMJRlnyhBcBj_Nfg.png" /><figcaption>No compilation error…</figcaption></figure><h4>Using wrappers</h4><p>The idea is simple, as in TypeScript, we define descriptors over JavaScript code. With these descriptors, we can safely develop our project with Kotlin and avoid dynamic types 💪</p><p>So let’s do that! First, we’ll define a wrapper for expressJS:</p><pre>package com.expressjs.wrapper<br><br>@JsModule(&quot;express&quot;)<br>external class Express {<br>    fun get(route: String, callback: (req: Request, res: Response) -&gt; Unit)<br>}<br><br>external class Request<br><br>external class Response {<br>    fun send(data: String)<br>}</pre><p>Here, we wrote a basic wrapper for expressJS lib. The<strong>JsModule</strong> annotation defines the wrapped JavaScript library. Then we wrote an <strong>external class</strong>, <strong>external</strong> means that we describe class definition but the implementation is done with JavaScript (like abstract). Finally, we wrote the <strong>get</strong> method which takes a string and a callback (see <a href="http://expressjs.com/en/4x/api.html#app.get.method">get documentation</a>).</p><p>Now we’ll update our sample:</p><pre>import com.expressjs.wrapper.Express<br><br>fun main(args: Array&lt;String&gt;) {<br> val app = Express()<br> app.get(&quot;/hello&quot;, <strong>{</strong>req, res <strong>-&gt;<br>  </strong>res.send(&quot;Hello World!&quot;)<br> <strong>}</strong>)<br>}</pre><p>It’s almost the same expect that now, the compiler checks the code and we have auto completion 🙌. Now it’s impossible to call unknownMethod<strong><em> </em></strong>because the compiler will throw an error 💣</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*D2eqVk1hUpeUD-Pc59h-iA.png" /><figcaption>Compilation error ! 👍</figcaption></figure><p>Once the wrapper is defined, we can develop as usual with a beautiful and powerful Kotlin language 😍</p><h3>Test our code</h3><p>To test our code, we’ll need to start a node server. First, we need to write code to listen on a specific port.</p><pre>@JsModule(&quot;express&quot;)<br>external class Express {<br>    ...<br>    fun listen(port: Int, callback: () -&gt; Unit)<br>}</pre><p>Easily enough, we can add a wrapper for the <a href="http://expressjs.com/en/api.html#app.listen">listen</a> method of ExpressJS.</p><pre>fun main(args: Array&lt;String&gt;) {<br> val app = Express()<br> ...<br> app.listen(3000, <strong>{<br>  </strong><em>print</em>(&quot;Example app listening on port 3000!&quot;)<br> <strong>}</strong>)<br>}</pre><p>Then we’ll call it to listen on port 3000.</p><p>To finish, we need to add JavaScript’s dependencies to get access to the ExpressJS library code. To do that, just create a <strong>package.json</strong> file into js folder like this:</p><pre>{<br>  &quot;name&quot;: &quot;todo&quot;,<br>  &quot;version&quot;: &quot;0.0.1&quot;,<br>  &quot;dependencies&quot;: {<br>    &quot;express&quot;: &quot;^4.16.2&quot;,<br>    &quot;kotlin&quot;: &quot;^1.2.21&quot;<br>  }<br>}</pre><p>In this file, <strong>express</strong> and <strong>kotlin</strong> are declared as JavaScript dependencies. Now, install these dependencies using npm install command.</p><p>Start the node server:</p><p>node js/index.js</p><p>Now go to <a href="http://localhost:3000/hello">http://localhost:3000/hello</a> and you’ll see Hello World 🎉</p><p>Now that you know how to create a NodeJS server with Kotlin, go further with <a href="https://medium.com/@martial.maillot/firebase-with-kotlin-firebase-cloud-functions-part-2-of-3-e0d5c1d6b217">part 2 — Firebase Cloud Functions</a> !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39541a3fa87b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/h2g-signal/firebase-with-kotlin-introduction-part-1-of-2-39541a3fa87b">Firebase with Kotlin : Firebase Cloud Functions [Part 1 of 2]</a> was originally published in <a href="https://medium.com/h2g-signal">H2G Signal</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>