Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
OK Google, Deploy the iOS app
Search
asmz
March 26, 2019
Technology
1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
OK Google, Deploy the iOS app
OK Google, iOSアプリをデプロイして
Talked at GCPUG Sendai #1
asmz
March 26, 2019
More Decks by asmz
See All by asmz
Firebase App Testing Agentで始めるAIベースの柔軟なE2Eテスト
asmz
0
1.6k
モバイルアプリ開発へE2Eテストを導入しよう
asmz
0
360
React Native+Expoで始めるWebフロント開発
asmz
0
860
UIデザインを考える全ての人たちに捧げる Apple Human Interface Guidelinesのススメ
asmz
1
2.9k
Overview of Swift and iOS App development
asmz
0
1.4k
How to get mobile app logs using Firebase Crashlytics
asmz
0
950
Cooperate with Adobe XD, Zeplin and Xcode
asmz
1
3.2k
phpconsen LT
asmz
0
860
SWWDC 39
asmz
1
300
Other Decks in Technology
See All in Technology
AIは爆速なのに、私が詰まっていた話 ― 音声入力と鳴くマスコットでボトルネックを削る
yama3133
0
520
オブザーバビリティを高める AI エージェント体験を考える / Designing AI Agent Experiences That Enhance Observability
aoto
PRO
2
310
ビジネスを止めない技術的負債の返済のための戦略とその手法 - 技術的負債と向き合う / Complexity and Simplicity
soudai
PRO
3
550
The seven pitfalls of AI (revised version)
ufried
0
260
生成AIで高い生産性を求められて、 悩み、乗り越えた話
mot_techtalk
2
130
Google Cloud Next Tokyo 26登壇時のスクリプト
recruitengineers
PRO
0
200
私の推しは「聞いてから進む」AIです -AI-DLCに一人でアプリを作らせた話
yama3133
1
170
Claude起点の仕様駆動開発
tanakaseiya
0
380
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
230
More Freedom on the Same Shared GPU Cluster: A Small Team’s Experience with vCluster
nttcom
0
130
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
280
React Nativeでの OTA Updateって、 どう説明する?
ichiki1023
0
150
Featured
See All Featured
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
510
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Skip the Path - Find Your Career Trail
mkilby
1
240
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
310
GraphQLとの向き合い方2022年版
quramy
50
15k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
920
Six Lessons from altMBA
skipperchong
29
4.5k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.9k
Transcript
OK Google, iOSアプリをデプロイして 2019/03/26 GCPUG Sendai #1 Akira Shimizu /
asmz 1
2 誰なのか? • Akira Shimizu / asmz (@_asmz) • https://asmz.beer/
• 株式会社ビデオマーケット 仙台オフィス • iOSエンジニア • GCP周辺技術が割と好き ◦ Firebase、Actions on Google etc...
3 今回やってみたこと
4 今回やってみたこと 開発中のアプリベータ 版、最新版が欲しいんだ けど... う〜ん、 起きたくない...zzZ
5 今回やってみたこと OK Google, iOSアプリをデプロイし て〜 ワカリマシタ
6 今回やってみたこと Zzz... デプロイガ オワリマシタヨ きたきた〜 わ〜い
7 本日の材料
iOSアプリCI/CD 本日の材料 Actions on Google 物理デバイス 8 Google Home Raspberry
Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise Google Assistant Dialogflow
9 下ごしらえ
10 下ごしらえ • まずはiOSアプリCI環境を構築します Push Hook delivery (development) upload -
Code signing - Provisioning - Build (production) download 省 略
11 下ごしらえ • デプロイに必要なもの ◦ 対象ブランチ ◦ BitriseのWorkflow • Workflowとは
◦ ビルドに必要な一連の作業フ ローを定義したもの ◦ 開発用、本番用などビルドの 種類分用意する
12 下ごしらえ • 対象ブランチとWorkflowが決まれば、Webhook URLでCIタスクをKickすることが可能!
13 システム構築
14 User Devices Mobile App CI/CD Google Home Actions on
Google Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Cloud Functions Bitrise Google Assistant Dialogflow 全体構成
15 【往路】 Google Home→ デプロイ開始
16 Google Home→ デプロイ開始 16 User Devices Mobile App CI/CD
Google Home Actions on Google Cloud Datastore Cloud Functions Bitrise Google Assistant Dialogflow POINT!
• Dialogflowとは ◦ 自然言語解析エンジン ◦ 人間の普通の会話形式の言葉を聞き取り、解析 ◦ Googleアシスタント用アプリの開発プラットフォーム「Actions on Google」に統合
17 音声アシスタント接続、言語解析 Google Home Google Assistant Server Dialogflow
音声アシスタント接続、言語解析 • Entity定義 ◦ 発話内容をパラメータ値にマッピング 18 発話内容 パラメータ値
音声アシスタント接続、言語解析 • Intent定義 ◦ 音声アシスタントのメインフローを定義 19 音声アシスタントが POSTに必要なパラメー タ値を聞き出す
音声アシスタント接続、言語解析 • Fulfillment定義 ◦ 必要なパラメータ取得後に行う処理を定義 20 今回はCloud Functionsへ Webhookするよう設定
21 解析したパラメータをBitriseへPOST 21 User Devices Mobile App CI/CD Google Home
Actions on Google Cloud Datastore Cloud Functions Bitrise Google Assistant Dialogflow ① パラメータ: branch, workflow ② Webhook URLへ POST ③ Bitriseレスポンスの「ビ ルド番号」保存
22 【復路】 デプロイ終了 → Google Home
23 デプロイ終了 → Google Home User Devices Mobile App CI/CD
Google Home Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise POINT!
Cloud IoT Coreとは 24 • GCPから各種IoTデバイスと接続・管理・データ取り込 みなどを行えるフルマネージドサービス ◦ クラウド⇔デバイス双方向通信が可能 Cloud
IoT Core 各種IoTデバイス・センサー HTTPS / MQTT
Cloud IoT Coreとは 25 • レジストリ作成 利用するプロトコル 端末からの上りイベント を流すPub/Subトピック
Cloud IoT Coreとは 26 • 端末定義 デバイス側でキーペアを 作成し、公開鍵をコン ソールに設定
Cloud IoT Coreとは 27 • デバイス側MQTTクライアント設定(ex. Node.js)
Cloud IoT Coreとは 28 • デバイス側MQTTクライアント設定(ex. Node.js) • これでクラウド⇔デ バイス双方向通信
が可能に!
29 デプロイ終了通知をIoT Coreへ伝達 User Devices Mobile App CI/CD Google Home
Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise ① パラメータ: ビルド番号 ② ビルド番号存在 チェック ③ メッセージ(ビルド番 号)送信
30 Raspberry Piで通知受信、発話 User Devices Mobile App CI/CD Google Home
Raspberry Pi Cloud IoT Core Cloud Datastore Cloud Functions Bitrise
Raspberry Piで通知受信し発話 31 • 「google-home-notifier」で同一ネットワーク内のGoogle Homeへ発話指示 ◦ https://github.com/noelportugal/google-home-notifier
32 完成!
成果物 33 ビルド番号 373 番の デプロイがおわりましたよ 約10分後
34 感想・まとめ
35 やってみての感想 • 定型的な作業向き ◦ ベータ版アプリの再配布 ◦ 環境違いのベータ版の配布 など • リスク低な作業向き
◦ リリースビルドなど間違えたくないデプロイは音声より文字 での確認の方がしやすい
36 やってみての学び • アイデア次第でいろんなことに応用できそう • Cloud IoT Coreを使った、クラウドから物理デバイス との双方向通信は、結構応用が効きそう ◦
重度障害発生時に音で知らせる、パトランプ回す ◦ Webからの家電操作(ラズパイ+赤外線リモコン) 便利な使い方あれば、 ぜひGCPUG Sendaiで発表を!
37 Enjoy Engineering! 2019/03/26 GCPUG Sendai #1 Akira Shimizu /
asmz
38 [PR] 個人開発アプリのご紹介 • ITイベント・勉強会検索アプリ「EVENTech」 ◦ connpass検索機能使えなくて不便ですよね... ◦ あります、検索機能。 ◦
https://eventech.asmz.beer/