<?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 Mustafa KIZILTAY on Medium]]></title>
        <description><![CDATA[Stories by Mustafa KIZILTAY on Medium]]></description>
        <link>https://medium.com/@mkiziltay?source=rss-283993997bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IP_viWergyY9CGGf</url>
            <title>Stories by Mustafa KIZILTAY on Medium</title>
            <link>https://medium.com/@mkiziltay?source=rss-283993997bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:12:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mkiziltay/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[CMD ile kablosuz dosya paylaşımı]]></title>
            <link>https://medium.com/@mkiziltay/cmd-ile-kablosuz-dosya-payla%C5%9F%C4%B1m%C4%B1-4b0a2443c6c4?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b0a2443c6c4</guid>
            <category><![CDATA[send]]></category>
            <category><![CDATA[wireless]]></category>
            <category><![CDATA[cmd]]></category>
            <category><![CDATA[quick-share]]></category>
            <category><![CDATA[file-sharing]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Sun, 06 Dec 2026 07:22:21 GMT</pubDate>
            <atom:updated>2026-12-06T07:22:21.960Z</atom:updated>
            <content:encoded><![CDATA[<p>Windows bilgisayarınız ile Android telefonunuz arasında <strong>CMD (Komut İstemi)</strong> kullanarak kablosuz dosya aktarmanın en hızlı ve programsız yolu, Python veya yerleşik Windows komutlarıyla <strong>yerel bir HTTP sunucusu</strong> kurmaktır. Bu yöntemle telefonunuza hiçbir uygulama yüklemeden, sadece tarayıcıyı (Chrome veya Samsung Internet) kullanarak bilgisayardaki dosyaları indirebilirsiniz.</p><p>1. Bilgisayarınızın yerel IP adresini öğrenin</p><p>Telefonun bilgisayarı bulabilmesi için aynı Wi-Fi ağına bağlı olmanız gerekir.</p><ul><li><strong>CMD’yi açın:</strong> Windows arama çubuğuna cmd yazıp Komut İstemi&#39;ni çalıştırın.</li><li><strong>IP adresini bulun:</strong> Aşağıdaki komutu yazıp Enter’a basın:</li><li>cmd üzerinden aşağıdaki kodu ip adresinizi bulmak için çalıştırın</li><li>ipconfig</li><li><strong>Adresi not alın:</strong> Listede <strong>Wireless LAN adapter Wi-Fi</strong> başlığı altındaki <strong>IPv4 Address</strong> satırının karşısındaki numarayı (örneğin 192.168.1.35) not edin.</li></ul><p>2. Paylaşmak istediğiniz klasöre gidin</p><p>CMD ekranında dosyalarınızın bulunduğu klasöre geçiş yapın (örneğin Masaüstü için):</p><p>cmd üzerinden paylamak istediğiniz dosyayı içeren klasöre gidin. Masaüstü için aşağıdaki kodu yazabilirsiniz</p><pre>cd Desktop</pre><pre>D: (bu komutu yazarak d sürücüsüne gidebilirsiniz. tabi bu parantez ve içini yazmayın)</pre><p>ardında cd D:\myFolder\share komutu gibi bir komutla dosya klasörüne gidebilirsiniz</p><p>3. Yerel dosya sunucusunu başlatın</p><p>Bilgisayarınızda Python yüklüyse tek bir komutla o klasörü kablosuz paylaşıma açabilirsiniz:</p><p>cmd</p><pre>python -m http.server 8000</pre><ul><li><strong>Not:</strong> Python yüklü değilse ve curl veya tar gibi araçlar yerine çift yönlü (hem gönderme hem alma) aktarım istiyorsanız CMD üzerinden winget install Python.Python.3.12 komutuyla saniyeler içinde kurabilirsiniz.</li></ul><p>4. Android telefonunuz üzerinden dosyalara erişin</p><ul><li>Telefonunuzda <strong>Chrome</strong> veya <strong>Samsung Internet</strong> tarayıcısını açın.</li><li>Adres çubuğuna bilgisayarınızın IP adresini(not aldığınız IPv4 adresi) ve port numarasını yazıp girin:<br>http://192.168.1.35:8000 <em>(Kendi IPv4 numaranızı yazın)</em></li><li>Bilgisayarınızdaki klasör içeriği telefon ekranında listelenecektir; istediğiniz dosyaya dokunarak anında indirebilirsiniz.</li><li><strong>İşlem bitince kapatın:</strong> Paylaşımı durdurmak için CMD penceresine tıklayıp <strong>Ctrl + C</strong> tuşlarına basın.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b0a2443c6c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to know what is flutter.targetSdkVersion]]></title>
            <link>https://medium.com/@mkiziltay/how-to-know-what-is-flutter-targetsdkversion-6ebfe196d792?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ebfe196d792</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[sdk]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 14:20:00 GMT</pubDate>
            <atom:updated>2026-07-27T14:20:00.387Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hi everyone, now I’ll explain how to find out which API level a project supports in Flutter.</strong></p><p><em>Merhaba arkadaşlar, şimdi size flutter da projenin hangi api düzeyini desteklediğini anlamanın yolunu anlatacağım. burada flutter’ın uygulamanızda hangi api leveli kullandığını öğreneceksiniz.</em></p><p><strong>You need to find the file named “FlutterExtension.kt” by following this directory path in the partition where your Flutter src folder is installed.</strong></p><p><em>flutter src dosyanızın kurulu olduğu bölümde şu dizin yolunu takip ederek “</em><em>FlutterExtension.kt” adlı dosyayı bulmanız gerekiyor.</em></p><blockquote><strong>“YOUR SRC FOLDER LOCATION”\flutter\packages\flutter_tools\gradle\src\main\kotlin</strong></blockquote><p><strong>Once you find the file, you can drag and drop it into VS Code to open it. Or you open it with like Notepadd+ text editor programs or etc.</strong></p><p><em>Dosyayı bulduğunuzda sürükleyip VS Code uygulasına bırakarak açabilirsiniz. Veya dosyayı notepad+ gibi text editör ile açabilirsiniz.</em></p><p><strong>After examining the file, you will find the following information:<br>-val minSdkVersion: Int = 24<br>-val compileSdkVersion: Int = 36<br>-val targetSdkVersion: Int = 36<br>val ndkVersion: String = “28.2.13676358”</strong></p><p><em>Dosyayı incelemeniz ardından aşağıdaki bilgilere ulaşmış olacaksınız.<br>-val minSdkVersion: Int = 24<br>-val compileSdkVersion: Int = 36<br>-val targetSdkVersion: Int = 36<br>val ndkVersion: String = “28.2.13676358”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ebfe196d792" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Solid Button Style]]></title>
            <link>https://medium.com/@mkiziltay/flutter-solid-button-style-a76310225d54?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a76310225d54</guid>
            <category><![CDATA[style]]></category>
            <category><![CDATA[button]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Wed, 19 Mar 2025 15:21:01 GMT</pubDate>
            <atom:updated>2025-03-19T16:21:41.462Z</atom:updated>
            <content:encoded><![CDATA[<p>some works about button styles</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*q0tzp-Ljb53v8hTWtQvqKA.png" /></figure><pre>import &#39;package:flutter/material.dart&#39;;<br><br>class MyAppButtons extends StatelessWidget {<br>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      home: Scaffold(<br>        appBar: AppBar(title: Text(&#39;Styled Buttons&#39;)),<br>        body: Center(<br>          child: Wrap(<br>            spacing: 10,<br>            runSpacing: 10,<br>            children: [<br>              _buildStyledButton(<br>                text: &#39;HESAPLA&#39;,<br>                borderColor: Colors.blue,<br>                textColor: Colors.blue,<br>                borderWidth: 3.0, ontap: () {  },<br>              ),<br>              _buildStyledButton(<br>                ontap: (){},<br>                text: &#39;Secondary&#39;,<br>                borderColor: Colors.purple,<br>                textColor: Colors.purple,borderWidth: 3.0,<br>              ),<br>              _buildStyledButton(<br>                text: &#39;Success&#39;,<br>                borderColor: Colors.green,<br>                textColor: Colors.green,borderWidth: 2.0, ontap: () {  },<br>                <br>              ),<br>              _buildStyledButton(<br>                <br>                text: &#39;Warning&#39;,<br>                borderColor: Colors.orange,borderWidth: 2.0,<br>                textColor: Colors.orange, ontap: () {  },<br>              ),<br>              _buildStyledButton(<br>                text: &#39;Danger&#39;,<br>                borderColor: Colors.red,<br>                textColor: Colors.red,borderWidth: 2.0, ontap: () {  },<br>              ),<br>              _buildStyledButton(<br>                text: &#39;Info&#39;,<br>                borderColor: Colors.lightBlue,<br>                textColor: Colors.lightBlue,borderWidth: 2.0, ontap: () {  },<br>              ),<br>            ],<br>          ),<br>        ),<br>      ),<br>    );<br>  }<br><br>  Widget _buildStyledButton({<br>    required String text,<br>    required Color borderColor,<br>    required Color textColor,<br>    required Function() ontap,<br>    Color backColor=Colors.white,<br>    double borderWidth=1.0,<br>    Color shadowColor = Colors.grey,<br>    double borderRadius=8.0,<br>    double paddingHorizontal=20,<br>    double paddingVertical=10,<br>  }) {<br>    return Container(<br>      decoration: BoxDecoration(<br>        color: backColor, // Or a very light gray<br>        borderRadius: BorderRadius.circular(borderRadius), // Adjust for corner roundness<br>        border: Border.all(color: borderColor, width: borderWidth),<br>        boxShadow: [ // Add boxShadow here<br>        BoxShadow(<br>          color: shadowColor, // Shadow color and opacity<br>          spreadRadius: 2, // Spread radius<br>          blurRadius: 5, // Blur radius<br>          offset: Offset(0, 3), // Offset in x and y directions<br>        ),<br>      ], // Thin border<br>      ),<br>      padding: EdgeInsets.symmetric(horizontal: paddingHorizontal, vertical: paddingVertical), // Adjust padding<br>      child: GestureDetector(<br>        child: Text(<br>          text,<br>          style: TextStyle(color: textColor, fontWeight: FontWeight.bold),<br>        ),<br>        onTap: ontap,<br>      ),<br>    );<br>  }<br>}</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a76310225d54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Isolates: A Closer Look (async-future-isolate for background tasks)]]></title>
            <link>https://medium.com/@mkiziltay/flutter-isolates-a-closer-look-async-future-isolate-for-background-tasks-03caee6b44d2?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/03caee6b44d2</guid>
            <category><![CDATA[threads]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[background-process]]></category>
            <category><![CDATA[computation]]></category>
            <category><![CDATA[isolate]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 07:02:10 GMT</pubDate>
            <atom:updated>2025-02-03T07:02:10.199Z</atom:updated>
            <content:encoded><![CDATA[<p>I will mention about Flutter isolates package which allows for accurate processing of large transactions.</p><p>Flutter Isolates provide a way to perform computationally expensive tasks in a separate thread or process, independent of the main thread. This is useful when performing tasks that might block the main thread, such as network requests, heavy calculations, or file I/O operations. By using isolates, these tasks can be performed in the background, without interfering with the user interface.</p><p>Isolates in Flutter are similar to threads in other programming languages. They have their own memory space and can run concurrently with other isolates. Communication between isolates is achieved through message passing, which involves sending and receiving messages using the isolate’s SendPort and ReceivePort APIs. “Isolates” in Flutter do not share memory.</p><h3><strong>So in what cases should it be used?</strong></h3><p>There are no restrictions, but the recommended actions can be listed as follows.</p><ul><li>Parsing and decoding exceptionally large JSON blobs.</li><li>Processing and compressing photos, audio and video.</li><li>Converting audio and video files.</li><li>Performing complex searching and filtering on large lists or within file systems.</li><li>Performing I/O, such as communicating with a database.</li><li>Handling a large volume of network requests.</li></ul><blockquote>There are asynchronous operations in flutter. In order for some operations to be executed, the current process must wait for the functions defined for asynchronous operations. However, since these operations do not proceed in parallel, they may have to stop the current UI. Flutter isolates allow these operations to be executed in the same thread or in parallel threads without having to stop the UI.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*1xsRWqXVi0AFfe0RQH0R0Q.jpeg" /></figure><p>Isolate.run example;</p><pre>void main() async {<br>  // Read some data.<br>  final bigData= await Isolate.run(() async {<br>    final fileData = await File(filename).readAsString();<br>    final jsonData = jsonDecode(fileData) as Map&lt;String, dynamic&gt;;<br>    return jsonData;<br>  });<br><br>  // Use that data.<br>  print(&#39;Number of JSON keys: ${bigData.length}&#39;);<br>}</pre><p>Isolate =&gt; compute example;</p><pre>import &#39;package:flutter/foundation.dart&#39;;<br>void main() async {<br>  // Read some data.<br>  final fileData= await decode(encodedString);<br><br>  // Use that data.<br>  print(&#39;Here is the decoded string from encoded file data: $fileData&#39;);<br>}<br><br>///decoding a string in same isolate<br>String decodeStringData(String s) {<br>  return Decoder(s);<br>}<br><br>/// performs string decoding a separate isolate<br>Future&lt;String&gt; decode(String s) async {<br>  return await compute(decodeStringData, s);<br>}</pre><p>Let’s note here that the function takes data of type String and returns type String. When the function takes an integer, it will return the integer or other data types with the same logic.</p><p>another example of compute. this compute func. called from flutter package in foundation.dart. we need to import it</p><pre>import &#39;package:flutter/foundation.dart&#39;;<br><br>Future&lt;int&gt; computeBigProcess(int n) async { <br>  return await compute(_longProcess, n); <br>} <br>  <br>int _longProcess(int n) {<br>int result = ... long computation ...<br>  return result; <br>} <br>  <br>void main() async { <br>  final result = await computeBigProcess(5000000000000); <br>  print(&#39;And the result: $result&#39;); <br>}</pre><p>and Isolate.spawn example:</p><pre>import &#39;dart:isolate&#39;;<br><br>void computeSum(SendPort sendPort) {<br>  final sum = compute(...) numbers from 1 to 50000000 // a func to sum between bumbers<br>  sendPort.send(sum);<br>}<br><br>void main() async {<br>  final receivePort = ReceivePort();<br>  await Isolate.spawn(computeSum, receivePort.sendPort);<br>  receivePort.listen((data) {<br>    print(&#39;Sum from isolate: $data&#39;);<br>    receivePort.close();<br>  });<br>}</pre><p>and here we used dart:isolate package for example. we may use flutter/foundation package also.</p><p>Here, the compute() function takes care of the details of creating the isolate and managing the communication. It’s more concise and easier to use for simple tasks.</p><blockquote><em>Note: For the </em><em>compute() function, you need to import the foundation.dart from the Flutter package.</em></blockquote><p>Choose the method that best fits your requirements. For simple, CPU-bound tasks, compute() is often easier and more concise. For more complex tasks that involve more communication or setup, Isolate.spawn() might be more suitable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*wZTsMyvoqUXYephMLs5nrg.png" /></figure><p>We can also use Isolate.run() to do the same.</p><p>Also, you can check out different isolate packages, such as <a href="https://pub.dev/packages/flutter_isolate">flutter_isolate</a>.</p><h3>If you notice here, the function only takes 1 parameter. Now I will show you how to apply more complicated and more parameters in one step.</h3><pre>import &#39;package:flutter/foundation.dart&#39;;<br><br>void main() async {<br>  // get data with isolate with parameters.<br>final result = await workIsolate(x,y,z);<br>print(result);<br>  <br>}<br><br>Future&lt;String&gt; workIsolate(<br>    String param1,<br>    String param 2,<br>    String param 3) async {<br>  List&lt;String&gt; args = [param1, param2, param3];<br>  return await compute(workProcess, args);<br>}<br><br>Future&lt;String&gt; workProcess(List&lt;String&gt; args) async {<br>  String a= args[0];<br>  String b= args[1];<br>  String c= args[2];<br>  // think here long process with a<br>  ....<br>  // long process with b<br>  ....<br>  // long process with c<br>  ...<br>  return resultOfLongProcess;<br>}</pre><p>You can pass different parameter types but change return type dynamic.</p><blockquote>You should decide whether to use Future or Isolate based on how long it takes on average to run a code. If the UI hangs are not noticeable, you may use async task, but if functions are likely to take a long time, you should use isolate.</blockquote><p><strong><em>If a method takes a couple of milliseconds =&gt; Future</em></strong><em><br></em><strong><em>If a processing might take several hundreds of milliseconds =&gt; Isolate</em></strong></p><p>for different informations <a href="https://medium.com/@panuj330/flutters-secret-weapon-for-heavy-computations-isolates-explained-bf7aef2228c5">visit.</a></p><p>for error handling for isolates <a href="https://medium.com/dartlang/better-isolate-management-with-isolate-run-547ef3d6459b">visit.</a></p><p>for dart document about isolates <a href="https://dart.dev/language/isolates">visit.</a></p><p><strong>Feel free to clap and support, friends. We are team 👏</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03caee6b44d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter 3.27 Update: The End of x86 Support]]></title>
            <link>https://medium.com/@mkiziltay/flutter-3-27-update-the-end-of-x86-support-9817beed7012?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/9817beed7012</guid>
            <category><![CDATA[x86-support]]></category>
            <category><![CDATA[updates]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[target]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Wed, 29 Jan 2025 16:17:32 GMT</pubDate>
            <atom:updated>2025-01-29T16:17:32.899Z</atom:updated>
            <content:encoded><![CDATA[<p>After the latest updates, you may have seen a warning like this on the debug console.</p><pre>Support for Android x86 targets will be removed in the next stable release after 3.27. See https://github.com/flutter/flutter/issues/157543 for details.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*ZmJvpiBzNw-z-1Bd7vZ62w.png" /><figcaption>And if your device like this</figcaption></figure><p><em>If your emulator or device uses this architecture, we can say that it is too late for you to change something. At the end of the article, I will talk about how to make this change.</em></p><p>As of the recent Flutter 3.27 update, significant changes have been made regarding platform support, particularly concerning the x86 architecture for Android devices. This decision has stirred discussions among developers, especially those who have been catering to a niche market of x86 device users. In this blog post, we’ll explore the implications of this update and what it means for Flutter developers moving forward.</p><h3>What’s New in Flutter 3.27?</h3><p>Flutter 3.27 brings a host of improvements and enhancements designed to streamline the development process and improve app performance. However, one of the most notable changes is the official discontinuation of support for building apps targeting x86 Android devices. This shift reflects a broader trend in mobile development, as x86 architecture has become increasingly rare in the Android ecosystem.</p><h3>Why Remove x86 Support?</h3><p>The decision to drop x86 support stems from several factors:</p><ol><li>Declining Usage: Data indicates that only about 1% of Android devices currently use x86 architecture. With such a small user base, maintaining support for these devices is often not justifiable for developers and framework maintainers alike<a href="https://www.reddit.com/r/FlutterDev/comments/x6yahv/flutter_does_not_currently_support_building_for/">1</a>.</li><li>Performance Issues: Many developers have reported performance problems when running apps on x86 devices, including significant lag and crashes. These issues can lead to poor user experiences, prompting developers to seek alternatives that offer better performance on more widely used architectures like ARM<a href="https://www.reddit.com/r/FlutterDev/comments/x6yahv/flutter_does_not_currently_support_building_for/">1</a><a href="https://forum.itsallwidgets.com/t/how-i-solve-issues-with-3-27-updates-in-my-project/1716">4</a>.</li><li>Focus on Modern Architectures: By focusing on ARM architectures (both 32-bit and 64-bit), Flutter can optimize its tooling and libraries for the platforms that dominate the market today. This allows for better resource allocation and more robust features tailored to the majority of users<a href="https://docs.flutter.dev/reference/supported-platforms">3</a><a href="https://docs.flutter.dev/release/release-notes/release-notes-3.27.0">6</a>.</li></ol><h3>Implications for Developers</h3><p>For developers currently targeting x86 devices, this change means a few critical adjustments:</p><ul><li>Update Your Build Configurations: If you have been including x86 in your build configurations, you will need to modify your build.gradle file to exclude this architecture. This ensures that your app does not attempt to run on unsupported devices, which could result in crashes or installation failures<a href="https://github.com/flutter/flutter/issues/160932">2</a>.</li><li>Consider Your User Base: If you have a significant number of users on x86 devices, it may be time to communicate these changes to them. Encourage users to upgrade their devices or consider alternative solutions if they rely on your app.</li><li>Explore Alternatives: For those who still wish to reach users on x86 architecture, consider developing native Android applications or exploring other frameworks that may still support this architecture.</li></ul><h3>Conclusion</h3><p>The removal of x86 support in Flutter 3.27 marks a pivotal moment in the framework’s evolution as it aligns itself with current market trends and user needs. While this change may pose challenges for some developers, it ultimately paves the way for a more efficient and performance-oriented development environment.As you move forward with your Flutter projects, embrace these updates and focus on delivering exceptional experiences for the vast majority of users who rely on ARM-based devices. By doing so, you can ensure that your applications remain relevant and performant in an ever-evolving mobile landscape.Stay tuned for more updates as Flutter continues to grow and adapt to the needs of developers worldwide! Feel free to adjust any sections or add personal insights before sharing!</p><h3>How can I refactor my Flutter app to support only ARM architectures</h3><p>To refactor your Flutter app to support only ARM architectures, you can follow these steps to modify your build configurations and ensure that your application targets only ARM devices.</p><h3>Steps to Refactor Your Flutter App for ARM Architectures</h3><h3>1. Update build.gradle</h3><p>You need to modify the build.gradle file in your Android project to specify which architectures to include. This will help you exclude x86 and focus solely on ARM architectures.</p><ul><li>Navigate to your Flutter project directory and open android/app/build.gradle.</li><li>Locate the android block and add the ndk configuration with abiFilters to specify the ARM architectures you want to support.</li></ul><p>Here’s an example configuration:</p><pre>android {<br>    ...<br>    defaultConfig {<br>        ...<br>        ndk {<br>            abiFilters &#39;armeabi-v7a&#39;, &#39;arm64-v8a&#39; // Include only ARM architectures<br>        }<br>    }<br>}</pre><h3>2. Build the APK for ARM</h3><p>When building your APK, you can specify the target platform directly in the command line. This ensures that only ARM libraries are included in your build:</p><pre>flutter build apk --release --target-platform=android-arm,android-arm64</pre><p>This command generates an APK that includes only the necessary binaries for ARM architectures.</p><h3>3. Split APKs for Different Architectures (Optional)</h3><p>If you want to further optimize your app size, consider generating separate APKs for each architecture. This can be done by using the --split-per-abi flag during the build process:</p><pre>flutter build apk --split-per-abi</pre><p>This command creates separate APK files for each architecture (e.g., one for armeabi-v7a and another for arm64-v8a), reducing the overall size of each APK by including only the relevant binaries.</p><h3>4. Test Your Application</h3><p>After making these changes, thoroughly test your application on ARM devices to ensure everything works as expected. Pay attention to performance and compatibility, especially if you have previously supported x86 devices.</p><h3>5. Communicate Changes to Users</h3><p>If your app had a user base on x86 devices, it’s important to communicate these changes clearly. Inform users about the shift in architecture support and encourage them to upgrade their devices if necessary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cka9Bw5HHugzYD7vPDvTlg.png" /></figure><p>now it will throw such error for x86 emulator and the application will only work on non-x86 devices.</p><h3>Goodbye x86…</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9817beed7012" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AES Text Encryption Method on Dart]]></title>
            <link>https://medium.com/@mkiziltay/aes-text-encryption-method-on-dart-9ecb80eb28a1?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ecb80eb28a1</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[cipher]]></category>
            <category><![CDATA[random]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[aes-encryption]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Tue, 07 Jan 2025 23:01:47 GMT</pubDate>
            <atom:updated>2025-01-07T23:01:47.563Z</atom:updated>
            <content:encoded><![CDATA[<p>I will show you how to encrypt a text with encrypt package on Dart. First we need to add encrypt:^any dependency from <a href="https://pub.dev/packages/encrypt/install"><em>here</em></a><em> </em>to <em>pubspec.yaml </em>file.</p><p>What needs to be done here is to encrypt the important data with the keys we created and then convert it to normal text with the same key. We should not lose the keys we created so that we do not lose the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m6TE0zZuYAGGpVHh.png" /></figure><p>Now write the sample code and check how its work.</p><p>You will learn how generate random key, how encrypt text, how decrypt text, how converting key to different types and how convert key from different types to previous type.</p><pre>import &#39;dart:convert&#39;;<br>import &#39;dart:math&#39;;<br>import &#39;dart:typed_data&#39;;<br>import &#39;package:encrypt/encrypt.dart&#39; as encrypt;<br><br>void main() {<br>  final randomEncKey = generateRandomKey(32);<br>  final randomIVKey = generateRandomKey(16);<br>  String plainText = &#39;Hello, encrypt me!&#39;;<br>  String encryptedText =<br>      encryptString(plainText, randomEncKey, randomIVKey);<br>  String decryptedText =<br>      decryptString(encryptedText, randomEncKey, randomIVKey);<br>  print(&#39;AES Random Key: $randomEncKey&#39;);<br>  print(&#39;IV Random Key: $randomIVKey&#39;);<br>  print(&#39;AES Key to Base64 Key: ${base64KeyFromUint8List(randomEncKey)}&#39;);<br>  print(&#39;IV  Key to Base64 Key: ${base64KeyFromUint8List(randomIVKey)}&#39;);<br>  print(&#39;Base64 Key to Uint8List AES Key: ${uint8ListFromBase64Key(base64KeyFromUint8List(randomEncKey))}&#39;);<br>  print(&#39;Base64 Key to Uint8List IV Key: ${uint8ListFromBase64Key(base64KeyFromUint8List(randomIVKey))}&#39;);<br>  print(&#39;Text to be encrypt: $plainText&#39;);<br>  print(&#39;Encrypted text: $encryptedText&#39;);<br>  print(&#39;Decrypted Text: $decryptedText&#39;);<br>}<br><br>Uint8List generateRandomKey(int length) {<br>  final random = Random.secure();<br>  final key = List&lt;int&gt;.generate(length, (_) =&gt; random.nextInt(256));// returns List&lt;int&gt; as [232, 206, 88, 123, 197, 246, 177, 5, 66, 223, 181, 87, 205, 252, 55, 49]<br><br>  return Uint8List.fromList(key);// returns Uint8List as [232, 206, 88, 123, 197, 246, 177, 5, 66, 223, 181, 87, 205, 252, 55, 49]<br>}<br><br>String base64KeyFromUint8List(Uint8List intList) {<br>  return base64Encode(intList);// returns String as NijoRbWKK7b4dtSvujDBaNfFpbAgoNEGSXzujyrchU0=<br>}<br><br>Uint8List uint8ListFromBase64Key(String encodedKey) {<br>  return base64Decode(encodedKey);// returns List&lt;int&gt; as [232, 206, 88, 123, 197, 246, 177, 5, 66, 223, 181, 87, 205, 252, 55, 49]<br>}<br><br>String encryptString(<br>    String plainText, Uint8List encryptionKey, Uint8List ivKey) {<br>  final encrypter = encrypt.Encrypter(<br>      encrypt.AES(encrypt.Key(encryptionKey), mode: encrypt.AESMode.cbc));<br>  return encrypter.encrypt(plainText, iv: encrypt.IV(ivKey)).base64; // returns String as NAJo7OxPIKQabBMAM4w2z3wPTyWQ7oelasgufMzIsK4=<br>}<br><br>String decryptString(<br>    String encryptedText, Uint8List encryptionKey, Uint8List ivKey) {<br>  //encrypt.Encrypted encrypted = utf8.decode(base64.decode(encryptedText)) as encrypt.Encrypted;<br>  final encrypter = encrypt.Encrypter(<br>      encrypt.AES(encrypt.Key(encryptionKey), mode: encrypt.AESMode.cbc));<br>  return encrypter.decrypt(encrypt.Encrypted.fromBase64(encryptedText) , iv: encrypt.IV(ivKey)); // returns String as Hello, encrypt me!<br>}</pre><p>I have provided return types and sample outputs along with the code. I don’t need to give more details, but of course you can ask.</p><p><strong>Please like the story so we can see who we can help.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ecb80eb28a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Secure API or Environments and obfuscate sensitive data in Flutter-Dart]]></title>
            <link>https://medium.com/@mkiziltay/how-to-secure-api-or-environments-and-obfuscate-sensitive-data-in-flutter-dart-ed3a7752e0e5?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed3a7752e0e5</guid>
            <category><![CDATA[obfuscation]]></category>
            <category><![CDATA[secure]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Wed, 01 Jan 2025 12:41:36 GMT</pubDate>
            <atom:updated>2025-01-10T00:15:06.780Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I will tell you about a few steps we need to take to avoid exposing our sensitive data. Since the sources are a bit confusing, I will explain it to you step by step. Here you go.</p><p>Almost all developers have used environments file at least once. Environment variables really help us to manage projects when we have more than one possible environment and also when we need to put information in a more secure way into the code, not hardcoding it.</p><p>So is it always a good idea to keep data in plain text in the file directory?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*aXT9MsGrRRlWToZH.png" /></figure><p>And your .env file containing your environment variables can be read very easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*d6kJDkwRQcl-Pk4G.png" /></figure><p>S<a href="https://www.reddit.com/r/FlutterDev/comments/jhdwq8/how_to_secure_api_keys/">toring API keys on the client is <strong>insecure</strong></a> and can cause various issues if they become compromised.</p><p>And when it comes to API keys and security, you should avoid two major mistakes:</p><ul><li><strong>Committing a secret key to version control</strong>, making it visible to everyone on the Internet 🤯</li><li><strong>Forgetting to obfuscate your API keys</strong>, making it easier for attackers to reverse engineer your app and extract the keys 🛠</li></ul><p>As part of this guide, we’ll learn how to avoid these mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*7Im37gKtLtbdF53Y.png" /></figure><h3>Let’s get started</h3><p>First we will create environment file then we will obfuscate it. So create .env file in the file directory and add its data as below.</p><pre># example .env file<br>APIURL=test<br>BASEURL=mest<br>BASEPATH=cast<br>DBPATH=jest</pre><p>Prevent sensitive data from being uploaded to public environments by adding the following path to the .gitignore file</p><pre># example .gitignore file<br>*.env</pre><p>Add the following lines to the pubspec.yaml file under it’s section</p><pre>dependencies:<br>  flutter_dotenv: ^any #only this line under dependecies</pre><pre>assets:<br>  - .env #only this line under assets</pre><p>Then, use the following command to call the data from the .env file using the main function or if you have a different dependency loader function is available, use the following code there.</p><pre>dotenv.load(fileName: &#39;.env&#39;);</pre><p>Now call the data like this wherever you need the data.</p><pre>String path = dotenv.env[&#39;dBPATH&#39;]!; <br> //or<br>var response = dio.get(dotenv.env[&#39;APIURL&#39;]!);</pre><p>In this way of use, our data will only be hidden in platforms such as github and is still accessible through reverse engineering or simple package disassemblers.</p><p>Now let’s come to obfuscating our data and making it difficult to understand during the reverse engineering phase:</p><p>add package dependecies section in pubspec.yaml</p><pre>envied: ^any</pre><p>and add this packages to the dev_dependencies section in pubspec.yaml</p><pre>build_runner: ^any<br>envied_generator: ^any</pre><p>Now we create a file named env.dart and fill it with your own data type as follows. Don’t worry about the errors right now, just ignore them.</p><pre>import &#39;package:envied/envied.dart&#39;;<br><br>part &#39;env.g.dart&#39;;<br><br>@Envied(path: &#39;.env&#39;)<br>final class Env {<br>//for APIURL like this<br>  @EnviedField(varName: &#39;APIURL&#39;)<br>  static const String apiUrl = _Env.apiUrl;<br>//For BASEURL or others like this<br> ...same design... several lines .....</pre><p>Then run this command on terminal</p><pre>dart run build_runner build -d</pre><p>A file named env.g.dart will be created in your file path.</p><pre>// GENERATED CODE - DO NOT MODIFY BY HAND<br>part of &#39;env.dart&#39;;<br>// **************************************************************************<br>// EnviedGenerator<br>// **************************************************************************<br><br>// coverage:ignore-file<br>// ignore_for_file: type=lint<br>final class _Env {<br>  static const String apiUrl = &#39;test&#39;;<br>}</pre><p>At this stage, the problem of the places that appear to be incorrect in the env.dart file should be resolved, but the obfuscation process has still not started, let’s be patient.</p><p>For the obfuscate process, let’s edit our env.dart file as follows.</p><p>Let’s add the obfuscate: true flag to the <a href="http://twitter.com/EnviedField">@EnviedField</a> annotations and make the datas as <em>final</em>.</p><pre>//env.dart file<br>// ignore_for_file: prefer_const_declarations<br>import &#39;package:envied/envied.dart&#39;;<br><br>part &#39;env.g.dart&#39;;<br><br>@Envied(path: &#39;.env&#39;)<br>final class Env {<br><br>  @EnviedField(varName: &#39;APIURL&#39;,obfuscate: true)<br> static final String apiUrl = _Env.apiUrl;</pre><p>Then re-run this command on terminal</p><pre>dart run build_runner build -d</pre><p>Now we will have a complex env.g.dart file as below and the obfuscation process has now been done. and our env.g.dart file has become like this.</p><pre>// GENERATED CODE - DO NOT MODIFY BY HAND<br>part of &#39;env.dart&#39;;<br>// **************************************************************************<br>// EnviedGenerator<br>// **************************************************************************<br><br>// coverage:ignore-file<br>// ignore_for_file: type=lint<br>final class _Env {<br>  static const List&lt;int&gt; _enviedkeytmdbApiKey = &lt;int&gt;[<br>    3083777460,<br>    1730462941,<br>    // many other this int lines<br>  ];<br> static const ... // many of your .env veriables...</pre><p>Now it has become even more difficult to analyze our sensitive data for reverse engineering.<br>How do we use it? Here is how: More information about <a href="https://pub.dev/packages/envied#usage"><em>envied visit</em></a></p><pre>print(Env.apiUrl); // &quot;VALUE1&quot;</pre><p>This is an example line, of course we will not print our data like this, just see that it works and then remove it. Now move it wherever you need it. Don’t forget print() type functions in the code like a beginner 😉</p><p>I am leaving an example usage below. Pay attention to the fact that I used the getx controller here so that you don’t get confused. You don’t have to use it. This is just the state management package that I am currently using in the current project and you can call it directly as above. For example, I moved the env.dart and env.g.dart files to a folder called environments, but you don’t have to.</p><pre>final env_ = Get.find&lt;EnvController&gt;();<br>Future&lt;void&gt; getUsers() async{<br>var response = await _client.get(Uri.parse(env_.getApiURL() + query));<br>response.body..... other code lines}</pre><p>Afterwards, I added the env.g.dart file to the .gitignore file so that I don’t have to send it to platforms like github. And you can remove the .env file, which will create a security vulnerability in the file directory where we keep our data, from the file path since we don’t need it anymore, but you can prevent it from being included in the application package by removing the asset path from the pubspec.yaml file. So you can edit it as follows. But don’t delete these files completely because you will need them when you add new data. Here is .gitignore file:</p><pre>#.gitignore file<br># -- .env removed from path<br>*.env<br>env.g.dart</pre><p>And pubspec.yaml :</p><pre>#pubspec.yaml file -  To add assets to your application, add an assets section, like this:<br>  assets:<br>    - assets/<br>    #- .env --remove from asset path</pre><p>Now our project should be running smoothly. Also, since we deleted our .env file and removed our env.g.dart file from platforms like github, if we lose these files, we will need the env.g.dart file to download and run the project from github. With this in mind, be careful not to completely remove or permanently delete these files from your computer. Also, remember that when we remove new sensitive data, we will need to recreate the .env file, delete the env.g.dart file, and run the build runner again. In short, you will need to start the process from the beginning. Keep Coding… 😉</p><p><strong>I would be happy if you would like to support.</strong>👏<strong> Let’s see who I could help.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed3a7752e0e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to login Github on Android Studio and upload projects]]></title>
            <link>https://medium.com/@mkiziltay/how-to-login-github-on-android-studio-and-upload-projects-3b37ab81476b?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b37ab81476b</guid>
            <category><![CDATA[version]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[repositories]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Mon, 23 Sep 2024 19:50:51 GMT</pubDate>
            <atom:updated>2024-09-23T19:50:51.111Z</atom:updated>
            <content:encoded><![CDATA[<pre>Follow this steps:<br>IF NOT LOGGED IN<br>- Top Bar =&gt; VCS<br>- Get from Version Control<br>- Select Github from popup screen<br>- click to User from popup screen(top Right)<br>- now login with your account (*may be required user token)<br>  * if requires token , Click=&gt; Use Token (rightTop of popup)<br>  * Log in your account from your browser<br>  * Then go to Settings then click =&gt; Developer Settings (end)<br>  * Select =&gt; Personel Access Token<br>  * Generate new token and use it for login process</pre><pre>or Try this way<br>- On Github<br>* Log in -&gt; Click on your avatar in the top right hand corner<br>* Choose Settings -&gt; Developer settings -&gt; Personal access tokens<br>* Click on the &quot;Generate new token&quot; button<br>* Add a note if you want, like &quot;Android Studio&quot;<br>* Select repo(all), read:org (under admin:org), gist, workflow<br>* Click on the &quot;Generate token&quot; button<br>* Copy the token<br>- then do this on Android Studio<br>* File -&gt; Settings -&gt; Version Control -&gt; GitHub -&gt; Add an account<br>* Click &quot;Use Token&quot; hyperlink,if you not login with credentials<br>* Paste your token, click login, click ok.<br>* click VCS on top bar then click create git repository.<br>* click Git on top bar then select files and write commit message<br>* then click commit and push and define a remote if not exist.<br>* Push it again...</pre><pre>IF LOGGED IN<br>- Top Bar =&gt; VCS<br>- import into version control<br>- create Git repository<br>- click project tree<br>- select Git and click commit directory<br>- project tree =&gt; Git =&gt; repository =&gt; remotes =&gt; add remote<br>- copy repository url or create repository from terminal and add it<br>- project tree =&gt; Git =&gt; repository =&gt; push =&gt; push</pre><pre>For Getting TOKEN visit here:<br>- <a href="https://github.com/settings/tokens">https://github.com/settings/tokens</a></pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b37ab81476b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fluter UI error after release, release mode render bugs.]]></title>
            <link>https://medium.com/@mkiziltay/fluter-ui-error-after-release-release-mode-render-bugs-0cff7a0e72b4?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/0cff7a0e72b4</guid>
            <category><![CDATA[render]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[destroy]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Thu, 21 Mar 2024 15:04:48 GMT</pubDate>
            <atom:updated>2025-06-29T15:06:44.411Z</atom:updated>
            <content:encoded><![CDATA[<p>If you have a mobile app project and have rendering errors, unloaded widgets, or UI errors after release, read on.</p><p>Or if your app rejected google play console because of reason that</p><ul><li><strong>Problems loading </strong>(Your app does not open or load)</li><li><strong>Problems loading (</strong>app install but not load<strong>) etc.</strong></li></ul><p>You have to check widgets and its parent widgets but maybe its not fix your issue.</p><pre>how to do release tests with real device:<br>connect a real device in debug mode and run this command on terminal<br>flutter run --release<br>then select your device and wait until install</pre><p><strong>So check this steps. Each step is different, do not use them all together.</strong></p><ul><li><strong>1. check widgets</strong> *</li></ul><p>It happens most commonly when you are using Expended widget out side the Column or Row. To solve this error, your child widget must have the expected parent widget. Some of the widget and their parent widgets are:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/0*FGS-w5IKQEYw0SBc.png" /></figure><p>Make sure to have the right parent for all the widgets using this Table, and you will be good to go!</p><ul><li><strong><em>2. Use extendBody property of Scaffold widget</em></strong></li></ul><blockquote><em>return Scaffold( extendBody: true, …</em></blockquote><ul><li><strong><em>3. Size configuration</em></strong></li></ul><p>Your widget dimensions may not have been initialized yet while your screen layout is loading. Try to print logs of size values in debugging. it may not be initialized or 0 value.</p><ul><li><strong><em>4. Dependency injection</em></strong></li></ul><p>if you are using some dependencies to get size of device or some dependency management packages (As getx) try this steps.</p><ol><li>Disable packets from fetching data from classes.</li><li>Define the screen size and dimensions in the page or class where you get the error.</li><li>Temporarily comment out functions such as size = sizepackage.getScreenwidth(); because moving data into the class may cause errors.</li><li>get size dimensions from intra-class variables. like width = size.width. You can use MediaQueryData with context temporarily.</li></ol><p>So example:</p><p>if you have Dimensions class for managing your device size. use like this.</p><pre>final width = Dimensions().getSize().width;</pre><p>not like this:</p><pre>_dimensions = Get.find... or Bloc or other Provider package<br>final width = _dimensions.getSize().width;</pre><p><strong><em>5. if your issue is fixed with this way put some func. to wait provider to load size configuration</em></strong>. How:</p><ul><li>extend class with WidgetsBindingObserver</li><li>put this initState WidgetsBinding.instance!.addObserver(this);</li><li>watch is loaded size veriables or changed variables with void didChangeMetrics() {</li><li>Update your dimensions with their latest version. and refresh state in didChangeMetrics() func.</li><li><strong>setState(() { previousSize = newSize; });</strong></li><li>do not forget to remove WidgetsBindingObserver in dispose() func. <strong>WidgetsBinding.instance!.removeObserver(this);</strong></li></ul><blockquote>Here is the code: !!! Only start screen not all pages.</blockquote><pre>class _MyScreenState extends State&lt;MyScreen&gt;<br>    with WidgetsBindingObserver { <br>//some codes... dependency injections<br><br>@override<br>  void initState() {<br>    super.initState();<br>//add observer<br>    WidgetsBinding.instance!.addObserver(this);<br>    // test prints not important to remove before production.<br>    // delete it for performance and edit if you want to use for test.<br>    print(&quot;SIze: ${WidgetsBinding.instance.window.physicalSize}&quot;);<br>    print(&quot;SIze: ${WidgetsBinding.instance.window.devicePixelRatio}&quot;);<br>  }<br><br>  @override<br>  void dispose() {<br>// remove observer<br>    WidgetsBinding.instance!.removeObserver(this);<br>    super.dispose();<br>  }<br><br>  @override<br>  void didChangeMetrics() {<br>//watch changes about dimensions and refresh state ...<br>    final newSize = WidgetsBinding.instance!.window.physicalSize;<br>    if (previousSize != newSize) {<br>      setState(() {<br>        previousSize = newSize;<br>      });<br>    }<br>  }</pre><h3><strong>example 2 For GetX package.</strong></h3><p><strong>you use getx package when you get dimensions from different class like this:</strong></p><pre>final _dimensions = Get.find&lt;Dimensions&gt;();</pre><p>Since the UI is created before the data and screen arrive, your measurements will be initialized to 0. And there will be regions in your application that are not loaded. That’s why you should request the measurements again when your screen loads.</p><pre>class _AuthPageState extends State&lt;AuthPage&gt; with WidgetsBindingObserver {<br>// Here we call class with getx but<br>  final _dimensions = Get.find&lt;Dimensions&gt;();<br><br>  @override<br>  void initState() {<br>    // <strong>Here adding abserver</strong><br>    WidgetsBinding.instance.addObserver(this);<br>  }<br><br>  @override<br>  void didChangeMetrics() async {<br>// here we refresh our device screen size because it was equals 0.<br>    Size size = await _dimensions.getDeviceSize();<br>    double previousSize = _dimensions.size.width;<br>    if (previousSize != size) {<br>      setState(() {// here refreshing screen and app works properly<br>      });<br>    }<br>  }<br><br>  @override<br>  void dispose() {<br>    // Here removing observer <br>    WidgetsBinding.instance.removeObserver(this);<br>    super.dispose();<br>  }</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0cff7a0e72b4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate an APK file from an AAB file (Android app bundle)]]></title>
            <link>https://medium.com/@mkiziltay/generate-an-apk-file-from-an-aab-file-android-app-bundle-fba80ab63771?source=rss-283993997bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fba80ab63771</guid>
            <category><![CDATA[generate]]></category>
            <category><![CDATA[app-bundle]]></category>
            <category><![CDATA[aab]]></category>
            <category><![CDATA[apk]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Mustafa KIZILTAY]]></dc:creator>
            <pubDate>Mon, 18 Mar 2024 17:17:30 GMT</pubDate>
            <atom:updated>2024-11-17T23:10:55.582Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello, now I will tell you how we can convert the android app bundle file into an installable apk file.</p><p>First, let’s list the things we need to do to use the following command.</p><p><em>java -jar bundletool.jar build-apks — bundle=”D:\MyApp\ccholder.aab” — output=”D:\MyApp\my_app.apks” — mode=universal</em></p><p>Download the bundletool JAR file from <a href="https://github.com/google/bundletool/releases"><strong>the GitHub repository</strong></a> (Latest release* → <em>Assets</em> → <em>bundletool-all-version.jar</em> file). Rename that file to <em>bundletool.jar</em></p><p>First of all, we must add our bundle tool file to the path directory of our computer. Because when we run the command, the system will search for the file in the path directory. Here example location but check your jdk file name.</p><blockquote>C:\Program Files\Java\jdk-XX\bin</blockquote><p>Then, let’s create a new folder and copy our application app bundle file into it. Location doesn’t matter. Example location on my computer:</p><blockquote>D:\MyApp\yourappname.aab</blockquote><p>Then run the code below. But change the places I mentioned above according to your own system. The my_app.apks file will be created by the system in the file you specified.</p><pre>java -jar bundletool.jar build-apks --bundle=”D:\MyApp\yourbundle.aab” --output=”D:\MyApp\my_app.apks” --mode=universal</pre><p>Change the .apks part to .zip and access your apk file. Now you can install app on your device.</p><h3>! Or you can perform these operations without copying the bundletool.jar file to the java path. To do this this way, in the location where you copied the app bundle file, select the open cmd here (open powershell here) option with Shift + Right Click and run the command after adapting it to your own.</h3><p><em>The system will use the files in this path(C:\Users\windows\.android) to automaticaly sign the application, but you can do this manually with different keystore files and some additional parameters.</em></p><pre>bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks \<br>    --mode=universal \<br>    --ks=/MyApp/keystore.jks \<br>    --ks-pass=file:/MyApp/keystore.pwd \<br>    --ks-key-alias=MyKeyAlias \<br>    --key-pass=file:/MyApp/key.pwd</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fba80ab63771" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>