<?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 Erdi Koc on Medium]]></title>
        <description><![CDATA[Stories by Erdi Koc on Medium]]></description>
        <link>https://medium.com/@erdi.koc?source=rss-8438763dca56------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*krG-irYs6z0oChGXwZaapA.jpeg</url>
            <title>Stories by Erdi Koc on Medium</title>
            <link>https://medium.com/@erdi.koc?source=rss-8438763dca56------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:43:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@erdi.koc/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[Bir Flutter uygulaması müşterinin telefonuna nasıl ulaşır?(deep dive)]]></title>
            <link>https://medium.com/@erdi.koc/bir-flutter-uygulamas%C4%B1-m%C3%BC%C5%9Fterinin-telefonuna-nas%C4%B1l-ula%C5%9F%C4%B1r-deep-dive-ddd1d50cfc2e?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddd1d50cfc2e</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[sdlc]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[anatomy]]></category>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Wed, 18 Nov 2026 09:37:33 GMT</pubDate>
            <atom:updated>2026-11-18T09:37:33.093Z</atom:updated>
            <content:encoded><![CDATA[<p>git push ile müşterinin ekranında uygulamanın açılması arasında paket birçok kez el değiştirir. Bu adımların bir kısmını Flutter yönetir, geri kalanını Apple ve Google. Bu yazı o yolu baştan sona, bir release mühendisinin bakacağı ayrıntı düzeyinde izliyor. Yazıya eşlik eden figürde iki şeritli bir paketleme hattı var: arka şerit App Store, ön şerit Google Play. Paket her istasyonda biçim değiştiriyor, yazının bölümleri de o istasyonların sırasını izliyor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mmEsSD5uTiX1WepQSi13MQ.png" /><figcaption>Şekil 1. İki şeritli yayın hattı: arkada App Store, önde Google Play. Paket ortak kaynaktan çıkıp telefon rafına kadar ilerliyor.</figcaption></figure><h3>1. Kaynak: tek satırdan iki sürüm numarası</h3><p>Her şey pubspec.yaml içindeki tek satırla başlar:</p><pre>version: 1.4.0+42</pre><p>Artı işaretinden önceki kısım kullanıcının gördüğü sürümdür, sonraki kısım mağazanın sıraladığı build numarasıdır. Flutter bu satırı derleme sırasında iki platformun kendi alanlarına yazar:</p><ul><li><strong>1.4.0.</strong> iOS (Info.plist): CFBundleShortVersionString. Android (Gradle): versionName.</li><li><strong>42.</strong> iOS (Info.plist): CFBundleVersion. Android (Gradle): versionCode.</li></ul><p>İki mağaza da build numarasının her yüklemede artmasını ister. Play tarafında versionCode bir tam sayıdır ve üst sınırı 2.100.000.000&#39;dur. Daha önce yüklenmiş bir koddan küçük ya da ona eşit bir değer reddedilir. Apple ise aynı CFBundleShortVersionString altında daha önce kullanılmış bir CFBundleVersiondeğerini kabul etmez. CI kullanan ekipler bu yüzden numarayı dosyaya yazmak yerine derleme anında verir:</p><pre>flutter build ipa --build-name=1.4.0 --build-number=$CI_BUILD_NUMBER</pre><p>Build numarasını CI&#39;ın çalışma sayacına bağlamak, iki geliştiricinin aynı numarayı yüklemeye çalıştığı çakışmayı ortadan kaldırır. Play&#39;de bir yükleme reddedilse bile o versionCode yanmış sayılır, bir sonraki denemede numarayı yine artırmanız gerekir.</p><p>Bu aşamada iki platformun da kendi kimlik bilgileri sabitlenir: iOS&#39;ta bundle identifier (com.firma.app), Android&#39;de applicationId. Android&#39;deki applicationId uygulama yayınlandıktan sonra değiştirilemez. Değiştirmek, Play&#39;in gözünde yeni bir uygulama demektir.</p><h3>2. Derleme: Dart kodu makine koduna dönüşür</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uWB6_6mXrqNDE2eiW2i-g.png" /><figcaption>Derleme presi: Dart kodu AOT ile makine koduna çevrilir. Paket burada .ipa ve .aab biçimini alır.</figcaption></figure><p>Geliştirme sırasında Flutter, Dart kodunu JIT ile çalıştırır. Hot reload bu sayede mümkün olur. Release derlemesinde ise Dart AOT derleyicisi kodu doğrudan hedef işlemcinin makine koduna çevirir. Mağazaya giden pakette Dart VM’in JIT derleyicisi bulunmaz. Bu iOS için zorunluluktur, çünkü Apple mağaza uygulamalarında çalışma anında üretilen çalıştırılabilir koda izin vermez.</p><h4>iOS şeridi</h4><pre>flutter build ipa --release \<br>  --obfuscate --split-debug-info=build/symbols \<br>  --export-options-plist=ios/ExportOptions.plist</pre><p>Bu komut arka planda şunları yapar:</p><ol><li>Dart kodunu arm64 için AOT derler ve sonucu App.framework içine koyar. Flutter motoru ayrı bir Flutter.framework olarak gelir.</li><li>CocoaPods (ya da yeni sürümlerde Swift Package Manager) ile eklentilerin native kodunu bağlar.</li><li>xcodebuild archive çalıştırır ve build/ios/archive/Runner.xcarchive üretir.</li><li>Arşivi ExportOptions.plist içindeki yönteme göre (app-store / app-store-connect) dışa aktarır ve build/ios/ipa/ altına .ipa yazar.</li></ol><p>Bitcode artık konu değil. Xcode 14 ile kullanımdan kaldırıldı ve App Store bitcode içeren yeni yüklemeleri kabul etmiyor. Eski bir projede ENABLE_BITCODE = YES kaldıysa onu temizlemek gerekir.</p><p>Apple her yıl bahar aylarında yüklemeler için minimum Xcode ve SDK sürümünü yükseltir. 28 Nisan 2026&#39;dan beri App Store Connect, Xcode 26 ve iOS 26 SDK ile derlenmemiş yeni uygulama ve güncellemeleri kabul etmiyor. Bir önceki yıl bu şart Xcode 16 ve iOS 18 SDK idi. Mağazada zaten yayında olan sürüm bu şarttan etkilenmez, yalnızca yeni yüklemeler etkilenir. CI makinelerindeki Xcode sürümü bu yüzden yılda bir kez zorunlu olarak güncellenir. Bunu unutan ekip, bir sabah çalışan pipeline’ın upload adımında hata alır.</p><h4>Android şeridi</h4><pre>flutter build appbundle --release \<br>  --obfuscate --split-debug-info=build/symbols</pre><p>Burada Dart kodu her ABI için ayrı derlenir: arm64-v8a, armeabi-v7a ve x86_64. Her biri libapp.so adında bir paylaşımlı kütüphane olur ve Flutter motoru libflutter.soolarak yanına konur. Gradle bunları, Kotlin/Java tarafını küçülten ve karartan R8 çıktısıyla birlikte bir Android App Bundle (.aab) içine paketler.</p><p>.aab doğrudan kurulabilen bir dosya değildir. Tüm ABI&#39;leri, tüm ekran yoğunluklarını ve tüm dilleri içeren bir yayın biçimidir. Ağustos 2021&#39;den beri yeni uygulamalar Play&#39;e APK değil AAB ile gönderilir. Cihaza neyin gideceğine Play karar verir (bkz. 5. bölüm).</p><p>Android’de iki güncel şart derleme ayarlarını doğrudan etkiler:</p><ul><li>Hedef API seviyesi. Play, güncellemelerin son Android sürümünden en fazla bir yıl geride bir targetSdk hedeflemesini ister. 31 Ağustos 2026&#39;dan beri telefon ve tablet uygulamalarında yeni uygulamalar ve güncellemeler için bu değer API 36 (Android 16). Yeni kullanıcılara görünmeye devam etmek isteyen mevcut uygulamaların ise en az API 35 hedeflemesi gerekiyor. Wear OS ve Android Automotive gibi diğer form faktörlerinde eşik bir seviye aşağıda. Flutter projelerinde bu değer android/app/build.gradle(.kts) içinde genellikle flutter.targetSdkVersionüzerinden gelir, yani Flutter SDK&#39;yı güncellemek çoğu zaman yeterlidir.</li><li>16 KB bellek sayfası. Android 15 ile birlikte 16 KB sayfa boyutlu cihazlar geldi. Play, 1 Kasım 2025&#39;ten itibaren Android 15 ve üstünü hedefleyen yeni uygulama ve güncellemelerin 64 bit cihazlarda 16 KB sayfa boyutunu desteklemesini şart koşuyor. Play Console’dan uzatma alan uygulamalar için son tarih 2026 Mayıs sonuna ertelenmişti (bu tarihi Google’ın kendi sayfasında değil, uzatma alan geliştiricilerin aktarımlarında gördüm), yani bu süre de doldu. Flutter motorunun güncel sürümleri buna uygun. Risk genellikle bir eklentinin getirdiği eski, hizalanmamış .sodosyasındadır. zipalign ve Android Studio&#39;nun APK Analyzer&#39;ı hangi kütüphanenin sorunlu olduğunu gösterir.</li></ul><h4>Karartma ve semboller</h4><p>--obfuscate Dart sınıf ve metot adlarını anlamsız adlarla değiştirir. --split-debug-infoise sembol tablosunu paketten çıkarıp ayrı bir klasöre yazar. Böylece paket küçülür ve tersine mühendislik zorlaşır. Bedeli şudur: üretimden gelen bir Dart yığın izi bu sembol dosyaları olmadan okunamaz.</p><pre>flutter symbolize -i crash.txt -d build/symbols/app.android-arm64.symbols</pre><p>Bu yüzden build/symbols klasörü her sürümde arşivlenmelidir. Crashlytics ya da Sentry gibi bir araç kullanıyorsanız, Dart sembollerinin yanında iOS için dSYM dosyalarını, Android için R8&#39;in mapping.txt dosyasını da yüklemeniz gerekir. Play Console&#39;a mapping.txt yüklendiğinde Android vitals ekranındaki Java/Kotlin yığın izleri okunur hale gelir. Dart tarafını ise ancak kendi sembol dosyalarınız çözer.</p><h3>3. İmza: paketin kimden geldiğini kanıtlamak</h3><p>Figürdeki damga bu adımı gösteriyor. İki platform imzayı farklı kurgular ve fark, bir anahtar kaybolduğunda belirginleşir.</p><h4>Apple</h4><p>App Store’a giden bir build üç parçayla imzalanır:</p><ul><li>Apple Distribution sertifikası. Developer hesabına bağlı, özel anahtarı sizin Keychain’inizde (ya da CI’da) duran sertifika.</li><li>App Store provisioning profili. Bundle ID’yi, sertifikayı ve uygulamanın yetkilerini (entitlements: push, iCloud, Sign in with Apple, associated domains) birbirine bağlar.</li><li>Entitlements dosyası. Uygulamanın gerçekte istediği yetkiler. Profilde olmayan bir yetki istenirse imza doğrulaması başarısız olur.</li></ul><p>Xcode’un otomatik imzalaması tek geliştirici için yeterlidir. Ekiplerde sertifikaları ortak bir yerde tutmak gerekir. fastlane match bunun için yaygın kullanılan araçtır: sertifika ve profilleri şifreli bir Git deposunda ya da bulut depolamada saklar, CI ve her geliştirici aynı kimliği çeker.</p><p>Önemli bir ayrıntı: sizin imzanız yalnızca paketi Apple’a teslim etmek için kullanılır. App Store, kullanıcıya dağıtmadan önce ikili dosyayı kendi sertifikasıyla yeniden imzalar ve FairPlay ile şifreler. Cihaza inen dosyada sizin dağıtım sertifikanız değil, Apple’ın imzası bulunur. Dağıtım sertifikasının süresi dolsa bile mağazadaki uygulama çalışmaya devam eder. Etkilenen tek şey yeni yüklemelerdir.</p><p>İmzayla birlikte kontrol edilen iki dosya daha var. PrivacyInfo.xcprivacy (privacy manifest), Mayıs 2024&#39;ten beri &quot;required reason&quot; API&#39;lerini (dosya zaman damgaları, UserDefaults, sistem açılış süresi gibi) kullanan uygulamalar ve SDK&#39;lar için zorunlu. Flutter eklentilerinin çoğu kendi manifestini getirir, ama eksik olan bir eklenti yükleme sırasında e-posta ile uyarı ya da ret olarak geri döner. Diğeri Info.plist içindeki ITSAppUsesNonExemptEncryption anahtarıdır. Uygulama yalnızca HTTPS gibi muaf şifreleme kullanıyorsa bunu false yapmak, her yüklemede export compliance sorusunun sorulmasını engeller.</p><h4>Google</h4><p>Android’de iki ayrı anahtar vardır ve aradaki ayrımı bilmek bir felaketi önleyebilir:</p><ul><li>Upload key. Sizin keystore dosyanızdaki anahtar. .aab dosyasını bununla imzalarsınız. Play bu imzayı yalnızca paketin sizden geldiğini doğrulamak için kullanır.</li><li>App signing key. Google’ın sunucularında, Play App Signing altında saklanan anahtar. Kullanıcıya giden her APK bununla imzalanır. AAB ile yayın yapıyorsanız Play App Signing zorunludur.</li></ul><p>Bu ayrımın pratik sonucu şu: upload key’i kaybederseniz Play Console üzerinden sıfırlama talep edebilirsiniz ve uygulamanız yaşamaya devam eder. Eski modelde, imza anahtarını kendiniz tuttuğunuzda, anahtarın kaybı uygulamanın bir daha güncellenememesi demekti. Çünkü Android, bir güncellemenin kurulu sürümle aynı sertifikayla imzalanmasını şart koşar.</p><p>Flutter projesinde imza ayarı genellikle android/key.properties ile yapılır ve bu dosya Git&#39;e girmez:</p><pre>storePassword=...<br>keyPassword=...<br>keyAlias=upload<br>storeFile=/secure/path/upload-keystore.jks</pre><p>CI&#39;da keystore base64 olarak bir secret içinde tutulur ve derleme adımında dosyaya açılır.</p><h3>4. Yükleme ve inceleme</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FC14QOM2XtHpEwtkwWmhYQ.png" /><figcaption>İnceleme kapısı. Kadranlar 0 ile 7 gün arası ölçekli: iOS ortalama 1,5 gün, Play birkaç saat ile 7 gün arası.</figcaption></figure><p>İmzalı paket mağazaya iki ayrı kapıdan girer. Figürdeki lambalı kapı ve 0 ile 7 gün arası ölçekli kadran bu aşamayı gösteriyor.</p><h4>App Store Connect</h4><p>.ipa dosyası Xcode Organizer, Transporter uygulaması, xcrun altool ya da App Store Connect API üzerinden yüklenir. fastlane&#39;de bu pilot (TestFlight) ve deliver (mağaza) eylemleridir. CI&#39;da kullanıcı adı ve parola yerine App Store Connect API anahtarı (.p8dosyası, key ID ve issuer ID) kullanmak, iki adımlı doğrulamanın pipeline&#39;ı kilitlemesini önler.</p><p>Yüklenen build önce “Processing” durumuna girer. Apple bu sırada ikiliyi statik olarak tarar, yasak API kullanımını, eksik privacy manifestlerini ve ikon ile Info.plisttutarlılığını kontrol eder. Bu genellikle dakikalar sürer, yoğun dönemlerde bir saati bulabilir. Sorun çıkarsa bildirim build ekranına değil e-postaya gelir.</p><p>İşlenen build önce TestFlight’a düşer:</p><ul><li>Dahili test. App Store Connect ekibinden en fazla 100 kişi. İnceleme gerekmez, build işlenir işlenmez kullanılabilir.</li><li>Harici test. En fazla 10.000 kişi, e-posta ya da herkese açık bağlantıyla. Bir sürümün ilk build’i Beta App Review’dan geçer.</li><li>TestFlight build’leri 90 gün sonra sona erer.</li></ul><p>Mağazaya gönderimde App Review devreye girer. Apple’ın App Review sayfası, başvuruların ortalama yüzde 90&#39;ının 24 saatten kısa sürede incelendiğini söylüyor. Apple’ın 2026&#39;da 9to5Mac’e yaptığı açıklamadaki rakamlar ise daha temkinli: başvuruların yüzde 90&#39;ı 48 saat içinde işleniyor, ortalama süre 1,5 gün, küçük güncellemelerde yaklaşık 14 saat. Haftada 200.000&#39;i aşan başvuru hacmi kuyruğu uzatıyor. Planlama yaparken 48 saati baz almak daha güvenli. Acil bir hata düzeltmesi için “expedited review” talep edilebilir. Kabul edilip edilmeyeceği Apple’ın takdirindedir. Flutter uygulamalarının en sık takıldığı maddeler Flutter’a özgü değildir: üçüncü taraf girişin yanında Sign in with Apple gibi gizlilik odaklı eşdeğer bir seçenek sunmamak (4.8), uygulama içi hesap silme seçeneğinin olmaması (5.1.1(v)), dijital içerik için harici ödeme bağlantısı (3.1.1) ve WebView sarmalayıcısından ibaret görünen uygulamalar (4.2).</p><h4>Play Console</h4><p>.aab dosyası Play Console&#39;dan elle, ya da Google Play Developer API ile yüklenir (fastlane supply, Gradle Play Publisher). API erişimi için Google Cloud&#39;da bir service account açılır ve Play Console&#39;da bu hesaba yetki verilir.</p><p>Play’de dört yayın kanalı vardır:</p><ul><li><strong>Dahili test.</strong> Kimler: En fazla 100 test kullanıcısı. İnceleme: Yok denecek kadar hızlı, genellikle dakikalar.</li><li><strong>Kapalı test.</strong> Kimler: Belirlenen listeler ya da Google Grupları. İnceleme: Var.</li><li><strong>Açık test.</strong> Kimler: Katılmak isteyen herkes. İnceleme: Var.</li><li><strong>Üretim.</strong> Kimler: Tüm kullanıcılar. İnceleme: Var.</li></ul><p>Kasım 2023&#39;ten sonra açılan kişisel geliştirici hesapları için ek bir şart var: üretime çıkmadan önce en az 12 test kullanıcısının ardışık 14 gün boyunca kapalı teste katılmış olması gerekir. Bu sayı başlangıçta 20 idi, Aralık 2024&#39;te 12&#39;ye indirildi. Kurumsal hesaplar bu şarttan muaf. Yeni bir kişisel hesapla ilk sürümü planlayan biri takvime en az iki hafta eklemeli.</p><p>Google inceleme süresi için kesin bir oran vermez. Çoğu güncelleme saatler içinde onaylanır. Play Console yardım sayfası incelemenin birkaç saat ile 7 gün arasında sürebileceğini, istisnai durumlarda daha da uzayabileceğini söyler ve gönderim ile yayın tarihi arasında en az bir haftalık pay bırakmayı önerir; yeni hesaplar, ilk sürümler ve hassas izin isteyen uygulamalar daha uzun bekler. Figürdeki Play kadranının ibresi önce 7 güne kadar savrulup sonra birkaç saate oturuyor. Bu, ortalamanın kısa ama kuyruğun uzun olduğunu göstermek için.</p><p>Play incelemesinden önce doldurulması gereken formlar uygulama koduyla birlikte tutarlı olmalıdır: Data safety formu (toplanan ve paylaşılan veriler), içerik derecelendirmesi (IARC anketi), hedef kitle, reklam beyanı ve gizlilik politikası URL’si. Data safety formunda beyan edilmeyen bir veri toplama, örneğin bir analiz SDK’sının cihaz kimliği göndermesi, ret sebebidir. Flutter eklentileri bu tarafta görünmezdir, ama Play’in tarayıcısı onları görür.</p><p>Play Console’daki “Managed publishing” seçeneği onaylanan değişikliğin ne zaman yayına gireceğini size bırakır. İnceleme biter, ama sürüm siz “Yayınla” diyene kadar bekler. Pazarlama tarihine bağlı lansmanlarda işe yarar.</p><h3>5. Bölme: her cihaza yalnızca ona gereken parça</h3><p>Figürde bu adım, çatısında dört kartuş olan bir tünel. Paket tünele büyük girip küçük çıkıyor.</p><h4>Google Play: split APK’lar</h4><p>Play, yüklediğiniz .aab dosyasını bundletool ile bir APK setine çevirir:</p><ul><li>Base APK. Dart kodu hariç ortak kod ve kaynaklar.</li><li>ABI split’leri. arm64-v8a, armeabi-v7a, x86_64. Her biri yalnızca o mimarinin libapp.so ve libflutter.so dosyalarını taşır.</li><li>Yoğunluk split’leri. xxhdpi, xxxhdpi gibi ekran yoğunluklarına göre Android kaynakları.</li><li>Dil split’leri. Android kaynak dosyalarındaki dil dizgeleri.</li></ul><p>Bir Pixel cihazı yalnızca base, arm64-v8a ve kendi yoğunluğu ile dilinin split&#39;lerini indirir. Bu APK&#39;ların hepsi Google&#39;daki app signing key ile imzalanır. Flutter açısından önemli bir sınırlama var: pubspec.yaml altındaki assets ve Dart&#39;ın intl ile ürettiği çeviriler Android kaynakları değildir. Bunlar flutter_assets içinde, base APK&#39;nın parçası olarak gelir ve yoğunluk ya da dil split&#39;ine bölünmez. Dil ya da yoğunluk bölmesinden kazanılan alan, Flutter uygulamasında native bir uygulamadakinden az olur. ABI bölmesi ise asıl kazançtır, çünkü libapp.so ve libflutter.so paketin en büyük parçalarıdır.</p><p>Play’in sıkıştırılmış indirme boyutu için sınırları var (base modül için 200 MB). Daha büyük içerik için Play Asset Delivery ya da Flutter’ın Android’de desteklediği deferred components kullanılır.</p><p>Kendi makinenizde Play’in ne üreteceğini görmek için:</p><pre>bundletool build-apks --bundle=app-release.aab --output=app.apks \<br>  --connected-device<br>bundletool get-size total --apks=app.apks</pre><p>Play Console’daki “App bundle explorer” ekranı da cihaz yapılandırmasına göre indirme boyutlarını gösterir.</p><h4>App Store: App Thinning</h4><p>Apple tarafında bölmenin adı App Thinning. Bugün pratikte “slicing” anlamına geliyor: asset catalog içindeki görüntüler cihazın ölçeğine (@2x, @3x) ve özelliklerine göre ayrılır, her cihaz kendi varyantını indirir. Bitcode kaldırıldığı için mimariye göre yeniden derleme artık yok. Flutter uygulamalarında Flutter asset&#39;leri flutter_assets klasöründe durduğu için, Android&#39;deki gibi, slicing&#39;den az pay alır. Kazancı en çok Xcode asset catalog&#39;una konan uygulama ikonları ve launch görselleri sağlar.</p><p>Apple bu aşamada paketi yeniden imzalar ve FairPlay ile şifreler. App Store Connect’teki “App Store File Sizes” raporu, her cihaz modeli için indirme ve kurulum boyutunu gösterir. Mobil veriyle indirme sınırı (200 MB) aşıldığında kullanıcıya uyarı çıkar. Bu, büyük bir Flutter uygulaması için gerçek bir dönüşüm kaybıdır.</p><h3>6. Kademeli yayın: vanayı yavaş açmak</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jyIelI-7_AUSrtKknmcJuw.png" /><figcaption>Kademeli yayının 6. günü: Apple’ın sabit takvimi %50&#39;de, örnek Play planı %100&#39;de. Raftaki ekranlar yayın yüzdesi kadar yanıyor.</figcaption></figure><p>Figürdeki vana ve kadran, onaylanan sürümün kullanıcılara ne hızla aktığını gösteriyor. Raftaki yedi telefonun ekranları yüzde kadar yanıyor.</p><h4>Apple: Phased Release</h4><p>Apple’ın takvimi sabittir ve yedi gün sürer:</p><p>Gün 1: %1 · Gün 2: %2 · Gün 3: %5 · Gün 4: %10 · Gün 5: %20 · Gün 6: %50 · Gün 7: %100</p><p>Üç ayrıntıyı çoğu ekip gözden kaçırır. Birincisi, phased release yalnızca otomatik güncellemeyi açık tutan mevcut kullanıcıları kapsar. App Store’da uygulamanın sayfasına gidip “Güncelle”ye basan herkes yeni sürümü ilk günden alır. Uygulamayı ilk kez indiren yeni kullanıcılar da yeni sürümü alır. Yani “%1” dediğimiz gün, sürümü gören kullanıcı oranı %1&#39;den fazladır. İkincisi, phased release yalnızca güncellemelerde kullanılabilir. Uygulamanın ilk sürümü herkese aynı anda açılır. Üçüncüsü, yayın toplamda 30 güne kadar duraklatılabilir ve duraklatma sayısında sınır yoktur. 10 gün duraklatıp devam ettirirseniz 20 gününüz kalır. Duraklatma, otomatik güncellemeyi durdurur, ama mağazadaki sürüm geri alınmaz.</p><h4>Google: Staged rollout</h4><p>Play’de yüzdeyi siz seçersiniz. %1 ile başlayıp %5, %10, %20, %50 ve %100 basamaklarıyla çıkmak yaygın bir alışkanlıktır, ama zorunlu bir takvim yoktur. Play kullanıcıları rastgele seçer. Rollout durdurulabilir (halt) ve yeniden başlatılabilir. Durdurmak yeni kullanıcıların güncellemeyi almasını engeller, almış olanlarda yeni sürüm kalır. Play Console ülke bazında kademeli yayına da izin verir.</p><p>Kademeli yayının asıl değeri, yüzdeyi artırmadan önce bakılan sinyallerde yatar. Android vitals iki eşik tanımlar: genel kullanıcı tarafından algılanan çökme oranı için %1,09, ANR oranı için %0,47. Tek bir telefon modeli için iki eşik de %8&#39;dir. Bu eşikleri aşan uygulamaların Play’deki görünürlüğü düşebilir. iOS tarafında aynı rolü Xcode Organizer’daki çökme ve takılma raporları ile MetricKit oynar. Flutter’a özgü sinyal ise Dart tarafındaki yakalanmamış hatalardır. FlutterError.onError ve PlatformDispatcher.instance.onError ile toplanmazlarsa çökme raporlarında hiç görünmezler, çünkü Dart hataları çoğu zaman süreci öldürmez, yalnızca bir ekranı boş bırakır.</p><h3>7. Cihaz: indirme, doğrulama ve kurulum</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*if40qPtWU-C4dB4D0959EA.png" /><figcaption>Son istasyon: paket cihazlara ulaştı, iki raftaki bütün ekranlar yanıyor.</figcaption></figure><p>Son istasyon telefon rafı. Paket CDN üzerinden cihaza iner.</p><p>Android’de Play Store uygulaması o cihaza uygun split APK’ları indirir ve PackageInstaller oturumunda birlikte kurar. Sistem, APK Signature Scheme v2/v3 ile imzayı doğrular ve kurulu sürümün sertifikasıyla eşleşmediği durumda güncellemeyi reddeder. Güncellemelerde Play, iki sürüm arasındaki farkı yama olarak gönderir. Flutter uygulamalarında en büyük dosya olan libapp.so her sürümde baştan derlendiği için yama boyutu native bir uygulamaya göre büyük kalabilir.</p><p>iOS’ta App Store cihaz modeline uygun varyantı indirir, imzayı doğrular ve uygulamayı kurar. FairPlay şifrelemesi çalışma anında çözülür. Güncellemeler de delta olarak iner.</p><p>Kurulumdan sonra bir şeyin ters gittiğini anlamanın ve düzeltmenin yolları sınırlıdır. İki mağazada da “önceki sürüme dön” düğmesi yoktur. Geri dönüş, eski kodu daha yüksek bir build numarasıyla yeniden derleyip baştan göndermek demektir: yeni bir inceleme, yeni bir kademeli yayın. Bu yüzden bayrak (feature flag) ve uzaktan yapılandırma (Firebase Remote Config gibi) kademeli yayının tamamlayıcısıdır. Kodu göndermeden davranışı kapatabilirsiniz. Flutter ekosisteminde Shorebird gibi araçlar Dart kodu için mağaza dışı yama (code push) sunuyor. Bu, mağaza kurallarının izin verdiği sınırlar içinde kalmak şartıyla, inceleme süresini atlayarak Dart tarafındaki bir hatayı düzeltmeyi mümkün kılar. Native kodda bir değişiklik ise yine mağazadan geçmek zorundadır.</p><p>Kullanıcıyı yeni sürüme yönlendirmek için Android’de Play Core’un In-App Updates API’si (esnek ya da anında güncelleme akışı) kullanılır. iOS’ta bunun resmi bir karşılığı yoktur. Ekipler genellikle kendi sunucularından minimum sürümü okuyup kullanıcıyı App Store sayfasına gönderir.</p><h3>8. Hepsini bir pipeline’a bağlamak</h3><p>Yukarıdaki adımların elle yapıldığı bir sürüm süreci, en iyi durumda yarım gün sürer ve her seferinde bir adımı unutma riski taşır. Olgun bir Flutter ekibinin pipeline’ı kabaca şöyle görünür:</p><pre># Taslak: GitHub Actions, macOS runner<br>jobs:<br>  release:<br>    runs-on: macos-latest<br>    steps:<br>      - uses: actions/checkout@v4<br>      - uses: subosito/flutter-action@v2<br>        with: { channel: stable }<br>      - run: flutter test<br>      - run: flutter build appbundle --build-number=${{ github.run_number }} --obfuscate --split-debug-info=build/symbols<br>      - run: flutter build ipa --build-number=${{ github.run_number }} --obfuscate --split-debug-info=build/symbols --export-options-plist=ios/ExportOptions.plist<br>      - run: bundle exec fastlane android internal   # supply → dahili test<br>      - run: bundle exec fastlane ios beta           # pilot → TestFlight<br>      - uses: actions/upload-artifact@v4<br>        with: { name: symbols, path: build/symbols }</pre><p>Burada fastlane match sertifikaları çeker, App Store Connect API anahtarı ve Play service account JSON dosyası secret olarak gelir. Build numarası CI&#39;ın çalışma sayacıdır. Semboller her sürümle arşivlenir. Üretime terfi (TestFlight&#39;tan App Review&#39;a, dahili testten üretime) genellikle elle onaylanan ayrı bir adımdır, çünkü o noktada sürüm notları, ekran görüntüleri ve kademeli yayın yüzdesi bir insanın kararıdır.</p><p>Codemagic, Bitrise ve Xcode Cloud aynı işi barındırılan altyapıda yapar. Codemagic Flutter&#39;a özel şablonlarla gelir. Xcode Cloud yalnızca Apple tarafını kapsar.</p><h3>Takvim: gerçekçi bir sürüm ne kadar sürer</h3><ul><li><strong>Derleme ve imza (CI).</strong> iOS: 10 ile 25 dakika (macOS runner). Android: 5 ile 15 dakika.</li><li><strong>Yükleme sonrası işleme.</strong> iOS: Dakikalar, bazen bir saate kadar. Android: Dakikalar.</li><li><strong>Dahili test.</strong> iOS: İşleme biter bitmez. Android: Dakikalar.</li><li><strong>Mağaza incelemesi.</strong> iOS: %90&#39;ı 48 saat içinde, ortalama 1,5 gün. Android: Çoğu saatler, bazen 7 gün ya da fazlası.</li><li><strong>Kademeli yayın.</strong> iOS: 7 gün (sabit takvim). Android: Sizin seçtiğiniz süre.</li><li><strong>Yeni kişisel hesapta ilk sürüm.</strong> iOS: Ek şart yok. Android: 12 test kullanıcısı ile 14 günlük kapalı test.</li></ul><p>Derleme süreleri projenin büyüklüğüne ve runner’a göre çok değişir, tablodakiler orta büyüklükte bir proje için tipik aralıklardır. Mağaza tarafındaki süreler ise Apple ve Google’ın kendi açıklamalarından gelir. Bir hata düzeltmesinin koddan kullanıcıların tamamına ulaşması, iki platformda da kademeli yayın dahil, bir haftaya yakın sürer. Kod tarafındaki bir hata düzeltmesini planlarken bu süreyi hesaba katmak, feature flag ve uzaktan yapılandırmayı neden baştan kurmak gerektiğini açıklar.</p><h3>Kaynaklar</h3><p>Tarihli maddeler 18 Kasım 2026&#39;da şu sayfalarla karşılaştırıldı:</p><ul><li><a href="https://developer.apple.com/news/upcoming-requirements/">Apple: SDK minimum requirements</a></li><li><a href="https://developer.apple.com/distribute/app-review">Apple: App Review</a></li><li><a href="https://developer.apple.com/help/app-store-connect/update-your-app/release-a-version-update-in-phases">Apple: Release a version update in phases</a></li><li><a href="https://developer.apple.com/help/app-store-connect/test-a-beta-version/testflight-overview">Apple: TestFlight overview</a></li><li><a href="https://developer.android.com/google/play/requirements/target-sdk">Google Play: Target API level requirements</a></li><li><a href="https://support.google.com/googleplay/android-developer/answer/14151465">Google Play: Testing requirements for new personal developer accounts</a></li><li><a href="https://support.google.com/googleplay/android-developer/answer/9859654">Google Play: Managed publishing ve inceleme süreleri</a></li><li><a href="https://developer.android.com/topic/performance/vitals">Android vitals</a></li><li><a href="https://developer.android.com/guide/app-bundle/faq">Android App Bundle FAQ (200 MB base modül sınırı)</a></li><li><a href="https://expo.dev/blog/app-store-connect-minimum-sdk-26">Expo: App Store Connect minimum SDK 26</a> ve <a href="https://knowledge.broadcom.com/external/article/411558/guidance-on-google-plays-16-kb-page-size.html">Broadcom: 16 KB uzatma rehberi</a>(ikincil kaynaklar)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddd1d50cfc2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kod Yazmak Ucuzladı. Peki Koda Güvenmek?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">Yapay zek&#xE2; kod &#xFC;retimini h&#x131;zland&#x131;rd&#x131;; yaz&#x131;l&#x131;m geli&#x15F;tirmenin as&#x131;l darbo&#x11F;az&#x131; ise ba&#x15F;ka bir yere ta&#x15F;&#x131;nd&#x131;.</p><p class="medium-feed-link"><a href="https://medium.com/@erdi.koc/kod-yazmak-ucuzlad%C4%B1-peki-koda-g%C3%BCvenmek-60b4b4af6e05?source=rss-8438763dca56------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@erdi.koc/kod-yazmak-ucuzlad%C4%B1-peki-koda-g%C3%BCvenmek-60b4b4af6e05?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/60b4b4af6e05</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[yapay-zeka]]></category>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 13:02:55 GMT</pubDate>
            <atom:updated>2026-08-26T13:02:55.539Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Modern UI Facelifting Yanılgısı: Neden Her Şeyi Baştan Yazmak Gelişim Değil, Gerilemedir?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-snippet">&#x1F3AC; Giri&#x15F;: Facelifting mi dedin? Kod botoksu gibi bir &#x15F;ey mi?</p><p class="medium-feed-link"><a href="https://medium.com/@erdi.koc/modern-ui-facelifting-yan%C4%B1lg%C4%B1s%C4%B1-neden-her-%C5%9Feyi-ba%C5%9Ftan-yazmak-geli%C5%9Fim-de%C4%9Fil-gerilemedir-d90805ef5e07?source=rss-8438763dca56------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@erdi.koc/modern-ui-facelifting-yan%C4%B1lg%C4%B1s%C4%B1-neden-her-%C5%9Feyi-ba%C5%9Ftan-yazmak-geli%C5%9Fim-de%C4%9Fil-gerilemedir-d90805ef5e07?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/d90805ef5e07</guid>
            <category><![CDATA[facelift]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Mon, 03 Nov 2025 12:10:45 GMT</pubDate>
            <atom:updated>2025-11-03T12:10:45.479Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Designing End-to-End Systems for Mobile and Web: A Cross-Platform Architecture Guide for CTOs and…]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@erdi.koc/designing-end-to-end-systems-for-mobile-and-web-a-cross-platform-architecture-guide-for-ctos-and-7acaa70dab48?source=rss-8438763dca56------2"><img src="https://cdn-images-1.medium.com/max/1536/1*ScOO9Czg7afBgSd9QBkMtw.png" width="1536"></a></p><p class="medium-feed-snippet">In today&#x2019;s fragmented product landscape, users interact with your system through multiple touchpoints&#x200A;&#x2014;&#x200A;mobile apps, web platforms&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@erdi.koc/designing-end-to-end-systems-for-mobile-and-web-a-cross-platform-architecture-guide-for-ctos-and-7acaa70dab48?source=rss-8438763dca56------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@erdi.koc/designing-end-to-end-systems-for-mobile-and-web-a-cross-platform-architecture-guide-for-ctos-and-7acaa70dab48?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/7acaa70dab48</guid>
            <category><![CDATA[cross-platform]]></category>
            <category><![CDATA[native-app-development]]></category>
            <category><![CDATA[mobile]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[end-to-end]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 08:21:27 GMT</pubDate>
            <atom:updated>2025-04-21T08:21:27.495Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[For Beginners : Building a Simple MVI Project with Jetpack Compose in Kotlin]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@erdi.koc/for-beginners-building-a-simple-mvi-project-with-jetpack-compose-in-kotlin-745af1be0c97?source=rss-8438763dca56------2"><img src="https://cdn-images-1.medium.com/max/1024/1*FD7cSh0Y6cV-_Dh2SD9XPQ.jpeg" width="1024"></a></p><p class="medium-feed-snippet">Introduction</p><p class="medium-feed-link"><a href="https://medium.com/@erdi.koc/for-beginners-building-a-simple-mvi-project-with-jetpack-compose-in-kotlin-745af1be0c97?source=rss-8438763dca56------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@erdi.koc/for-beginners-building-a-simple-mvi-project-with-jetpack-compose-in-kotlin-745af1be0c97?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/745af1be0c97</guid>
            <category><![CDATA[jetpack-compose]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[beginner-coding]]></category>
            <category><![CDATA[mvi-architecture]]></category>
            <category><![CDATA[kotlin]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Wed, 05 Mar 2025 06:27:32 GMT</pubDate>
            <atom:updated>2025-03-05T06:27:32.426Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Choosing Between MVP, MVVM, and MVI in 2025: A Perspective on Android, iOS, and Flutter]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@erdi.koc/choosing-between-mvp-mvvm-and-mvi-in-2025-a-perspective-on-android-ios-and-flutter-62c901e822e6?source=rss-8438763dca56------2"><img src="https://cdn-images-1.medium.com/max/1024/1*vVHnxAzAJguYI9v86CDFUA.jpeg" width="1024"></a></p><p class="medium-feed-snippet">Selecting the right architecture for mobile application development is crucial for both code maintainability and team productivity. As of&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@erdi.koc/choosing-between-mvp-mvvm-and-mvi-in-2025-a-perspective-on-android-ios-and-flutter-62c901e822e6?source=rss-8438763dca56------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@erdi.koc/choosing-between-mvp-mvvm-and-mvi-in-2025-a-perspective-on-android-ios-and-flutter-62c901e822e6?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/62c901e822e6</guid>
            <category><![CDATA[mvi-architecture]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[mvvm-architecture]]></category>
            <category><![CDATA[ios]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Tue, 04 Mar 2025 14:51:48 GMT</pubDate>
            <atom:updated>2025-03-04T14:54:30.892Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Implementing 3D Touch Shortcuts in Flutter for iOS and Android]]></title>
            <link>https://medium.com/@erdi.koc/implementing-3d-touch-shortcuts-in-flutter-for-ios-and-android-8a113a9195e5?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a113a9195e5</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[3d-touch-apple]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 09:21:48 GMT</pubDate>
            <atom:updated>2025-01-08T09:21:48.749Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Uz_tj66t8o7P5lKyTkY3fQ.png" /></figure><p>As of 2025, the Flutter SDK has improved support for deep press (force touch/3D Touch) on mobile devices and application shortcuts. In this article, we’ll learn how to implement iPhone-like <strong>App Shortcuts</strong> in Flutter and build an application example.</p><h4>What is 3D Touch (Shortcuts)?</h4><p>3D Touch in Flutter allows you to trigger specific actions within your application by long-pressing or deeply pressing the app icon.</p><p>Thanks to Flutter’s integration with native platforms, this feature can be easily implemented on iOS devices using the <strong>quick_actions</strong> package.</p><h3>Requirements</h3><ul><li><strong>Flutter SDK:</strong> Version 3.13.0 or later (2025 latest release)</li><li><strong>quick_actions</strong> package (v1.1.0)</li></ul><h3>Step 1: Adding the quick_actions Package</h3><p>Add the following dependencies to your pubspec.yaml file:</p><pre>dependencies:<br>  quick_actions: ^1.1.0</pre><p>Run the following command in the terminal to install the packages:</p><pre>flutter pub get</pre><h3>Step 2: Adding Icons for Android</h3><h4>1. Prepare Icons</h4><ul><li>Add your icon files (e.g., search.png, profile.png, settings.png) to android/app/src/main/res/drawable/.</li><li>Ensure file names are lowercase and avoid special characters (e.g., search.png).</li></ul><h4>2. Define Icons in MainActivity.java or MainActivity.kt</h4><ul><li>Android uses the drawable resource name directly in the QuickActions setup.</li></ul><p>Example:</p><pre>quickActions.setShortcutItems([<br>  const ShortcutItem(<br>    type: &#39;action_search&#39;,<br>    localizedTitle: &#39;Search&#39;,<br>    icon: &#39;search&#39;, // Android drawable resource<br>  ),<br>  const ShortcutItem(<br>    type: &#39;action_profile&#39;,<br>    localizedTitle: &#39;Profile&#39;,<br>    icon: &#39;profile&#39;,<br>  ),<br>  const ShortcutItem(<br>    type: &#39;action_settings&#39;,<br>    localizedTitle: &#39;Settings&#39;,<br>    icon: &#39;settings&#39;,<br>  ),<br>]);</pre><h3>Step 3: Adding Icons for iOS</h3><h4>1. Prepare Icons</h4><ul><li>PNG formatında ikonlar kullanın (örneğin, search.png, profile.png, settings.png).</li></ul><h4>2. İkonları Xcode’a Ekleyin</h4><ul><li>Xcode’u açın ve projenizde şu dizine gidin:</li></ul><pre>ios/Runner/Assets.xcassets/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHCtncSQpNCivEKjAHlTLA.png" /></figure><ul><li>Buraya yeni bir <strong>Image Set</strong> ekleyin:</li><li>Sağ tıklayın → <strong>New Image Set</strong>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vq5Hk2Q94qWMOcd28INuYg.png" /></figure><ul><li>Her bir ikon için bir set oluşturun (örneğin, search, profile, settings).</li><li>İlgili PNG dosyalarını sürükleyip bırakın.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ns8LIdKf8nvwN3suCX0-NQ.png" /></figure><h4>3. Define Icons in Code</h4><ul><li>iOS uses the asset catalog name directly in the QuickActions setup.</li></ul><p>Example:</p><pre>quickActions.setShortcutItems([<br>  const ShortcutItem(<br>    type: &#39;action_search&#39;,<br>    localizedTitle: &#39;Search&#39;,<br>    icon: &#39;search&#39;, // iOS asset catalog resource<br>  ),<br>  const ShortcutItem(<br>    type: &#39;action_profile&#39;,<br>    localizedTitle: &#39;Profile&#39;,<br>    icon: &#39;profile&#39;,<br>  ),<br>  const ShortcutItem(<br>    type: &#39;action_settings&#39;,<br>    localizedTitle: &#39;Settings&#39;,<br>    icon: &#39;settings&#39;,<br>  ),<br>]);</pre><h3>Step 4: Full Code Example (WoW)</h3><p>Here is the full code for integrating quick_actions with icons for Android, iOS.</p><pre>import &#39;package:flutter/material.dart&#39;;<br>import &#39;package:quick_actions/quick_actions.dart&#39;;</pre><pre>void main() {<br>  runApp(const MyApp());<br>}</pre><pre>class MyApp extends StatelessWidget {<br>  const MyApp({Key? key}) : super(key: key);</pre><pre>  @override<br>  Widget build(BuildContext context) {<br>    return MaterialApp(<br>      debugShowCheckedModeBanner: false,<br>      title: &#39;Flutter 3D Touch Demo&#39;,<br>      theme: ThemeData(primarySwatch: Colors.blue),<br>      home: const ShortcutDemo(),<br>    );<br>  }<br>}</pre><pre>class ShortcutDemo extends StatefulWidget {<br>  const ShortcutDemo({Key? key}) : super(key: key);</pre><pre>  @override<br>  State&lt;ShortcutDemo&gt; createState() =&gt; _ShortcutDemoState();<br>}</pre><pre>class _ShortcutDemoState extends State&lt;ShortcutDemo&gt; {<br>  String _message = &#39;No action performed yet&#39;;</pre><pre>  @override<br>  void initState() {<br>    super.initState();</pre><pre>    final QuickActions quickActions = QuickActions();</pre><pre>    quickActions.initialize((String shortcutType) {<br>      setState(() {<br>        switch (shortcutType) {<br>          case &#39;action_search&#39;:<br>            _message = &#39;Search action triggered&#39;;<br>            break;<br>          case &#39;action_profile&#39;:<br>            _message = &#39;Profile action triggered&#39;;<br>            break;<br>          case &#39;action_settings&#39;:<br>            _message = &#39;Settings action triggered&#39;;<br>            break;<br>          default:<br>            _message = &#39;No action triggered&#39;;<br>        }<br>      });<br>    });</pre><pre>    quickActions.setShortcutItems([<br>      const ShortcutItem(<br>        type: &#39;action_search&#39;,<br>        localizedTitle: &#39;Search&#39;,<br>        icon: &#39;search&#39;,<br>      ),<br>      const ShortcutItem(<br>        type: &#39;action_profile&#39;,<br>        localizedTitle: &#39;Profile&#39;,<br>        icon: &#39;profile&#39;,<br>      ),<br>      const ShortcutItem(<br>        type: &#39;action_settings&#39;,<br>        localizedTitle: &#39;Settings&#39;,<br>        icon: &#39;settings&#39;,<br>      ),<br>    ]);<br>  }</pre><pre>  @override<br>  Widget build(BuildContext context) {<br>    return Scaffold(<br>      appBar: AppBar(<br>        title: const Text(&#39;Flutter 3D Touch Demo&#39;),<br>      ),<br>      body: Center(<br>        child: Text(<br>          _message,<br>          style: const TextStyle(fontSize: 24),<br>          textAlign: TextAlign.center,<br>        ),<br>      ),<br>    );<br>  }<br>}</pre><p>Result :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*h0ZL9gtGnCrgM7YmeMrgew.png" /></figure><h3>Closing Remarks</h3><p>Thank you for reading this guide on implementing 3D Touch (Shortcuts) in Flutter. I hope this detailed walkthrough has helped you understand how to configure and use shortcuts across both Android and iOS platforms. If you have any feedback or questions, feel free to reach out or leave a comment. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a113a9195e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Guide to Careers in Mobile App Development in Turkey]]></title>
            <link>https://medium.com/@erdi.koc/a-guide-to-careers-in-mobile-app-development-in-turkey-a2fad3041d96?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2fad3041d96</guid>
            <category><![CDATA[turkey]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 12:02:17 GMT</pubDate>
            <atom:updated>2024-01-09T12:02:17.913Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9O4yKHJL3-UMmgIlieQlGw.png" /></figure><p>Hello everyone, I haven’t been able to write for a while due to changes in my professional life, so I decided to take some time to prepare for writing. I’ve been working in Turkey as a mobile developer since 2014–15, and in the coming months, I’ll be completing 10 years in the field. Therefore, I wanted to write an article where I can share my own experiences and explore the career path of a mobile developer in Turkey. I aim to discuss topics such as networking, software technologies, relationship with managers, and establishing one’s character. In summary, I plan to create an article that delves into various aspects of a mobile developer’s career journey in Turkey.</p><p>Before delving into mobile app development, it’s essential to grasp that proficiency in English is a must. Bug fixes, new developments, and resource searches often lead to English content in official and unofficial sources. You need to not only understand technical English but also be capable of extracting knowledge from it. While you can name variables and objects in your native language, it’s crucial to note that libraries and frameworks primarily use English. Writing clean, readable code in English is pivotal, considering that code can transcend local boundaries and reach a global audience.</p><p>The dominance of mobile applications in Turkey is primarily driven by banks. Banking mobile apps are continually evolving, fueling the fintech sector. Offering services like credit provision and financing, these apps attract users with options like obtaining loans without visiting physical branches. Banks, with their abundant resources and workforce, have taken the lead in this industry, especially in the past 2–3 years.</p><p>However, the established systems of banks and the focus on maintaining existing applications, along with only adding or removing new features, eventually begin to dissatisfy developers. As a result, developers start seeking opportunities in startups where they can create innovative solutions from scratch and stay up-to-date with the latest technologies. The dominance of developers in banks is starting to decline as they become less open to innovation.</p><p>Being open to innovation in all aspects is crucial. Let me illustrate this with a case: An Android developer who has been working with XML layouts for a long time may resist adopting Jetpack Compose. The reason behind this resistance might not be a closed mindset towards new technologies but rather a fear of investing time in learning something new while thinking that existing knowledge will become obsolete.</p><p>However, there’s no need to think this way. Adapting to new technologies and integrating what you already know into them is essential. Integration is one of the most important concepts in mobile software development.Integration goes beyond simply incorporating 3rd-party libraries into your application. It also involves adapting code found online to fit your project and integrating external classes into your codebase. Having a strong understanding of integration allows you to expand your knowledge and skills. The more integrations you work on, the more you learn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBvriAHFS01UkLcFcwwjVA.png" /><figcaption>Integration</figcaption></figure><p>In the field of mobile development, I believe it’s more sensible to initially focus your career in one specific area. What I mean to say is that specializing in just Android, just iOS, or solely hybrid development can enhance your professionalism and proficiency in a particular language, which will undoubtedly strengthen your capabilities. This isn’t to say that you should only learn and stick to one language; that’s not the point. Especially if you have graduated in engineering or programming, saying ‘I don’t know this language’ isn’t an option — you will need to learn it!</p><p>Let’s start with Android, for instance. Particularly in recent times, there have been numerous innovations on the Android side, such as advancements in Artificial Intelligence (AI), the proliferation and development of declarative languages, and more. Additionally, Android’s open-source nature, along with the capability to write code simultaneously for giants like Huawei and Google, shows that there are many areas where you can make an impact. This aspect of Android development is particularly compelling. Shifting to the Android platform in Turkey is often easier than starting with iOS. This is primarily because the education received in universities is usually focused on Java, and the close relationship between Java and Kotlin can be very advantageous here. Of course, some universities have recently started offering courses in mobile software, and while there is development in those areas, finding an iOS developer in today’s Turkey appears to be much more challenging than finding an Android developer.</p><p>Looking from the iOS perspective, I’ve noticed a significant inclination of the new generation towards this platform. This is partly because iOS developers tend to earn more than Android developers, a fact that certainly influences the sector. However, if your primary goal in your first job experience is to earn money without being a financial burden to your family, I believe no employer would turn you down. The priority should be to create your own economy; as you develop your skills, you naturally start earning more.Of course, in iOS, the development of declarative languages continues with SwiftUI, increasingly being used and developed over UIKit. This shift has created a sense of apprehension among existing developers, similar to how Android developers react to Jetpack Compose. But as I always say, it’s essential to embrace the future. Otherwise, you cannot move forward from where you are today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lK849zC98VAE42PKX6fs_A.png" /><figcaption>ios and android developers</figcaption></figure><p>In Turkey, there is a significant number of clients who prefer to release their applications on all platforms simultaneously, rather than focusing on just Android or iOS. This is where hybrid applications come into play. Hybrid apps are attractive in terms of cost and deployment efficiency. Unlike iOS, Android, or Huawei-specific developments, hybrid apps allow for a single change that can impact all clients at once. This creates a software environment that is highly efficient and versatile. Naturally, this becomes a considerable factor influencing entrepreneurs and companies.</p><p>Alongside everything I’ve mentioned, once you join a company, never consider yourself merely as an asset or property of that company. They hire you because you have the potential to contribute significantly and help grow the business. No matter your position, never underestimate or belittle yourself. Always respond based on your knowledge and experience. If something is wrong, make sure to speak up. And most importantly, if there is a lack of MERITOCRACY in the workplace, it’s crucial to swiftly distance yourself from such an environment.</p><p>I can say this about the industry as well ; When I first entered school, our rector had a saying: ‘Change your job every three years, and your industry every five years.’ This can be applied to your current job as well. You have the option to change your position or shift to different areas within your own company. It’s essential to always be open to self-improvement and new knowledge. Believing that something or a concept is perpetually the best only reflects a mindset closed off to new things</p><p>Lastly, and this might be a bit unsettling to your ego, but remember that no one, absolutely no one, is indispensable. Never forget that.</p><p>See you in new articles…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2fad3041d96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Retrofit And OkHttp]]></title>
            <link>https://medium.com/@erdi.koc/retrofit-and-okhttp-675d34eb7458?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/675d34eb7458</guid>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[retrofit]]></category>
            <category><![CDATA[okhttpclient]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[okhttp]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Thu, 03 Aug 2023 07:51:15 GMT</pubDate>
            <atom:updated>2023-08-03T07:51:15.555Z</atom:updated>
            <content:encoded><![CDATA[<ul><li><strong><em>OkHttp</em></strong></li></ul><p>In Android, an OkHttp request refers to an HTTP request made using the OkHttp library. OkHttp is an open-source HTTP client developed by Square and is widely used for handling network operations in Android apps.</p><p>To make an HTTP request using OkHttp in Android, you typically follow these steps:</p><ol><li>Add OkHttp to your project: To use OkHttp, you need to include the OkHttp library in your Android project. You can add it as a dependency in your app’s build.gradle file.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0df9gG-StURefvP0IOGRMg.png" /></figure><p>2.Create an OkHttpClient: First, you need to create an instance of OkHttpClient, which manages the connection pool and other configuration settings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NF3VffUi16oekyZkwhLx3g.png" /></figure><p>3.Create an HTTP request: Next, you create an HTTP request using the Request class. You can specify the URL, HTTP method (GET, POST, etc.), headers, and request body if needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lq3o4yKtV1hvQAM_n-ocMA.png" /></figure><p>4.Execute the request asynchronously: To execute the request asynchronously, you can use the enqueue() method on the OkHttpClient. This method takes a Callback as a parameter, which will be called when the request completes or encounters an error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VJoE_dPEbn59_oPuvcskrw.png" /></figure><p>5.Execute the request synchronously (optional): If you prefer to execute the request synchronously (blocking the current thread), you can use the execute() method on the OkHttpClient. However, it&#39;s generally recommended to use asynchronous calls to avoid blocking the UI thread.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vjamA2n1710OopI3ZLuAaw.png" /></figure><p>It’s important to note that network operations, including HTTP requests, should be performed on a background thread in Android, not on the main/UI thread. For asynchronous requests, OkHttp handles this internally by using background threads, and for synchronous requests, you should manually handle threading to avoid blocking the UI.</p><ul><li><strong><em>Retrofit</em></strong></li></ul><p>Retrofit is a type-safe HTTP client library for Android and Java developed by Square. It simplifies the process of making network requests and interacting with RESTful APIs in your Android applications. Retrofit is built on top of OkHttp, another popular networking library by Square, and provides a higher-level abstraction to define API endpoints and handle responses in a type-safe manner.</p><p>Key features of Retrofit include:</p><ol><li>Declarative API: Retrofit allows you to define your API endpoints as simple Java/Kotlin interfaces with annotations. You can specify the HTTP method, URL, query parameters, headers, and request body directly in the interface methods.</li><li>Type-Safe Requests and Responses: When defining your API interface, you can specify the expected response type, such as a model class representing the JSON response. Retrofit will automatically handle the JSON serialization and deserialization for you, providing you with type-safe response objects.</li><li>Integration with OkHttp: Retrofit uses OkHttp as its default HTTP client, which provides features like connection pooling, transparent GZIP, and asynchronous request execution.</li><li>Converter Support: Retrofit supports various converters, allowing you to serialize and deserialize data in different formats, such as JSON, XML, and others.</li><li>Easy Error Handling: Retrofit allows you to handle different types of errors gracefully, making it easier to deal with different server responses or network issues.</li><li>RxJava Integration: Retrofit provides built-in support for RxJava, enabling you to use the power of reactive programming when dealing with network calls.</li></ol><p>Using Retrofit in Android typically involves the following steps:</p><p><strong>Add Retrofit to your project:</strong> To use Retrofit, you need to include the Retrofit library in your Android project. You can add it as a dependency in your app’s build.gradle file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dY1-Y7gVCOPJTxfRxLrqpg.png" /></figure><p><strong>Create a Retrofit instance:</strong> You need to create an instance of Retrofit using the Retrofit.Builder class and configure it with the base URL of your API.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*6PJkKcnYaj3uixFP1M8P8w.png" /></figure><p><strong>Define your API interface:</strong> Create a Java/Kotlin interface that represents your API endpoints. Use annotations like @GET, @POST, @Query, @Body, etc., to specify the HTTP methods and parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N903Mfgm1Fk91yT5t3hawQ.png" /></figure><p><strong>Create an instance of the API interface:</strong> Obtain an instance of the API interface using the Retrofit instance created earlier.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*w5ri_81sqQej3xngZkPh8Q.png" /></figure><p><strong>Make network requests:</strong> Now, you can make network requests using the methods defined in your API interface. Retrofit will handle the request execution, response parsing, and error handling for you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9gEVPhLixFAwhkCUyMrU5Q.png" /></figure><p>Retrofit’s simplicity, type-safe nature, and seamless integration with OkHttp make it a popular choice among Android developers for handling network requests and consuming RESTful APIs.</p><ul><li><strong><em>Differences between OkHttp and Retrofit</em></strong></li></ul><p>OkHttp and Retrofit are both popular libraries used in Android development to handle network requests, but they serve different purposes and have distinct functionalities. Here’s an overview of the differences between the two:</p><ol><li>OkHttp: OkHttp is an open-source HTTP client for Android, Java, and Kotlin. It is developed by Square and is designed to make network connections and handle HTTP requests and responses. Some key features of OkHttp include:</li></ol><ul><li>HTTP Client: OkHttp is primarily an HTTP client library that allows you to send HTTP requests and receive responses asynchronously.</li><li>Low-level API: OkHttp provides a lower-level API for working directly with requests, responses, and connection pooling.</li><li>Network Interceptors: OkHttp allows you to add network interceptors, which can modify outgoing requests or incoming responses at a low level.</li><li>Connection Pooling: OkHttp automatically manages connection pooling, which can significantly improve the performance of multiple requests to the same host.</li><li>Transparent GZIP: OkHttp can automatically handle GZIP-compressed responses.</li><li>Async Request Execution: OkHttp supports asynchronous request execution, making it efficient for network calls on the main thread.</li></ul><p>2 . Retrofit: Retrofit, also developed by Square, is a type-safe HTTP client for Android and Java. It’s built on top of OkHttp and provides a higher-level abstraction to define API interfaces and make network requests. Key features of Retrofit include:</p><ul><li>Declarative API: Retrofit allows you to define your API endpoints as simple Java/Kotlin interfaces with annotations, making it easy to describe the structure of your REST API.</li><li>Type-Safe Requests and Responses: With Retrofit, you can define the expected response model, and it will automatically deserialize the JSON response into Java/Kotlin objects.</li><li>Easy Integration with OkHttp: Retrofit uses OkHttp under the hood, so it inherits all the benefits of OkHttp, like connection pooling, async request execution, etc.</li><li>Converter Support: Retrofit supports various converters for serialization and deserialization, allowing you to use different formats (e.g., JSON, XML) for your data.</li><li>RxJava Integration: Retrofit provides built-in support for RxJava, allowing you to use RxJava’s powerful reactive programming capabilities.</li></ul><p>In summary, OkHttp is a lower-level HTTP client that focuses on handling network connections and providing core HTTP functionalities, while Retrofit builds on top of OkHttp to offer a more user-friendly and high-level API for making RESTful API calls with type-safe responses. Many developers prefer to use Retrofit for its simplicity and ease of integration, especially when dealing with RESTful APIs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=675d34eb7458" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android Build Types and Product Flavors]]></title>
            <link>https://medium.com/@erdi.koc/android-build-types-and-product-flavors-2a74f95d2576?source=rss-8438763dca56------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a74f95d2576</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[build-type]]></category>
            <category><![CDATA[productflavor]]></category>
            <category><![CDATA[debug]]></category>
            <category><![CDATA[buildconfig]]></category>
            <dc:creator><![CDATA[Erdi Koc]]></dc:creator>
            <pubDate>Mon, 16 Jan 2023 09:24:00 GMT</pubDate>
            <atom:updated>2023-01-16T09:24:00.639Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will discuss the details and differences of using Build Types and Product Flavors in Android. Both structures provide many conveniences when creating Android applications. We can benefit from many points, from the icons of the applications to the production versions, and from special configurations for development mode to creating different variants of the application.</p><h4>Android Build Types</h4><p>Build Types help us customize certain features used by Gradle when developing, building, and preparing signed versions of applications. They also make it easier for us to manage certain configurations that we will use. By default, two Build Types are defined in newly created Android projects: one is the debug mode, and the other is the release mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lEKfP-SZ7VuMy0MvkNRWrA.png" /></figure><p>We can add a new type. Based on the types, we can add different version extensions or completely custom variables. During development, you can easily switch between these different types using the Build Variants tab located at the bottom left of Android Studio as a shortcut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*cfgbWAOVUzTHcYX5GS4B0g.png" /></figure><p>In the code example below, the MODE variable will be updated based on the selected type in the automatically created BuildConfig.java class after the code is compiled for the first time. You can easily access these static variables within code blocks. You can also apply your environment changes here. Thanks to this flexibility, you can set up a more secure and flexible development environment using special configurations for the development mode.</p><pre>buildTypes {<br>    debug {<br>        signingConfig signingConfigs.debug<br>        shrinkResources false<br>        minifyEnabled = false<br>        debuggable true<br>        resValue &quot;string&quot;, &quot;google_maps_key&quot;, (project.findProperty(&quot;GOOGLE_MAPS_API_KEY_DEBUG&quot;) ?: &quot;&quot;)<br>        buildConfigField &quot;MODE&quot;, &quot;DEBUG&quot;<br>        ext.betaDistributionReleaseNotesFilePath = &quot;release_notes.txt&quot;<br>        ext.betaDistributionEmailsFilePath = &quot;testers.txt&quot;<br>        ndk {<br>            abiFilters &quot;x86&quot;, &quot;armeabi-v7a&quot;, &quot;arm64-v8a&quot;<br>        }<br>    }<br><br>    release {<br>        signingConfig signingConfigs.release<br>        shrinkResources true<br>        minifyEnabled true<br>        debuggable false<br>        proguardFiles getDefaultProguardFile(&#39;proguard-android.txt&#39;), &#39;proguard-rules.pro&#39;<br>        resValue &quot;string&quot;, &quot;google_maps_key&quot;, (project.findProperty(&quot;GOOGLE_MAPS_API_KEY&quot;) ?: &quot;&quot;)<br>        buildConfigField &quot;MODE&quot;, &quot;PROD&quot;<br>        ext.betaDistributionReleaseNotesFilePath = &quot;release_notes.txt&quot;<br>        ext.betaDistributionEmailsFilePath = &quot;testers.txt&quot;<br><br>        ndk {<br>            abiFilters &quot;armeabi-v7a&quot;, &quot;arm64-v8a&quot;<br>        }<br>    }<br><br>    pilot {<br>        debuggable = true<br>        signingConfig signingConfigs.debug<br>        debuggable true<br>        resValue &quot;string&quot;, &quot;google_maps_key&quot;, (project.findProperty(&quot;GOOGLE_MAPS_API_KEY&quot;) ?: &quot;&quot;)<br>        ext.betaDistributionReleaseNotesFilePath = &quot;release_notes.txt&quot;<br>        ext.betaDistributionEmailsFilePath = &quot;testers.txt&quot;<br>        buildConfigField &quot;MODE&quot;, &quot;PILOT&quot;<br><br>        ndk {<br>            abiFilters &quot;x86&quot;, &quot;armeabi-v7a&quot;, &quot;arm64-v8a&quot;<br>        }<br>    }<br>}</pre><h4>Product Flavors</h4><p>Product Flavors is a structure similar to Build Types that provides flexibility. The main difference is that it allows us to generate different versions of the application from a shared codebase.</p><p>Android Product Flavors are used to create different versions of an app. These versions can have different features, such as being free or paid, having different themes and texts, or using different environments or APIs. For example, you want to create both a paid and a free version of the same app, with only minor differences between the two. Instead of using a separate codebase for each app, you can use the Product Flavors structure to create multiple versions using a shared codebase. With Product Flavors, you can easily manage many features of the app, from the name to the icon, version information to the API environment to be used.</p><pre>flavorDimensions &quot;env&quot;, &quot;api&quot;<br>productFlavors {<br>    prod {<br>        dimension &quot;env&quot;<br>        resValue &quot;string&quot;, &quot;app_name&quot;, &#39;&quot;Production&quot;&#39;<br>        manifestPlaceholders = [<br>            appIcon: &quot;@mipmap/ic_launcher&quot;,<br>            appIconRound: &quot;@mipmap/ic_launcher_round&quot;<br>        ]<br>        <br>        applicationIdSuffix &quot;.release&quot;<br><br>        buildConfigField &quot;String&quot;, &quot;FLAVOR_TYPE&quot;, &#39;&quot;PRODUCTION&quot;&#39;<br>        buildConfigField &quot;String&quot;, &quot;DATABASE&quot;, &#39;&quot;PRODUCTION_DB&quot;&#39;<br>    }<br><br>    test {<br>        dimension &quot;env&quot;<br>        resValue &quot;string&quot;, &quot;app_name&quot;, &#39;&quot;Test&quot;&#39;<br>        manifestPlaceholders = [<br>            appIcon: &quot;@mipmap/ic_launcher_test&quot;,<br>            appIconRound: &quot;@mipmap/ic_launcher_test_round&quot;<br>        ]<br>        <br>        applicationIdSuffix &quot;.test&quot;<br><br>        buildConfigField &quot;String&quot;, &quot;FLAVOR_TYPE&quot;, &#39;&quot;test&quot;&#39;<br>        buildConfigField &quot;String&quot;, &quot;DATABASE&quot;, &#39;&quot;TEST_DB&quot;&#39;<br>    }<br><br>    minApi28 {<br>        dimension &quot;api&quot;<br>        minSdkVersion 23<br>        versionCode 10000 + defaultConfig.versionCode<br>        versionNameSuffix &quot;-minApi28&quot;<br>    }<br><br>    minApi24 {<br>        dimension &quot;api&quot;<br>        minSdkVersion 21<br>        versionCode 10000 + defaultConfig.versionCode<br>        versionNameSuffix &quot;-minApi24&quot;<br>    }<br>}</pre><p>I have a few points that I’d like to explain about the code block I shared above. Firstly, I have defined two dimensions with Flavor Dimensions: one is “env” and the other is “api”. With this feature, we can group based on these dimensions and use their combinations. That is, when we first compile the build.gradle by adding the code block above, the result of the combination between the “env” and “api” groups will appear in the Build Variants tab. You can see the output of this in the image below. For example, we get a new variant version by combining the test variant with the Minimum Api 24 variant. This way, we can make separate arrangements for APIs 24 and 28 with the same codebase, and distribute and manage them separately. We can make the names of the applications different from each other with “res_value” parameter. With “manifest placeholders” parameter, we can also use the application icons in different ways. Changing the app name with manifest placeholders is also possible.</p><p>Product Flavors structure also allows you to define custom variables in the same way as the Build Types structure. Similarly, you can access these static variables through the BuildConfig.java class</p><p>Thank you for reading. I look forward to hearing from you in future writings.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a74f95d2576" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>