<?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[Stories by Gilles Grousset on Medium]]></title>
        <description><![CDATA[Stories by Gilles Grousset on Medium]]></description>
        <link>https://medium.com/@gillesgrousset?source=rss-4f31913026aa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*ACAWXzkLNVi8G9LUcJlMmQ.jpeg</url>
            <title>Stories by Gilles Grousset on Medium</title>
            <link>https://medium.com/@gillesgrousset?source=rss-4f31913026aa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:41:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gillesgrousset/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[React Native, la webview 2.0]]></title>
            <link>https://medium.com/inside-app/react-native-la-webview-2-0-9b9bb973cff2?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b9bb973cff2</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[webview]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Mon, 02 Mar 2020 22:07:45 GMT</pubDate>
            <atom:updated>2023-10-26T09:43:48.482Z</atom:updated>
            <content:encoded><![CDATA[<h3>React Native, the WebView 2.0</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrK6_Qad2CdDNUARd6zFQg.jpeg" /></figure><p><em>You probably already use them in your applications: webviews… Most likely to display content screens, often to share “pages” with your website, and sometimes even to create a complete application: webviews.</em></p><h3>Webview: a versatile component</h3><p>The webview is one of the oldest components in mobile development, and its principle is simple: it allows you to integrate a “web browser” into a screen, enabling the development of pages using web technologies (HTML/JS/CSS) within a native application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*UC7UC0fcu0jBByIZ" /></figure><h4>Various uses</h4><p>Excluding “shell” applications (applications consisting of a single webview to encapsulate an entire website), webviews have various applications:</p><ul><li>To display static content screens (such as terms and conditions).</li><li>To display complex screens shared with the website, which can be instantly updated without going through the app store publication process (like transactional flows such as e-commerce checkout processes).</li><li>To view related websites without leaving the main application.</li></ul><h3>The limitations</h3><p>Although very effective for sharing functionality between mobile platforms or between web and mobile experiences, webviews have their drawbacks. You may have already noticed this while using certain applications. Firstly, their performance is inferior to native screens since they execute interpreted code (unlike native, which uses compiled code). This can result in “freezes” during the initial page rendering or a slightly laggy scrolling experience.</p><p>Additionally, there may be additional network loading time when the page’s code is not integrated into the application and must be fetched from a server. Depending on the quality of the connection, this could take several extra seconds. Furthermore, transitions between native screens and webviews are often quite visible. The visual design and behavior of the service may differ slightly.</p><p>Navigation can also be confusing, as webviews have their own navigation (moving from one web page to another within the same webview), just like the encapsulating application. Often, it’s difficult to determine the effect of the “back” button in a webview — will it go back to the previous webview page or exit the webview altogether? It all depends on the app’s design.</p><h3>React Native: A Viable Alternative</h3><p>React Native is a cross-platform development framework (one codebase for both iOS and Android) that uses JavaScript to generate applications with a native look and feel.</p><p>Very popular lately, it utilizes “bindings” to allow the use of native platform UI components with JavaScript.</p><h3>As effective as a webview?</h3><p>Similar to a webview, React Native offers the following advantages:</p><ul><li>Write code once to target iOS and Android (but not shareable with the web, unlike HTML pages).</li><li>Mix React Native screens with native screens within the same application.</li><li>Update a screen without resubmitting a new version of the application (possible via Microsoft’s CodePush solution, while adhering to Apple’s guidelines on the matter — section 3.3.2).</li></ul><h3>Better than a webview?</h3><p>React Native also allows you to overcome the limitations of webviews:</p><ul><li>It produces a native rendering, making the performance of React Native screens very close, if not identical, to native screens.</li><li>Since React Native uses native components, there is no discernible seam in the user experience.</li></ul><h3>In conclusion</h3><p>Over the past decade, the webview has often been the number one component for sharing development across various platforms and channels. However, this has often left users disappointed by the experience and performance of this solution.</p><p>React Native can resolve this age-old dilemma by offering the same flexibility as a webview while providing an experience very close to native.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b9bb973cff2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-app/react-native-la-webview-2-0-9b9bb973cff2">React Native, la webview 2.0</a> was originally published in <a href="https://medium.com/inside-app">inside|app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[L’intégration continue iOS à échelle]]></title>
            <link>https://medium.com/inside-app/lint%C3%A9gration-continue-ios-%C3%A0-%C3%A9chelle-2b089d2547c0?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b089d2547c0</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Tue, 14 Jan 2020 13:23:42 GMT</pubDate>
            <atom:updated>2023-10-26T09:54:31.087Z</atom:updated>
            <content:encoded><![CDATA[<h3>Continuous Integration at Scale for iOS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BIE9IAjsYTjS6Jn03dh5zQ.jpeg" /></figure><p>[Version updated in 2023]</p><p><em>If you’re a professional iOS (or macOS) app developer, you probably use a continuous integration tool to automate testing, signing, and delivering your applications. However, those who have dealt with setting up and maintaining such a pipeline will tell you that continuous integration in the Apple world is not straightforward.</em></p><h3>Continuous Integration</h3><p>Continuous integration is like the conductor orchestrating the automation of repetitive technical tasks to save time and enhance the delivery process.</p><h4>How It Works</h4><p>A continuous integration platform generally follows a consistent structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tCMHMhXDg4rhtSFz" /></figure><p>The master server centralizes the parameters and triggers processes on appropriate runners.</p><p>Runners provide the environment required to execute requested processes. They consist of an OS and various additional tools for compiling, testing, analyzing, or deploying applications.</p><p>Each runner has a limited number of slots (the number of jobs it can process in parallel), determined based on its hardware capabilities (CPU, RAM, disk space).</p><p>To increase the processing capacity of continuous integration, you need to either upgrade the hardware or add more runners.</p><h4>Types of Jobs</h4><p>Continuous integration platforms typically operate at three levels during the development process:</p><ul><li><strong>Continuous compilation</strong>, which involves recompiling and retesting (including replaying unit tests) the entire application every time the codebase changes. This helps detect errors and regressions early.</li><li><strong>Analysis</strong>, which involves periodic compilation, running all tests, and using various analysis tools to generate metrics related to the application’s quality (code, performance, security, etc.).</li><li><strong>Delivery</strong>, which can be automated (publishing changes to a source code repository branch) or manual. It involves signing the application (a mandatory step for iOS app deployment, even for testing purposes) and publishing it on an app store or distribution platform for testers or end-users to access.</li></ul><h4>Continuous Integration for iOS</h4><p>The steps described above are combined to create a typical continuous integration process for iOS, as illustrated below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QJXH5J1khGlcgtCG" /></figure><p>In addition to outlining the stages of continuous integration for iOS, this diagram details the tools typically used to perform the necessary processes. It’s apparent that Apple provides the bare minimum to build a continuous integration pipeline.</p><p>While other platforms (such as Android and web) offer build management/task runner tools to facilitate automation at each stage, iOS developers need to juggle several command-line tools (with some created by the community to fill the gaps) to achieve the same results.</p><p>Thus, setting up a complete and reliable continuous integration process for iOS is not simple, and it has direct implications for the choice of the continuous integration solution and its maintenance (updates, capacity increases).</p><h3>Apple’s Solution: Xcode Cloud</h3><p>Since 2022, Apple has offered its own integrated continuous integration solution within Xcode: Xcode Cloud.</p><p>This solution simplifies handling continuous integration tasks for Apple devices without leaving the Xcode environment.</p><p>Its advantages include being maintenance-free, requiring no DevOps skills, and having more competitive pricing than Bitrise.</p><p>However, it is less flexible than traditional continuous integration solutions and only caters to Apple devices, necessitating another CI system to handle other platforms.</p><h3>Other Market Solutions</h3><p>The number of continuous integration solutions continues to grow. These solutions can be categorized into three groups based on their iOS support capabilities:</p><h4>Full Saas Solutions</h4><p>These solutions allow you to outsource your entire Apple continuous integration pipeline (both the master and runners) to the cloud, eliminating hardware constraints and maintenance.</p><p>Examples: Bitrise, CircleCI.</p><h4>On-Premises Solutions:</h4><p>These are classic solutions where the entire pipeline is installed locally (both the master and runners). They provide full control but require heavier maintenance and the purchase of Macs to build your runners.</p><p>Examples: Jenkins, TeamCity.</p><h4>Hybrid Solutions</h4><p>Hybrid solutions are a mix of the previous two categories. They are SaaS offerings that don’t support Apple environments, requiring you to connect your Macs to access Apple support (the master and possibly Linux runners are offered as SaaS, but you can add specific runners as needed).</p><p>Example: GitLab CI (gitlab.com).</p><h4>Choosing the Right Solution</h4><p>Each solution has its advantages and disadvantages. Below is a summary table to help you make a more informed choice:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wbSJqwhlUhOUuyuR" /></figure><p>If you already have a continuous integration platform for other technologies like web (front-end or back-end), consider its ability to support mobile platforms, which can simplify maintenance and operation.</p><h3>Multiple Runner Management</h3><p>If you require multiple runners for continuous integration, you should consider using virtualization to streamline their management.</p><h4>Complex Maintenance</h4><p>When you have only one runner, it remains relatively simple. However, it’s highly likely that a single runner won’t suffice to handle all the requests promptly, especially last-minute delivery demands.</p><p>Beyond managing a single runner for iOS, maintenance time significantly increases because you’ll need to synchronize your scripts and tools on two different machines. This becomes a laborious and repetitive manual task, which can lead to disparities between your runners at the slightest deviation, resulting in unpredictable behavior in your continuous integration pipeline.</p><h4>Automating Runner Management</h4><p>To simplify, expedite, and enhance this maintenance process, most runners are structured as Docker containers. This format facilitates scripting the creation of environments, building them, and deploying them.</p><p>Unfortunately, Docker cannot containerize macOS…</p><p>The closest solution is therefore automatic provisioning of virtual machines using Vagrant and VirtualBox (or VMWare). Vagrant is a tool for scripting the creation of a virtual machine, meaning the installation of a base image including the operating system and additional tools.</p><p>VirtualBox and VMWare, on the other hand, are two virtualization solutions (capable of running virtual machines) available on macOS.</p><p>Certainly, this solution is heavier than Docker (with longer machine creation times, increased disk space usage, and reduced performance due to virtualization). Nevertheless, it retains the main benefit of ensuring the reliability and automation of machine/runner creation.</p><p><strong>For your convenience, I’m providing a Vagrant script </strong><a href="https://github.com/insideapp-oss/xcode-gitlab-runner"><strong>here</strong></a><strong> that allows you to create a runner for GitLab CI with a single command. You’re free to enhance or modify it to suit your specific needs.</strong></p><h3>In Conclusion</h3><p>Continuous integration is a crucial tool for mobile app development in a professional environment. It’s important to consider the available solutions to build a platform that meets your requirements and constraints. Maintenance efforts for your continuous integration platform should not be underestimated, as it requires continuous updates to incorporate new features and support the latest compilation tools.</p><p>Setting up continuous integration for iOS can be relatively complex depending on your environment. Moreover, it requires Mac machines to function. If your continuous integration needs lead to setting up multiple iOS runners, consider using virtualization to simplify their management.</p><p><em>Note that I have intentionally focused on iOS continuous integration in this article.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b089d2547c0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-app/lint%C3%A9gration-continue-ios-%C3%A0-%C3%A9chelle-2b089d2547c0">L’intégration continue iOS à échelle</a> was originally published in <a href="https://medium.com/inside-app">inside|app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SwiftUI vs React Native vs Flutter : qui démarre le plus vite ?]]></title>
            <link>https://medium.com/inside-app/swiftui-vs-react-native-vs-flutter-qui-d%C3%A9marre-le-plus-vite-de9acdbe57a?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/de9acdbe57a</guid>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[swiftui]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[développement-mobile]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Mon, 06 Jan 2020 10:47:50 GMT</pubDate>
            <atom:updated>2023-10-26T09:59:07.877Z</atom:updated>
            <content:encoded><![CDATA[<h3>SwiftUI vs React Native vs Flutter: Who Boots Up Faster?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bBu32cnirqUlKU2D" /></figure><p><em>Let’s imagine a Sergio Leone-style showdown involving three different technologies for the same platform. Who will draw the fastest?</em></p><p>Cross-platform mobile development, which involves writing a single codebase for both iOS and Android, remains a hot topic. While this promise isn’t new, there have been significant advancements in this area over the past four years. It’s time to revisit the performance of each solution when compared to native development.</p><p>So, I decided to conduct a simple performance test by building the same application with three different technologies to evaluate the speed of app launch. App launch speed, which refers to the time between tapping the app icon and displaying the first screen with initial data (excluding the splash screen), is a critical key performance indicator (KPI) for any application. If it takes too long (around more than 3 seconds), the probability of users uninstalling the app in the minutes that follow is very high.</p><h3>The Competitors</h3><h4>React Native: The Most Mature</h4><p>The renaissance of cross-platform mobile development began a few years ago with React Native, driven by Facebook. It enables app development using the ReactJS web framework (with its declarative UI concept). It executes JavaScript but generates a native rendering thanks to “bindings” to native graphical components.</p><h4>Flutter: The Rising Star</h4><p>More recently, Google’s solution, Flutter, entered the race to address the same issue. It incorporates a shared graphical rendering engine (Skia) and a less-known language, Dart. It’s worth noting that, unlike React Native, Flutter’s code is natively compiled (AOT) rather than interpreted.</p><h4>SwiftUI: The Future of Native iOS Development</h4><p>SwiftUI is Apple’s new native development framework. Based on declarative UI, like its two competitors, it’s designed to provide the best integration with iOS.</p><h3>The Test</h3><p>The test app performs the following actions upon startup:</p><ul><li>Loads a screen</li><li>Sends an HTTP request to an API</li><li>Deserializes the JSON response (an array of 17 complex objects)</li><li>Displays the data on the screen</li></ul><p>The test is conducted on an iPhone 11 Pro running iOS 13.3.</p><p>The API is served by a minimalist HTTP server installed on the local network.</p><p>Time is measured with a stopwatch from tapping the app icon to displaying the data on the screen.</p><p>The test is run five times for each technology, with the app being completely restarted for each test, and HTTP caches are disabled.</p><h3>The Results</h3><p>Without further ado, here are the results (in hundredths of a second):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0aqFWAS7QcLgPh1T" /></figure><p>Measuring time on such short intervals can be challenging, and there were occasional remeasurements.</p><p>However, a slight trend emerges: SwiftUI appears to be the fastest (by a small margin) compared to Flutter.</p><p>Not surprisingly, React Native is the slowest, though this was noticeable even without a stopwatch.</p><h3>Conclusion</h3><p>I conducted this test out of personal curiosity, and I do not claim to possess an absolute truth. Nonetheless, it has allowed me to confirm the excellent performance of Flutter while reassuring on React Native’s performance, which, while not the fastest, offers entirely satisfactory performance.</p><p>Ultimately, this test demonstrates the progress made in the field of cross-platform development in recent years, bringing the boundary between cross-platform technologies and native development closer than ever before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de9acdbe57a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-app/swiftui-vs-react-native-vs-flutter-qui-d%C3%A9marre-le-plus-vite-de9acdbe57a">SwiftUI vs React Native vs Flutter : qui démarre le plus vite ?</a> was originally published in <a href="https://medium.com/inside-app">inside|app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a GitLab CI runner Virtual Machine for iOS]]></title>
            <link>https://medium.com/hack-like-a-pirate/building-a-gitlab-ci-runner-virtual-machine-for-ios-d049edabe873?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/d049edabe873</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[gitlab-ci]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Wed, 04 Dec 2019 16:10:39 GMT</pubDate>
            <atom:updated>2019-12-04T16:10:39.209Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GLFCAwARybOh_JVZex22tA.jpeg" /></figure><p><em>After years sticking with Jenkins as my CI/CD tool, I decided to switch to GitLab CI ! However, whatever CI tool you choose, integrating Apple technology to your CI workflow is always complicated….</em></p><h3>Setting up a CI with iOS support</h3><p>When it comes to building iOS (or macOS) software with a CI: it always seems easy at the beginning : a simple script calling <strong>xcodebuild</strong> command line is all you need to build and test your application. Like this :</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/054eb84fb2cc6b3744f4f00e3917a33e/href">https://medium.com/media/054eb84fb2cc6b3744f4f00e3917a33e/href</a></iframe><p>However, when you start thinking about enhancing your basic pipeline, with code signing, static analysis, publication… xcodebuild alone will let you down.</p><p>Fortunately, thanks to the open source community, you will find almost all the tools you need to fill the gap with <a href="https://fastlane.tools/">fastlane</a>, <a href="https://github.com/xcpretty/xcpretty">xcpretty</a>, <a href="https://github.com/realm/SwiftLint">swiftlint</a>, <a href="https://github.com/SlatherOrg/slather">slather</a>…</p><p>But then, you will stumble on another problem soon: how to maintain and update all those tools on your runner over time ? Especially if you have several runners and need to perform maintenance on all of them, one by one.</p><p>You will probably end up spending more time maintaining your CI than working on your projects…</p><h3>Unfortunately macOS cannot be containerized…</h3><p>A convenient way to manage CI runners is using Docker containers: there are easy to build, deploy, duplicate and upgrade.</p><p>The problem: macOS cannot be containerized…</p><p>However, my goal was to get as close as possible to the container philosophy to get runners as reliable and fast to deploy as I could.</p><p>No surprise here: I decided to use virtualization with <a href="https://www.virtualbox.org/">VirtualBox</a>, the popular desktop virtualization tool from Oracle.</p><p>But still I was missing the repeatable and automated way to install all the tools required for a runner.</p><p>I finally found what I needed with <a href="https://www.vagrantup.com/">Vagrant</a>. Vagrant is a tool used to create and provision virtual machines (that is: automating software installation on it) using a script (named Vagrantfile).</p><p>To start the virtual machine creation, just type (from the Vagrantfile directory):</p><pre>vagrant up</pre><p>Then you just have to wait… Quite a long time actually, because a macOS virtual machine is huge, and a lot of software (starting with Xcode) needs to be installed on it. But let’s stay positive: it’s automatic (once your script is fulled debugged !).</p><h3>A Vagrantfile for your iOS GitLab CI runner</h3><p>After explaining how easy and clean it is to use Vagrant to create a GitLab CI runner, I could not go away without sharing my own Vagrantfile, so that you can start creating your own runner in the next few minutes.</p><p>My script is here, with all the required instructions: <a href="https://github.com/zippy1978/xcode-gitlab-runner">https://github.com/zippy1978/xcode-gitlab-runner</a></p><p>In a few words, here is what you need to do (<a href="https://brew.sh/">Homebrew</a> is needed) :</p><ol><li><strong>Install VirtualBox</strong></li></ol><pre>brew cask install virtualbox<br>brew cask install virtualbox-extension-pack</pre><p>2.<strong> Install Vagrant and its reload plugin</strong></p><pre>brew cask install vagrant<br>vagrant plugin install vagrant-reload</pre><p>3. <strong>Clone the Github repository</strong></p><pre>git clone <a href="https://github.com/zippy1978/xcode-gitlab-runner.git">https://github.com/zippy1978/xcode-gitlab-runner.git</a> gitlab-runner<br>cd gitlab-runner</pre><p>3. <strong>Launch the Vagrant script with parameters</strong></p><p>Note: you need to download Xcode .xip archive from <a href="https://developer.apple.com/download/more/">Apple</a> to somewhere on your machine.</p><pre>XCODE_XIP_FILE=&quot;/path-to-Xcode.xip&quot; \<br>GITLAB_URL=&quot;https://gitlab.com/&quot; \<br>GITLAB_REGISTRATION_TOKEN=&quot;your-token&quot; \<br>GITLAB_RUNNER_NAME=&quot;macMachine&quot; \<br>GITLAB_RUNNER_TAGS=&quot;macos,xcode11&quot; \<br>vagrant up</pre><p>4. <strong>Configure your iOS project for GitLab CI</strong></p><p>…By creating a <strong>.gitlab-ci.yml</strong> at the root of your repository.</p><p>Here is an example performing build, test and code analysis:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3aa4c8d85980c92f66c560ce7614b0e0/href">https://medium.com/media/3aa4c8d85980c92f66c560ce7614b0e0/href</a></iframe><p>To configure the SonarQube analysis, you need to add a <strong>sonar-project.properties </strong>file at the root of the repository, as explained <a href="https://github.com/Backelite/sonar-swift">here</a></p><p><strong>start-simulator.sh</strong> pre-launches the simulator for tests. Be careful to use the same simulator as the one defined in you <strong>sonar-project.properties</strong>.</p><p><strong>run-sonar-swift.sh</strong> builds, tests, analyses and publishes results to a SonarQube server. <strong>SONAR_URL</strong> and <strong>SONAR_TOKEN</strong> are defined as GitLab CI/CD variables.</p><h3>And now ?</h3><p>Your are now ready to rule the iOS CI world :)</p><p>You can deploy as many runner as you want automatically.</p><p>You can also run one on your development machine !</p><p>I hope this will help you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d049edabe873" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hack-like-a-pirate/building-a-gitlab-ci-runner-virtual-machine-for-ios-d049edabe873">Building a GitLab CI runner Virtual Machine for iOS</a> was originally published in <a href="https://medium.com/hack-like-a-pirate">Hack Like a Pirate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Le dark mode (mode sombre) permet-il d’améliorer l’autonomie de votre smartphone ?]]></title>
            <link>https://medium.com/inside-app/le-dark-mode-mode-sombre-permet-il-dam%C3%A9liorer-l-autonomie-de-votre-smartphone-2b0fe364185e?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b0fe364185e</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[dark-mode]]></category>
            <category><![CDATA[mobile-apps]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Mon, 02 Dec 2019 11:22:24 GMT</pubDate>
            <atom:updated>2023-10-27T08:26:00.881Z</atom:updated>
            <content:encoded><![CDATA[<h3>Does Dark Mode Improve Your Smartphone’s Battery Life?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xbewGj6LAdG8-Z7lZQB5Dg.jpeg" /></figure><p><em>Dark mode is the ability to switch from a light-themed color scheme (with a lot of white) to a predominantly black or dark gray theme. It has been available on certain applications for a few years now (for example, Twitter), and it’s now possible to use it more broadly on the latest versions of iOS and Android.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0bERcIR-KUAguz10kN_0Gw.png" /></figure><h3>The Benefits of Dark Mode</h3><p>Apart from offering a change in appearance on your smartphone, dark mode is less bright and therefore less straining on your eyes.</p><p>Additionally, since a large majority of us check our smartphones before bedtime, and we know that blue light emission in low light has detrimental effects on our vision and sleep quality, dark mode can help reduce these effects by decreasing blue light emission.</p><h3>What About Battery Life?</h3><p>In several articles, it’s also mentioned that enabling dark mode can improve your smartphone’s battery life since dark colors reduce the screen’s power consumption. However, in reality, this isn’t always true.</p><p>To understand why it’s not always true, we need to look at the screen technologies used in smartphones. Today, the majority of screens use LCD (Liquid Crystal Display), which requires a constant backlight to produce colors.</p><p>In contrast, OLED (Organic Light-Emitting Diode) technology doesn’t require a backlight because each pixel emits light. The darker a pixel, the less energy it consumes.</p><p>In summary, if you have a smartphone with an LCD screen, dark mode won’t have any impact on your battery life. However, if you have an OLED screen, dark mode can save you approximately 30% of energy.</p><p>Please note that you’ll need a relatively high-end phone like an iPhone X, XS, or 11 Pro on iOS or a Samsung Galaxy or Pixel 3 on Android to benefit from an OLED screen.</p><h3>Supporting Dark Mode in an Application</h3><p>By default, an application that doesn’t support dark mode won’t be affected by the system-level dark mode activation.</p><p>To add dark mode support to an application, Apple and Google offer similar approaches:</p><ol><li>Automatic dark mode generation: The simplest method, as the system itself tries to adapt the color palette, though the results may vary depending on the colors used and how they are managed. This approach may not handle assets like bitmap images that might not be suitable for a dark background.</li><li>Manual management of a dark theme: This method allows you to make all the necessary adjustments to support dark mode.</li></ol><p>Lastly, since dark mode support is becoming the norm, it’s essential to plan for it when developing a new application. This includes visual design (creating appropriate assets for both light and dark modes) and technical design.</p><h3>En conclusion…</h3><p>Dark mode is trendy and has the added benefit of being easier on your eyes.</p><p>While it may not directly increase your battery life unless you have a specific type of phone, its system-level support makes it a feature that is likely to become a standard in the near future.</p><p>Therefore, it’s essential to consider supporting dark mode in your applications right from the start.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b0fe364185e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-app/le-dark-mode-mode-sombre-permet-il-dam%C3%A9liorer-l-autonomie-de-votre-smartphone-2b0fe364185e">Le dark mode (mode sombre) permet-il d’améliorer l’autonomie de votre smartphone ?</a> was originally published in <a href="https://medium.com/inside-app">inside|app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vivre avec de la dette technique]]></title>
            <link>https://medium.com/inside-app/vivre-avec-de-la-dette-technique-5791c1ab5e55?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/5791c1ab5e55</guid>
            <category><![CDATA[développement]]></category>
            <category><![CDATA[craftsmanship]]></category>
            <category><![CDATA[dette-technique]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Mon, 18 Nov 2019 10:25:12 GMT</pubDate>
            <atom:updated>2023-10-27T08:32:21.117Z</atom:updated>
            <content:encoded><![CDATA[<h3>Living with Technical Debt</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xuqVSAjoOI8FgCymFzm_Yw.jpeg" /></figure><p><em>The quality of an application can be likened to an iceberg: there’s what the user sees, which we can call “perceived quality,” and beneath the waterline lies what isn’t visible: “technical quality.” Often overlooked, whether intentionally or not, this hidden area holds technical debt, which, if left unmanaged, can jeopardize product roadmaps and demotivate even the most dedicated developers.</em></p><h3>The Analogy of Technical Debt</h3><p>The term “technical debt” was coined by Ward Cunningham in 1992. Borrowed from the finance context, it is used to express issues related to the design and quality of software. The level of technical debt in software directly impacts velocity and, consequently, the cost of development.</p><p>Poor design and quality can limit the code’s maintainability and introduce numerous bugs and regressions with each update. This results in increased development time (due to code complexity and the need for significant changes, often lacking automated testing). Over time, software with unmanaged technical debt will inevitably affect developers’ velocity and become more expensive.</p><p>Increasing development costs over time for a similar functional scope indicate a technical debt problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/0*HFVTuFELaIpg_je5" /></figure><p>Beyond budget and time-to-market concerns, the morale of development teams should not be underestimated. Working on a technically debt-laden project without any measures to address the issue is neither rewarding nor motivating. Falling behind the standards, spending more time on fixes than on features (often in an increasingly stressful environment) does not encourage developers to perform at their best. It can even drive them to leave, which also incurs additional costs.</p><p>A project with a high turnover of development teams is also symptomatic of a technical debt problem.</p><h3>Two Types of Debt</h3><p>Technical debt is a scourge. But why is it generated? There are many possible causes of technical debt, but they can be grouped into two categories: unintentional debt and intentional debt.</p><p><strong>Unintentional debt</strong> results from introducing poor practices into the code due to a lack of standards, insufficient architectural considerations, or team inexperience. It is more challenging to control because it’s more difficult to grasp.</p><p><strong>Intentional debt</strong>, as the name suggests, is contracted intentionally to address a specific problem, typically related to deadlines or budgets. In this case, debt is generated through shortcuts or “quick wins” to “borrow” development time. However, like any loan, it must be repaid later to avoid sacrificing the long-term technical quality of the project (e.g., planning a dedicated sprint to address it).</p><h3>Measure to Control</h3><p>All software projects have technical debt. The goal is not to eliminate it entirely but to control and manage it effectively. Since it’s challenging to improve something that cannot be measured, it’s essential to have some indicators for technical debt as early as possible in a project.</p><p>There is no foolproof, universal method to measure technical debt, and each project can create its own indicator as long as it remains consistent throughout the project’s lifecycle. It’s also possible to automate this calculation using SonarQube, the standard tool for static code analysis. SonarQube is based on code defects and the SQALE method to produce indicators on technical debt, such as debt ratio and the estimated time to repay it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/532/0*LIRyKFF9CiH1n6rk" /></figure><p>It’s important to note that technical debt is not limited to the source code but also encompasses all technical elements surrounding the project, including infrastructure and development and automation tools.</p><h3>Effectively Addressing Existing Debt</h3><p>Addressing existing technical debt in a sizable, older project without previous debt analysis can seem daunting at first. However, not all existing debt must necessarily be resolved. In software, there is code that doesn’t change, known as “legacy code”: old, non-modular, and lacking unit tests but proven stable over the years. Such code should not be addressed, as it would introduce unnecessary risks and costs to the project.</p><p>It can be more beneficial to encapsulate this code and create a clean interface to prevent contamination with cleaner code in the future. Like non-evolving code, it’s also essential to assess the longevity of indebted code modules and evaluate the need to address debt in modules that will be abandoned or rewritten in the short or medium term.</p><p>Regarding the treatment of existing debt, two practices should be considered based on the project’s goals and the impact of the debt. The first is applying Robert C. “Uncle Bob” Martin’s Boy Scout Rule, which involves cleaning up existing debt in each source file you modify during maintenance or software evolution (ideally, writing missing unit tests). This rule, when followed by the entire team, leads to continuous debt correction.</p><p>The second practice is implementing a cleanup campaign, dedicated to reducing debt on one or more high-priority code modules. It’s a thankless and tedious task but becomes necessary when the impact of debt becomes too significant to ensure the project’s smooth progress.</p><p>A tool like SonarQube can assist in conducting this type of campaign by classifying anomalies by severity and category and tracking assignments and validation of corrections.</p><h3>Containing the Debt</h3><p>Whether at the start of a project or following a debt reduction campaign, it’s crucial to avoid falling into what I call the “clean your room” phenomenon (you’ll understand if you have children). In other words, letting new technical debt accumulate unchecked.</p><p>To prevent this, it’s necessary to establish (or ensure the proper application of existing rules) a set of standards and norms, including the following:</p><ol><li>Define development standards: Create style guides, best practice guides, README files, and other documentation to establish standards and facilitate onboarding of new developers to the project.</li><li>Introduce practices favoring quality code: Implement Test-Driven Development (TDD), pair programming, and code reviews.</li><li>Set up automated monitoring: Implement testing on a Continuous Integration platform and perform static code analysis.</li></ol><h3>Our Recommendations</h3><p>Technical debt is inherent to software development, and it exists everywhere. It has an impact on the long-term development cost of software. Ignoring it is a mistake.</p><p>At inside|app, we recommend:</p><ol><li><strong>Defining reliable indicators to measure technical debt</strong> and, most importantly, <strong>monitoring its evolution</strong> over time.</li><li><strong>Striking a balance between maintainability and overinvestment</strong> by accepting some level of debt (e.g., old code or code expected to evolve or disappear soon).</li><li><strong>Establishing development standards and practices</strong> to ensure the quality level aligns with project or organization expectations.</li><li><strong>Making the management of technical debt a motivational tool and challenge for developers</strong>, relying on measurement tools, daily feedback, and gamification mechanisms (e.g., using the Quboo tool).</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5791c1ab5e55" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-app/vivre-avec-de-la-dette-technique-5791c1ab5e55">Vivre avec de la dette technique</a> was originally published in <a href="https://medium.com/inside-app">inside|app</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[L’état du multi-plateforme sur le mobile en 2018]]></title>
            <link>https://medium.com/hack-like-a-pirate/l%C3%A9tat-du-multi-plateforme-sur-le-mobile-fac70191c57a?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/fac70191c57a</guid>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[french]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Mon, 30 Jul 2018 18:05:54 GMT</pubDate>
            <atom:updated>2019-08-15T16:46:55.459Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*I2jAxFXa9uLXuKzncWNXqg.png" /></figure><p><em>Le développement multi-plateforme (un seul code pour plusieurs OS / périphériques) est un sujet intarissable, plus particulièrement sur mobile, ou nous avons vu un nombre de solutions important défiler ces 6 dernières années.</em> <a href="https://medium.com/airbnb-engineering/react-native-at-airbnb-f95aa460be1c"><em>AirBnB a relancé cet éternel débat le mois dernier</em></a><em> en annonçant l’abandon de React Native pour le développement de ses applications. Voilà une excellente occasion de refaire le point sur l’intérêt du multi-plateforme ainsi que sur les différentes solutions du moment pour en faire.</em></p><p>Depuis l’avènement de l’informatique et la prolifération des machines et systèmes, une thématique revient de manière redondante à travers les âges, une sorte de Saint Graal : le multi-plateforme, ou comment utiliser un seul code pour adresser plusieurs périphériques / systèmes d’exploitation / écrans.</p><p>Grâce aux standards web, nous nous en approchons beaucoup, puisque l’on peut rendre accessible un service sur plusieurs navigateurs / systèmes, et même plusieurs formats d’écrans avec le Responsive Web Design.</p><p>Cependant, l’arrivée des smartphones a bouleversé l’ordre établi : nous sommes repassés sur des “ applications “ avec un code spécifique à chaque plateforme : mais cela n’a certainement pas mis fin aux débats sur le multi-plateforme, bien au contraire.</p><h3>Quel est l’intérêt du développement multi-plateforme sur mobile ?</h3><p>Si les débats autour du multi-plateforme suscitent tant d’intérêt, c’est bien évidemment parce que la mutualisation de code a un impact potentiel sur les coûts : <strong>moins de code à écrire, moins de code à maintenir</strong>.</p><p>Mais il y’a également un autre aspect à ne pas négliger : <strong>la montée en compétences sur les technologies natives coûte cher</strong> elle aussi. En effet, le développement natif nécessite une expertise et des outils spécifiques. Or une partie des solutions multi-plateforme est basée sur des technologies web, plus répandues, qui rendent la montée en compétences des développeurs plus simple et plus rapide.</p><h3>Les spécificités du développement mobile</h3><p>Avant de faire le tour des solutions multi-plateforme du moment, je pense qu’il est important de cerner les spécificités principales liées au développement d’une application mobile.</p><h3>Le développement mobile : c’est du code front</h3><p>La première chose à savoir, c’est que <strong>le développement d’une application est essentiellement un travail de développement “front”</strong>, c’est à dire : travail sur les composants graphiques, animations et navigation. Pourquoi autant de “front” ? Car sur la plupart des applications, la majeure partie des règles métier est portée par des webservices que l’application interroge pour consommer et mettre en forme les données. La répartition du code dans une application est donc environ 70% du code “front”, pour seulement 30% de code “métier” : <strong>le code touchant à l’interface graphique est donc le plus important à mutualiser</strong> pour que le développement multi-plateforme représente un réel intérêt.</p><h3>La performance est un critère majeur</h3><p>La deuxième chose à savoir est qu’ <strong>un utilisateur de smartphone est exigeant</strong> : il a plein d’applications à portée de main, et si son expérience est mauvaise dès sa première utilisation, il la désinstallera très rapidement.</p><p>Au-delà du design qui doit être bon, <strong>il faut donc que la performance technique soit au rendez-vous</strong> et éviter que l’interface “accroche sous les doigts” et minimiser les temps d’attente au maximum.</p><h3>Les stores d’application : une vitrine, mais aussi un club fermé où il faut montrer patte blanche</h3><p>La troisième chose à savoir est qu’ <strong>une application mobile n’existe que si elle est présente sur un store d’applications</strong> (App Store, Play Store) pour être en visibilité des utilisateurs et facilement téléchargeable. Or la présence sur les stores nécessite d’en respecter les règles et contraintes.</p><p>Ces règles et contraintes sont souvent techniques : versions de SDK / outils de développement imposées, qualité / stabilité, … et sont bloquantes pour la publication d’une application si elles ne sont pas respectées. C’est un point non négligeable à prendre en compte lorsqu’un développement multi-plateforme est envisagé car l’outil / framework utilisé devra être en conformité avec ces règles là, qui évoluent à chaque mise à jour des outils de développement natifs.</p><h3>Quelques solutions pour faire du multi-plateforme sur mobile</h3><p>Que cela soit clair avant d’aller plus loin : <strong>le développement natif</strong>, spécifique à chaque plateforme, <strong>reste la méthode la plus performante et satisfaisante en terme d’expérience utilisateur</strong>, d’autres alternatives permettant des résultats similaires seront peut-être disponibles dans le futur, mais ce n’est pas le cas aujourd’hui : il y’a toujours un prix à payer lorsque l’on développe du multi-plateforme.</p><h3>La plus simple : la Webview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*5Q3r693NocaGmL3X.png" /></figure><p>La solution la plus simple pour mutualiser du code aujourd’hui est l’utilisation d’une Webview : un composant natif qui permet d’afficher des pages web.</p><p>Peut-être mise en place sans framework spécifique ou en utilisant <a href="https://cordova.apache.org/">Apache Cordova</a>.</p><p>Une fois la coquille (nom de la partie native qui permet d’afficher la webview) développée, le reste du <strong>code se fait avec des technologies web et ne nécessite pas de connaissance particulière sur iOS ou Android</strong> : ce sont les même pages web qui sont ensuite affichées sur les 2 OS.</p><p><strong>Les avantages</strong></p><ul><li>Réutilisation maximale du code</li><li>Ne nécessite pas de compétence en développement mobile natif</li></ul><p><strong>Les inconvénients</strong></p><ul><li>Expérience utilisateur pauvre (fluidité affichage, réactivité…)</li><li>Phases de recette parfois laborieuses pour uniformiser les rendus sur les différentes plateformes et versions d’OS.</li></ul><h3>L’ovni : Xamarin</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*j4JVHuytYqM3pKKa.png" /></figure><p>Xamarin est un outil avec une approche différente des autres solutions multi-plateforme : il ne fait <strong>pas abstraction des frameworks natifs, mais propose un langage commun pour le développement : C#</strong>.</p><p>La mutualisation de code n’est donc pas totale, puisque même si il n’y a qu’un seul langage de développement, l’adhérence aux outils natifs reste forte.</p><p>Côté front : il existe Xamarin.Forms pour mutualiser les composants graphiques.</p><p><strong>L’avantage</strong></p><ul><li>Un seul langage de développement</li></ul><p><strong>Les inconvénients</strong></p><ul><li>Nécessite des développeurs qui maîtrisent les plateformes natives en plus de l’environnement Xamarin.</li><li>Forms est assez limité et n’est pas assez fiable. Il est souvent nécessaire d’écrire du code front spécifique. Or sans possibilité de mutualiser le code front : la solution perd une grosse partie de son intérêt.</li></ul><h3>Du rendu natif avec un seul code : React Native</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*YwI2W5yqtjMlD18Z.png" /></figure><p><a href="https://facebook.github.io/react-native/">React Native</a> est une solution de développement mobile natif basée sur ReactJS, framework de développement web populaire initié par Facebook.</p><p>Tout comme ReactJS : <strong>le développement de React Native se fait en Javascript (JSX), mais a la particularité d’utiliser des composants natif pour faire le rendu des vues</strong>.</p><p><strong>Les avantages</strong></p><ul><li>Des vues natives : une expérience similaire à une application native</li><li>Utilisation de Javascript : langage de développement populaire et répandu</li><li>Réutilisation des modules ReactJS existants possible</li><li>Près de 100% du code est mutualisable entre iOS et Android</li><li>Possibilité d’intégrer React Native uniquement sur quelques vues d’une application native (non intrusif).</li></ul><p><strong>Les inconvénients</strong></p><ul><li>Le framework est encore jeune et évolue vite : la maintenance d’une application peut générer beaucoup de refactoring à moyen terme.</li><li>Nécessite tout de même quelques connaissances des plateformes natives</li></ul><h3>Le petit nouveau : Flutter</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*syk5w98umy6wzPQg.png" /></figure><p>Flutter est une nouvelle solution de développement multi-plateforme poussée par Google.</p><p>Cette solution se rapproche de React Native puisqu’un seul code permet de générer des interfaces graphiques natives sur iOS et Android.</p><p>Il y a cependant 2 différences majeures :</p><ul><li>le <strong>code est intégralement compilé en natif,</strong> ce qui permet d’obtenir des performances supérieures aux autres solutions.</li><li>le <strong>langage de développement est le Dart</strong>, un langage poussé par Google, mais assez marginal pour le moment.</li></ul><p><strong>Les avantages</strong></p><ul><li>Des performances natives</li><li>Près de 100% du code est mutualisable entre iOS et Android</li></ul><p><strong>Les inconvénients</strong></p><ul><li>La solution est jeune et l’écosystème à peine naissant (peu de package existants)</li><li>Nécessite d’apprendre Dart</li></ul><h3>Une meilleure intégration des technologies web : les Progressive Web Apps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/0*Qn8DL7E_ioeqR_2O.png" /></figure><p>Les Progressive Web Apps (PWA) sont des applications web spécialement packagées pour fonctionner comme des applications natives sur les OS mobiles.</p><p>En comparaison avec les Webviews classiques, <strong>elles ne nécessitent pas d’avoir à gérer une coquille native, et peuvent accéder à certaines fonctionnalités jusque là réservées aux applications natives</strong> comme le mode hors ligne, les notifications, l’exécution de traitements en tâche de fond, etc.</p><p><strong>Les avantages</strong></p><ul><li>Permet de faire des applications plus riches en utilisant des technologies web.</li><li>Ne nécessite pas de compétence en développement mobile natif.</li></ul><p><strong>Les inconvénients</strong></p><ul><li>La réutilisation du code n’est pas optimale entre iOS et Android : l’accès aux fonctionnalités native n’est pas encore normalisé.</li><li>Les performances restent en dessous de ce que peuvent proposer les applications natives.</li><li>Aujourd’hui seul le Play Store de Google permet de publier des PWA : le fait de ne pas pouvoir le faire sur l’App Store d’Apple est très pénalisant pour la visibilité des l’applications.</li></ul><h3>Le mot de la fin</h3><p>A travers cet article, j’espère avoir pu vous éclairer sur les problématiques et possibilités du développement multi-plateforme sur mobile. Il existe beaucoup de solutions, de plus en plus matures, pour mutualiser les efforts de développement, et celles-ci sont en constante évolution.</p><p>Cependant, vous l’aurez compris, si votre critère numéro un est l’expérience utilisateur : le développement natif, certes plus coûteux, reste le meilleur choix possible à ce jour.</p><p>Il est par contre tout à fait pertinent d’envisager du développement multi-plateforme si le design est étudié en conséquence afin d’impacter au minimum l’expérience. Selon moi, React Native est de loin la meilleure solution pour un développement multi-plateforme de qualité à l’heure actuelle, même si Flutter est à surveiller de près.</p><p><em>Originally published at </em><a href="https://www.backelite.com/fr/2018/07/letat-du-multi-plateforme-sur-le-mobile/"><em>https://www.backelite.com</em></a><em> on July 30, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fac70191c57a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hack-like-a-pirate/l%C3%A9tat-du-multi-plateforme-sur-le-mobile-fac70191c57a">L’état du multi-plateforme sur le mobile en 2018</a> was originally published in <a href="https://medium.com/hack-like-a-pirate">Hack Like a Pirate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vos apps mobiles survivront-elles à 2018 ?]]></title>
            <link>https://medium.com/hack-like-a-pirate/vos-apps-mobiles-survivront-elles-%C3%A0-2018-4d2bdead32d2?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d2bdead32d2</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[mobile-application]]></category>
            <category><![CDATA[french]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Wed, 07 Mar 2018 21:48:34 GMT</pubDate>
            <atom:updated>2019-08-16T21:38:14.880Z</atom:updated>
            <content:encoded><![CDATA[<h3>Vos apps mobiles survivront-elles à 2018 ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cHeMVAJmfrYOGkhrvEE58Q.jpeg" /></figure><p><em>Sur leurs stores d’applications, ce sont Apple et Google qui imposent la cadence et cette année plus particulièrement encore !</em></p><p>En effet, à partir du 1er avril, toutes les nouvelles applications soumises à la validation chez Apple devront impérativement supporter le dernier outil de développement et ses SDKs (Xcode 9) ainsi que le format d’écran spécifique de l’iPhone X sorti fin 2017.</p><p>Ce n’est pas réellement une nouveauté de la part d’Apple d’imposer le support de nouveaux périphériques et outils dans son process de soumission, et il y’a d’ailleurs fort à parier que dans quelques mois le support Xcode 9 / iPhone X sera étendu aux mises à jour d’applications également.</p><p>Ce qui est nouveau par contre, c’est que Google va également mettre en place des contraintes techniques similaires sur son Play Store suite à son annonce de fin 2017 ( <a href="https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html">https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html</a>).</p><p>La première échéance arrivera en aout avec l’obligation de publier des nouvelles applications sur le Play Store avec un SDK “récent” (pas plus de détails sur le numéro d’API exact).</p><p>La seconde échéance sera pour novembre 2018 et généralisera l’obligation d’un SDK “récent” aux mises à jour d’applications également.</p><p>Il ne faut pas négliger la quantité de travail demandée pour se conformer aux nouvelles contraintes d’Apple et de Google sur une application existante. En effet, en fonction de la “taille” de l’application (nombre de fonctionnalités / écrans), de sa date de conception et de son niveau de maintenance, la mise à niveau demandée peu prendre de quelques jours à plusieurs 10aines de jours et les aspects suivants seront à traiter :</p><ul><li>Réécriture des portions de code dépréciées pour s’adapter aux nouvelles versions des SDKs</li><li>Valider / mettre à niveau les bibliothèques tierces : Open Source ou propriétaires (en espérant qu’une version compatible existe bien !)</li><li>Pour le cas de l’iPhone X : repasser sur tout les écrans de l’application pour les adapter</li><li>Et pour finir : refaire une recette complète pour tester la non régression</li></ul><p>Si vos applications sont critiques pour votre activité, je vous suggère d’évaluer dès maintenant les risques liés à ces nouvelles contraintes.</p><p><em>Originally published at </em><a href="https://blog.grousset.fr/2018/03/07/vos-apps-mobiles-survivront-elles-a-2018/"><em>https://blog.grousset.fr</em></a><em> on March 7, 2018.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d2bdead32d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hack-like-a-pirate/vos-apps-mobiles-survivront-elles-%C3%A0-2018-4d2bdead32d2">Vos apps mobiles survivront-elles à 2018 ?</a> was originally published in <a href="https://medium.com/hack-like-a-pirate">Hack Like a Pirate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RomTaStick MKII+]]></title>
            <link>https://medium.com/hack-like-a-pirate/romtastick-mkii-7751de842813?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/7751de842813</guid>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[retro-gaming]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Fri, 18 Aug 2017 08:18:28 GMT</pubDate>
            <atom:updated>2019-08-16T21:38:51.703Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Here is a new version of the RomTaStick, the 3D printed console.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/0*srZMFRZ0mbND4X1N.jpg" /></figure><p>This version is quite the same as the MKII but with a central LCD display and buttons used to add extra options and display game information.</p><p>You can build one, using my instructions site <a href="https://romtastick.grousset.fr/">here</a>.</p><p><em>Originally published at </em><a href="https://blog.grousset.fr/2017/08/18/romtastick-mkii/"><em>https://blog.grousset.fr</em></a><em> on August 18, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7751de842813" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hack-like-a-pirate/romtastick-mkii-7751de842813">RomTaStick MKII+</a> was originally published in <a href="https://medium.com/hack-like-a-pirate">Hack Like a Pirate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RomTaStick: the 3D printed arcade console]]></title>
            <link>https://medium.com/hack-like-a-pirate/romtastick-the-3d-printed-arcade-console-d2f27b55d603?source=rss-4f31913026aa------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2f27b55d603</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[3d-printing]]></category>
            <category><![CDATA[retro-gaming]]></category>
            <category><![CDATA[diy]]></category>
            <dc:creator><![CDATA[Gilles Grousset]]></dc:creator>
            <pubDate>Fri, 29 Jul 2016 17:49:56 GMT</pubDate>
            <atom:updated>2019-08-15T16:56:19.745Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*TIsAeKJjvJYB1OTq3D1dVw.jpeg" /></figure><p><em>A few months ago I started exploring another side project involving a 3D printer:</em><strong><em> designing and printing a 3D arcade console, RomTaStick.</em></strong></p><h3>Never say never…</h3><p>I bought my first <a href="https://fr.wikipedia.org/wiki/Raspberry_Pi">Raspberry Pi</a> nano computer (model B) back in 2013 and was looking for a new, interesting project to use it for. <strong>At the time, the two most popular project types were: media centers and retro-gaming consoles / arcade cabinets</strong>. As I wasn’t interested in doing what everyone else was doing, I decided to do something different. Yet at the end of last year, things changed after<strong> I bought an </strong><a href="https://en.wikipedia.org/wiki/Ultimaker"><strong>Ultimaker 2</strong></a><strong> 3D printer.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*15eBJPn7nzqO5nYJ.jpg" /></figure><p>After testing it on various small projects I decided to find something bigger to print to improve my 3D printing skills, which brought back my idea to create a retro-gaming console!</p><p>In the end, Justin Bieber was right: <em>never say never!</em></p><h3>Designing the console</h3><p>Before diving into design, I had to find out what I really wanted to do: <strong>this is very important when working on a side project because in such projects you can easily run short of time or money</strong>.</p><p>There are many, many ways to build an arcade console. But what I wanted was really basic:</p><ul><li><strong>A plug’n’play system so that my kid can use it</strong></li><li><strong>At least two real arcade controllers with hotkeys to exit games or add credits</strong></li><li><strong>Being able to play four-player games</strong></li></ul><p>On the other hand, I had some limitations to consider:</p><ul><li><strong>My printer cannot print objects larger than 22 centimeters</strong></li><li><strong>Keeping in mind the gamers’ comfort, buttons and sticks should not be too close</strong></li><li><strong>The larger the console, the most difficult it is to handle and the longer it takes to print</strong></li></ul><p>Given all of these points, I had to make a few tough choices: I decided to stay with two arcade controllers, but to allow users to plug USB controllers on the side of the console to allow four-player gaming.</p><h3>Finding parts</h3><p>Once I had an idea and rough sketches of what I wanted, I had to find which hardware parts were available to build the thing and, very important for the modelling part, determine their dimensions.</p><p>Here is the first list of material I came up with:</p><ul><li><strong>A Raspberry Pi 3 with its power adapter and an SD card</strong>: the latest Raspberry Pi model with Bluetooth and Wifi support (ideal for uploading game ROMs without plugging / unplugging network cable on each update)</li><li><strong>A 2-arcade controller set with a USB controller </strong>bought at <a href="https://www.ultracabs.co.uk/"><strong>ultracabs.co.uk</strong></a>: using a USB controller is safer than plugin controls on the Raspberry GPIO and it is supported by most emulators</li><li><strong>2 panel mount USB plugs</strong> to plug extra controllers into the console</li><li><strong>A panel mount micro-USB plug</strong> for the power adapter</li><li><strong>A panel mount HDMI plug</strong> for the display output</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*wFEYl1Efq5zHgKRU.jpg" /></figure><h3>Modelling</h3><p>Once the main parts were ordered, and while waiting to receive them, I started the modelling of the console.</p><p><strong>I modelled a first draft while keeping in mind my printer’s size limitations</strong>, and tried to make the most 3D printed-friendly model to avoid additional problems when it was time to print (such as overhangs). I used <a href="https://www.sketchup.com/products/sketchup-make">SketchUp Make</a> for that.</p><p>As I wanted to create a feeling as close as possible to a real arcade, I did some research on how I could place controller buttons in such a way that one would think of arcades whilst playing. This took me some time because there are many “academic” layouts depending on the country, the number of buttons, and the type of games you want to play.</p><p>After some testing, I decided to go for a standard Japanese arcade layout remixed (first column is lower, others are aligned).</p><p>At this step, <strong>I decided to print a scaled down version of my draft</strong> to make sure everything was right before proceeding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iOE2TBUmQI9vncTD.jpg" /></figure><p>As I was happy with my scaled down model, <strong>I decided to finish the work and added missing details, such as: screw holes, plug holes, supports for the Raspberry PI and the joystick controller</strong> (actually supports for 2 controllers: one on the left and one on the right as I heard that some software may have difficulties to detect 2 controllers on the same board).</p><p>I also added a lid on top of the Raspberry to be able to access it when the console is closed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oehiAYL2SPqfdWHk.png" /></figure><h3>Unit testing parts</h3><p>3D printing is long, very long… So <strong>before launching the final print of all my parts, I made some unit test prints</strong> on small relevant parts of the model to make sure that everything was in its right place and was the right size.</p><p>Here are some tests I made :</p><ul><li>How parts fit together (joints, corners)</li><li>Check the sizes of: screw holes, joystick holes, button holes</li><li>PCB supports (for joystick, USB controller and Rasperry Pi)</li><li>Full size print (to make sure it would fit into the printer)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gIZzrPKcInnhzCvj.jpg" /></figure><p>After a few adjustments, I was ready for the final print to begin!</p><h3>Go time: the final print</h3><p><strong>Printing the whole box took more than 72 hours, and a lot of failed tries…</strong></p><p>Why did it fail? This was <strong>mainly because of the printer’s build plate leveling</strong>: when printing large objects, the nozzle must be as close as possible to the plate (but not too close, of course) to make sure the first layer of material sticks well to the build plate, otherwise warping occurs. <strong>I also had to add a brim</strong> around objects to make sure they don’t move until the print finishes.</p><p>For materials: I used <a href="https://colorfabb.com/co-polyesters/ngen">ColorFabb nGen</a> for lower parts (rendering is not as smooth as PLA but supposed to be stronger) and classic PLA for top parts.</p><p>I also used <a href="https://www.dimafix.com/"><strong>DimaFix</strong></a><strong> anti-adhesive spray instead of a glue stick for build plate adhesion</strong>: it made large parts easier to remove from build plate, and also a nice and flat rendering of the object on the build plate side.</p><p>For more details on print settings, take a look at the <a href="https://www.thingiverse.com/thing:1685194">printing instructions</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qxFQrN2as1pH3POP.jpg" /></figure><h3>Assembly</h3><p>Once I received all the components and all the parts were printed, it was time was the most exciting part of the process: <strong>putting them all together!</strong></p><p>I began by mounting sticks and buttons on the top parts and started wiring them.</p><p>Then I moved to the bottom part to assemble the 3 parts, put the Raspberry Pi and the USB controller board inside, and screwed in and plugged in the panel mounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BGbkRwIDUZqn2sFg.jpg" /></figure><p><strong>However, I started having problems when I first tried to put the top and bottom parts together…</strong></p><p>The first issue: the <strong>controller wires were too short for the right controller</strong>. I had to unscrewed the controller board and move it closer to the center.</p><p>The second issue: <strong>the left stick was hard to put in place because it was touching the left USB panel mount plug</strong>. Fortunately: the panel mount is in soft plastic and after pushing on it I was able to put everything inside the box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XxojUuf5qZjZRR1g.jpg" /></figure><p><strong>The last problem was the most annoying: the start buttons (those on the center part) were touching the power supply and HDMI panel mount plugs</strong>, but this time buttons were too long, and I had to find a fix. <strong>I decided to add an extra part on top of the console to move them up</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IGJz7NpbKtQRvQGS.png" /></figure><p>Just a few more screws and the hardware part was ready!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aEWE-VhiWuxU1hVZ.jpg" /></figure><h3>Let’s play!</h3><p><strong>The software part was the easy</strong>: I decided to go with <a href="https://retropie.org.uk/">Retropie</a>, a plug’n’play Linux distribution for the Raspberry with a nice front end ( <a href="https://www.emulationstation.org/">EmulationStation</a>) and more than 50 systems supported.</p><p><strong>All I had to do was to burn the image onto the Raspberry Pi SD card</strong>.</p><p>For more details on Retropie configuration, have a look at the official <a href="https://retropie.org.uk/documentation/">documentation</a> or refer to one of the many tutorials you will find on the Internet.</p><p><strong>Just a little trick</strong>: out of the box, Retropie detects only one controller connected to the USB board. To fix the issue : log onto the Raspberry (SSH), edit the file <strong>/boot/cmdlne.txt</strong>, and add this line as first line:</p><p>usbhid.quirks=0x16c0:0x05e1:0x040</p><p>Then, save and reboot.</p><p>All I had to do after that was adding ROMs and play!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BPyhX7DcsbOaOVfV.jpg" /></figure><h3>Make one by yourself!</h3><p>Maybe you own or have access to a 3D printer? Then <strong>feel free to build your RomTaStick</strong>.</p><p>3D model and STL files are available on <a href="https://www.thingiverse.com/thing:1685194">Thingiverse</a>.</p><p>And here is the complete bill of material to build it:</p><p>This project is the most ambitious 3D printing project I have done so far. I learnt a lot about modelling for 3D printing, and on printing large objects.</p><p>And the end result is a useful toy I can play with my kids!</p><p><em>Originally published at </em><a href="https://www.backelite.com/2016/07/romtastick-3d-printed-arcade-console/"><em>https://www.backelite.com</em></a><em> on July 29, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2f27b55d603" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hack-like-a-pirate/romtastick-the-3d-printed-arcade-console-d2f27b55d603">RomTaStick: the 3D printed arcade console</a> was originally published in <a href="https://medium.com/hack-like-a-pirate">Hack Like a Pirate</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>