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
Androidアプリケーションのビルド体験をリモートインスタンスで改善する
Search
yagi
February 01, 2017
Technology
4
610
Androidアプリケーションのビルド体験をリモートインスタンスで改善する
Enjoy Android Application Development !
yagi
February 01, 2017
Tweet
Share
More Decks by yagi
See All by yagi
医療現場の解像度を上げるために 開発チームが行っている取り組み
sys1yagi
0
650
これどうやって動いてるんだ? Spring Framework/Bootのソースを読む
sys1yagi
1
1.1k
Kotlin コルーチンを 理解しよう 2019 - KotlinFest2019 -
sys1yagi
40
30k
5分でわかるKotlin Coroutines Flow
sys1yagi
21
18k
Androidと非同期処理 とCoroutine1.0.0
sys1yagi
12
13k
Kotlin コルーチンを 理解しよう
sys1yagi
41
23k
アーキテクチャと Scaffolding Template
sys1yagi
8
1.3k
Androidの非同期処理をKotlinコルーチンで行う
sys1yagi
3
23k
解剖Kotlin ~バイトコードを読み解く~
sys1yagi
18
9.9k
Other Decks in Technology
See All in Technology
The Rise of LLMOps
asei
5
1.3k
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
5
630
Terraform Stacks入門 #HashiTalks
msato
0
350
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
エンジニア人生の拡張性を高める 「探索型キャリア設計」の提案
tenshoku_draft
1
120
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
Why does continuous profiling matter to developers? #appdevelopercon
salaboy
0
180
DMARC 対応の話 - MIXI CTO オフィスアワー #04
bbqallstars
1
160
Incident Response Practices: Waroom's Features and Future Challenges
rrreeeyyy
0
160
Lambdaと地方とコミュニティ
miu_crescent
2
370
【若手エンジニア応援LT会】ソフトウェアを学んできた私がインフラエンジニアを目指した理由
kazushi_ohata
0
150
Featured
See All Featured
Facilitating Awesome Meetings
lara
50
6.1k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
Become a Pro
speakerdeck
PRO
25
5k
KATA
mclloyd
29
14k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Fireside Chat
paigeccino
34
3k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
Side Projects
sachag
452
42k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Docker and Python
trallard
40
3.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Transcript
"OESPJEΞϓϦέʔγϣϯ ͷϏϧυମݧΛϦϞʔτΠϯ ελϯεͰվળ͢Δ 2017/02/01 ୈ2ճελʔτΞοϓAndroidษڧձ Toshihiro Yagi
ࣗݾհ w 5PTIJIJSP:BHJ !TZTZBHJ w DPPLQBE w "OESPJEΤϯδχΞ ٕज़෦
"OESPJEΞϓϦέʔγϣϯ ͷϏϧυͷ՝ w Ϗϧυʹ͕͔͔࣌ؒΔ w ϏϧυΛͭؒ$16ϝϞϦΛઐ༗ ͞Εͯ͠·ͬͯଞͷ࡞ۀ͕Ͱ͖ͳ͍
"OESPJEΞϓϦέʔγϣϯ ͷϏϧυͷ՝ w Ϗϧυʹ͕͔͔࣌ؒΔ w ϏϧυΛͭؒ$16ϝϞϦΛઐ༗ ͞Εͯ͠·ͬͯଞͷ࡞ۀ͕Ͱ͖ͳ͍
None
ରࡦ w CVJMEHSBEMFΛνϡʔχϯά w *OTUBOU3VOΛ͏ w ϋΠεϖοΫϚγϯΛௐୡ
ରࡦ w CVJMEHSBEMFΛνϡʔχϯά w *OTUBOU3VOΛ͏ w ϋΠεϖοΫϚγϯΛௐୡ w ϦϞʔτϏϧυΛ͏OFX
ϦϞʔτϏϧυͷงғؾ Local Machine ᶃ sync code Remote Machine ᶄ build
ᶅ get apk ᶆ install apk & launch activity Ϗϧυͷ෦ΛϦϞʔτϚγϯʹҕৡ͢Δ͜ͱͰ ϩʔΧϧϚγϯͷϦιʔεΛઐ༗͠ͳ͍
ϦϞʔτϏϧυͷར w ϩʔΧϧϚγϯͷϦιʔεΛѹഭ͠ͳ͍ w ෳͷϚγϯ͔Β͑ΔڥΛͭ͘ΕΔ w ϦϞʔτϚγϯͷεϖοΫ࣍ୈͰύϑΥʔ Ϛϯεແݶେ w ΫϥυΛ͏߹
ࣗ༝ʹࣺͯΒΕΔ
ϦϞʔτϏϧυڥߏஙखॱ w ϦϞʔτϚγϯΛ༻ҙ͢Δ w ϦϞʔτϚγϯͷڥΛ࡞Δ w ϦϞʔτϏϧυ༻ͷεΫϦϓτΛ༻ҙ͢Δ w ͏ɻշదɻ࠷ߴ?P? w
ίετͱ
ϦϞʔτϚγϯΛ༻ҙ͢Δ w ༨ͬͨϚγϯ w ϦϞʔτΠϯελϯε ($1 "84 "[VSFʜ
ϦϞʔτϚγϯΛ༻ҙ͢Δ w ༨ͬͨϚγϯ w ϦϞʔτΠϯελϯε ($1 "84 "[VSFʜ
ϦϞʔτϚγϯͷڥΛ࡞Δ w "84 ($1ͳͲͰΠϯελϯεΛ࡞Δ w ϦϞʔτϚγϯͷ੩త*1Λઃఆ͢Δ w BOESPJEͷϏϧυڥΛߏங͢Δ w ϩʔΧϧϚγϯͰTTILFZΛൃߦͯ͠ొ͢Δ
ϦϞʔτϚγϯͷڥΛ࡞Δ http://sys1yagi.hatenablog.com/entry/2016/11/13/162400
ϦϞʔτϏϧυ༻ͷ εΫϦϓτΛ༻ҙ͢Δ GBCSJDΛͬͨྫ @task def build(): build_dir = tmp_dir +
package sync(build_dir) gradle_cmd = assemble_command() apk_name = apk_name_format() # run gradlew on remote instance with cd(build_dir): run(gradle_cmd) # get apk local("mkdir -p " + module + "/build/outputs/apk/") get(remote_path=build_dir + "/" + module + "/build/outputs/apk/" + apk_name, local_path=module + "/build/outputs/apk/") # start App local("adb" + " push ./" + module + "/build/outputs/apk/" + apk_name + " /data/local/tmp/" + package) local("adb" + " shell pm install -r '/data/local/tmp/" + package + "'") local("adb" + " shell am start -n '" + package + "/" + launch_activity + "' -a android.intent.action.MAIN -c android.intent.category.LAUNCHER")
͏ɻշదɻ࠷ߴ?P?
ίετͱ w େମշదͳεϖοΫ w ($1OIJHIDQV ถࠃ I w "84DYMBSHF ౦ژ
I w ͣͬͱىಈͬ͠ͺͳ͠ͷ߹ֹ݄ w ($1 w "84
ࣗಈγϟοτμϯ w $MPVE8BUDIΛͬͨࣗಈγϟοτμϯ "84 w ͖͍͠Λz࣌ؒʹର͢Δ$166UJMJ[BUJPO $166UJMJ[BUJPO zͰઃఆ w
ΞΫγϣϯͱͯ͠γϟοτμϯΛઃఆ w ىಈGBCSJDͰCPUPΛͬͯϏϧυ࣌ʹ"1* Λୟ͘ w ($1DSPOࠐΉͱ͔ʹͳΓͦ͏ɻHDMPVEͰىಈ
ϲ݄ͷར༻࣌ؒͱίετ w ΤϯδχΞ໊ w ߹ܭར༻࣌ؒd࣌ؒ w ֹ݄d w Ұਓ͋ͨΓd
ମݧ͕͍͍͘͢͝ͷͰੋඇ͓ࢼ͍ͩ͘͠͞ɻ
ͱΓ͋͑ͣؾܰʹࢼͯ͠Έ͍ͨͱ ͍͏࣌
$ZCPSH#VJME http://cyborg-build.com/
$ZCPSH#VJMEͷΈ Local Machine GCS Bucket Cyborg-Build.com Remote Instance ᶃrsync code
ᶄbuild request ᶅremote op ᶆrsync code ᶇbuild on docker ᶈupload artefacts ᶉdownload artefacts ᶊinstall & launch ϩάΠϯͨ͠(PPHMFΞΧϯτͱDZCPSHCVJMEDPNͷΈ͕ιʔείʔυʹ৮ΕΔߏ
"MQIB1SFWJFX w ࠓͷͱ͜Ζແྉ w HDMPVE GBCSJDͰར༻Մೳ w CVJMEMBVODIͷ΄͔UFTUMJOU݁Ռͷอଘͳ Ͳαϙʔτ w
*%&"QMVHJOԽ༧ఆ w ͥͻ͓ࢼ͍ͩ͘͠͞ϑΟʔυόοΫ͍ͩ͘͞
&OKPZ "OESPJE"QQMJDBUJPO %FWFMPQNFOU