<?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 Hamza Zahid on Medium]]></title>
        <description><![CDATA[Stories by Hamza Zahid on Medium]]></description>
        <link>https://medium.com/@zahidseyyid?source=rss-c32759d8a0d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XaIXXRR410Hu-KtO0Q60Fg.jpeg</url>
            <title>Stories by Hamza Zahid on Medium</title>
            <link>https://medium.com/@zahidseyyid?source=rss-c32759d8a0d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 09:03:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@zahidseyyid/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[Automating Flutter Localization: JSON Sync and Translation Class]]></title>
            <link>https://medium.com/@zahidseyyid/automating-flutter-localization-json-sync-and-translation-class-ca9391780a73?source=rss-c32759d8a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca9391780a73</guid>
            <category><![CDATA[easy-localization]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[localization]]></category>
            <category><![CDATA[dart]]></category>
            <dc:creator><![CDATA[Hamza Zahid]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 08:43:30 GMT</pubDate>
            <atom:updated>2025-01-18T08:43:30.911Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi! In my daily life, I work as a <strong>Product Manager</strong>, but I also enjoy developing projects with Flutter because it helps me in many ways. While working on a multi-language project, a teammate recommended the <strong>easy_localization</strong> package. However, I realized that every time I called a localization key, I had to append .tr() at the end. To make things easier, I initially decided to define variables in a class and use .tr() only once.</p><p>After some time, I found even this process tedious and unnecessary. I thought, “How can I automate this process?” That’s when the idea of writing a <strong>Dart script</strong> came to mind. At first, I ran this script via the terminal, but running it manually every time felt inconvenient. Then I discovered the <strong>Run on Save</strong> extension.</p><p>Honestly, this whole process started as a lazy workaround, but it gradually turned into a more efficient solution! 🎉 With the current implementation, whenever I add or remove keys in the localization files, the script automatically updates all language files based on the main language file (e.g., en.json). It doesn’t stop there; it also updates a <strong>translation class</strong> with the new keys.</p><p>In the end, all you need to do is call the variable from the class and use it! 😊</p><h3>How to Use?</h3><h3>1. Download the Script from GitHub</h3><p>You can find the GitHub repository here:<br> <a href="https://github.com/zahidseyyid/flutter-localization-sync-script">Flutter Localization Sync Script</a></p><h3>2. Organize Your JSON Files</h3><p>By default, place your JSON files in the assets/langs directory. Create your main language file (en.json) in this directory.</p><h3>3. Configure the Script</h3><p>Customize the config variable in the script to suit your project:</p><pre>const Map&lt;String, dynamic&gt; config = {<br>  &quot;languagePath&quot;: &quot;assets/langs&quot;, // Path to JSON files<br>  &quot;mainJsonFile&quot;: &quot;assets/langs/en.json&quot;, // Main language file<br>  &quot;multiLanguageStringsFile&quot;: &quot;lib/core/constants/app_multi_language_strings.dart&quot;, // Translation class file<br>  &quot;processJsonFiles&quot;: true, // Should it process JSON files?<br>  &quot;processClassFile&quot;: true, // Should it generate the translation class?<br>};</pre><h3>4. Run the Script</h3><p>You can run the script from the terminal with the following command:</p><pre>dart localization_checker.dart</pre><h3>5. Optional: Use Run on Save</h3><p>If you want the script to run automatically whenever you save a file, you need to install the <strong>Run on Save</strong> extension published by <strong>emeraldwalk</strong> for Visual Studio Code. This extension is especially useful if you frequently update JSON files.</p><h4>Steps:</h4><p><strong>1.Install the Run on Save Extension</strong></p><ul><li>Open the Extensions panel in Visual Studio Code.</li><li>Search for <strong>Run on Save</strong> published by <strong>emeraldwalk</strong> and install it.</li></ul><ol><li><strong>Configure Run on Save Settings</strong></li></ol><ul><li>Open your .vscode/settings.json file.</li><li>Add the following configuration:</li></ul><pre>{<br>  &quot;emeraldwalk.runonsave&quot;: {<br>    &quot;commands&quot;: [<br>      {<br>        &quot;match&quot;: &quot;assets/langs/en.json$&quot;, // Select the main JSON file<br>        &quot;cmd&quot;: &quot;dart localization_checker.dart&quot; // Command to run the script<br>      }<br>    ]<br>  }<br>}</pre><p><strong>3.Save and Use</strong></p><h3>Example</h3><h3>en.json (Main Language File)</h3><pre>{<br>  &quot;welcomeMessage&quot;: &quot;Welcome to our app&quot;,<br>  &quot;logout&quot;: &quot;Log Out&quot;<br>}</pre><h3>tr.json (Updated Based on the Script)</h3><pre>{<br>  &quot;welcomeMessage&quot;: &quot;Welcome to our app&quot;, // You need to add the Turkish translation manually. This could also be automated with a translation API.<br>  &quot;logout&quot;: &quot;Çıkış Yap&quot; // You need to add the Turkish translation manually. This could also be automated with a translation API.<br>}</pre><h3>Translation Class Output</h3><pre>class AppMultiLanguageStrings {<br>  static String get welcomeMessage =&gt; &quot;welcomeMessage&quot;.tr();<br>  static String get logout =&gt; &quot;logout&quot;.tr();<br>}</pre><h3>Conclusion</h3><p>This script makes localization tasks in Flutter projects significantly easier. It’s a great solution for managing your JSON files and translation classes together!</p><p>Try it out and don’t forget to share your feedback. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca9391780a73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Localization İşlerini Otomatikleştirdim: JSON Sync ve Translation Class]]></title>
            <link>https://medium.com/@zahidseyyid/flutter-localization-i%CC%87%C5%9Flerini-otomatikle%C5%9Ftirdim-json-sync-ve-translation-class-e52945aebc6d?source=rss-c32759d8a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e52945aebc6d</guid>
            <category><![CDATA[localization]]></category>
            <category><![CDATA[easy-localization]]></category>
            <category><![CDATA[dart-script]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Hamza Zahid]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 08:38:12 GMT</pubDate>
            <atom:updated>2025-01-18T08:38:12.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Merhaba! Günlük hayatımda bir <strong>Product Manager</strong> olarak çalışıyorum, ancak aynı zamanda Flutter ile projeler geliştirmekten büyük keyif alıyorum çünkü bu süreç birçok konuda bana fayda sağlıyor. Çok dilli bir proje geliştirmek için, ekip arkadaşlarımın tavsiyesiyle <strong>easy_localization</strong> paketini kullanmaya başladım. Ancak kullanırken, her çağrılışta sonuna .tr() eklemek gerektiğini fark ettim. Önce bu işi biraz kolaylaştırmak için bir sınıfta değişken tanımlayıp sadece bir kez .tr() ekleyerek bunu değişken olarak kullanmaya karar verdim.</p><p>Fakat bir süre sonra bunun da yorucu ve gereksiz bir uğraş olduğunu düşündüm. “Bu işlemi nasıl otomatik hale getirebilirim?” derken, bir <strong>Dart script’i</strong> yazma fikri aklıma geldi. İlk başta bu script’i terminal üzerinden çalıştırıyordum, ancak sürekli terminalden çağırmak da beni uğraştıracak gibi göründü. Bunun üzerine daha kolay bir yöntem ararken <strong>“Run on Save”</strong> eklentisini keşfettim.</p><p>Aslında, bu süreç bir tembellikle başladı diyebilirim, ancak işi kolaylaştırma çabasıyla daha verimli bir hale geldi! 🎉 Şu anki çalışma mantığında, dil dosyalarına ekleme veya çıkarma yaptığımda, ana dil dosyasını (örneğin en.json) referans alarak diğer dil dosyalarını otomatik olarak güncelliyor. Bununla da kalmıyor; güncel verileri bir <strong>translation class</strong> içine ekliyor.</p><p>Sonuç olarak, sizin yapmanız gereken tek şey, o sınıftan ilgili değişkeni çağırıp kullanmak! 😊</p><h3>Nasıl Kullanılır?</h3><p><strong>1.GitHub’dan Script’i İndirin</strong><br>GitHub reposuna buradan ulaşabilirsiniz:<br><a href="https://github.com/zahidseyyid/flutter-localization-sync-script">Flutter Localization Sync Script</a></p><p><strong>2.JSON Dosyalarınızı Düzenleyin</strong><br>Varsayılan olarak JSON dosyalarınızı assets/langs klasörüne koyabilirsiniz. Ana dil dosyasını (en.json) burada oluşturun.</p><p><strong>3.Config Dosyasını Düzenleyin</strong><br>Projenize uygun şekilde config değişkenini düzenleyin:</p><pre>const Map&lt;String, dynamic&gt; config = {<br>  &quot;languagePath&quot;: &quot;assets/langs&quot;, // JSON dosyalarının yolu<br>  &quot;mainJsonFile&quot;: &quot;assets/langs/en.json&quot;, // Ana dil dosyası<br>  &quot;multiLanguageStringsFile&quot;: &quot;lib/core/constants/app_multi_language_strings.dart&quot;, // Translation class dosyası<br>  &quot;processJsonFiles&quot;: true, // JSON dosyalarını işlesin mi?<br>  &quot;processClassFile&quot;: true, // Translation class oluştursun mu?<br>};</pre><p><strong>4. Script’i Çalıştırın</strong><br>Terminalden script’i şu şekilde çalıştırabilirsiniz:</p><pre>dart localization_checker.dart</pre><p><strong>5.Opsiyonel: Run on Save Kullanımı</strong><br>Script’in her dosya kaydettiğinizde otomatik çalışmasını istiyorsanız, <strong>emeraldwalk</strong> tarafından yayınlanan <strong>Run on Save</strong> adlı Visual Studio Code eklentisini indirmeniz gerekiyor. Bu eklenti, JSON dosyalarınızı sık sık güncelliyorsanız oldukça işlevsel.</p><p><strong>Adımlar:</strong></p><p><strong>1.Run on Save Eklentisini Yükleyin :</strong></p><ul><li>Visual Studio Code’un <strong>Uzantılar</strong> bölümüne gidin.</li><li><strong>emeraldwalk</strong> tarafından yayınlanan <strong>Run on Save</strong> eklentisini aratın ve yükleyin.</li></ul><p><strong>2.Run on Save Ayarlarını Yapılandırın</strong></p><ul><li>Projenizdeki .vscode/settings.json dosyasını açın.</li><li>Aşağıdaki yapılandırmayı ekleyin:</li></ul><pre>{<br>  &quot;emeraldwalk.runonsave&quot;: {<br>    &quot;commands&quot;: [<br>      {<br>        &quot;match&quot;: &quot;assets/langs/en.json$&quot;, // Ana json dosyasını seçtim<br>        &quot;cmd&quot;: &quot;dart localization_checker.dart&quot; // Script&#39;i çalıştıran komut<br>      }<br>    ]<br>  }<br>}</pre><p><strong>3.Kaydet ve Kullan</strong></p><ul><li>Artık bir ana JSON dosyasını her kaydettiğinizde, script otomatik olarak çalışacak.</li></ul><h3>en.json (Ana Dil Dosyası)</h3><pre>{<br>  &quot;welcomeMessage&quot;: &quot;Welcome to our app&quot;,<br>  &quot;logout&quot;: &quot;Log Out&quot;<br>}</pre><h3>tr.json (Senaryoya Göre Güncellenen Dosya)</h3><pre>{<br>  &quot;welcomeMessage&quot;: &quot;Welcome to our app&quot;, // Türkçesini eklemelisiniz. Translate apisi ile burası da otomatikleşebilir.<br>  &quot;logout&quot;: &quot;Çıkış Yap&quot; // Türkçesini eklemelisiniz. Translate apisi ile burası da otomatikleşebilir.<br>}</pre><h3>Translation Class Çıktısı</h3><pre>class AppMultiLanguageStrings {<br>  static String get welcomeMessage =&gt; &quot;welcomeMessage&quot;.tr();<br>  static String get logout =&gt; &quot;logout&quot;.tr();<br>}</pre><h3>Sonuç</h3><p>Bu script, Flutter projelerinizde <strong>localization</strong> işlerini oldukça kolaylaştırıyor. JSON dosyalarınızı ve çeviri sınıfınızı bir arada yönetmek için harika bir çözüm!</p><p>Deneyin ve geri bildirimlerinizi paylaşmayı unutmayın. 😊</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e52945aebc6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Linking Integration in Flutter Apps: A Step-by-Step Guide]]></title>
            <link>https://medium.com/@zahidseyyid/deep-linking-integration-in-flutter-apps-a-step-by-step-guide-44d8816002a9?source=rss-c32759d8a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/44d8816002a9</guid>
            <category><![CDATA[deeplink]]></category>
            <category><![CDATA[bloc]]></category>
            <dc:creator><![CDATA[Hamza Zahid]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 14:07:35 GMT</pubDate>
            <atom:updated>2024-12-07T14:07:35.452Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Deep Linking Integration in Flutter Apps: A Step-by-Step Guide</strong></p><p>Deep linking allows users to access specific screens of your app through external links, enhancing user experience. In this guide, we cover deep link configuration for both Android and iOS platforms in detail. All examples are based on real-world scenarios and can be implemented easily in your app.</p><h3>1. Preparing the Necessary Files for Android and iOS</h3><p>To enable deep link verification, you need to prepare two files and upload them to your FTP server in the .well-known directory. Details are provided below.</p><h4>1.1. assetlinks.json File for Android</h4><p><strong>File Content</strong></p><pre>[<br>    {<br>        &quot;relation&quot;: [<br>            &quot;delegate_permission/common.handle_all_urls&quot;<br>        ],<br>        &quot;target&quot;: {<br>            &quot;namespace&quot;: &quot;android_app&quot;,<br>            &quot;package_name&quot;: &quot;com.example.app&quot;,<br>            &quot;sha256_cert_fingerprints&quot;: [<br>                &quot;XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX&quot;<br>            ]<br>        }<br>    }<br>]</pre><p><strong>Explanations:</strong></p><ul><li>package_name: The package name of your Android app. You can find it in the AndroidManifest.xml or build.gradle file. Example: com.example.app.</li><li>sha256_cert_fingerprints: Your app’s SHA-256 certificate fingerprint.</li><li>Obtain this from Google Play Console:</li><li>Navigate to <strong>Google Play Console</strong> → <strong>App</strong> → <strong>App Settings</strong> → <strong>Encryption Certificates</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48TtJC2JJW1EiKSvc65yPg.png" /><figcaption><strong>SHA-256</strong></figcaption></figure><ul><li>Copy the SHA-256 value and paste it here.</li></ul><h4>1.2. apple-app-site-association File for iOS</h4><p><strong>File Content</strong></p><pre>{<br>  &quot;applinks&quot;: {<br>    &quot;apps&quot;: [],<br>    &quot;details&quot;: [<br>      {<br>        &quot;appID&quot;: &quot;ABCDE12345.com.example.app&quot;,<br>        &quot;paths&quot;: [ &quot;/content/*&quot; ]<br>      }<br>    ]<br>  }<br>}</pre><p><strong>Explanations:</strong></p><ul><li>appID: The unique identifier of your iOS app.</li><li>ABCDE12345: Your Team ID from your Apple Developer account.</li><li>Locate it under <strong>Membership</strong> in the Apple Developer Portal.</li><li>com.example.app: Your app’s Bundle Identifier, which can be found in <strong>Xcode</strong> → <strong>Project Settings</strong> → <strong>General</strong> tab.</li><li>paths: Paths that will be accepted as deep links.</li><li>For instance, /content/* covers all subpaths under <a href="https://example.com/content.">https://example.com/content.</a></li></ul><h3>2. Uploading Files to FTP</h3><p>Upload the files to the .well-known directory of your FTP server, accessible at http://example.com/.well-known/. Ensure the files have the Content-Type set as application/json.</p><h4>.htaccess Configuration</h4><p>If you’re using an Apache server, add the following to your .htaccess file:</p><pre>&lt;Files &quot;apple-app-site-association&quot;&gt;<br>    Header set Content-Type &quot;application/json&quot;<br>&lt;/Files&gt;<br><br>&lt;Files &quot;assetlinks.json&quot;&gt;<br>    Header set Content-Type &quot;application/json&quot;<br>&lt;/Files&gt;</pre><p><strong>Note:</strong> After uploading the files, verify them by accessing http://example.com/.well-known/assetlinks.json and http://example.com/.well-known/apple-app-site-association in your browser. Use developer tools to confirm file content and Content-Type headers.</p><h3>3. Configuring the Android Side</h3><h4>AndroidManifest.xml Modification</h4><p>Add the following intent-filter block to your android/app/src/main/AndroidManifest.xml file:</p><pre>&lt;intent-filter android:autoVerify=&quot;true&quot;&gt;<br>    &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;<br>    &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;<br>    &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;<br>    &lt;data<br>        android:scheme=&quot;https&quot;<br>        android:host=&quot;example.com&quot;<br>        android:pathPrefix=&quot;/content&quot; /&gt;<br>&lt;/intent-filter&gt;</pre><p><strong>Explanations:</strong></p><ul><li>android:autoVerify=&quot;true&quot;: Automates URL verification.</li><li>android:scheme: URL scheme (usually https).</li><li>android:host: Your domain (e.g., example.com).</li><li>android:pathPrefix: Supported paths (e.g., /content).</li></ul><h3>4. Configuring the iOS Side</h3><h4>Info.plist Modification</h4><p>To manually manage Flutter’s deep linking feature, add the following to your Info.plist file:</p><pre>&lt;key&gt;FlutterDeepLinkingEnabled&lt;/key&gt;<br>&lt;false/&gt;</pre><h4>Activating Associated Domains</h4><ol><li>Open <strong>Xcode</strong> and select your project.</li><li>Go to <strong>Runner</strong> → <strong>Signing &amp; Capabilities</strong> in the left menu.</li><li>Click <strong>+ Capability</strong> and add <strong>Associated Domains</strong>.</li><li>Add the following line:</li></ol><ul><li>applinks:example.com</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-0X2QBr_ZtD2KC-DcLfow.png" /></figure><h4>Validation</h4><p>Use the <a href="https://branch.io/resources/aasa-validator/"><strong>Branch AASA Validator</strong></a> to validate the file setup.</p><h3>5. Configuring Flutter</h3><h4>Adding Necessary Packages</h4><p>Add the app_links package to your pubspec.yaml file:</p><pre>dependencies:<br>  app_links: ^6.3.2</pre><h4>Managing Deep Links</h4><p>You can use Bloc architecture to handle incoming deep links. Example Bloc:</p><pre>class DeepLinkBloc extends Bloc&lt;DeepLinkEvent, DeepLinkState&gt; {<br>  final AppLinks appLinks;<br><br>DeepLinkBloc({required this.appLinks}) : super(const DeepLinkState.initial()) {<br>    on&lt;DeepLinkEvent&gt;((event, emit) async {<br>      await event.map(<br>        started: (_) async =&gt; await _startListening(emit),<br>        linkReceived: (e) async =&gt; await _handleLink(e.link, emit),<br>      );<br>    });<br>  }<br>  Future&lt;void&gt; _startListening(Emitter&lt;DeepLinkState&gt; emit) async {<br>    _linkSubscription = appLinks.uriLinkStream.listen((Uri? uri) {<br>      if (uri != null) {<br>        add(DeepLinkEvent.linkReceived(uri.toString()));<br>      }<br>    });<br>  }<br>  Future&lt;void&gt; _handleLink(String link, Emitter&lt;DeepLinkState&gt; emit) async {<br>    if (link.contains(&#39;/content/&#39;)) {<br>      final contentId = link.split(&#39;/content/&#39;).last;<br>      // Handle navigation to content here<br>    }<br>  }<br>}</pre><h3>Conclusion</h3><p>In this guide, you learned how to integrate deep linking into your Flutter app for both Android and iOS. Your app can now direct users to specific screens via external links. Ensure all verification steps are completed, and test thoroughly before deploying.</p><p>If you have any questions or better suggestions, feel free to reach out to me.</p><p><a href="https://www.linkedin.com/in/zahidhamza0/">https://www.linkedin.com/in/zahidhamza0/</a></p><p>Always open to feedback and queries! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=44d8816002a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flutter Uygulamasında Deeplink Entegrasyonu: Adım Adım Rehber]]></title>
            <link>https://medium.com/@zahidseyyid/flutter-uygulamas%C4%B1nda-deeplink-entegrasyonu-ad%C4%B1m-ad%C4%B1m-rehber-ea042fe98108?source=rss-c32759d8a0d------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea042fe98108</guid>
            <category><![CDATA[deeplink]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[bloc]]></category>
            <dc:creator><![CDATA[Hamza Zahid]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 12:51:16 GMT</pubDate>
            <atom:updated>2024-12-07T12:51:16.837Z</atom:updated>
            <content:encoded><![CDATA[<p>Deeplink entegrasyonu, uygulamanızın belirli ekranlarına harici bağlantılar üzerinden erişim sağlar ve kullanıcı deneyimini iyileştirir. Flutter uygulamanız için hem Android hem de iOS platformlarında deeplink yapılandırmasını bu rehberde detaylı şekilde ele alıyoruz. Örnekler tamamen gerçekçi verilere dayalıdır ve uygulamanızda kolayca kullanabilirsiniz.</p><h3>1. Android ve iOS için Gerekli Dosyaların Hazırlanması</h3><p>Deeplink doğrulaması için iki dosyayı hazırlayıp FTP sunucusuna yüklemeniz gerekiyor. Bu dosyalar .well-known dizinine yerleştirilmelidir. Detayları aşağıda bulabilirsiniz.</p><h3>1.1. Android için assetlinks.json Dosyası</h3><h4>Dosya İçeriği</h4><pre>[<br>    {<br>        &quot;relation&quot;: [<br>            &quot;delegate_permission/common.handle_all_urls&quot;<br>        ],<br>        &quot;target&quot;: {<br>            &quot;namespace&quot;: &quot;android_app&quot;,<br>            &quot;package_name&quot;: &quot;com.example.app&quot;,<br>            &quot;sha256_cert_fingerprints&quot;: [<br>                &quot;XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX&quot;<br>            ]<br>        }<br>    }<br>]</pre><h4>Açıklamalar</h4><ul><li><strong>package_name</strong>: Android uygulamanızın paket adı. Bunu AndroidManifest.xml veya build.gradle dosyasından öğrenebilirsiniz. Örnek: com.example.app.</li><li><strong>sha256_cert_fingerprints</strong>: Uygulamanızın <strong>SHA-256 sertifika parmak izi</strong>.</li><li>Bu değer, <strong>Google Play Console</strong> üzerinden alınır:</li><li>Google Play Console → Uygulama → Uygulama Ayarları → Şifreleme Sertifikaları.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*48TtJC2JJW1EiKSvc65yPg.png" /><figcaption><strong>SHA-256</strong></figcaption></figure><ul><li>Oradaki <strong>SHA-256</strong> değerini bu alana yapıştırın.</li></ul><h3>1.2. iOS için apple-app-site-association Dosyası</h3><h4>Dosya İçeriği</h4><pre>{<br>  &quot;applinks&quot;: {<br>    &quot;apps&quot;: [],<br>    &quot;details&quot;: [<br>      {<br>        &quot;appID&quot;: &quot;ABCDE12345.com.example.app&quot;,<br>        &quot;paths&quot;: [ &quot;/content/*&quot; ]<br>      }<br>    ]<br>  }<br>}</pre><h4>Açıklamalar</h4><ul><li><strong>appID</strong>: iOS uygulamanızın benzersiz kimliği.</li><li><strong>ABCDE12345</strong>: Apple Developer hesabınızdaki <strong>Team ID</strong>.</li><li><a href="https://developer.apple.com/account/">Apple Developer Portal</a> → Membership sekmesinde <strong>Team ID</strong>’nizi bulabilirsiniz.</li><li><strong>com.example.app</strong>: Uygulamanızın Bundle Identifier’ı. Xcode → Project Settings → General sekmesinde bulunabilir.</li><li><strong>paths</strong>: Deeplink olarak kabul edilecek yollar.</li></ul><p>Örneğin, &quot;/content/*&quot; değeri, https://example.com/content alt yollarını kapsar.</p><h3>2. Dosyaların FTP’ye Yüklenmesi</h3><p>Dosyaları FTP sunucunuzun http://example.com/.well-known/ dizinine yükleyin. Ayrıca dosyaların Content-Type değeri application/json olarak ayarlanmalıdır.</p><h3>.htaccess Ayarı</h3><p>Eğer Apache sunucusu kullanıyorsanız, şu ayarları .htaccess dosyanıza ekleyin:</p><pre>&lt;Files &quot;apple-app-site-association&quot;&gt;<br>    Header set Content-Type &quot;application/json&quot;<br>&lt;/Files&gt;<br><br>&lt;Files &quot;assetlinks.json&quot;&gt;<br>    Header set Content-Type &quot;application/json&quot;<br>&lt;/Files&gt;</pre><pre><strong><em>Not:</em></strong><em> Dosyalarınızı yükledikten sonra tarayıcınızda </em><em>http://example.com/.well-known/assetlinks.json ve </em><em>http://example.com/.well-known/apple-app-site-association adreslerini kontrol edin. Geliştirici araçlarından dosya içeriklerini ve </em><em>Content-Type başlıklarını doğrulayabilirsiniz.</em></pre><h3>3. Android Tarafındaki Yapılandırma</h3><h3>AndroidManifest.xml Düzenlemesi</h3><p>android/app/src/main/AndroidManifest.xml dosyasına aşağıdaki intent-filter kodunu ekleyin:</p><pre>&lt;intent-filter android:autoVerify=&quot;true&quot;&gt;<br>    &lt;action android:name=&quot;android.intent.action.VIEW&quot; /&gt;<br>    &lt;category android:name=&quot;android.intent.category.DEFAULT&quot; /&gt;<br>    &lt;category android:name=&quot;android.intent.category.BROWSABLE&quot; /&gt;<br>    &lt;data<br>        android:scheme=&quot;https&quot;<br>        android:host=&quot;example.com&quot;<br>        android:pathPrefix=&quot;/content&quot; /&gt;<br>&lt;/intent-filter&gt;</pre><h4>Açıklamalar</h4><ul><li><strong>android:autoVerify=&quot;true&quot;</strong>: URL doğrulama işlemini otomatikleştirir.</li><li><strong>android:scheme</strong>: URL şeması (genellikle https).</li><li><strong>android:host</strong>: Alan adınız (örneğin: example.com).</li><li><strong>android:pathPrefix</strong>: Desteklenen yollar (örneğin: /content).</li></ul><h3>4. iOS Tarafındaki Yapılandırma</h3><h3>Info.plist Düzenlemesi</h3><p>Flutter’ın deeplink özelliğini manuel olarak yönetmek için Info.plist dosyanıza aşağıdaki satırı ekleyin:</p><pre>&lt;key&gt;FlutterDeepLinkingEnabled&lt;/key&gt;<br>&lt;false/&gt;</pre><h3>Associated Domains’i Aktif Etme</h3><ol><li>Xcode’u açın ve projenizi seçin.</li><li>Sol menüden Runner → <strong>Signing &amp; Capabilities</strong> sekmesine gidin.</li><li>“+ Capability” butonuna tıklayın ve <strong>Associated Domains</strong> özelliğini ekleyin.</li><li>Aşağıdaki satırı ekleyin:</li></ol><ul><li>applinks:example.com</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6-0X2QBr_ZtD2KC-DcLfow.png" /></figure><h4>Doğrulama</h4><p>Dosya doğruluğunu <a href="https://branch.io/resources/aasa-validator/">Branch AASA Validator</a> ile kontrol edin.</p><h3>5. Flutter Kısmında Yapılandırma</h3><h3>Gerekli Paketlerin Eklenmesi</h3><p>pubspec.yaml dosyanıza app_links paketini ekleyin:</p><pre>dependencies:<br>  app_links: ^6.3.2</pre><h3>Deeplink Yönetimi</h3><p>Bloc mimarisi kullanarak gelen deeplinkleri yöneten bir yapı oluşturabilirsiniz.</p><h4>Bloc Örneği</h4><pre>class DeepLinkBloc extends Bloc&lt;DeepLinkEvent, DeepLinkState&gt; {<br>  final AppLinks appLinks;<br><br>DeepLinkBloc({required this.appLinks}) : super(const DeepLinkState.initial()) {<br>    on&lt;DeepLinkEvent&gt;((event, emit) async {<br>      await event.map(<br>        started: (_) async =&gt; await _startListening(emit),<br>        linkReceived: (e) async =&gt; await _handleLink(e.link, emit),<br>      );<br>    });<br>  }<br>  Future&lt;void&gt; _startListening(Emitter&lt;DeepLinkState&gt; emit) async {<br>    _linkSubscription = appLinks.uriLinkStream.listen((Uri? uri) {<br>      if (uri != null) {<br>        add(DeepLinkEvent.linkReceived(uri.toString()));<br>      }<br>    });<br>  }<br>  Future&lt;void&gt; _handleLink(String link, Emitter&lt;DeepLinkState&gt; emit) async {<br>    if (link.contains(&#39;/content/&#39;)) {<br>      final contentId = link.split(&#39;/content/&#39;).last;<br>      // İçeriğe yönlendirme işlemi burada yapılacaktır<br>    }<br>  }<br>}</pre><h3>Sonuç</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*QEcn2vXZyGX7Y-ZOOo7dcw.png" /></figure><p>Bu rehberde, Flutter uygulamanıza hem Android hem de iOS için deeplink entegrasyonu yapmayı öğrendiniz. Artık uygulamanız harici bağlantılardan kullanıcıları doğru ekranlara yönlendirebilir. Doğrulama işlemlerini eksiksiz yapmayı unutmayın ve tüm işlemleri test ederek yayına alın.</p><p>Eğer herhangi bir sorunuz olursa ya da daha iyi bir yöntem öneriniz varsa, benimle iletişime geçmekten çekinmeyin.</p><p><a href="https://www.linkedin.com/in/zahidhamza0/"><strong>LinkedIn Profilim</strong></a></p><p>Soru ve geri bildirimleriniz için her zaman ulaşabilirsiniz! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea042fe98108" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>