Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
あるあるLT~文字列共通化~
Search
domonr
July 23, 2019
0
580
あるあるLT~文字列共通化~
AndroidとiOSの文字列共通化の話
domonr
July 23, 2019
Tweet
Share
More Decks by domonr
See All by domonr
アプリのリニューアル時にDomainModelを削除した話(設計カンファレンス extends OOC 2024.3.29)
domonr
0
650
(iOS13の)UIBarButtonItem 位置調整あるある
domonr
0
1k
あるあるLT_domonr_2019-03-19.pdf
domonr
0
1.4k
脱ぼっちレビュー_domonr
domonr
0
350
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6.3k
Bash Introduction
62gerente
611
210k
Done Done
chrislema
182
16k
VelocityConf: Rendering Performance Case Studies
addyosmani
328
24k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
40
2k
Scaling GitHub
holman
459
140k
Testing 201, or: Great Expectations
jmmastey
42
7.3k
How to Ace a Technical Interview
jacobian
276
23k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.4k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
251
21k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
8
680
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
͋Δ͋ΔLT ~จࣈྻ͋Δ͋Δ~ 2019/07/23(Ր) domonr 1
ͲΜ wॴଐˠBOEGBDUPSZ*OD w4XJGUྺˠ͙Β͍ wεϚϒϥˠϦτϧɾϚοΫ 2
ʓʓը໘Ͱදࣔ͞Ε͍ͯΔ จࣈྻόά͍ͬͯΔ͔Β͓͍ͯͯ͠ʔ 3 ※ϑΟΫγϣϯͰ͢
ʓʓը໘Ͱදࣔ͞Ε͍ͯΔ จࣈྻόά͍ͬͯΔ͔Β͓͍ͯͯ͠ʔ 4 ※ϑΟΫγϣϯͰ͢ όάͬͯΔΜ͡Όͳͯ͘ࢦ ఆ͞ΕͨจࣈྻΛදࣔͯ͠ Δ͚ͩͳΜͰ͕͢…
͋Δ͋ΔͰ͢Ͷ 5
ͦͷͨΊɺࠓճεϓϨουγʔτͰ͍͍ײ͡ʹ จࣈྻཧΛ͍ͯ͠ΔΛ͠Α͏ͱࢥ͍·͢ɻ 6 ※·ͩ։ൃ͔ͯ͠Βϲ݄ͷϓϩδΣΫτͳͷͰӡ༻Ͱ͏·͍͔͘ͳ͍Մೳੑ͋Γ
7 iOS ͱ AndroidͰڞ௨ͷϩʔΧϥΠζϑΝΠϧΛ࡞Ζ͏ʂ (iOS Advent Calendar 2016) ʛ DevelopersIO
https://dev.classmethod.jp/smartphone/ios-android-common-localize/ ࢀߟ
8 ࢀߟͱ͍͏͔΄΅ݩهࣄͱಉ͡Ͱ͢…
શମͷྲྀΕҎԼ • ΞϓϦͰ༻͢Δจࣈྻશ෦εϓϨουγʔτͰཧ • εϓϨουγʔτΛͱʹGoogleεΫϦϓτͰ֤OSʹ߹ͬ ͨϩʔΧϥΠζϑΝΠϧΛ࡞ • ֤ΞϓϦʹೖΕΔ(iOSͷ߹SwiftGenΛ༻ɺAndroid xmlΛૉʹ༻) 9
࣮ࡍͷϑΝΠϧΛݟͯΈ·͠ΐ͏ 10
11
12
13
֤ϦϯΫ • εϓϨουγʔτ https://docs.google.com/spreadsheets/d/1TPLLiw8E30- MhQDAO4ej6lO6Wb8MVV9uMb2zAt9Xai4/edit?usp=sharing • εΫϦϓτ https://script.google.com/d/ 1XczsgnUQiuUt6KauSkSmDCBrt2QkqZXwVvzs71if5IJ0JrcX 2NM4XYaB/edit?usp=sharing
14 ※ηΩϡϦςΟతʹϠόͦ͏ͳͱ͜Ζ͋ͬͨΒࢦఠ͍ͩ͘͞ʼʻ
15 iOS
16 Android
·ͱΊ • ΞϓϦͰ༻͢Δจࣈྻશ෦εϓϨουγʔτͰཧ • εϓϨουγʔτΛͱʹGoogleεΫϦϓτͰ֤OSʹ߹ͬ ͨϩʔΧϥΠζϑΝΠϧΛ࡞ • ֤ΞϓϦʹೖΕΔ(iOSͷ߹SwiftGenΛ༻ɺAndroid xmlΛૉʹ༻) 17
͓·͚ • ࢀߟهࣄͷεΫϦϓτͱҧ͏ͱ͜ΖɺϑΝΠϧʹͯ͠ग़ྗ͍ͯ͠Δ ɻεϓϨουγʔτʹ̍ߦͣͭग़ྗ͢ΔͱΊͬͪΌ͕͔͔࣌ؒΔͷ ͰɺҰׅͰϑΝΠϧʹग़ྗ͢ΔΑ͏ʹͨ͠ • iOSͰxibstoryboardʹઌ΄Ͳ࡞ͨ͠ϑΝΠϧ͔ΒΛηο τͰ͖ͳ͍ͷͰɺશͯͷLabelΛswiftϑΝΠϧʹଓ͢Δඞཁ͕͋ Δ… •
͍ͭͰʹϩʔΧϥΠζରԠͰ͖ΔͷͰ͍ͭͰւ֎͚ʹΞϓϦ͕ ग़ͤΔΑ͏ʹͳΔʂ 18