2019 Google Developer Days
本文爲2019 Google Developer Days大會內容總結。詳情可參閱官網.
Android
Android 10新特性
- 系統級暗黑模式
詳細信息請查看官網 https://developer.android.com/guide/topics/ui/look-and-feel/darktheme
- 通知中的智能回覆
- 隱私和位置
- 在後臺訪問設備位置需要獲得許可
- 保護外部存儲中的用戶數據
- 限制從後臺啓動的活動
- MAC地址隨機化
- 對不可重置設備標識符的訪問限制
詳細信息請查看官網 https://developer.android.com/about/versions/10/privacy
- 手勢導航
詳細信息請查看官網 https://developer.android.com/guide/navigation/gesturenav
- 支持摺疊屏
詳細信息請查看官網 https://developer.android.com/guide/topics/ui/foldables
- 支持5G
詳細信息請查看官網 https://developer.android.com/reference/android/net/ConnectivityManager
- 專注模式
- SAW* 被廢止
- TLS 1.3 默認開啓
- 生物識別登陸
- ShareSheet API
- Bubbles
- …
Kotlin First
- 新 Jetpack API 和功能首先在Kotlin中提供
- 新項目用Kotlin編寫
Android Jetpack
- Camera X
- 兼容至L (90%設備)
- 設備一致性
- 使用方便
- AndroidX Test
- 新包
- Jetpack Compose 下一代UI工具包
- Jetpack Security Library 加密包,支持6.0+
- Jetpack Benchmark Library 測試代碼性能
- 架構組件
- Data Binding
- View Binding
- WorkManager
- Navigation
- SavedState for ViewModel
- Room
- ViewPager2
ConstraintLayout 和 MotionLayout 增強
ConstraintLayout
是功能更強大的RelativeLayout
,新項目默認佈局- class
MotionLayout
extendsConstraintLayout
App Bundle實現自定義交付,並共享測試版本。
- 10%-60%的app瘦身
- 定製化分發
- 應用內更新
- 按條件分發
- 按需分發
- 遊戲資源分發
- Demo:Plaid
藉助Android Studio工具,基準化分析,提升應用性能
- Profiler
- Build -> Analyze APK…
無障礙
- 有10億人存在各種不同程度的障礙,無障礙化app勢在必行
Android Studio 3.5
- Project Marble 磐石計劃
- 離線組件
- 增加內存堆
- Lint代碼檢查
- 構建速度
- Apply Changes
Flutter
- 1.9版本發佈
- 混合開發,勢在必行
- Flutter如何呈現組件
- 快速構建Flutter混合應用
TensorFlow
- TensorFlow 2.0
- TensorFlow Lite - 面向移動和物聯網設備
- TensorFlow.js : JavaScript平臺的機器學習
- Swift for TensorFlow : 無邊界機器學習
- 機器學習在去中心化數據上的應用
- SmileAR : 愛奇藝移動端AR解決方案
- ElasticDL : 彈性分佈式深度學習
- 在Arm架構上運行TensorFlow Lite
- 使用tf.distribute拓展TensorFlow
- 藉助TensorFlow Extended打造機器學習服務