<?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 Gabriel Rodríguez on Medium]]></title>
        <description><![CDATA[Stories by Gabriel Rodríguez on Medium]]></description>
        <link>https://medium.com/@gabrc?source=rss-7c28f9f1e1c6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1YLXjOSzvZ9rf_qa2aqoVw.jpeg</url>
            <title>Stories by Gabriel Rodríguez on Medium</title>
            <link>https://medium.com/@gabrc?source=rss-7c28f9f1e1c6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 13:12:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gabrc/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[How to easily adjust video speeds on one click]]></title>
            <link>https://gabrc.medium.com/how-to-easily-adjust-video-speeds-on-one-click-6d75e8c7a2b6?source=rss-7c28f9f1e1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6d75e8c7a2b6</guid>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[speed]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[facebook]]></category>
            <dc:creator><![CDATA[Gabriel Rodríguez]]></dc:creator>
            <pubDate>Wed, 28 Oct 2020 01:54:54 GMT</pubDate>
            <atom:updated>2020-10-28T01:54:54.386Z</atom:updated>
            <content:encoded><![CDATA[<p>Add the following line to your bookmarks, as if it were a URL.</p><p>(One way to do this is to press Ctrl+D to bookmark this page, then right click the bookmark and click Edit, then change the URL)<em>.</em></p><pre>javascript:(function(){var speed = prompt(&quot;Enter speed&quot;); if (speed) document.getElementsByTagName(&quot;video&quot;)[0].playbackRate = speed;})();</pre><p>Now, if you’re watching a video on a website that doesn’t let you change the speed (like Facebook), just click on the bookmark and enter the desired speed as a number (i.e. 1=original speed, 2=twice the original speed, 1.5=50% faster than the original speed, etc.).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6d75e8c7a2b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to migrate your Flutter app to AndroidX]]></title>
            <link>https://gabrc.medium.com/how-to-migrate-your-flutter-app-to-androidx-1202ad43c8c8?source=rss-7c28f9f1e1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1202ad43c8c8</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Gabriel Rodríguez]]></dc:creator>
            <pubDate>Wed, 27 Feb 2019 20:06:53 GMT</pubDate>
            <atom:updated>2019-03-12T02:08:56.563Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re getting build (Gradle) errors when adding recent versions of plugins, and if you’re having trouble following the instructions on the <a href="https://developer.android.com/jetpack/androidx/migrate">Android site</a>, follow these instructions.</p><h4>Under android/app/build.gradle, do the following changes:</h4><p>Replace compileSdkVersion 27 with compileSdkVersion 28.</p><p>Under defaultConfig {:</p><p>Replace targetSdkVersion 27 with targetSdkVersion 28.</p><p>Replace android.support.test.runner.AndroidJUnitRunner with androidx.test.runner.AndroidJUnitRunner.</p><p>Under dependencies {:</p><p>Replace com.android.support.test.runner:1.0.2 with androidx.test.runner:1.1.1 and com.android.support.test.espresso:espresso-core:3.0.2 with androidx.test.espresso:espresso-core:3.1.1. (Version numbers may vary)</p><h4>In android/gradle/wrapper/gradle-wrapper.properties</h4><p>Change the line starting with distributionUrl like this:</p><pre>distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip</pre><h4>In android/build.gradle</h4><p>Under dependencies {, change classpath &#39;com.android.tools.build:gradle:3.2.1&#39; to classpath &#39;com.android.tools.build:gradle:3.3.0&#39; .</p><h4>In android/gradle.properties</h4><p>Append the following:</p><pre>android.enableJetifier=true<br>android.useAndroidX=true</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1202ad43c8c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Developing and debugging Flutter apps for iOS without a Mac]]></title>
            <link>https://medium.com/flutter-community/developing-and-debugging-flutter-apps-for-ios-without-a-mac-8d362a8ec667?source=rss-7c28f9f1e1c6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d362a8ec667</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[androiddev]]></category>
            <category><![CDATA[continuous-integration]]></category>
            <category><![CDATA[ios-app-development]]></category>
            <dc:creator><![CDATA[Gabriel Rodríguez]]></dc:creator>
            <pubDate>Thu, 10 Jan 2019 19:49:48 GMT</pubDate>
            <atom:updated>2022-07-18T02:05:18.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VkFBn6nB2CgX2L2H_juz3A.png" /></figure><blockquote><strong>2022 UPDATE:</strong></blockquote><blockquote>It is now possible to use a macOS VM to run and debug Flutter apps on iOS devices, thanks to <a href="https://github.com/corellium/usbfluxd">usbfluxd</a> which is a useful tool that redirects iOS devices connected via USB from the host to the guest (or any two machines). I wrote <a href="https://gist.github.com/gabrc52/2960d9905b835bdf750fc54f983d0412">a script</a> that automates all commands needed to do this. I then use VSCode directly on the VM.</blockquote><blockquote>However, since using a VM requires beefier computers with enough RAM for both the host and guest, I don’t think this is a replacement for what this former tutorial achieved, which worked on 4 GB of RAM and maybe even 2.</blockquote><blockquote>On Linux, I like using <a href="https://github.com/kholia/OSX-KVM">OSX-KVM</a>, because I prefer Virt Manager, and <a href="https://gist.github.com/gabrc52/2960d9905b835bdf750fc54f983d0412">my script</a> is written for that specific setup (if you have a different setup, you’ll need to change the IP addresses). <a href="https://snapcraft.io/install/sosumi/ubuntu">Sosumi</a> is a snap package that automates all VM setup, if you use Ubuntu or like Snaps. <a href="https://github.com/sickcodes/Docker-OSX">Docker-OSX</a> is another option, and has a good Discord community so it’s probably the easiest one to get support to troubleshoot any issues.</blockquote><blockquote>As for Windows, I don’t have any VM recommendations. I’m not sure if usbfluxd runs on Windows to begin with, so this may only be possible on Linux now.</blockquote><blockquote>If these instructions aren’t specific enough to you, or you think it would be of value to write a tutorial to replicate my setup, please let me know in the comments section of <a href="https://gist.github.com/gabrc52/2960d9905b835bdf750fc54f983d0412">https://gist.github.com/gabrc52/2960d9905b835bdf750fc54f983d0412</a></blockquote><blockquote>Update: Flutter 1.17.0 now uses XCode instead of libimobiledevice to list devices. At the moment, you can downgrade to Flutter 1.12.13+hotfix.9, or use the new Codemagic feature that allows you to remote control a Mac VM, and run a virtual device there (<a href="https://blog.codemagic.io/remote-access-to-virtual-mac-build-machine/">https://blog.codemagic.io/remote-access-to-virtual-mac-build-machine/</a>)</blockquote><p>— — —</p><p>This tutorial is now outdated, but it is still available for reference purposes, since you can still build apps this way and install them on iOS devices. What won’t work anymore from here is debugging on iOS. It’s still technically possible to debug (hot reload and hot restart) without ever touching macOS. If you are interested in working on making a new method to do exactly this, there are 2 ways I can think of:</p><ul><li>if anyone makes a pull request to Flutter that makes it use libimobiledevice tools instead of XCode tools (see <a href="https://github.com/flutter/flutter/issues/56511">https://github.com/flutter/flutter/issues/56511</a>)</li><li>maybe you could manually forward the ports via iproxy and manually flutter attach to the port.</li></ul><p>What is more, Flutter doesn’t allow launching a debug app from the home screen on iOS 14+ so this would be another change to fix to achieve what used to be achievable.</p><p>I don’t have the availability to do this, since what I now use is OSX-KVM and usbfluxd, so I do touch a Mac now, even if it’s not a bare metal one (see the 2022 update at the top of this post).</p><p>— — —</p><p>It is possible to hot reload and hot restart your Flutter app on your iOS devices without having to use a Mac just like you can with Android devices! Here’s how:</p><h3>Get a debug build of your app running on your iOS device</h3><p>You could do that with a Mac (or Hackintosh, or VM), but since we don’t have access to a macOS machine we can use one remotely via Codemagic or Travis CI — completely free! (<strong>as long as your project is on a GitHub, Bitbucket or GitLab repository</strong>).</p><h4>Recommended: Building the app with Codemagic</h4><blockquote>Codemagic is recommended as it requires less setup and builds pretty fast</blockquote><p>First, create an account or sign in to codemagic.io.</p><p><a href="https://codemagic.io/">Codemagic - CI/CD for Flutter</a></p><p>Then, click the settings (gear) icon next to your app. Scroll down and click on <strong>“Build”</strong>. Make sure <strong>Mode </strong>is set to <strong>Debug</strong>, and select <strong>iOS</strong> under <strong>Build for platforms</strong>.</p><p>By default, Codemagic will test your app. Disable this feature unless you want to use it. <em>(Thanks to Near Cz for the feedback!)</em></p><p>After that, build the app (<strong>Start your first build</strong>).</p><blockquote><strong>New: now Codemagic lets you remote control the macOS virtual machine it uses to build your app. From there, you can run a simulator, test your app, and configure it from XCode. See </strong><a href="https://blog.codemagic.io/remote-access-to-virtual-mac-build-machine/">https://blog.codemagic.io/remote-access-to-virtual-mac-build-machine/</a></blockquote><p>Codemagic will send you an .app file via email.</p><p>Rename it so that it ends with .zip.</p><p>Extract it, and you’ll get a folder called Runner.app.</p><p>Create a folder called Payload and place Runner.app there.</p><p>Finally, compress the folder called Payload — this will be your IPA file (you may rename it to .ipa).</p><p>To continue, skip to <a href="#805c"><strong>Installing and running the app</strong></a>.</p><h4>Alternative: Building the app with Travis CI</h4><blockquote>Note: the free version of Travis CI only supports public GitHub repositories.</blockquote><p>You’ll need to create an account on Travis CI and let it access your GitHub account.</p><p><a href="https://travis-ci.org/">Travis CI - Test and Deploy Your Code with Confidence</a></p><p>Then, create .travis.yml on the root of your project with the following contents:</p><pre>os: osx <br>language: generic <br>before_script: <br> - brew update <br> - brew install --HEAD usbmuxd <br> - brew unlink usbmuxd <br> - brew link usbmuxd <br> - brew install --HEAD libimobiledevice <br> - brew install ideviceinstaller <br> - brew install ios-deploy <br> - git clone https://github.com/flutter/flutter.git -b beta --depth 1 <br>script: <br> - flutter/bin/flutter build ios --debug --no-codesign<br>cache: <br>  directories: <br>  - $HOME/.pub-cache<br>before_deploy: <br>  - pushd build/ios/iphoneos <br>  - mkdir Payload <br>  - cd Payload <br>  - ln -s ../Runner.app <br>  - cd .. <br>  - zip -r app.ipa Payload <br>  - popd</pre><p>You’ll need to have the Travis command-line tools installed: (if the command below isn’t found, install RubyGems from <a href="https://rubygems.org/">https://rubygems.org/</a>)</p><pre>$ gem install travis # Makes sure to have the Travis CLI installed</pre><p>Then, setup deploying to GitHub releases:</p><pre>$ cd your_project<br>$ travis setup releases</pre><p>When prompted for a file to upload, type build/ios/iphoneos/app.ipa.</p><p>Make sure your .travis.yml ends like this:</p><pre>deploy:<br>  provider: releases<br>  api_key:<br>    secure: #your api key will be here<br>  file: build/ios/iphoneos/app.ipa<br><strong>  skip_cleanup: true #important or your built app would be deleted<br></strong>  on:<br>    repo: #your repo will be here</pre><p>Now, push the changes to your GitHub repo:</p><pre>$ git add .travis.yml<br>$ git commit<br>$ git push</pre><p>Now, your app will be built and it will be added to your GitHub releases. Wait a bit for Travis to notice that you’ve added .travis.yml; when it starts you can track the progress of your build. When it’s done, download your app.ipa from your project’s GitHub releases.</p><blockquote>Note: If you don’t want to publish your .ipa file you can add draft: true to deploy:, and it will be published as a draft on GitHub instead.</blockquote><h4>Installing and running the app</h4><p>To install the IPA file, you need to download Cydia Impactor from the link below.</p><p>If you are running Windows, you need to <a href="https://www.apple.com/itunes/download/">install iTunes</a> first. (Make sure to install the non-Microsoft store version: under “<strong>Looking for other versions?</strong>” select Windows, then scroll up and download).</p><blockquote>Edit: a previous version of this article suggested installing the drivers bypassing iTunes installation. Apparently, that doesn’t work. (thanks to <a href="https://medium.com/@andreas.opferkuch?source=post_page-----1dc984d13b54----------------------">Andreas Opferkuch</a> for pointing it out)</blockquote><p><a href="http://www.cydiaimpactor.com/">Cydia Impactor</a></p><p><strong>Update: Cydia Impactor seems to be broken at the moment</strong>. If you have a developer account, you may follow <a href="https://weisser-zwerg.dev/posts/ios-app-without-mac/">Weisser Zwerg’s tutorial</a> (thanks for sharing!) to sign and install the app. If you have a jailbroken device, you may use <a href="https://github.com/angelXwind/AppSync">AppSync unified</a> and <a href="https://github.com/libimobiledevice/ideviceinstaller">ideviceinstaller</a>. There are alternative tools to Cydia Impactor, but I can’t guarantee they’re malware-free, so use them at your own risk.</p><ul><li>Plug in your iOS device to your computer</li><li>Run the Impactor executable</li><li>Click “<strong>Xcode</strong>”, then “<strong>Revoke Certificates</strong>”</li><li>Now, drag app.ipa (or the ZIP file you created) to the Cydia Impactor window (or use Device &gt; Install Package…)</li><li>You will be prompted to enter your Apple ID email and password. If it’s protected with two-factor authentication or you get an error message, you will need to create an app-specific password and use it instead of your password. See <a href="https://support.apple.com/en-us/HT204397">https://support.apple.com/en-us/HT204397</a>. <em>(thanks to Near Cz for pointing it out!)</em></li><li>On your iOS device, go to <strong>Settings </strong>&gt; <strong>General</strong> &gt; <strong>Device Management</strong> (or Profiles &amp; Device Management), tap your Apple ID email you just used to sign in, then <strong>Trust</strong>.</li><li>Hooray! Our app is now installed.</li></ul><h3>Preparing your machine</h3><h4>Install dependencies</h4><p>Make sure libimobiledevice and ideviceinstaller are installed (the latter isn’t used but Flutter will complain if it isn’t present):</p><p><strong>On Windows:</strong></p><blockquote>The previous link didn’t have binaries anymore, thanks to <a href="https://medium.com/@andreas.opferkuch?source=post_page-----1dc984d13b54----------------------">Andreas Opferkuch</a> for sharing an alternative one!</blockquote><p>Download imobiledevice binaries from <a href="http://docs.quamotion.mobi/docs/imobiledevice/download">here</a>. You also need a “which” binary, which you can download <a href="http://downloads.sourceforge.net/gnuwin32/which-2.20-bin.zip">here</a>. Add these binaries to flutter\bin (or any other location, <strong>but make sure it’s in your </strong><strong>PATH </strong>).</p><p><strong>On Arch/Manjaro/Antergos:</strong></p><pre>$ pacaur -S libimobiledevice ideviceinstaller-git</pre><p><strong>On Ubuntu/Mint/etc:</strong></p><pre>$ sudo apt install libimobiledevice6 ideviceinstaller</pre><p>You might also need to install these packages (thanks <a href="https://medium.com/@_.joaorodrigues?source=post_page-----8768808e109f----------------------">João Matheus</a>):</p><pre>$ sudo apt install libimobiledevice-utils libusbmuxd-tools</pre><h3>Modify Flutter</h3><p>When detecting devices, Flutter checks whether you’re running macOS before searching for iOS devices. It also checks for XCode. Let’s remove those checks.</p><p><strong>Note: it’s not working with the current stable (1.17.0) version. In the meantime, you can use Flutter 1.12.13+hotfix.9 instead.</strong></p><p><em>Apparently, now Flutter uses XCode utilities instead of libimobiledevice, so the patch will not be as straight-forward. In the meantime, use an older version, or help contribute with the patch or another solution (fork, or a way of undoing the specific commits with the changes). I’ll update the article once this gets solved.</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4844a2fc578c60ac1ecac4b1e3a4e0b7/href">https://medium.com/media/4844a2fc578c60ac1ecac4b1e3a4e0b7/href</a></iframe><p>Download this file to your flutter folder (Click on “View raw” and press Ctrl+S). Then apply it: (this was tested with the stable branch on late April to early May)</p><pre>$ cd flutter<br>$ git apply ios.diff</pre><p>Then rebuild the Flutter tool:</p><p>Linux:</p><pre>$ bin/cache/dart-sdk/bin/dart --snapshot=./bin/cache/flutter_tools.snapshot --packages=./packages/flutter_tools/.packages ./packages/flutter_tools/bin/flutter_tools.dart</pre><p>Windows:</p><pre>bin\cache\dart-sdk\bin\dart --snapshot=.\bin\cache\flutter_tools.snapshot --packages=.\packages\flutter_tools\.packages .\packages\flutter_tools\bin\flutter_tools.dart</pre><h3>Preparing your project(s)</h3><p>Make sure there’s a folder inside your project called build. If it’s not present, create it!</p><h3>Running and debugging</h3><p><strong>Here comes the good part!</strong></p><h4>Using an IDE (VS Code):</h4><ul><li>Open the command palette (Ctrl+Shift+P), and select <strong>“Debug: Attach to Flutter process”</strong>.</li><li>Open the app, and wait for Flutter to sync files.</li><li>You can now hot reload and hot restart as usual!</li></ul><blockquote>Tip: If hot reload doesn’t work, hot restart first!</blockquote><h4>Using the command-line:</h4><ul><li>Run flutter attach. This will wait until the app is launched and start debugging as if we’d used flutter run.</li><li>Open the app, and wait for Flutter to sync files.</li><li>You can now hot reload by pressing <strong>r</strong> and hot restart by pressing <strong>R</strong>!</li></ul><h4>Credits</h4><p>Thanks to Yegor Jbanov for their post:</p><p><a href="https://medium.com/@yegorj/building-flutter-apks-and-ipas-on-travis-98d84d8e9b4">Building Flutter APKs and IPAs on Travis</a></p><blockquote>Have any questions or feedback? Please leave a comment!</blockquote><blockquote>If you liked this, don’t forget to clap, it’ll be greatly appreciated!</blockquote><p><a href="https://twitter.com/FlutterComm">JavaScript is not available.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d362a8ec667" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/developing-and-debugging-flutter-apps-for-ios-without-a-mac-8d362a8ec667">Developing and debugging Flutter apps for iOS without a Mac</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>