<?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 Ichiro Hirata on Medium]]></title>
        <description><![CDATA[Stories by Ichiro Hirata on Medium]]></description>
        <link>https://medium.com/@cafedeichi?source=rss-69373475dd60------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*W2NFc8mDSBEvrlS6MBq5Wg.jpeg</url>
            <title>Stories by Ichiro Hirata on Medium</title>
            <link>https://medium.com/@cafedeichi?source=rss-69373475dd60------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:09:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cafedeichi/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[MEet App Transfer: How We Seamlessly Moved Our iOS App to a New Developer Account]]></title>
            <link>https://medium.com/@cafedeichi/meet-app-transfer-how-we-seamlessly-moved-our-ios-app-to-a-new-developer-account-627ce411057c?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/627ce411057c</guid>
            <category><![CDATA[appledeveloper]]></category>
            <category><![CDATA[app-migration]]></category>
            <category><![CDATA[app-transfer]]></category>
            <category><![CDATA[appstore-connect]]></category>
            <category><![CDATA[iosdev]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Sun, 22 Dec 2024 22:00:48 GMT</pubDate>
            <atom:updated>2024-12-22T22:00:48.707Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oQXujtIRT_dFHtQZceS7fw.jpeg" /><figcaption>Photo By: Kaboompics.com</figcaption></figure><p>This July, <a href="https://corp.moneyforward.com/en/news/release/corporate/20240717-mf-press/">Money Forward and Sumitomo Mitsui Card agreed to form a partnership and plan to establish a joint venture</a> called <a href="https://corp.hm.moneyforward.com/">Money Forward Home</a>, focusing on the retail business while also exploring projects for small businesses. Following this decision, we transferred <a href="https://moneyforward.com/me">Money Forward ME</a>, the personal finance management iOS app, to the new company using <a href="https://developer.apple.com/help/app-store-connect/transfer-an-app/overview-of-app-transfer">App Transfer</a>. In this article, I will share what we did and how we handled the “irreversible” procedures.</p><h3><strong>Checking App Transfer Criteria</strong></h3><p>First, our Account Holder confirmed whether our app met <a href="https://developer.apple.com/help/app-store-connect/transfer-an-app/app-transfer-criteria">all the required criteria</a>. (<a href="https://developer.apple.com/help/account/manage-your-team/roles/">This step can only be performed by the Account Holder</a> before initiating the App Transfer.)</p><p>In our case, the following three items did not meet the criteria.</p><h4>1. In-App Purchase State</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YGgSM11wUW9pS3Y2tTyxLA.png" /></figure><p>The state of all the products we are using for our service was “Approved,” but there was an unnecessary product that may have been created by someone as a trial and was never submitted for App Review. Its status was “Missing Metadata.” Therefore, we deleted it.<br>It seems we need to meet the criteria regarding the state, even if it’s just a draft product.</p><h4>2. Subscriptions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OVzJOCesZv2PYRpRxaZ6jA.png" /></figure><p>Our app was using a master shared secret. Since this secret was referenced by all of our apps and could not be transferred with the app, we needed to generate an app-specific shared secret. Although the task involved simply replacing the master shared secret with the newly generated app-specific one, we handled it discreetly, as using the wrong secret by mistake could cause a critical receipt verification error.</p><h4>3. TestFlight Beta Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O6rjHfstCWd8EYydshbxZQ.png" /></figure><p>Following the instructions, we deleted all internal and external testers tied to the app, stopped the distribution of all beta versions (setting their status to “Expired”), and removed all test information (TestFlight metadata). Additionally, since we were testing the next version of the app simultaneously, we informed the QA engineers in advance about temporarily shutting down TestFlight to avoid delays in the testing schedule.</p><h3>Preparations Before App Transfer</h3><p>Aside from meeting the aforementioned criteria, we made additional preparations to ensure a smooth App Transfer. <strong>All of these steps were carried out under the transferee’s Apple Developer Program (ADP) account.</strong></p><h4>1. Issuing App Store Connect API Key</h4><p>Now we are using Bitrise, and some steps in the workflows reference the App Store Connect API, so we prepared it beforehand. We were able to replace the key and quickly rerun the workflow after the App Transfer.</p><h4>2. Issuing Distribution Certificate</h4><p>This is also referenced in Bitrise to create an archive of the app. We prepared it alongside the App Store Connect key.</p><h4>3. Registering Devices (UDIDs)</h4><p>As our ADP account was newly created just before the company spin-off, <strong>enabling registered test devices might have required additional processing, taking more than 24 to 72 hours, </strong><a href="https://developer.apple.com/help/account/reference/device-registration-updates/">as noted by Apple</a><strong>.</strong></p><p>To ensure all test devices were available immediately after the App Transfer, we retrieved their UDIDs from the transferor’s ADP account and registered them in advance to the transferee’s account. <a href="https://developer.apple.com/account/resources/downloads/Multiple-Upload-Samples.zip">Apple’s template</a> saved time by allowing us to import all of them in bulk.</p><h4><strong>4. Inviting People to the Transferee’s Apple Developer Program</strong></h4><p>In addition to registering test devices, we needed to invite all key team members, including the Product Manager, QA Engineer, and iOS Engineer, to the transferee’s ADP to ensure uninterrupted access to App Store Connect.</p><h4>5. Addressing Keychain Issue</h4><p>One of the biggest issues is that <strong>the keychain is not transferred to the transferee’s ADP</strong>. The Keychain access group is determined based on the application-identifier, which is formed by combining the Team ID and the Bundle Identifier. Since the Team ID changes following the App Transfer, the Keychain items are necessarily stored within the new group.</p><p>After updating the app from the pre-transfer version to the post-transfer version, the old keychain becomes unavailable. As a result, the login session data stored in the Keychain under the transferor’s ADP becomes inaccessible, causing a forced logout.</p><p>There might have been alternative ways to securely retain session data. However, as creating a secure enclave equivalent to the Keychain for a one-time App Transfer was too complex and impractical, we decided not to implement any technical measures. Instead, we chose proactive communication with our customers, requesting our customer support team to notify them multiple times in advance about the app’s behavior following the App Transfer.</p><h3>Transferring App</h3><p>Although transferring the app made us nervous, the operation itself was straightforward as it simply involved following the instructions in App Store Connect. Aside from meeting the App Transfer criteria, one important checkpoint is the “Business” information in the transferee’s ADP. (In fact, our first attempt failed due to incomplete information 😢)</p><blockquote><strong>1. Accept the agreement, and enter tax and banking information</strong><br>If you want to sell your apps or offer in-app purchases on the App Store, visit the Business section to sign the Paid Apps Agreement. Then, enter <a href="https://developer.apple.com/help/app-store-connect/manage-banking-information/enter-banking-information">banking</a> and <a href="https://developer.apple.com/help/app-store-connect/manage-tax-information/provide-tax-information">tax information</a>. (<a href="https://developer.apple.com/help/app-store-connect/get-started/app-store-connect-workflow">App Store Connect Help</a>)</blockquote><p>Entering banking information, in particular, may take a few days to be approved. This should be addressed well in advance.</p><h3>Actions After App Transfer</h3><p>To return to normal service operations and the development environment, we addressed several tasks by creating a checklist.</p><h4>1. Issuing Apple Push Notifications Service (APNs) Keys</h4><p>Since the APNs keys, which depend on the ADP account, are not transferred with the app, it was necessary to regenerate them using the transferee’s ADP account and update the server-side consoles with the new keys.</p><p>In particular, the p12 format key requires the App ID of the transferred app, meaning it can only be created after the App Transfer. Once the app is transferred, push notifications cannot be sent because the old APNs key becomes invalid. This issue should be addressed promptly to avoid inconvenience to our customers.</p><h4>2. Updating Bitrise Settings</h4><p>To enable the Bitrise workflows for the transferred app, we updated the settings with the App Store Connect API key and Distribution Certificate that were created before transferring the app.</p><h4>3. Updating Xcode Project Settings</h4><p>Following the App Transfer, the Team ID (the unique identifier assigned to the ADP account) of course changed. As the local Xcode project refers to it, we required to update the settings with the new Team ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zyuB-sNoW1t_ZBlDuD06Rg.png" /></figure><h4>4. Migrating App Groups ID and Widget Bundle IDs</h4><p>Since some of the unique identifiers necessary to compose our app are not transferred to the transferee’s ADP account, we manually removed them from the transferor’s ADP account and regenerated the same identifiers in the transferee’s ADP account. These procedures had no impact on the currently published app.</p><h4><strong>5. Updating Firebase Project Settings</strong></h4><p>We updated the Firebase project settings with the new Team ID to ensure proper functionality. To be honest, I’m not entirely sure how this value is utilized in Firebase, but it’s certainly better than leaving the transferor’s Team ID in place.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*o9gs2cVtURsr-kcTiE4NPg.png" /></figure><h4>6. Enabling TestFlight</h4><p>Following the above actions, TestFlight was reactivated to distribute the public beta app using the transferee’s account, and testers were invited.</p><h3>Verifying the Transferred App</h3><p>The App Transfer theoretically should not have affected the app, as the codebase was not updated aside from the Team ID. However, we verified specific app behaviors to ensure that the app functions as expected.</p><h4><strong>1. Push Notifications</strong></h4><p>After replacing the APNs keys, we verified that the transferred app could receive push notifications.</p><h4><strong>2. Sign in with Apple</strong></h4><p>Since our service’s Sign in with Apple is web-based, using <a href="https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession">ASWebAuthenticationSession</a>, and operates independently from the app, we decided to continue using the transferor’s system as before and simply confirmed that it works as reliably as it did previously.</p><h4>3. Subscription</h4><p>To ensure receipt verification works, we performed sandbox subscription testing using both the pre-transfer (App Store) and post-transfer (TestFlight) versions.</p><h4>4. Keychain</h4><p>Regarding the Keychain issue mentioned earlier, we verified that the preliminary notice to customers by the customer support team was accurate. Specifically, we tested the app’s behavior when updating from the pre-transfer (App Store) version to the post-transfer (TestFlight) version and confirmed that the expected forced logout occurs.</p><p>Additionally, we learned that the following warning could appear when uploading the app to App Store Connect if the application identifier differs from the previous version.</p><blockquote><strong>ITMS-90076: Potential Loss of Keychain Access </strong>— The previous version XXXXX new version YYYYY different application-identifier …</blockquote><h3>Conclusion</h3><p>Our App Transfer was successful because we carefully addressed all the requirements before starting. After the transfer, we thoroughly tested the app to ensure it functioned properly. By preparing in advance and following each step diligently, we ensured a smooth transition. In the end, our service remains stable and secure, even after this significant change.</p><p>If you need to perform an App Transfer in the future, I hope this article provides valuable guidance and makes the process easier for you.</p><p>This article was published as part of the <a href="https://www.notion.so/Money-Forward-Tech-Blogathon-2024-Winter-13eaa613304980b4b6cbf2857a8f3b5c"><strong>Money Forward Tech Blogathon 2024 Winter</strong></a>. I hope you enjoy reading all the posts. Happy engineering!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=627ce411057c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MEet Flutter Add-to-App: Unlocking Our Productivity]]></title>
            <link>https://medium.com/swlh/meet-flutter-add-to-app-unlocking-our-productivity-77abd48982dd?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/77abd48982dd</guid>
            <category><![CDATA[add-to-app]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[cross-platform-mobile-app]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Mon, 02 Dec 2024 15:55:30 GMT</pubDate>
            <atom:updated>2024-12-02T15:55:30.370Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://docs.flutter.dev/add-to-app">Flutter Add-to-app</a> enables the partial integration of Flutter into existing native apps. In February 2023, <a href="https://moneyforward.com/me">Money Forward ME</a> adopted Add-to-app for a new service release. Over a year of development, this approach improved overall productivity by unifying iOS and Android implementations and reducing tasks such as app planning and design. Furthermore, Add-to-app enhanced communication and collaboration between iOS/Android engineers and other teams. In this article, I will elaborate on how we successfully guided our project through this development.</p><h3>What is Flutter Add-to-app?</h3><p>Flutter is an open-source SDK developed by Google. Its biggest advantage is enabling the development of cross-platform applications for iOS and Android from a single codebase, reducing development costs while ensuring a consistent UI/UX.</p><p>However, many existing apps are already developed as native iOS or Android applications. In large-scale projects that have been in operation for a long time, like our service, rebuilding everything from scratch with Flutter is not easy.</p><p>In such cases, a viable approach is to partially introduce Flutter into existing native apps using a technique called ‘Add-to-app.’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*NwqFSCAaxjZ0Fv6ItUlzEw.png" /></figure><p>Add-to-app is an official Flutter feature developed by Google. It enables the integration of Flutter-based features into existing native apps as libraries or modules, allowing screens to be rendered and business logic to be shared across platforms. We adopted the Add-to-app approach to integrate Flutter into Money Forward ME.</p><h3>Background</h3><p>In the summer of 2022, just before launching our new project, we started technical verification of Flutter with the goal of improving development productivity.</p><p>On the other hand, we also had several issues that needed to be resolved in the project processes, from planning to testing at that time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*4kWNEVis8tXtKLpsqHpuiA.png" /></figure><h4>Planning Issues</h4><p>The main challenge in planning was balancing resource allocation between platforms. Our mobile app engineering team is small, typically consisting of only 2–3 people per platform. In such situations, maintaining balanced resource allocation between iOS and Android engineers for each project was challenging. At one point, one project team had only one available iOS engineer (me) and no Android engineers.</p><h4>Design Issues</h4><p>In the design phase, specifications were managed separately for each platform. The iOS app follows Apple’s Human Interface Guidelines, while the Android app adheres to Material Design, which meant different fundamental guidelines for UI/UX. As a result, design documents, such as Figma files, were also different, placing a burden on designers. Additionally, designers had to communicate with both iOS and Android engineers about the design on a regular basis.</p><p>Measuring marketing effectiveness was also somewhat challenging. In the past, there were incidents where Firebase event logs could be measured on iOS but not on Android, and vice versa. These discrepancies were caused by communication gaps between marketers and engineers, as well as among the engineers themselves.</p><h4>Development Issues</h4><p>In addition to the aforementioned resourcing issues, factors such as engineers’ preferences and a lack of communication affected various aspects of development. Differences emerged even in areas that could have been structurally unified. For example, iOS used Bitrise for CI, while Android used CircleCI, and OpenAPI was only introduced on iOS. In such situations, establishing a culture of knowledge sharing and mutual support among engineers was difficult.</p><p>In addition, it has become increasingly difficult for our native apps to adopt new technologies. Even now, we need to support multiple OS versions for our diverse customer base, which causes a delay of 2–3 years in adopting the latest native OS technologies. Also, since our service, Money Forward ME, has been around since the company’s founding, maintaining legacy code — such as Objective-C for iOS and Java for Android — remains necessary at times. These challenges pose difficulties not only for engineers’ career paths but also for recruitment.</p><h4>Testing Issues</h4><p>Testing issues were similar to those in design, as test scenarios had to be separated for iOS and Android. Additionally, QA engineers needed to consult each engineer about the detailed specifications to understand the differences between the platforms.</p><h4>Cross-Platform Development as a Solution to Project Issues</h4><p>When we considered how we could solve the above issues as mobile engineers, we realized that cross-platform development — initially considered to improve development productivity — would be effective in addressing all of them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*SwtilZ4VHln582zgqcqGAA.png" /></figure><p>Simply hiring more engineers might have improved development productivity, but it wouldn’t have easily solved the issues arising in project phases beyond development.</p><p>However, cross-platform development is not easy, either. In my experience, problems that were not visible during the technical verification phase can emerge only after production development has started. Additionally, in a large-scale service like Money Forward ME, many staff members beyond engineers are involved, and new features are constantly being released. In such an environment, opting for a full replacement without careful consideration poses the risk of halting other ongoing projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*CCPOqmVMoyEygxiOtEYbVg.png" /></figure><p>Therefore, to address the project issues in the short term while also ensuring medium- to long-term success, we decided to introduce Flutter using the Add-to-app method.</p><h3>How to Introduce Add-to-App</h3><h4>Technical Verification</h4><p>Since Add-to-app is not a standard development method, there was limited information available in the official documentation, so we had to build and verify it ourselves. For Money Forward ME, we focused on verifying the following key points:</p><ul><li>Screens and business logic created with Flutter can be invoked from the native app.</li><li>Critical data, such as login sessions, can be shared with the native app.</li><li>UI components that need to be implemented specifically on the native app side can be rendered on Flutter screens.</li><li>Hot reload and hot restart can be used during debugging, just as in standard Flutter app development.</li></ul><h4>Development Templates</h4><p>Simply introducing Flutter does not automatically improve development productivity. As long as we work as a team, it is essential to ensure that everyone can write as uniform code as possible, regardless of technical skills or years of experience. To achieve this, we created development template files based on a specific architecture and common rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*_HnH2sJHNcCT1l2AVS3iVQ.png" /></figure><p>The templates cover all the necessary classes to create a single screen, with detailed specifications for fundamental features, such as API requests. They also serve as a helpful reference for code reviews during pull requests.</p><h4>OpenAPI</h4><p>We also decided to introduce OpenAPI from the beginning. By enabling the automatic generation of classes related to network APIs, we were able to reduce development costs, much like with the development templates. Furthermore, the documentation using YAML files, which served as the source for OpenAPI generation, became a shared resource for all stakeholders as an API specification document. This was particularly helpful for us, the mobile engineers, in aligning our understanding with server-side engineers.</p><h4>Onboarding</h4><p>Following the above preparations, we also focused on transitioning native app engineers into Flutter engineers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*whwbYriXV_QAvojTQs0XXA.png" /></figure><p>As part of the onboarding process, they gained hands-on experience coding with the development templates and OpenAPI, and they worked on actual small tasks. During this process, we, as native app engineers, exchanged opinions, leading to improvements in the development templates and enhancing our understanding of Add-to-app. It was a valuable opportunity, as having iOS and Android native app engineers collaborate on a single technology gradually improved communication within the team.</p><h4>Automation</h4><p>On the other hand, with the addition of the Flutter codebase alongside iOS and Android, development and operations became somewhat more complicated. However, we aimed to improve efficiency and maintain productivity through automation with tools.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*tNF4G0GY36agj6f9GSPeYw.png" /></figure><p>The Add-to-app Git repository is a submodule of both the iOS and Android repositories, and we introduced GitHub Actions to automatically generate pull requests for submodule updates in the iOS and Android Git repositories whenever a pull request is merged into the Add-to-app Git repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*WOPXEePcMwce7aXiID_cNA.png" /></figure><p>For OpenAPI, GitHub Actions also handle the automatic generation of pull requests to update the OpenAPI client in the Add-to-app Git repository whenever the YAML files, managed in a separate Git repository, are updated.</p><h4>Debugging Tool</h4><p>Additionally, we added a debugging menu that allows direct navigation to each Flutter screen, enables changing the connection destination to any server, and provides access to API logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*hpNVEpfXfaGyPN8SzSaSMw.png" /></figure><p>The advantage of this tool is that it is an independent Flutter app. During debugging, this screen opens first, allowing navigation to each screen and making regular development with Add-to-App no different from typical Flutter app development. This setup lets us fully leverage the benefits of Flutter development, such as hot reload and hot restart.</p><h3>Small Tips for Introducing Add-to-App</h3><p>There were some further considerations to enhance our development.</p><h4>One Screen, One Flutter</h4><p>We decided to make a single screen the smallest unit for introducing the Add-to-App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*jY75UY5BQVF2C3DOjZyYJQ.png" /></figure><p>In other words, we used Flutter to create new screens or replace existing ones, enhancing flexibility and maintainability by reducing the coupling between Flutter and native screens. While rendering a Flutter view within a native screen is technically possible, it complicates data handling and requires more separate procedures for each view on iOS and Android, undermining the benefits of adopting Flutter. As a result, we chose not to implement it this time.</p><h4>Individual API clients</h4><p>We created a separate API client for Add-to-app, apart from the native API client, and established a mechanism to synchronize session information and other data between the parent native app and Add-to-app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*nvyHpXS9k-pfGQ6L4K5TmQ.png" /></figure><p>While reusing the native API client was an option, there was no need to reuse native endpoints in our case. Considering debugging as a standalone Flutter app, having its own API client was the right approach.</p><h4>Unified Design</h4><p>In terms of design, it previously followed the standard guidelines of each OS. For the screens developed with Add-to-app, we unified them with Material Design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*TGgDXWRwoWFYvoqHxb3VKA.png" /></figure><p>As a result of this unification, the workload on designers was reduced compared to before, leading to smoother communication with engineers, and a culture of frequent communication align understanding on color definitions, UI component design, and more was established.</p><p>The iOS app now includes designs that follow two different guidelines: one for the existing iOS app and another for Add-to-App. However, by aligning elements like fonts and colors to a single design, we were able to achieve a UI/UX with minimal discomfort when transitioning between native and Add-to-App screens.</p><h4>Generative AI</h4><p>Additionally, we have recently been experimenting with the use of Generative AI, such as conducting simple reviews of pull requests and automatically generating some test code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*W9kFL8yjQopwZsNCTUzxeA.png" /></figure><p>In particular, we found that the automatically generated test code has high coverage and contributes significantly to reducing implementation costs.</p><h3>Result</h3><p>By consolidating the project processes previously separated for iOS and Android, the workload was halved, effectively doubling development productivity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*plqUb70AFHDVnNW954iqqA.png" /></figure><p>While some native-side modifications are still required, such as invoking Add-to-App screens from native, these can now typically be resolved with just a few lines of changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*CfJ1GNu3ciewV-hU8tpbPw.png" /></figure><p>Personally, I believe that resolving communication issues during each development phase, rather than simply improving development productivity, was the most significant outcome of introducing Add-to-app. We, iOS and Android engineers, didn’t really understand what each other was working on before. However, with the introduction of Add-to-app, we started collaborating more closely, which naturally increased communication opportunities. Previously, tasks discussed with PdMs or marketers would sometimes only reach one platform’s engineers, but that no longer happens now.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*sVbqxCHLfJvpMEPoKz2LiQ.png" /></figure><p>The release of new services was successfully completed, and team development using the Add-to-app was established. Since then, most of the development for replacing or updating existing screens and releasing new services has been done using this method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*eX0d-ezDKB0iXQsDVm8Dlg.png" /></figure><p>Furthermore, since last summer, with the globalization of our company and the adoption of English as the official language in the workplace, the development team has become more diverse. Thanks to the pre-established Add-to-App development environment, including shared knowledge of Flutter and Dart, an efficient onboarding process, development templates, and the use of OpenAPI, we have been able to continue development without losing productivity, despite the language barrier.</p><h3>Vision for the future</h3><p>In the future, one of the issues will be <strong>deciding when to stop using the Add-to-app</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*5kLYad2zoLOTbbNwjxzJ-A.png" /></figure><p>Currently, the development using Add-to-app continues to increase, but if we proceed without considering anything, the proportion of Add-to-app may surpass native code down the road. At the appropriate timing, we need to review the balance with native code and consider optimizing the entire project.</p><p>For example, we may need to consider transitioning to a new phase, such as converting the Add-to-App project into the main app project and incorporating the current main native project as a Flutter plugin. This will require preliminary verification and development.</p><h3>Conclusion</h3><p>By introducing Add-to-App and optimizing the development environment accordingly, we were able to not only significantly improve development productivity but also solve various project issues.</p><p>However, Add-to-App is just one method and merely the optimal choice for our project at this time. Continuing development in this way may also lead to technical debt, as I mentioned earlier. We hope to continue development while considering the most suitable technologies and methods for the project.</p><p>This article was published as part of the <a href="https://www.notion.so/Money-Forward-Tech-Blogathon-2024-Winter-13eaa613304980b4b6cbf2857a8f3b5c"><strong>Money Forward Tech Blogathon 2024 Winter</strong></a>. I hope you’ll check out and enjoy the upcoming posts. Happy engineering!</p><p>Icons by <a href="https://icons8.jp/">Icons8</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77abd48982dd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/meet-flutter-add-to-app-unlocking-our-productivity-77abd48982dd">MEet Flutter Add-to-App: Unlocking Our Productivity</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pro Tips to Avoid Apple’s App Review Rejection for Non-Engineers]]></title>
            <link>https://medium.com/@cafedeichi/pro-tips-to-avoid-apples-app-review-rejection-for-non-engineers-c158e6ae8522?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/c158e6ae8522</guid>
            <category><![CDATA[app-store]]></category>
            <category><![CDATA[non-engineers]]></category>
            <category><![CDATA[app-development-tips]]></category>
            <category><![CDATA[app-review]]></category>
            <category><![CDATA[appledeveloper]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 21:41:24 GMT</pubDate>
            <atom:updated>2023-11-30T21:41:24.539Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Photo by WeStarMoney" src="https://cdn-images-1.medium.com/max/1024/1*RUq1of7f-w0I0nlI9EEqvQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@westarmoney/">WeStarMoney</a></figcaption></figure><p>As you may already know, if you want to bring your creativity to life as an app, you must adhere to the <a href="https://developer.apple.com/app-store/review/guidelines/">App Store Review Guidelines</a> and pass the <a href="https://developer.apple.com/app-store/review/">App Review</a>. As an iOS engineer, I always consider the guidelines when contemplating new features, designing or developing the UI/UX, and even refining the product page on App Store Connect just before submitting the app.</p><p>In this article, I’ll share some pro tips to avoid App Review rejections, hoping they’ll help you detect potential rejection risks early and ensure you can enjoy your project without any concerns, especially if you’re not an engineer.</p><h3>Identify Negative Impacts on Users and Apple</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBl8EMAz_8-X47niwDCBRA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@alex-green/">Alex Green</a></figcaption></figure><p>Even if you believe your idea or strategy benefits your business and you’re confident about complying with your regional government laws, your app may still face rejection unless you consider its potential negative impacts on your users and Apple.</p><p>When considering your users, it’s crucial to contemplate potential risks, such as apps being time-consuming due to poor performance or operability, the misuse of their privacy information, an excess of advertisements on their screens, and other related concerns.</p><p>Regarding Apple, imagine being an employee there and think about how you’d feel if vendors cluttered the App Store with inappropriate apps or provided their own subscription services incorrectly to bypass the so-called ‘Apple Taxation’.</p><h3>Read Guidelines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VEJ6oBwDUOnZeAFmuBOhYA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@suju/">Susanne Jutzeler, suju-foto</a></figcaption></figure><p>It’s worth reading and comprehending the App Store Review Guidelines not just for engineers but also for all stakeholders, encompassing marketers, designers, and others.</p><p>However, if you find it challenging to go through all the clauses and understand the technical jargon, focusing on sections like “<a href="https://developer.apple.com/app-store/review/guidelines/#safety">1. Safety</a>” and “<a href="https://developer.apple.com/app-store/review/guidelines/#legal">5. Legal</a>” concerning negative impacts on app users, and “<a href="https://developer.apple.com/app-store/review/guidelines/#business">3. Business</a>” regarding Apple, respectively, would be a good starting point. Since the <a href="https://developer.apple.com/app-store/review/#common-app-rejections">common issues</a> that cause rejections are highlighted on the official page, it’s also worth taking a look at them.</p><p>It’s also beneficial to have a general understanding of the <a href="https://developer.apple.com/design/human-interface-guidelines">Human Interface Guidelines</a>, even in roles such as a product manager, especially when considering the fundamental app design in collaboration with designers. Reading at least the “<a href="https://developer.apple.com/design/human-interface-guidelines/foundations">Foundations</a>” section can provide valuable insights into how your app should be designed.</p><p>Also, I’d like to remind you that the Human Interface Guidelines aren’t just templates for UI/UX design. For instance, if your app gets rejected during the App Review, reviewers might cite specific clauses in the Human Interface Guidelines as the reason. Therefore, while covering every clause of the guidelines and expressing your idea simultaneously might be impossible (I believe even Apple’s official apps cannot achieve that), it’s more beneficial to showcase your efforts in following the guidelines and your contributions to improving the App Store experience for users.</p><h3>Find Good Precedents or Similarities on App Store</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bcdwpYEUgI9VqZkK2zaKrQ.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@cottonbro/">cottonbro studio</a></figcaption></figure><p>If you’ve already read the App Store Review Guidelines and the Human Interface Guidelines, you would find it hard to make sure your app is appropriate for the App Store because of the ambiguity of the guidelines.</p><p>If that’s the case, search for apps similar to yours. If the features provided by the similar app relate to your concerns, your app is likely to pass the App Review. However, ensure the app on the App Store was recently released or updated. The guidelines are continually evolving, and older apps may not comply with the current guidelines. Reviewers’ interpretations of the guidelines also adapt to current times and global situations. Speaking of which, the restrictions for protecting user privacy have significantly strengthened in the past few years, including initiatives like App Tracking Transparency, the requirement to offer account deletion, and more.</p><p>As the <a href="https://developer.apple.com/app-store/categories/">category</a> of your app is also an important factor, and some rejection cases occur based on the nature of the app, it might be better to look for apps in the same category. For instance, while medical care apps may be allowed to leverage users’ personal information in specific ways, apps in other categories might face restrictions for various reasons. Regarding in-app purchases, <a href="https://www.apple.com/newsroom/2021/09/japan-fair-trade-commission-closes-app-store-investigation/">Apple recently eased its policies for subscription purchases</a>, permitting developers of reader apps exclusively to establish external links to their own payment services. Therefore, unless your app is primarily designed to display or access content from specific sources, such as books, newspapers, magazines, or other media, you must keep on using in-app purchases and refrain from misguiding your users by directing them to an external website to purchase subscriptions from your app.</p><h3>Keep Your Eyes on the Latest Information</h3><figure><img alt="Photo by brotiN biswaS" src="https://cdn-images-1.medium.com/max/1024/1*X0zcgn4q_L15JbSF8rTvjg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@brotin-biswas-158640/">brotiN biswaS</a></figcaption></figure><p>Apple’s ‘<a href="https://developer.apple.com/news/">News and Updates</a>’ typically cover the latest information about their services, products, policies, and, of course, <a href="https://developer.apple.com/news/?id=3cwqvk28">updates to the App Store Review Guidelines</a>. These updates may relate directly to your app and can occasionally cause critical issues, such as being unable to submit your app without addressing a new policy. It’s essential to follow these updates regularly to ensure seamless service provision through your app.</p><p><a href="https://developer.apple.com/forums/">Developer forums</a> are also invaluable for addressing your concerns. Personally, I follow the ‘<a href="https://developer.apple.com/forums/tags/app-review">App Review</a>’ tag to gather information about App Review rejections. Once you follow the tag, you’ll find discussions from people worldwide sharing their experiences with App Review rejections and the issues they face. You’ll discover many others who are on the same page.</p><p>You might think it’s a lengthy and challenging process to pass the App Review. However, if you start your project without considering it and your app gets rejected, you might face drastic last-minute revisions. To avoid this kind of disaster, it’s essential to adhere to the guidelines, even for fundamental aspects.</p><p>On the other hand, the App Review team is always supportive, not your adversary. They facilitate the safe release of your app and protect it from being overshadowed by similar malicious apps. They will appreciate if you understand the significance of this process for both you and your customers.</p><p>This article was published as a part of the <a href="https://global.moneyforward-dev.jp/2023/11/30/blogathon-2023/">Money Forward Tech Blogathon 2023</a>. I hope you’ll check out and enjoy the upcoming posts. Happy engineering!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c158e6ae8522" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Massive Project Code Refactoring Tips]]></title>
            <link>https://medium.com/@cafedeichi/massive-project-code-refactoring-tips-4a973c3bcc7f?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a973c3bcc7f</guid>
            <category><![CDATA[clean-code]]></category>
            <category><![CDATA[code-refactoring]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[project-management]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Sun, 18 Dec 2022 22:30:18 GMT</pubDate>
            <atom:updated>2022-12-18T22:30:18.020Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JngtlW1rhZcYIdl9J0cVw.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/ja-jp/photo/2696299/">Oladimeji Ajegbile</a></figcaption></figure><p>Since one of my colleagues has so much experience in code refactoring for large projects, he sincerely shared with me how he handled such messy tasks. Although most of the things he had done were just to make steady and continuous efforts like working out in the gym, it makes so much sense to me. In this article, I will share his tips with you.</p><h3>Organizing Directories</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jtZgkEVP1RwOK0PQpYMmmg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/a-girl-sitting-in-front-of-a-table-between-database-wooden-drawer-6549629/">Tima Miroshnichenko</a></figcaption></figure><p>When you try to do code refactoring for a large project, you will hit the wall soon since you have no idea what to do in the beginning, then you will start reading O’Reilly’s tech books or get interested in software development processes or approaches, such as TDD, DDD, etc. If so, your strategy will already end in failure.</p><p>You should do something with your hands anyway rather than look for silver bullets. First, why do you not organize the project directories? You can start with a few risks as the action will hardly cause bugs.</p><p>Since large project directories are usually cluttered, you will at first find it hard to grasp the class scopes and where the classes are used. Therefore, organizing the directories helps you understand what kind of roles and scopes the classes have in the project before you have to modify them.</p><p>Sometimes, it will be tough for you to comprehend what some of the classes work for. In that case, you can create some tentative directories, such as “legacy”, “garbage” or something like that, and put the class files in. If you get to know the meanings of the classes as time goes by, you can move them to the other appropriate directories.</p><h3>Writing Comments and Documents More</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RQ3k7H29xH4RDJm_QkvFIA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/programming-language-on-a-screen-6424586/">Nemuel Sereti</a></figcaption></figure><p>Even though you already have to do code refactoring, if you still reckon you do not need any comments for clean codes, it is time to realize your codes are no longer clean and all you have to do is just write a lot of comments even if they look verbose and redundant.</p><p>The place where you should leave comments is beside the code where some questions cross your mind while you are reading. If you find the answers, you should write them down as comments before you forget.</p><p>You might feel like not leaving comments if the codes are not relevant to the current task you are working. However, think about it. If you do not set yourself free from a kind of self-imposed constraint, you will not be able to take your time only for commenting nor see any signs of the start of it in the future. Mind you, they are just comments.</p><p>Next, let us write documents you do not like. Writing documents, which always bores you and sometimes exhausts you, is also essential for code refactoring.</p><p>You probably used to be or now you are involved with some projects based on the rule of “code is document”. If you replace a feature with a new one, you will need to read all the codes to understand what the feature does. On the other hand, if you have impeccable documents instead, you can implement the features with your idealistic coding only.</p><p><strong><em>“Something weird. Why do I have to write comments and documents even though the codes will be refactored after all?”</em></strong></p><p>It is wrong. Code refactoring is a long-lasting story. You are not sure when you can start nor if you can start by yourself. A lot of comments and documents exist for yourself and your coworkers in the future.</p><h3>Coding More</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GxlwNCnps5B9i1SCw2NVBw.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/photo/crop-focused-hacker-in-hood-using-laptop-5926386/">Sora Shimazaki</a></figcaption></figure><p>It might sound like a no-brainer, but it is no joke.</p><p>To gauge the productivity, what about confirming the number of commits and modified lines? For example, provided that you were not able to meet 100 commits, and 10,000 additions or deletions for the first month, you might need to review your plan.</p><p>Anyway, let us focus on coding as much as possible. You do not have to think about architecture, testings, coding rules or something like that beforehand because you can think about such things while you are coding. If you face your coding first of all, you will find the compatible measures for the project.</p><p><strong><em>“You mean, I will have to rewrite everything that I wrote in the beginning, right?”</em></strong></p><p>Yes, you are right. If you make a mistake, just rewrite the codes. No one can complete code refactoring without a failure.</p><p><strong><em>“Having said that, it’s very tough to find time and write codes so much.”</em></strong></p><p>You might have some issues, such as so many office meetings, a lot of the building time of the project, or your own skill. However, nothing happens overnight. Again, you do not have to look for silver bullets, but just make continuous efforts.</p><p>Where there is a will, there is a way.</p><p>This article was published as a part of <a href="https://moneyforward.com/engineers_blog/2022/11/30/moneyforward-tech-blogathon-2022/">Money Forward Tech Blogathon 2022</a>. I hope you check out all of the past posts and enjoy the next posts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a973c3bcc7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to check App Store Review Guidelines updates through GitHub Actions]]></title>
            <link>https://codeburst.io/how-to-check-app-store-review-guidelines-updates-through-github-actions-f98ba50eb122?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/f98ba50eb122</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[app-review]]></category>
            <category><![CDATA[apple]]></category>
            <category><![CDATA[wwdc]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Tue, 16 Jun 2020 23:10:24 GMT</pubDate>
            <atom:updated>2020-06-16T23:10:24.711Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogvPzYjU_DNBf6vIFT28qg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@pixabay?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pixabay</a> from <a href="https://www.pexels.com/photo/5th-avenue-america-apple-store-architecture-279166/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p><a href="https://developer.apple.com/app-store/review/guidelines/">App Store Review Guidelines</a> are living documents. I reckon we, iOS Engineers, are better off checking the updates regularly. If it is a major one, Apple will announce it, whereas if it is a subtle revision, they will not say anything, and then, we will miss it. In the worst case, our updated apps might be rejected by Apple because of not knowing the difference from the last time we read. To avoid such a disaster, I suggest a simple solution to catch up on the latest guidelines by GitHub Actions.</p><h3>What motivated me?</h3><p>Last summer, <a href="https://developer.apple.com/sign-in-with-apple/">Sign in with Apple</a> was one of the most controversial topics for iOS developers since it was announced in WWDC 19, and I used to follow some news which were relevant to the latest technology for a while, then one day, I stumbled upon <a href="https://www.reuters.com/article/us-apple-apps-idUSKCN1T6056">an article</a> and was like,</p><p><em>“Apple Inc will ask developers to position a new “Sign on with Apple” button in iPhone and iPad apps </em><strong><em>above rival buttons</em></strong><em> from Alphabet Inc’s Google and Facebook Inc, according to design guidelines released this week.”<br>(Cited from </em><a href="https://www.reuters.com/article/us-apple-apps-idUSKCN1T6056"><em>Reuters</em></a><em>)</em></p><p>I got stumped because when I checked <a href="https://developer.apple.com/app-store/review/guidelines/#sign-in-with-apple">the part of the guidelines</a>, I had not found anything like “above rival buttons”, but someone told me that it seemed like kind of the words were erased soon after the latest guidelines were published during the WWDC.<br>I always read the news and updates from Apple through RSS feeds in order not to miss the latest information every time there is an update on App Store Review Guidelines; however, it did not notify me as it was probably a very subtle change. As an alternative way, I checked <a href="https://www.appstorereviewguidelineshistory.com/">appstorereviewguidelineshistory.com</a>, but unfortunately, it seemed like the website was not active at that time. Out of curiosity, I really wanted to know the subtle difference, so I decided to develop a tool that can check the update by scraping the website daily automagically.</p><h3>GitHub Actions</h3><p>First, I intended to use Cloud Functions and Cloud Pub/Sub just because I have developed a push notification service by using them before. However, it was not enough to store the latest and last data in Cloud Firestore, and it was necessary to develop something else to show the difference between them with visual aids.<br>Therefore I was about to forgo embodying my idea, but a <a href="https://codeburst.io/storing-weather-data-daily-using-github-actions-c2b0ed513ca6">Changhui Xu’s article</a> regarding GitHub Actions on Medium gave me an epiphany. I realized I can stack the difference as the commit log and node.js, which is a bit familiar with me, can be also available like Cloud Functions.</p><h4>Workflow</h4><p>All I had to do was crystal-clear. I just scraped the website, saved the contents as an HTML file and push it to the GitHub repository daily.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/17703744d803494a7ca45a8e43365c65/href">https://medium.com/media/17703744d803494a7ca45a8e43365c65/href</a></iframe><h4>on</h4><p>It schedules the workflow to run twice a day by cron. As the guidelines will not be updated so much, I suppose it will be enough frequency. Only once a day could be even better.</p><h4>jobs</h4><p>First, it runs the node.js script. This time, I mainly used <a href="https://github.com/segmentio/nightmare"><em>Nightmare</em></a> and <a href="https://github.com/cheeriojs/cheerio"><em>cheerio</em></a> for the web-scraping. (Why <em>Nightmare</em>? I will talk about it later.)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e02049a4d50d123ff07db74eb0a56d49/href">https://medium.com/media/e02049a4d50d123ff07db74eb0a56d49/href</a></iframe><p>After that, it checks in the git repository to add and push the created HTML file which includes the web contents inside. If it detects the difference from the previously pushed file, it creates a commit log and notifies the update through a channel on my own Slack workspace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fLfXQDOZB95k4nSIWBPL8g.png" /><figcaption>Slack Notification</figcaption></figure><h4>Done!</h4><p>Actually, this action could detect the updates! You could see the result in the <a href="https://github.com/cafedeichi/AppStoreReviewGuidelinesHistory/commits/master">commit logs</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wjdUkTwsERwkRE0x6eegEw.png" /><figcaption>commit log</figcaption></figure><h3>Room of Improvement</h3><p>I reckon that it is good enough to check the updates; however, there are some rooms for improvement regarding the action itself.</p><h4>Nightmare vs axios</h4><p>This time, I used <a href="https://github.com/segmentio/nightmare"><em>Nightmare</em></a> for the web-scraping just because I have never done it and wanted to try to use it. However, during the development, I realized that it worked on macOS only in the action. In addition, <a href="https://help.github.com/en/github/setting-up-and-managing-billing-and-payments-on-github/about-billing-for-github-actions#about-billing-for-github-actions">macOS runners that GitHub hosts consumed minutes at 10 times the rate that jobs on Linux runners consumed</a>. Although I did not mind so much as the action that I had developed this time did not run frequently, and I did not own another action, you are better off avoiding to use <em>Nightmare</em> unless your scripts have to scrape some dynamic websites. <a href="https://github.com/axios/axios"><em>axios</em></a> is probably more preferable.</p><h4>Multiple Slack Channel Notifications</h4><p>I suppose that many engineers nowadays take part in multiple slack workspaces as well as me; therefore, I wanted to send multiple notifications to some workspaces where I belonged to. However, as I am not familiar with shell scripts so much, I passed on the feature this time. I will try it again eventually.</p><p>Enjoy your automation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f98ba50eb122" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/how-to-check-app-store-review-guidelines-updates-through-github-actions-f98ba50eb122">How to check App Store Review Guidelines updates through GitHub Actions</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Makoidoi’s English Boot Camp]]></title>
            <link>https://medium.com/@cafedeichi/makoidois-english-boot-camp-f8a9314c23a5?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8a9314c23a5</guid>
            <category><![CDATA[japan]]></category>
            <category><![CDATA[english]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[language]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 11:29:52 GMT</pubDate>
            <atom:updated>2020-03-12T05:41:18.526Z</atom:updated>
            <content:encoded><![CDATA[<p>This is just a note about exchanges with <a href="https://twitter.com/Makoidoi">my teacher</a> for exercises in English composition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iB1BY54-ZgCIifsgp8LESg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@pixabay?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pixabay</a> from <a href="https://www.pexels.com/photo/administration-adult-battle-crowd-280010/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h3>Day 1</h3><p><strong><em>From corona virus, all schools in Japan was forced to stop its operation, bringing disputes against it. Furthermore, </em></strong><a href="https://youtu.be/Ded_AxFfJoQ"><strong><em>WHO has admitted that just wearing a mask has no meaning against corona virus.</em></strong></a><strong><em> Let me know your opinions on above 2 points.</em></strong></p><p>I second specialists comments like WHO.<br>One of the reasons is because they are professional in the field and much more reliable than TV common commentators and politicians who just say their opinions with some strong bias or equivocal sources.<br>The other reason is that it makes me calm down my worries it is currently very tough to buy mask in any drug stores but I can act calm in the current situation by listening to this kind of reliable sources even though I have to go outside without a mask.<br>However I have a bit of a question (a doubt) about it as well since I am unfamiliar with medical science, I still don’t understand why wearing a mask is not so effective for protecting oneself from virus outside where as it can be used not to spread it from one’s body inside. It sounds like a contradiction. <br>Nowadays I feel like a minority who is not wearing a mask and hesitate to sniffle and sneeze outside even though I just have hay fever. I really hope everything goes well and back to normal soon.</p><h3>Day 2</h3><p><strong><em>I am pretty surprised that </em></strong><a href="https://www.bbc.com/news/technology-51706635"><strong><em>apple was intentionally slowing down iPhones</em></strong></a><strong><em> to lead users to buy the latest version. Unfortunately, you are only entitled to a payout if you owned an US iPhone so unlucky for most of use who likely to have Japanese iPhone. But to be honest, I do change my phone in 2 to 3 years cycle so would not bother so much about it. Apple is certainly not the first case, many of our surrounding devices may be under the slowdown caused by the manufacturer. Your thoughts?</em></strong></p><p>Since I’m actually an iOS engineer and kinda apple nerd, I want to take Apple’s side if I could. However, I reckon there was no wiggle room for Apple in this case.<br>Every summer Apple offers engineers like me a special event which is called Apple World Wide Developer Conference, so called WWDC (or Dub-Dub as an affectionate term for the geeks). The keynote speech, which is the first session of the event facilitated by the IT giant, always interests me as I can feel the future of human lifestyle. I often download a beta version of the iOS and macOS on the day because I wanna know what the new features are like and share them with my friends.<br>In the keynote, the CEO often refers to the performance of the latest iOS comparing the ex-version or Android as well, but now it’s a bit skeptical for me since the iPhone slowdown issue was exposed. They might be doing something else to sell their products more.<br>On the other hand, this article reminded me of the “Samsung explosion issue”. It seems like it was a manufacturing mistake. It is just my thoughts out of the top of my head, but the accident could be prevented in advance if the software had been already controlled not to reach the maximum performance as well as Apple did in secret. Even though I was appalled with Apple’s excuse, I’m sure it is much better than such trouble.<br>Anyway I will buy a new iPhone this year. (hoping 5G network is enabled)</p><h3>Day 3</h3><p><a href="https://www.forbes.com/sites/laurabegleybloom/2020/03/02/coronavirus-travel-scary-facts-advice/#746d33785531"><strong><em>Hotel, tourism and airline companies are those industries that got affected severely by coronavirus.</em></strong></a><strong><em> Massive profit losses and to me, it seems it would take years to recover this loss. Furthermore, from the fact that stock prices all over the world has plummeted, we see that people are not in their mood to purchase anything other than daily necessities. Think of what kind of effect that you personally might get from the social damage by coronavirus and send it back to me.</em></strong></p><p>One of my concerns is WWDC that I look forward to every year. Apple always starts the random selection registration for from the middle of March every year, but I reckon it’ll be very challenging for Apple to decide if they should start it as usual or forfeit the physical event itself. Today, Google unfortunately canceled Google I/O, their (WWDC-like) biggest event for Google developers which takes place every May. I suppose it was a right decision for us Japanese because we might be disallowed to enter U.S. during the period of the event even if we were selected as the attendees. Apple will probably go to the same way as Google. Hence, I won’t register WWDC this year and I’m gonna enjoy the live-streaming and celebrate their new iOS.<br>The other is my current sedentary life. I’m sort of a minimalist. Aside from Apple products, I dislike owning lots of things, such as furniture, home appliances and so on. That is why I don’t have a desk nor a chair, but it seems like it is time to buy furniture because my company recommended us to work at home from this week.<br>I prefer going to a cafe when I use my laptop, but I am disallowed to do it as I have to stay at home to handle something confidential regarding my job. I finally and unwillingly bought a small legless chair yesterday as I’ve already had some aches in my back and neck since this Monday…<br>I hope it works fine until I come to be able to commute again.</p><h3>Day 4</h3><p><strong><em>So the past 3 days, we gone through using articles but this time, I would like to simply ask you a personal question. In my personal time, I like to be involved with various people because I want to expand my point of views to become as objective as I can, which is one of the reasons why I started this English boot-camp as well. I would like to know what you do during your personal time. You don’t have to make it up :) Just simply write what you do.</em></strong></p><p>One of my hobbies is studying English. I try to have English online lessons everyday as much as possible. As even now I’m an introverted person, I used to hesitate to communicate with the teachers for the first time, but now I can enjoy the chat more or less.<br>TOEIC test is like a frequent health checkup for me. I go to take the test every other month. My wife as well. She is my good competitor for me. It might sound weird, but going to the venue for the test is kinda special occasion for us, such as dating at a movie theatre. Eventually I’d like to get the perfect score.<br>Running is also my routine. I go jogging around my house every weekend if I have time. I sometimes take part in a marathon race with my friends. Bathing spa and having a drink after finishing the goal is also one of my addictive things.<br>Coding as well. Since I like drawing or creating something, it makes me feel good when I could build an app and it works visually on a smartphone screen. As an individual developer, I’ve released some iOS apps before. Although it was as my hobby, my competence was fortunately acknowledged by my colleagues and I got an opportunity to work as an iOS engineer. And here I am.</p><h3>Day 5</h3><p><strong><em>When I was an uni student in Australia, they had daylight savings which I personally enjoyed since I got to go out even in the afternoon and it was still bright. As of now, </em></strong><a href="https://www.japantimes.co.jp/opinion/2018/11/01/commentary/japan-commentary/japan-adopt-daylight-saving-time/#.XmjJ5pP7TRZ"><strong><em>Japan does not have daylight savings</em></strong></a><strong><em> but do you think we should bring this idea into Japan? Curious to know your ideas.</em></strong></p><p>My answer is NO from the point of view as an engineer.<br>It would be good if Japan already introduced the practice before starting the commercialization of the internet. However, most of the systems, which are connected to the internet and currently in operation in Japan, were designed without considering Daylight Saving Time. <br>Adjusting the clocks twice a year sounds like a piece of cake if you just think about an alarm clock, but it is very difficult for the huge computer systems such as banking, credit transaction and trains. <br>To make the services work accurately even if a small new feature was added, scores of tests will be excused and so many regression testings will be also unavoidable to ensure the previously developed systems are properly performed as well as before. It definitely involves a significant cost in all kinds of industries. In addition, as there are some interactions among the various systems like a payment service on an EC site for example, if one service has a bug, the others also have some troubles one after another. I can easily imagine that all of the systems in Japan are not working fine simultaneously after adjusting their clocks.<br>I reckon we, as Japanese, are better off finding alternative ways for something eco-friendly.</p><h3>Day 6</h3><p><strong><em>Let me justify myself that the news these days are mostly related to coronavirus and it was hard for me to find any unrelated to it. But I did find </em></strong><a href="https://time.com/5797836/coronavirus-racism-stereotypes-attacks/"><strong><em>an article that would tingle our attention which is about racism that rose from coronavirus.</em></strong></a><strong><em> When nuclear reactor in Fukushima exploded, Japanese experienced very similar situation in the world and not just that, even inside Japan, discrimination happened within Japanese as well. Have a read of this article as well if you have time and if you can write your thoughts or opinions, you are classic.</em></strong></p><p>Although we, Japanese, are sensitive to the fear of being discriminated, I reckon we unconsciously tend to make discriminatory expressions as well. When I was at an ESL school in Australia, I wrote a diary as homework about racism one day. I don’t remember what I wrote in detail, but I still remember my teacher’s comment on my diary because it was so influential for me. She mentioned that, “When I was in Japan, I also felt solitary when people called me Gaijin”. As I was so ignorant back then, that I used to believe racism only occurs to Asian like us only, I never thought such a common Japanese word caused someone uneasiness. Since then I am hesitant in using such kinda words that might imply discrimination regarding nationality, gender and colors.<br>By the way, I recently learned some idioms including country name, such as “go Dutch” and “Chinese Whisper”. It seems like they are also natural English expressions used by the native speakers, but I’m not sure if I can use them in English daily conversations because I reckon using the words with nationalities is a bit sensitive and could be racism. (I wanna hear your opinion, Makoto-san.)<br>I reckon studying English means/is equivalent to knowing diversity and not only I need to study the grammar, vocabulary and idioms, but I also have to consider how non-Japanese feel to what I speak to them in English, as racism occurs to anyone and I should not be a racist to someone else even if it is unintentional.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8a9314c23a5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Comment a DeployGate Link for Each Build Version on GitHub Pull Requests With Bitrise]]></title>
            <link>https://medium.com/better-programming/how-to-comment-a-deploygate-link-for-each-build-version-on-github-pull-requests-with-bitrise-6a0943bc56ca?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a0943bc56ca</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ci]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[bitrise]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Fri, 06 Mar 2020 10:14:02 GMT</pubDate>
            <atom:updated>2020-03-06T10:14:02.284Z</atom:updated>
            <content:encoded><![CDATA[<h4>An easy tip to let your colleagues review your app a bit quicker during their pull-request review</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s1wGpl3ZUIh7wj1YHFDxCA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@divinetechygirl?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Christina Morillo</a> from <a href="https://www.pexels.com/photo/eyeglasses-in-front-of-laptop-computer-1181253/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><h3>Background</h3><p>When you, as a developer, create a pull request on GitHub, you don’t only need to ask your colleagues to review your code, but you also sometimes have to ask them to confirm the app’s behaviors after you’ve added new features, fixed bugs, etc.</p><p>In my project’s case, when I create a new pull request, a <a href="https://www.bitrise.io/">Bitrise</a> workflow builds an app and uploads it to <a href="https://deploygate.com/">DeployGate</a> automagically. As it’s mentioned to a Slack channel by <a href="https://docs.deploygate.com/docs/chat-integration">a notification from DeployGate</a> that was configured on the console when the build finished, the reviewers can get to the app by clicking the download link in the channel.</p><p>However, as the DeployGate notification always provides the same link as the latest build version and can’t post it as a comment on the GitHub pull request, the reviewers hardly ever catch the right build version of the app for review, and they have to go into the console and look for the app anyway (or give up and just look at the code).</p><h3>Solution</h3><p>As a solution to some of the issues stated above, I added the following steps to the existing Bitrise workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P0q-Bi41J5k82vdrfimSxQ.png" /></figure><h4><a href="https://www.bitrise.io/integrations/steps/script">Script</a></h4><p><a href="https://www.bitrise.io/integrations/steps/deploygate--upload-app-bitrise-step">DeployGate Upload</a>, one of the workflow steps that uploads an app to the console, returns $DEPLOYGATE_UPLOAD_APP_STEP_RESULT_JSON. By using the values inside, you can create a direct link to the appropriate app. I used <a href="https://stedolan.github.io/jq/">jq</a> to parse the JSON data by referencing <a href="https://gist.github.com/fromkk/6987bbdebf1bd6b56fa3811d51bdbe88">fromkk’s gist</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/71a70426d89c3160409be23368f4d227/href">https://medium.com/media/71a70426d89c3160409be23368f4d227/href</a></iframe><p>$DEPLOYMENT_BASE_URL is an environment variable that’s set on this workflow in advance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uHYrHaTM2WY5AhsRa4BOeA.png" /></figure><h4><a href="https://app.bitrise.io/integrations/steps/create-install-page-qr-code">Create install page QR code</a></h4><p>Creating a QR code of the direct link is even better because it’s easy for the reviewers to get the app by just scanning the code. Just setting $DEPLOYGATE_DOWNLOAD_URL as Public Install Page URL in this step brings you what you need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*43wbCM9IDqjOXGWURmJF3Q.png" /></figure><h4><a href="https://app.bitrise.io/integrations/steps/comment-on-github-pull-request">Comment on the GitHub pull request</a></h4><p>By using this step, the download link and QR code image URL created by the aforementioned steps can be sent to the appropriate pull request.</p><p>Don’t forget to generate and set your <a href="https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line">personal access token</a> that’s required to access the repository beforehand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pMtGjZcVkQCHKJ-tPrH2Sg.png" /></figure><h3>Done</h3><p>After finishing the build, you can see a comment like this on the pull request:</p><blockquote>“Adding: the reviewer have to be the team member on DeployGate. If you cannot access the link, you could ask the administrator.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mo8TfJ-F9xq4l3Q6kYFDlA.png" /></figure><p>Although it’s just a small change, the more pull requests you create, the more meaningful it is.</p><p>Enjoy your coding and review!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a0943bc56ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/how-to-comment-a-deploygate-link-for-each-build-version-on-github-pull-requests-with-bitrise-6a0943bc56ca">How to Comment a DeployGate Link for Each Build Version on GitHub Pull Requests With Bitrise</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Three Activities to Promote English Language in My Workspace]]></title>
            <link>https://medium.com/@cafedeichi/my-three-activities-to-promote-english-language-in-my-workspace-4d52755dfde2?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d52755dfde2</guid>
            <category><![CDATA[english]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[engineer]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[language]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Wed, 12 Feb 2020 02:04:50 GMT</pubDate>
            <atom:updated>2020-02-12T02:04:50.095Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATBNJ4URRvk9DI7hI57jxg.jpeg" /></figure><p>I work at an IT company in Tokyo and I’m in charge of smartphone application development and the project management. I’m sure you all know the importance of studying English in your daily life, and I think it’s getting no exception in my industry as well. Today I want to tell you about my three activities to promote English language in my workspace.</p><h3><strong>1. Reading English documents with my co-workers</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-egE75urWmDSymtkagTyUA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@thought-catalog-317580?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Thought Catalog</a> from <a href="https://www.pexels.com/photo/white-ceramic-teacup-with-saucer-near-two-books-above-gray-floral-textile-904616/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>The first activity is about reading English documents with my co-workers.</p><p>IT technology has improved so rapidly since the first iPhone launched a decade ago. The device and OS updates became already an annual event and I have to make my apps compatible with the new specs every year. Above of all, it’s getting harder to follow the latest information. I used to able to rely on the Japanese documents, however, nowadays it’s too late to wait for such translations to catch up them in time. That’s why I started a meetup for reading the latest English documents.<br>In the meetup, we read and translate the documents into Japanese in turns. It’s not only to share the meanings of the sentences but also our knowledge which are related to the contents. This approach was also good to let my co-workers know how much useful to study English to expand their knowledge earlier than ever before.</p><h3>2. speaking opportunities</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RhIquWhFFfLSEh5yx5ujYg.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@mentatdgt-330508?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">mentatdgt</a> from <a href="https://www.pexels.com/photo/woman-sitting-on-gray-chair-1543895/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>The second is about speaking opportunities.</p><p>I often read English tech documents, but my company is so domestic that I have no opportunity to speak out English on business. As one of the solutions, I started an English conversation circle in my workspace. Every Thursday lunch time, we gather in the main meeting room and talk about weekly topics in English only. My co-workers didn’t have such opportunities, either, so they really understood how easy English phrases they couldn’t speak out and it motivated them to improve their English skill more.</p><h3>3. Inviting a native speaker.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C-l9wHmB6FjglzPQIygaGA.jpeg" /><figcaption>Photo by <a href="https://www.pexels.com/@nappy?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">nappy</a> from <a href="https://www.pexels.com/photo/photo-of-woman-teaching-935943/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>The last is about inviting a native speaker.</p><p>The English conversation circle in my workplace is a good way to improve our speaking skills, but it is not enough to improve the accuracy of English because we are still studying English. So I decided to invite a native speaker and ask for teaching us English and I could do it fortunately. Now he comes to our office every other Tuesday, and we can learn what we should know as a non-native speaker, and always know new words and expressions from various topics and situations on the well-experienced teacher’s lessons.</p><p>That’s it. No big deal. Although yet only few co-workers empathy my ideas, I’m gonna keep on trying.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d52755dfde2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[iOS Lifecycle When Dismissing a Modal View With .pageSheet in iOS 13]]></title>
            <link>https://medium.com/better-programming/the-lifecycle-and-control-when-dismissing-a-modal-view-with-pagesheet-in-ios-13-4bbd1e3e1ec7?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bbd1e3e1ec7</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[swift]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Sat, 25 Jan 2020 14:18:00 GMT</pubDate>
            <atom:updated>2020-02-11T12:38:26.937Z</atom:updated>
            <content:encoded><![CDATA[<h3>iOS Lifecycle When Dismissing a Modal View With .pageSheet in iOS 13</h3><h4>Two key points in the behavior of the new modal view when it is dismissed</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d26tzb_dk3rZ4P-S1WPqKQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@disguise_truth?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Anastasia Zhenina</a> on <a href="https://unsplash.com/s/photos/page-sheet?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Since iOS 13, you have been able to implement a half-modal behavior as a screen transition by default and close the modal view by swiping down.</p><h3>New Instance Methods of UIAdaptivePresentationControllerDelegate</h3><ul><li>presentationControllerDidAttemptToDismiss(_:)</li><li>presentationControllerShouldDismiss(_;)</li><li>presentationControllerWillDismiss(_;)</li><li>presentationControllerDidDismiss(_;)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/1*OTVdjUrBLT8Pq1DesHsE5w.png" /></figure><h3>The Lifecycle When Dismissing a Modal View With .pageSheet by Swiping</h3><p>When you use the delegate methods, you have to get your head around the lifecycle when dismissing a modal view. It is easy for you to understand it by looking at <a href="https://devstreaming-cdn.apple.com/videos/wwdc/2019/224xnuourakjstfak/224/224_modernizing_your_ui_for_ios_13.pdf?dl=1">some WWDC19 slides</a>.</p><ul><li>If isModalPresentation is true, DidAttemptToDismiss is called.</li><li>if isModalPresentation is false or not configured, the following methods are called in this sequence order: ShouldDismiss -&gt; WillDismiss -&gt; DidDismiss.</li></ul><h4>What is isModalPresentation?</h4><p>isModalPresentation is a new UIViewController property from iOS 13.</p><p>If the property is true, the view, which is displayed onscreen modally, is prevented from being dismissed. In other words, the modal view cannot be closed by swiping down when the property is true.</p><p>In this case, using DidAttemptToDismiss is beneficial. It is a delegate method called by the event that fires when swiping down and isModalPresentation is true.</p><p>Therefore, you can run dismiss(animate: true), processing things such as showing a dialog or something like that in the delegate method at your convenience.</p><blockquote>“The default value of this property is false. When you set it to true, UIKit ignores events outside the view controller’s bounds and prevents the interactive dismissal of the view controller while it is onscreen.” — <a href="https://developer.apple.com/documentation/uikit/uiviewcontroller/3229894-ismodalinpresentation">Apple Developer Documentation</a></blockquote><h3>Two Control Patterns When Swiping Down a Modal View With .pageSheet</h3><p>As viewWillAppear is never called on the parent view controller when swiping down a modal view with .pageSheet, you have to use the aforementioned delegate methods when you want to pass values, events, and so on to the parent view controller.</p><p>Below are two general patterns of the implementation.</p><h4>Pattern 1: No controlling the behavior when dismissing a modal view with <em>.pageSheet</em></h4><p>When you set false or nothing to .isModalPresentation, as the delegate methods ShouldDismiss -&gt; WillDismiss -&gt; DidDismiss can be called, you can pass events by delegate or closure methods by using WillDismiss or DidDismiss.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8fc2c7a46e1bb117e580092d10eb2b29/href">https://medium.com/media/8fc2c7a46e1bb117e580092d10eb2b29/href</a></iframe><p>Adding:<strong> </strong>I noticed one issue with the above implementation. The delegate methods are called after the modal view is closed completely, therefore, a little delay could occur depending on the latter processing.</p><p>If so, you are better off calling dismiss in DidAttemptToDismiss and passing events through delegate methods or closures, as the performance is slightly faster (about 0.5 sec).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62fa13ce25b6fd0101d79a561e5403ff/href">https://medium.com/media/62fa13ce25b6fd0101d79a561e5403ff/href</a></iframe><h4><strong>Pattern 2: Controlling the behavior when dismissing a modal view with .pageSheet (cited from Apple sample code)</strong></h4><p>The <a href="https://developer.apple.com/documentation/uikit/view_controllers/disabling_pulling_down_a_sheet">Apple sample code</a> sets isModalPresentation to true and uses presentationControllerDidAttemptToDismiss(_:).</p><p>How does it work?</p><ol><li>If you edit text in the modal view and then swipe down, the app shows a dialog to confirm if you want to save or discard the changes.</li><li>The app runs dismiss(animated: true) when you select an action in the dialog. Passing values and propagating events to the parent view controller also occur at the same time.</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0af482ce27694c96df211bade5cd942d/href">https://medium.com/media/0af482ce27694c96df211bade5cd942d/href</a></iframe><h3>Wrapping Up</h3><p>You have to grasp the following key points in the behavior of the new modal view when being dismissed.</p><ul><li>The lifecycle changes significantly depending on isModalPresentation.</li><li>viewWillAppear is never called on the parent view controller when dismissing a modal view.</li></ul><h3>Resources</h3><ul><li><a href="https://qiita.com/hirothings/items/554288583d581a8a929c">This original Japanese article by @hirothings</a></li><li><a href="https://developer.apple.com/videos/play/wwdc2019/224">Modernizing Your UI for iOS 13 (WWDC19)</a></li><li><a href="https://developer.apple.com/documentation/uikit/view_controllers/disabling_pulling_down_a_sheet">Disabling Pulling Down a Sheet (Sample Code)</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bbd1e3e1ec7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/better-programming/the-lifecycle-and-control-when-dismissing-a-modal-view-with-pagesheet-in-ios-13-4bbd1e3e1ec7">iOS Lifecycle When Dismissing a Modal View With .pageSheet in iOS 13</a> was originally published in <a href="https://betterprogramming.pub/">Better Programming</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to handle $(MARKETING_VERSION) of Xcode 11 by CI]]></title>
            <link>https://medium.com/@cafedeichi/how-to-handle-marketing-version-of-xcode-11-by-ci-db64a0ac71b9?source=rss-69373475dd60------2</link>
            <guid isPermaLink="false">https://medium.com/p/db64a0ac71b9</guid>
            <category><![CDATA[bitrise]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <category><![CDATA[xcode]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Ichiro Hirata]]></dc:creator>
            <pubDate>Sat, 28 Dec 2019 13:36:05 GMT</pubDate>
            <atom:updated>2020-03-01T13:10:30.777Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bt0Hp51bvPz8I543wyNbVA.png" /></figure><p><em>(Here is </em><a href="https://qiita.com/hirothings/items/8b417b2efe2e1c1bc0ac"><em>the original Japanese article</em></a><em> published by </em><a href="https://twitter.com/hirothings"><em>@hirothings</em></a><em>.)</em></p><p>Since Xcode 11, CFBundleShortVersionString, which manages a release version number in Info.plist, is no longer a static value, but refers to $(MARKETING_VERSION) in the Build Settings; therefore, when the version changes in the Identity section on the General tab of the project editor, $(MARKETING_VERSION) is also modified.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJmqtDyFAW_o0hBNQT-uxA.jpeg" /><figcaption>Bundle version string, short in Info.plist</figcaption></figure><h3>Issue</h3><p>If you get the value from Info.plist in the same way as before, you cannot get the version number anymore, but literally $(MARKETING_VERSION) . In addition, you will probably be in trouble when you have to tag some specific points in a repository’s history for example. I suppose that is the point when using CI tools.</p><h3>Solution (Shell Script)</h3><p>In summary, you have to get the value from the Build Settings directly. It is not so difficult as you just do it by using the following single-line statement <em>(cited from </em><a href="https://stackoverflow.com/a/58769925/2597759"><em>an answer on StackOverFlow</em></a><em>).</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a52400ccf7027c995ad18546077f386/href">https://medium.com/media/4a52400ccf7027c995ad18546077f386/href</a></iframe><h4>When you use Bitrise…</h4><p>You better off using the Script step. The following script is an example to set a release version number to an environment variable “GIT_TAG”.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8429696f80e68b5fd638a87bc0a2e59/href">https://medium.com/media/f8429696f80e68b5fd638a87bc0a2e59/href</a></iframe><h4>fastlane Plugin</h4><p>You are alternatively able to use <a href="https://github.com/SiarheiFedartsou/fastlane-plugin-versioning">fastlane-plugin-versioning</a> and execute the lane command, as it has already supported $(MARKETING_VERSION) handling.</p><ul><li><a href="https://github.com/SiarheiFedartsou/fastlane-plugin-versioning/issues/37">Xcode 11 &gt; $(MARKETING_VERSION) #37</a></li><li><a href="https://github.com/SiarheiFedartsou/fastlane-plugin-versioning#about-versioning">About versioning</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db64a0ac71b9" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>