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
550
あるある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
490
(iOS13の)UIBarButtonItem 位置調整あるある
domonr
0
930
あるあるLT_domonr_2019-03-19.pdf
domonr
0
1.3k
脱ぼっちレビュー_domonr
domonr
0
310
Featured
See All Featured
From Idea to $5000 a Month in 5 Months
shpigford
380
46k
Debugging Ruby Performance
tmm1
73
12k
Scaling GitHub
holman
458
140k
Art, The Web, and Tiny UX
lynnandtonic
296
20k
Optimising Largest Contentful Paint
csswizardry
31
2.8k
Music & Morning Musume
bryan
46
6.1k
Web development in the modern age
philhawksworth
205
10k
Embracing the Ebb and Flow
colly
84
4.4k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
1
280
10 Git Anti Patterns You Should be Aware of
lemiorhan
653
59k
A better future with KSS
kneath
236
17k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.8k
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