Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Xamarin.Forms Hot Reload のススメ
amay077
August 31, 2019
Programming
0
710
Xamarin.Forms Hot Reload のススメ
amay077
August 31, 2019
Tweet
Share
More Decks by amay077
See All by amay077
愛知県新型コロナ対策サイト(非公式)の紹介
amay077
0
160
愛知県コロナ対策サイトが立ち上がってから
amay077
0
53
クロスプラットフォームモバイルアプリ開発ツール総ざらい2019 〜Titanium Mobile から Kotlin/Native まで〜 #droidkaigi
amay077
11
9.3k
ハムスター検出器を1日で作ってみた #NGK2018B
amay077
1
750
App Center から Azure Pipeline に乗り換えた話
amay077
0
1.2k
Xamarin.Forms.GoogleMaps について
amay077
0
1.1k
Xamarin.Android で始めるクロスプラットフォームモバイルアプリ開発 #jaghama
amay077
0
380
Xamarin.Android で始めるクロスプラットフォームモバイルアプリ開発 #jxug
amay077
0
710
Xamarin.Android で始めるクロスプラットフォームモバイルアプリ開発 #droidkaigi #droidkaigi1
amay077
3
3.1k
Other Decks in Programming
See All in Programming
Rによる大規模データの処理
s_uryu
2
610
PHPアプリケーションにおけるアーキテクチャメトリクスについて / Architecture Metrics in PHP Applications
isanasan
1
200
フロントエンドで 良いコードを書くために
t_keshi
3
1.6k
Writing Greener Java Applications
hollycummins
0
330
Spring BootとKubernetesで実現する今どきのDevOps入門
xblood
0
320
Ruby Pattern Matching
bkuhlmann
0
600
CDKでValidationする本当の方法 / cdk-validation
gotok365
1
150
Swift Expression Macros: a practical introduction
kishikawakatsumi
2
690
ipa-medit: Memory search and patch tool for IPA without Jailbreaking/ipa-medit-bh2022-europe
tkmru
0
120
Most Valuable Bug(?) ~インシデント未遂から得た学び~
tatsumiakahori
0
140
様々なWebアプリをAzureにデプロイする
tomokusaba
0
110
新卒2年目がデータ分析API開発に挑戦【Stapy#88】/data-science-api-begginer
matsuik
0
330
Featured
See All Featured
Music & Morning Musume
bryan
36
4.6k
Why You Should Never Use an ORM
jnunemaker
PRO
49
7.9k
Become a Pro
speakerdeck
PRO
6
3.2k
Ruby is Unlike a Banana
tanoku
93
9.5k
Web Components: a chance to create the future
zenorocha
304
40k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.1k
Adopting Sorbet at Scale
ufuk
65
7.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
254
12k
Stop Working from a Prison Cell
hatefulcrawdad
263
18k
Unsuck your backbone
ammeep
659
56k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
109
16k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
16k
Transcript
Xamarin.Forms Hot Reload ͷεεϝ 2019.8.31 JXUG @amay077
About me • Ԟࢁ ༟ਈ - @amay077ʢ͋Ί͍ʣ • Android, iOS,
Xamarin, TypeScript AWS, Azure… • ѪݝࡏॅͷϑϧϦϞʔτϫʔΧʔ • ཧใγεςϜɺҐஔใϓϩάϥϛϯά • DroidKaigi2017ొஃˠٕज़ॻయ2→ۀຊԽ(ڞஶ)
ࠓ͓ͳ͢͠Δ͜ͱ Xamarin.Forms UI։ൃπʔϧͷྺ࢙ Official ͳ Hot Reload ͕Ωλʂ Xamarin.Forms Ͱ
Hot Reload Ͱ͖Δπʔϧ͍Ζ ͍Ζ Any Platform ࣌ͷը໘։ൃ
Xamarin.Forms UI։ൃπʔϧͷྺ࢙ Xamarin | Forms | XAML | Live |
Player | Viewer | Previewer ଟ͗͢
Xamarin.Forms 1.xʙ2.x ϓϨϏϡʔΞσβΠφԿͳ͔ͬͨ… ͨͩͬͯRun&Watch
XAML Previewer | Viewer (Xamarin.Forms Previewer) ొ: 20164݄ࠒ ʙ ݱଘ
هड़ͨ͠XAMLίʔυΛVisual StudioͰϓϨϏϡʔදࣔ͢Δػೳ ݱࡏ Visual Studio ͷ XAMLΛ։͍ͨը໘ʹ౷߹ ػೳ໊ͷ༳Ε͕ώυ͍w (ࢲݟ)͙Δ͙Δ͕ফ͑ͳ͔ͬͨΓਅͬനͩͬͨΓΤϥʔ͕ग़ͨ ΓɺʹཱͬͨهԱ͕ͳ͍ ࠷ۙͰʮσβΠϯλΠϜσʔλʯʹରԠͯ͠Δͦ͏Ͱ͢
Xamarin Live Player ొ: 20175݄ࠒ ʙ 20188݄ࠒ Mac͕ͳ͘ͱiOSσόΠε։ൃதͷΞϓϦ͕సૹɾ ։ൃͰ͖Δͱ͞Ε͕࣮ͨࡍ੍͕ଟ͘… ࣮ଶC#ΠϯλϓϦλΛࡌͨ͠ΞϓϦ
AppStore͔ΒBAN͞ΕɺTestFlightͰͷެ։ఀࢭ͞Ε ࣄ্࣮ऴྃ
Xamarin Live Reload ొ: 20184݄ࠒ ʙ 201810݄ࠒ XAMLͷมߋΛΞϓϦʹసૹ͠ɺଈ࣌ʹ࣮ࡍͷΞϓϦʹద༻͢Δ ͍ΘΏΔʮHot Reloadʯػೳ
ϓϨϏϡʔ൛ͷ··ఀ͠ɺVS for Mac ʹఏڙ͢Β͞Εͣ։ ൃऴྃ (ࢲݟ)ಉ࣌ظʹLive Playerऴྃ͠WebFlutterͰओྲྀͰ͋Δ ʮϥΠϒ։ൃʯͷಓ͕ด͟͞Εͨͱͯ͠େ͍ʹࣦ
ʮLive Reload ࢮΜͩͱݴͬͨͳɺ ΞϨιͩʯ
Live Reload վΊ XAML Hot Reload for Xamarin.Forms ొ ※Live
Reload ͱͷؔ࿈֬ೝͰ͖·ͤΜ
None
XAML Hot Reload for Xamarin.Forms 2019ϦϦʔε༧ఆ(ݱࡏϓϨϏϡʔ൛) Visual Studio 2019 /
Visual Studio for Mac ํͰར༻ Մೳ Ճͷ Add-in nuget ύοέʔδෆཁ ͨͩ͠ nuget Xamarin.Forms 4.1.0.581475 Ҏ্͕ඞཁ ਖ਼ࣜϦϦʔε͞ΕΔ·ͰؾΛൈ͘ͳʂ
DEMO
HotReload for XF Ҏ֎ͷબࢶ (ͱ͍͏͔ઌۦ͚)
LiveXAML http://www.livexaml.com/ IDEʹAddinɺΞϓϦʹLiveXAML.dll ͕ඞཁ $240/∞ ݹ͍ Xamarin.Forms Ͱಈ͘(3.x Ͱ֬ೝ) UWP
ʹରԠ ෳσόΠεಉ࣮࣌ߦՄೳ
AndreiMisiukevich/HotReload https://github.com/AndreiMisiukevich/ HotReload VS for Win/Mac, Rider, VSCode ͳͲͰ͑Δ C#
ίʔυมߋͷHot ReloadՄೳ(࣮ػͰෆ Մ)
LiveSharp https://github.com/OYIon/LiveSharp LiveXAML ͱಉ͡ਓ(νʔϜ?)͕࡞ͬͯΔ C# ίʔυมߋͷHot Reload͕Մೳ
pranshu-aggarwal/HotReloading https://github.com/pranshu-aggarwal/ HotReloading C# ίʔυมߋͷHot Reload͕Մೳ Xamarin.Forms ͷ߹ 3.4.0Ҏ্͕ඞཁ
Any Platform ࣌ͷը໘։ൃ for MS Developers
UIΤσΟλϓϨϏϡʔΞͷݶք ʮ࣮ࡍʹಈ͍͍ͯΔΞϓϦʯͰͳ͍ ࣮ߦڥ։ൃڥWinͳΒ·ͩ࠶ݱੑߴ͔ͬͨ iPhoneΞϓϦͷݟͨΛWindows্Ͱ࠶ݱ͢ΔͷʹϜϦ͕ ͋Δͷ໌ന ಛʹϓϥοτϑΥʔϜґଘͷϥΠϒϥϦΛ͍ͬͯΔ߹ ඳըෆՄ ࡞ Xamarin.Forms.GoogleMaps ͦͷҰྫ
ͦ͜Ͱ Hot Reload Ͱ͢Α ʮ࣮ࡍʹಈ͍͍ͯΔΞϓϦʯͰ֬ೝͰ͖Δ ތுͳ͠ʹʮ࠶ݱ100%ʯ ݸਓతʹ XAML Previewer શ͍ͬͯ͘·ͤΜ
Previewer ΑΓ Hot Reload ʹ։ൃύϫʔͬͯ΄ ͍͠ > Visuals Studio νʔϜ͞Μ
·ͱΊ
·ͱΊ Any Platform࣌ʹ Hot Reload ͕࠷ద ৽نҊ݅ʹ Hot Reload for
XFɺ طଘҊ݅ʹ LiveXAML ͦͷଞOSSπʔϧ C# ίʔυͷ HotReload πʔϧಋೖ͢Εແఢ ʮ࣮ࡍͷΞϓϦʯͰαΫαΫ֬ೝ͠ͳ͕Βը໘Λ࡞Ζ ͏ʂ
͝ਗ਼ௌ ͋Γ͕ͱ͏͍͟͝·ͨ͠"