Share
Embed
Transcript
66 slides
-
Xcode&Server • Server&is&an&applica.on • Users&create&‘bots’ • Bots&run&the&scheme&provided&by&the&project&file&and&report&back • Build&errors •
Warnings • Sta.c&analysis&results • Test&pass&/&fail -
Xcode&Server • Server&can&report&code&coverage& • Scriptable • REST&API • Build&scripts&have&access&to&build&results,&products,&etc •
Devices&may&be&a@ached&and&used&for&tesBng. -
What%can%we%do%with%Xcode%Server • Could"be"our"only"CI"resource • Jenkins"(via"rest"API) • Provide"coverage"results"for"Fabrice • Tes>ng"and"regression"results"for"Andy •
Automa>cally"trigger"new">ckets"for"problems? • Automa>cally"trigger"builds"on"newly"merged"features -
LLVM$Changes$(Objec1ve3C) • C#free#func*ons#without#prototype#is#an#error • Warnings#about#int#(32#bits)#vs#pointer#size#(64#bits) • There#are#c@language#typedefs#(apart#from#NSInteger) • needed#to#fix#the#scan#codebase#that’s#shared#between#iOS/ Android
• Points#towards#moderniza*on#tool#for#Objec*ve@C • Added#features:#instancetype,#property#declara*ons,#NS_ENUM -
LLVM$Modules • Replacement+for+precompiled+header. • Replaces+text+replacement+with+a+seman6c+construct • Can+now+create+user+modules • Good+for+our+dependencies/pods •
Removes+the+need+to+explicitly+#import+everywhere • @import MyFramework • Lots+of+caveats+here+to+explore -
Swi$%2.0 • Under'the'hood'improvements • New'language'features • Error'handling'(do'...'try) • Guard'keyword •
Improvements'to'protocols'allow'different'programming' paradigms • Error'handling'is'arguably'first'class -
Wut -(NSArray *)gimmeItems func gimmeItems() -> [AnyObject]? -(NSArray<UIView *>*)gimmeItems func
gimmeItems() -> [UIView]? -(__nonnull NSArray<UIView *>*)gimmeItems func gimmeItems() -> [UIView] -(__nonnull NSArray<__kindOf UIView *>*)gimmeItems func gimmeItems() -> [UIView] -
Other&Swi*&improvements • Errors&are&first&class&ci.zens.& • Not&excep.ons,&but&a&func.on&can&throw&an&error.& • Errors&are&enum&types • Which&are&mapped&to&NSError •
Protocol&imporovements • Which&I&don’t&fully&understand • Allows&for&different&seman.cs&on&collec.on&func.ons -
*>* • Objec've)c*is*uglier • Swi3*is*cleaner • Interop*is*be:er • We*should*start*adop'ng*Swi3.* •
Improvements*work*on*iOS*7+ -
Contact'Framework'Implica2ons • Architecture*adheres*closely*to*proposals*for*NAB*2.0 • More*robust*Sync,*Nab*upload • Sync*can*possibly*run*without*cardDav*by*wri@ng*to*the*default* source*and*working*with*the*same*methods*used*by*addressbook* itself. •
Swaths*of*iOS*code*are*rendered*irrelevant*on*iOS9+ -
• NSUserAc)vity"(aka"handoff) • Like"a"browser"history • Index"things"the"user"has"done • CoreSpotlight • Index"of"user"content
• Database<like • Web6Markup • Used"if"content"is"mirrored"on"the"web. CoreSpotlight!is!clearly!the!right!API!for!us!to!use. -
How$should$we$use$search$apis? • Contacts)can)be)indexed)in)CoreSpotlight • Updates)could)be)NSUserAc9vi9es • Watch)handoff) • Siri)/)reminders) •
There)are)foreground)and)background)modes)we)should)explore • We)will)need)to)support)deep)linking)in)new)ways • We)should)be)sure)to)make)our)search)results)as)engaging)as)possible.)Ranking'is')ed' to'engagement • Designers)should)watch)end)of)video -
Privacy • When&asking&the&user&for&contacts&access&we&can&specify&a&‘purpose&string’&to& tell&the&user&why&(iOS&8) • All&APIs&will&have&to&support&hAps • canOpenURL&requires&the&protocol&to&be®istered&at&compile&Ime&in&the&plist. • limited&to&50
• looks&like&universal&links&are&the&answer&(uses&web&urls) • requires&web&work&(video&509) • We&should&embrace&on&disk&file&protecIon. -
Shared'Web'Creden,als • Sharing)auto)fill)passwords)between)safari)&)iOS. • Keychain)underlies)this. • Requires)an)added)en>tlement)on)the)app • Relates)to)handoff,)app)links •
Might)also)consider)iCloud)stored)creden>al -
iTunesConnect • Mac%and%iOS%are%not%longer%separate • Various%other%UX/site%org%changes • “Scheduled%Release”%<%set%date%and%=me%of%release. • Can%schedule%promo=onal%pricing •
Certain%opera=ons%can%be%done%via%XML... • Many%updates%on%the%resources%page -
Tes$light • Clearer'breakout'of'internal'and'external'testers • Can'specify'different'version'for'internal/external • Tes:light'app • Users'can'see'which'apps'aren’t'compaAble'with'their'device' •
Tes:light'has'metrics'(sessions'and'crashes) • Data'available'by'tester. • App'bundle'can'specify'encrypAon'seGng -
Miscellaneous • XCode'support'crash'repor0ng. • Storyboards'have'been'improved'with'support'for'mul0ple'files' without'hackey'custom'transi0ons • CoreData'has'be@er'support'for'async'behavior' (NSAsynchronousFetchRequest) •
CoreData'will'allow'a'uniqueness'constraint'across'a'set'of'columns • Session'226'on'opera0ons'explains'what'I’ve'been'advoca0ng'for'in' terms'of'refactoring'our'network'stack.' -
Final&recommenda-ons • Adopt'Xcode'server'for'CI.'Even'run'on'the'beta'and'file'radars • Begin'to'adopt'swi>'for'some'new'code. • Adopt'nullability'now'in'new'code,'and'where'touching'old'code • Adopt'generics'when'available'in'new'code'and'when'touching'old'code. •
Migrate'exisDng'watch'app'to'2.0,'but'maintain'funcDonality • Prepare'for'iOS'9'by'using'Contacts'framework'where'it’s'available • Need'to'use'a'clean'runDme'check. • ConDnue'discussion'about'how'we'should'use'TesOlight