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
Swift SDK for Android を試してみる
Search
yaslab
November 28, 2025
Programming
97
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Swift SDK for Android を試してみる
yaslab
November 28, 2025
More Decks by yaslab
See All by yaslab
Swift 4 の変更点
yaslab
2
1.9k
Other Decks in Programming
See All in Programming
Next.js: The final boss of Web Performance
guaca
0
350
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
6
1.9k
Inertia Rails: The One-Person Framework with React & Friends
skryukov
0
170
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
3
1.3k
dotNET_vulnclicker_intro.pdf
deka_morita
0
150
Groovy as a human and AI friendly programming language
paulk
0
120
AI-Powered Domain-Driven Design
ziobrando
0
340
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
280
Railsバージョンを4倍にした話
optim
0
800
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
160
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
1.2k
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
110
Featured
See All Featured
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
510
Building Applications with DynamoDB
mza
96
7.3k
Documentation Writing (for coders)
carmenintech
77
5.6k
A designer walks into a library…
pauljervisheath
211
25k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
800
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
420
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
940
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Utilizing Notion as your number one productivity tool
mfonobong
4
630
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
sira's awesome portfolio website redesign presentation
elsirapls
0
470
Transcript
Swift SDK for Android を試してみる 2025/11/28 Mobile Act OSAKA #17
八田泰弘 @yaslab フェンリル株式会社 iOS エンジニア iOS テックリード 自己紹介
2025年 6月 Android Workgroup 設立 ー Swift 公式のワーキンググループが発⾜ ー Android
サポートが継続的に維持される 2025年 10月 Swift SDK for Android 公開 ー 公式ブログにてプレビュー版リリースがアナウンスされた ー Swift を⽤いた Android 開発の公式サポート Swift の Android 開発サポート状況
Swift SDK ‧クロスコンパイルのための仕組み: OSやCPUが異なるマシン向けのネイティブコードを⽣成する。 ‧SDKの内容: ターゲット向けの「ツールチェイン」+「ライブラリ、ヘッダー等」をひとまと めにしたものを Swift SDK と呼ぶ。
‧メリット: ⾯倒な環境構築不要。SDK を⼊れるだけで、macOS 上で Android 向けのビルド が可能。 ‧リリース時期 `SE-0387 Swift SDKs for Cross-Compilation` で提案され、Swift 6.1 で実装され た。
課題:言語の壁 Swift はネイティブコード、Java/Kotlin は JVM 上で動作 (Android の場合は JVM でなく
ART で動作) 解決策:JNI Java から C/C++ ネイティブコードと連携するためのインターフェース • JNI を経由して Java から Swift を呼び出す • Swift の関数は C の関数として書き出す JNI (Java Native Interface) • ART も JNI をサポートしている
swiftlang/swift-java Swift と Java を相互運⽤利⽤するためのツール このツールが JNI のためのコードを⾃動⽣成してくれるため、Swift と Java
の連携を意識せずに実装できる。 swift-java
ロジック部分の共通化 ビジネスロジック、通信処理などを Swift で実装し、 iOS と Android で共有 UI はネイティブ実装
UI 部分は各プラットフォームの技術(SwiftUI, Jetpack Compose)を使⽤ 実践導入する場合の方針 SwiftUI を使⽤可能なのが Apple プラットフォームのみ なので、Swift ではそもそも UI 実装の共有ができない Swift の共有コードができるだけ多くなるように設計す るのが良さそう(例:ViewModel 以降を共通化)
いいところ 懸念点 • 開発コスト削減: アプリ仕様をiOS/Androidで2つ実装 しなくて済む • 品質向上: iOS/Android 間の実装差異を最⼩限にでき、
同じ仕様を2つ実装することで発⽣していた認識齟齬な どのバグを回避できる • ⼈材確保が容易: Swift を書くことができるエンジニア はたくさんいる • 幅広い知識: iOS/Android 両⽅のビルドシステムへの理 解が必要 • 専⾨知識: トラブル時に Swift SDK や JNI の知識が必要 になる場合がある • 実績: Swift SDK for Android はまだプレビュー版で、 現状は Flutter や KMP の⽅が実績があり安定している マルチプラットフォーム開発のいいところ、懸念点
まだプレビュー版 Swift SDK for Android は 最新の Swift 6.2 向けには提供されていない。
現在はまだプレビュー版のみ。 Gradle Integration swift-java の導⼊はまだ⼿動。 将来的には Gradle で簡単に導⼊できるようになるはず。 今後に期待!!
公式のサンプルコード Swift SDK for Android を使⽤するサンプル集 swiftlang/swift-android-examples
ご清聴ありがとうございました