部落格 RSS Feed

次要版本發布
作者:Steve Gill
2016年10月4日

以下為近期發布的版本

  • cordova-plugin-geolocation:2.4.0
  • cordova-create:1.0.1
  • cordova-app-hello-world:3.11.0

Google 最近向所有使用 cordova-plugin-geolocation 的使用者發出警告,要求必須在他們的 AndroidManifest.xml 中加入 android.hardware.location.gps。我們更新了 cordova-plugin-geolocation 外掛,使其在安裝時自動將此設定新增到專案的 AndroidManifest.xml 中。這表示地理定位外掛程式僅能在具有 GPSandroid 裝置上運作。如果此限制對您產生負面影響,請告訴我們。

版本重點

  • cordova-app-hello-world:更新了預設的 CSP 以包含 img-src,並為 CB-4078 加入 content:

您可以先移除外掛程式,然後重新新增來更新任何外掛程式。

例如:要更新您的地理定位外掛程式

cordova plugin rm cordova-plugin-geolocation --save
cordova plugin add cordova-plugin-geolocation@latest --save

變更包括

cordova-plugin-geolocation@2.4.0

  • Ubuntu 修正了高度和精確度的檢索
  • CB-11875 新增了 android.hardware.location.gps uses-feature

cordova-create@1.0.1

  • 移除了剝離事件偵聽器的功能

cordova-app-hello-world@3.11.0

  • CB-11938 更新了 csp,為 img-src 加入 content:
  • CB-11412 更新範本以指定範本來源目錄
  • CB-10522 Hello World 中的事件繫結具有誤導性