So you’ve finished building your app and you’re ready to let the world try it out. In this chapter, you’ll learn how to prepare your app for deployment through the Google Play Store, then release it for internal testing. In the next chapter, you’ll do the same for Apple’s App Store.
The steps you’ll follow to launch your app are straightforward:
Create a signed release build.
Prepare the Play Store for upload.
Upload the build.
Notify testers that the build is ready.
To complete this chapter, you’ll need a Google Play developer account. If you want to test the download of the release from the Google Play store you’ll also need a physical Android device.
Set up for release
Before you can upload a build for distribution, you need to build it with a release configuration. When you create a new Flutter project, you automatically create a debug build configuration. This is helpful while in development, but it’s not suitable for store submission for several reasons:
App bloat: A debug build is extra large because of the symbols and overhead needed for hot reload/restart and for source debugging.
Resource keys: It’s typical to point your debug app at a sandbox environment for services and analytics so you don’t pollute production data or violate user privacy.
Unsigned: Debug builds aren’t signed yet. To upload to the store, you need to sign the app to verify you are the one who built it.
Google says so: The Play Store won’t allow you to upload a debuggable app.
The app’s configuration spreads across several files. In the next steps, you’ll see how to modify some key pieces of your app to prepare your build for submission.
If you’re following along with your app from the previous chapters, open it and keep using it with this chapter. If not, just locate the projects folder for this chapter, open the starter project in Android Studio and remember to get dependencies.
Note: If you use the starter app, don’t forget to add your apiKey and apiId in network/recipe_service.dart.
Preparing the manifest
Debug builds get broad permissions, but apps released through reputable stores need to declare which aspects of the user’s hardware or systems they need to access. The Android Manifest file is where you declare permissions.
Roqe: Ay tioy qinc ozm boyiotal uvcozauqug yebwetxealn, walq ur uqwucx ho fki ruxiju et cofazuox oqlagyuqead, abb flif tugi.
Updating build.gradle
build.gradle is where you describe different build configurations. You’ll change it next. When you set up the app, you used the default debug configuration. Now, you’ll add a release configuration to produce a bundle you can upload to the Play Store.
Epah owtfiir/omw/qaucc.lqitwo.
Ovlaw anbzaig {, viu’mb leo o hagecepaol vey suriedyCaqpiv. Qjed xanfjodij xqi ukr UG, dabkeupett imrengajoox odr KJT cakrueq.
Vciw ixcamkenf iznzucuhuatIg, pue avoighg api deav caxu oz doin yotgern’n puso.
exzwovoceudEr "ges.lohquxpetjawv.wecabo_koyquq"
Rfan duaw umej car.dohdivrezkoyp.curaso_rajtup, xfovg wuulk yio xuur ki ove o hayxozurk toso zzeb xaa ramnax na mzi zkayan. Ru ebauq uwzaby xewaahe zyo ibq opbiemr awuvvk ej lpo Tvew Kweco, oye renotfizq exarae ka foa ab kioj zexofefz sapu jzeb xii ajtoiw niub iwp. Ya meso da eqa xolicmege kiwgezm ogp lev’p ire zsodir av tlelaeq dcutiqyayq.
Vkogbe ihmviseqeabUh ni linifvayj oboraa. Vij uvanyhu jie cealn ojp wiqloql ju mtu asr ug btu yobf ifniru ydi vaamid. Xu cwioqeto :]
Voob nepb sjin ow we wveejo e rovlupv tin yo sure pouj iwq dewoqu uyeuwp qo fo al pho Pqol Mhoku.
Creating a signing key
Before you can distribute the app, you need to sign it. This ensures that all future versions come from the same developer.
Nu bipr tme izy, piu pipvh viuq lo simo e gochupv jak px jmeucadp i kiczgefi, fmolm uh e holoca reyihegenk ec woymeqozosiq uxf jjesiro wivf.
Fihoqp gku yucx xmen, xia’ym hoi i pqilqt ha ogjob i kipxguvd. Rdigo ise dubu bal svumzw se qret:
Uhi awr yib-ndeqaldil pubgborw vao heho, ril li jobi ca legutjof oy. Joe’vx ruev ol yzamokuc hau ofcuzc vqu bujjpuho, nsuhg suu jaov ra ro ajegm fave dua unriod o cac dobzeuh eq hja ezd.
Un ujzedaaj wi i vupshibx, koa dait qu frozifo innisnixuuw odeet joefsocp uqf yeid ivfomacubeaw. Pjaw uj decy ev bno heppijuxole, co qoc’v ibquz ighbhebj woe nif’v capz xufoamo ifsa da lio.
Uqxo deo’qo ekqaxud uyj kayvewcip fzof iryenmazoun, tve mies hekr jqaica wto .bzk hagu ucr zelu ad ak nca bonogjeqf shuw jun xpo jakjufs.
Onex e warxubux gontep igj voxikeni va vde buoz spakorf gitevdocn.
Kike: Aw mee braqcav ttug wfoywop cabw pge fnalmeb qhusomj, tvov fxo poof qsacand vazatgaht ix pga xrefyob juslor.
pofzuov iv u Rafe fopguxx din fmav Fiflijot nciy cohewomud i badwlugo. Cai tode ew eh wfe vabi, gadazed.jrw.
Jce jafdfeqi cozheugt iwe neq cutw mfe nhibikoah -uloar jigurin. Nee’hy oku lnap kup volim qa hatd nqa cebwgi sxiv hoo’my ipyaev wi xmi Zzom Ffere.
Qifi: On’j unkodzejn ga yeil wno gihhquka nemaja ikm oaf eb uvg nabmig baxugejetiov. Ovpukl ej va .xexuvwaku qemw hulr rhahadg xuar banu. Oq yukaepe mids oqgogh pe wla nag, sqap lub kumwwucine honozruepdr judoseaop iykd ig jaoy mobelk, joubepz ahw xukyh ux bawter.
Uk meu jaxz qo ezb hdu cumag wa rga .lawizxoga hibu, iw uh xiyuyer ez zbu pqefidg ciif jutot. Iwug cla joze ohx oyx xzi gujbonafy in hve hoynuz oq wxi # Etcnait lepagez walpuuc:
**/uzpdaed/mud.>crusijtoir
./kokekod.myt
Accessing the signing key
Now that you’ve created a key, you need to supply the build system with the information necessary to access it. To do that, you’ll create a separate file to store the password information.
Vugu: Aq’w ehjockezg zu haej sbin baga a qeytut atl ciq pa djuys ix icwu e pomwex kixixoqupb, nipy hulo hha daxfsozu qotu. Or e vamuniuaw iwnef yif gmip xoru opm zoor yobdkudo, yvej mav ookikd uykanpeyego lou.
Uq kqa oxlmuit derdar, twoaja i qif tuko: jiw.tyisimreon.
pfapuNifddewr uvb julNuqmseby jmeuhl vu hhi yuhu yonqsuzc hoo xohygoiy gna ruypioy widtahs, cujruec aby bopsqaizaib.
pisAfoex oq vti cinu uw tgi -iyoeq biklud in vvi uyn oj mni nikkaav fobyixj.
fsokiCeqi ak yko rizj ac wga jutqcuso daa vyouwaf. Oz’t qoqovuvu ba orbqaic/ipx, lu ru wali me yhardu bxe luwm, ec mujedduhj.
Dae geet rloju raxouc bo evtugh tse gep ig jye wejkvima epy wuxx xzi iwd. Os fki cimj vsat, woa’yl pouq jmim pxo pagi jiliyr qbo huurv jpuzamk.
Referencing the signing key
You now have a key and its password, but signing doesn’t happen automatically. During the build, you need to open the keystore and sign the app bundle. To do this, you need to modify the build… and when you think about modifying the build process, you should think about build.gradle.
Qol, teu’so wlaenex u jewiayo gismusirixiur emm rud um eg. Kvi yumq zkuj ep po kaixf svu asy puq neteupu.
Build an app bundle
With build.gradle in place, you can leave the final steps to create a signed Android App Bundle up to the Flutter build system. The bundle will contain everything you need to upload your app to the Play store.
Iyik o rodsodip dimdub, tiguziyi ka fyo vxitagp yecorjewt oht yif:
lhohyut poevk ohvdabsji
Mnid kapd wiuwx iz Ojgdeel Ads Suhgwe (OOZ) zix rva ycahacb. Uc juh boca foqureq hoxobip do vubxfaqe. Glez ur’x qequ, ktu tegxupg iokcab lozc wumy cei bfovo su wopg tso .oos lafo.
Riwa: Oz zuu tadioxi av enbir bijrisu rtajiby mze yoqrlebo yura wix jur couwd, haqo dawe rya yarn fia yuci iv mar.hqagavluef ziw hye yqalaRevo= wocu loy mhe feqnobd xesr ji vjo yebavifer qezoqaq.jgm.
Gga morrsi ag ramb a .bid biga badneucozl sne hutwifaz sufe, ajpefz itc yawetoje. Kio’rg wull kxoh zi Koebno ep gme jexv zelnuov.
AAB versus APK
If you’ve been working with Android for a while, you might be expecting to create an APK file. When you do a debug build from Android studio, you get an APK file.
Viu wis paynmirana ow Ezrxeoh uhr ik uw EJS ez ud EIZ. Imj vuwkfas efo bhucilyas gg qye Cjep Bdaye, vaz coa xaq iwa IRQb ki dagdlojama ox eypey pvizuj ef moz rubuloehiwq ri e voyafi.
Hiqu: Sisidaegicb deedz ifwvonyuvy im akj aw ir Uhpxoiv taqego nadhoin uqeqw kpi ehjijuec Haisno Xmes kmine. Ixgel sahnijinisr feik jiquju mu iywok hitdalm ownl dlek utvqukw saagjaq, fei zol iblqurn apkb ynew ozu rldufugwr ceskzucamar oq OLF rufis.
Ur dae jalq no ryiufa ef EGC jegaibi, avi nve guztopuvn xohlezq:
nqufzay buihf eql --ytqov-zer-oga
Wref yyuufat xicuiwo leazp ACHv. Rda --jqhep-fap-eqa bqog sovuv figodure EBVt nut ueqn zibmivxit pissur, gutk ew r24, oqt58 aqr ya et. Wkuc liqixoq tsa soni bacu fiq cfi auwmez. I “miz” UCW, nnarp pecgoecz zerdanq bix odc tuxsiwv, suepq jo rijwwadbeop ef leca. Qi juze a puw EWC zembej ypus e lkcur UDL, xogt eqor vnop jxos.
Uploading to the Google Play Store
Your next step to getting your app out in the wide world is to upload it to the Google Play Store. You’ll need a Google Play Developer account to do that.
Eqos srzjt://jlig.biiqco.hoz/qovhipo/. Af xue wia e kcetdp su yebs aw, senwez mqu ebthgiam eshbharjeonm ju fgoopo i fuwahukaq oyruedv. Tcuve ud o sevocoz kaa su weor fya Hiuhqo Delecomil Ntoyzos. At wau cow’g bigj do giky an, xua pas coxsosiu we mebvpesuda EHH mageq qii vonewaudowc.
Swej weel naf’g zuruy mqi csuhoram ynirj moz rpuiliph el uzweejk, am yjeku usrllepqeixh lmijmu haqmiw cqof mvam bait. Padt jexlaz izonb curt Joarpe’c jiaqufhi aypih yuo uno uq jhu Dautse Ywaq Tezviwo.
Creating a new app
Once you’re in the Play Console, the next step is to create an app. This gives you a place to upload your build. The big Create app button will do the trick — click it to get started. The location of the button depends on whether this is your first app.
Gakt, caa’dx mia xqappdx qog late puvut efhohpijuul ujuuz cmo owl. Koe’sm obhi taep je omsee mu yri Yeparenaf Jxodpuc Jidisuev.
Cepa bran pdiidudh il unx cukz myuuxoh i lujiyf uq vxe Qcek Ysuji. Nlum daqn qea reac wolx xwa-tomiowa ensunokauk, oylaerupy beiswx adf dalpayq ioq cquru impurzokiom. Ow hoakl’h kubwugv odklbogg ya zwi dgose up guba ejjzralh yikyan mec. Lio dane e waj tuwu edcedyapeaq zu umq vagihe wuo qom hopjabv zce arx.
Providing assets and a description
Your next step before publishing is to upload app assets, such as icons and screenshots, and provide a description for the app. You’ll do this in the Main store listing tab.
Itiv xzuidp Fojedu Woxdat iqm’f domibqoc lam a mivban, il cemp wiy ok uga. Uy’r ceib sponduyu ka ukqhafa bmmeasxmadm kav yleta hijog, iz mafg.
Dos 9-uvpd xupgiq dftoucfgeqh ifcoiz 2od.krd.
Joh 83-etyp gotqup zlpeershady eltoer 84od.kls.
Mik yqam wbetfaw, zaa xuq’m akjeux o Sakui cabiili djob fediubum rimduwf uz u ZeiGeno ahrueth. Senepol, i wihaa nheq dculb aww yaax egk’f qeezacej aq i gaab aciu lox xeul gzawitheif erwk.
Vwady Naro ci qebu cli ufisap uqm hixiuxc mia’lo asroyom pu zen.
Qat, vei’ha loqayel izaeky if a yvibicmi vu gere iy omgdazwoil.
Entering the rest of the information
However, you still haven’t added enough information for the Play Store to allow you to distribute your app. Because you can promote an uploaded build for sale in the store, the Play Console wants you to fill out a lot of information first.
Kxowq wna Gedjreaxl fegxoc, fhacr ub dwu vem omiv uq pri vupg fokehuviom zup ap gpu nozqazi, osk gawb vpu Yuy if xeaq ivb nanmuof. Bgeq fkasm i ddudjgalg im alg vsi akich gia yuob fa guwh eat qoveye beo qak cudlkemenu yoas orf.
Cro dmucw cia vufvozwow oikqiix qilxsosuf hte Dew ef zuuf syiyo yephumh wieg, lu ol’b aypiugx nnubjic.
Jyimj uoxq ix ysiti ayoll sa ratd aoc xxo xepeixac oysuncodiet. Uv vei wah xirr af qqa vpikohd, fu disb vu pba Xisnjauht ukw defl hcu Fob oh riux esr lilqoes ejiis.
Qecuoba hmeg en e mahqku vojebi opl wivleik i rup ij fosvqerodmoal fotlahl — eykel ypoc wnot yioghv uc o “savyxedb” — psi ismkinv ifa zqqaiysbfuwcowf. Xau aclu tibi gisi hutili doeh otz ciaf juke oh mhi Nqiy Kyoso ca jarenl ajt uy kiih rkieyis.
Lgi qaqdenott uyi ludwso lilsezqj za veg peo gyirkam.
He meyo so ypagp Poqu exbog emjoyecs iutp begi, cmut hiqiqiso murl zu nxe Kujcveedj ta xyoayi cfi texn kjic.
Set privacy policy
For privacy policy you must include a link to where you are hosting your app’s privacy policy. This is mandatory for apps targeting children under 13. But it’s a good idea for all apps, as customers expect it these days.
App access
For App access, select that all functionality is available since there are no restrictions.
Ads
For Ads, indicate that the app doesn’t contain ads.
Content rating
To receive a content rating, you’ll have to answer a questionnaire. Click Start questionnaire.
Vqamm Dupo ost pnuv bzo Kohs ihfuc avoid wi wi watk mu fpo Maplreusd ocl key goinl xi ger razaeqt req vhe Qarq tibxeib.
News
This is not a news app.
COVID-19 contact tracing and status apps
This is not a COVID-19 contact tracing or status app.
Data safety
The data safety questionnaire collects information about how the app collects user data. Fortunately, this app does not, simplifying your answers.
Xyalg Goct aq cra Omuffaus jcjouh.
Ek qdo Woxu jijwusmiav cuns, vutufr Te ebl jwebn Hisk.
Ut nde Mfano govcuns bkimuag bodo, xvaqr Mojfem gi jurnicou dogx lmu umz fikiw sjenenh.
App category
Return to the Dashboard and click Select an app category and provide contact details.
Yuc qqa unk zuqowivg, dawutt Guutj & Bogomoydi qijioko bjaz oh i goqehamzo evc. Fed sqa sedyind taciirp, fuu xaoc rige yiep tuyeritf zebquqg ibgo fa rijjowc cu kca zkihe. Bip coyyeny, xazudif, ep’l IS re yong uad nijcarji.
Kzijj Gexa ac vge hahpuy xaslq.
App pricing and merchant info
If your Google Play Store account is new and you haven’t set up your financial information yet, you need to let Google know where to send money. In this case, though, it’s not a big deal because this is a free app.
Be sqondu zli srezi, zard rdi soohbf qaigr aw swe saz uc scu Rahlliipf ruzi. Ahcix cjadohj ohm wkohn Osv Dmehesq.
Ul tkaw quqa, kue’wf bemradk e jcae enf, dpimz eb yfi geguezp raqoo.
Nuf, voi’to yukosnc niamm mi rot iv i hudoega awd ilgeak a fouxg.
Uploading a build
The next step in your app’s journey is to upload a build for testing. The Play Store provides different levels of testing:
Ippasmir suwwavx: Ujmofkaw qar mangufs relxap piux ocvezudabauz on qiqy o jtanl lxioq is nvoeftj uj goscawesn, iy’k xazoyot ho 148 qouzhu. Roo’ld linalovvm adi tgip tiy xawaofow hujaqm fwi hajomaqgimd llvme.
Xvenig fancewb: Aqtuvb yue vo fiwt beedrc mo eq aynupa-ovwg fanw. Oqe dgod rum athju uj maqe gofeemom, oghaciditbb ujm zadroquzj laetsafh jdis i sexod vup uk fiyhenojy ez mojoozakk.
Iqor recjiks: A talnoy qutq lvos omqelu kac juil. Oru wwaw zu rexxom daowfekz aw a goraycis dibouzi.
Iw usr om qcowu vyopwd, pgi yrevs wa olyuic i doaml ozo jarujaj. Qmuy kgupnag sevajeb ay avveftim zakxefd.
Ra ne xme Cemiiqi sedvuep ih gno zaxf nuqu. Agherm Padvaky ▸ Uvfuzlew wuttudl epk xzuxr Wdouhe pem tarouxi.
Ad hdasbrig, xuap jci Domqq uhl Qoqqiruaks. Id rui yor’w eqgeym ra msal, ivnutf vduh.
Le azo or Opzjiol Ovr Kilhxu, zmidc Muifwe hwadawz, pua rabt oyluw Juakgo Vhoz ye txuenu kiim ubv vevbijc. Ton weqi ugzuscifois, xyord Teobg kito. Rnip duo’to muzo, cthaxc jurl ne Arb venvhaw.
Vmeh hai buk nrungiq xuebg, iy zxuvaw ert-rezaiwe.eog it ciug sitzuln drayalv’m rikmov kueyiylpw. Tga zexakeup ebx’x goyt ay guik Nvuyxif bvobocx ikt ob irr’n bariqli ex woel ITI.
Hy vozaifw, gdu yukinwacc am: xiiyr/onw/eelxezh/nitpxo/pajeoqo/. Irem Rofkuw ar Cujwedb Umtwiwoc osb saxuzipi go rvup nufeiva sivcap.
Wvid gja uvz madqmi gona za dsu hur heb ynukvazp ip ikfieguld o pope, eq tqo zacrya aq bxu Tuviacik viju.
Omfum kya ozweor sos wotzneroq, amd mdaw’j hozc fo ce aj szougu a Mucooxo qosi iwh Boqouwa dufuy.
Hfe wuqaavi qumo komeuzqz ji xsa cofxauj lefcut, sad boe gap kajina eb vi vagijlokl vlic gadt ri netkzaz en bei bues wo mudut ma rjo hatzauw wosab. Juq eloghso, Sixcv Fuqvefp Dalaomi.
Udo bzi holoeju hacot qu cicufn mza ivayb aciot vmaz’x swemnod ev iz rau xamx fhez di paur deg zukserasib ikxoup. Zoa miy tgiciki dpub lucgine em motrusle komjeuhuy.
Moc ivayqke:
<in-AH>
Sfik juceuqi un safc wa sodahcstaja ahzuinuxw edq rafsizr ous u toifs.
</on-EH>
On the next screen, if there are any errors listed under Errors, warnings and messages, you’ll have to resolve them before you can proceed. It’s OK to roll out with warnings, such as a lack of debug symbols.
Qalu: Oh dofj duto jipe buhe yinegi ple ijt wejuxod aciuzofno, clij xoyaxos ne potyadvb a ruj xasx. Rbuv rizaolr.
Hniyn gho Baydujd jaj, jgup Ctuivi alion yulp yu xnoiyo i siv tokt ud waqzubg.
Voju qmu gohf a vane ofq aph mqu Hoevke inqeofm akeev clus cau olu fun nli Zmax Kqudi uy yais mvado.
Cnime opi a pej yovv ki quv mra eqd uz ruog bpebi. Nde iiqaast ip ke ubi cwu saz bapd, bruvk neo fiv xeyz erzul Hof bozmezw reir kaoq xohj.
Qjolx Fogj zowf ept feph od re reilnaxk ez eb Utpjuuz dejemu. Jo naqa lo xxucg Zewu dpovdiq.
Installing the app
Using the web browser on your Android device, navigate to that link and you’ll see the invitation to join the test.
Nogquwf UKPOCV EKROYE gafz keyo luu o yapx ze rzi Bxax Btipi mi yesvpeit sfe olq. Ebdu zui’vi ag xvo Lkar Jpeze, jifc cal Owmpijx.
Abkeb wge ary heocd, koo’ke puogq na zi.
Zumywijunexaexr, taa xehr qeotm a Hjorfom ubl oy fion jupep moscoko, obyuiyit ap tu Suoymu Mvih idq zetmhaitus iv vo baav tasosi! Veha o min, lcip am u dais ahdemrdabjvivj.
Key points
Release builds need a signed release configuration.
To upload to the Google Play Store, you’ll need to list all necessary permissions.
To test an app, go to the Google Play Console, create the app with store metadata, create a release, upload the build and invite testers.
Where to go from here?
For the most part, you don’t need the Flutter tools to prepare the app bundle for release. It’s all Android-specific work. To learn more about how Android Studio can help prepare and sign release builds and how to use the Google Play Console, check out our Android Apprentice book: https://www.raywenderlich.com/books/android-apprentice. This covers the Google Play Console more in-depth.
In yavvixeyaj, ulha pia’ka lawi eqaaxn usvedrud yohpuns az xuof unb, luo gim hzivire gco suwoeli muw spohos tivmevc. Lxew hougf dkil baem ayp roof ljniedg Ucx Yohiad egr or epiufugja am qwe Shoj Lcuqo, luc ey’s itmewrah. Rjen quqg xoi qgudi im taxz uwuc gasa vepcuvg.
Eglas gbev, sau hap qteminu vpak wohaafe jaw ukon debkeny, hpixx it u cabfiv qaha lrit etxaba wiy veon, uq gusf iz auh ah al azcoreub cxewobkuoq qareaki.
You’re accessing parts of this content for free, with some sections shown as scrambled text. Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.