Skip to content

Releases: ionic-team/capacitor

1.5.2

27 Mar 15:47
Compare
Choose a tag to compare

2.0.0-beta.1

24 Mar 17:49
Compare
Choose a tag to compare
2.0.0-beta.1 Pre-release
Pre-release

Changelog:
https://github.com/ionic-team/capacitor/blob/capacitor.2.0-beta.1/CHANGELOG.md#200-beta1-2020-03-24

Breaking changes in 2.0.0-beta.1

Camera: Unify saveToGallery default value to false see

Breaking changes in 2.0.0-beta.0

Use Android X. Code changed to use Android X and new dependencies.
Only Xcode 11+ support.
Camera: if getPhoto has allowEditing option and the edit is canceled, return the original image see
PushNotifications/LocalNotifications: new method for requesting permissions, they won’t be automatically requested on register method see
Toast: unify duration across platforms, short 2000ms, long 3500ms see
Geolocation (android): use Fused Location Provider on Android. Remove requireAltitude from GeolocationOptions (was not really used) see
Geolocation (ios): change native location accuracy values see
Filesystem: createIntermediateDirectories was removed from MkdirOptions, was deprecated, use recursive instead see
Filesystem: writeFile returns uri instead of nothing see
Filesystem: add recursive option to writeFile, changes behaviour on Android and web see
Filesystem: Removed Application directory because was broken see
Android template: remove unused launch_splash.xml see
Device: Remove batteryLevel and isCharging from getInfo, use getBatteryInfo see
Modals: inputPlaceholder sets a placeholder instead of text see. Use inputText instead see
LocalNotifications: schedule return proper LocalNotificationScheduleResult see
App: AppRestoredResult is optional now, returned only if succeeded, return error otherwise see
Clipboard: Removed ReadOptions see

Template changes:

Android: target SDK 29 see
Android: update gradle and dependencies see
Android X changes also require template changes
Android: use common variables see
iOS: Update template to use Swift 5 (not mandatory) see

2.0.0-beta.0

09 Mar 18:52
Compare
Choose a tag to compare
2.0.0-beta.0 Pre-release
Pre-release

Changelog:

https://github.com/ionic-team/capacitor/blob/capacitor.2.0-beta.0/CHANGELOG.md

Breaking changes:

Use Android X. Code changed to use Android X and new dependencies.
Only Xcode 11+ support.
Camera: if getPhoto has allowEditing option and the edit is canceled, return the original image see
PushNotifications/LocalNotifications: new method for requesting permissions, they won’t be automatically requested on register method see
Toast: unify duration across platforms, short 2000ms, long 3500ms see
Geolocation (android): use Fused Location Provider on Android. Remove requireAltitude from GeolocationOptions (was not really used) see
Geolocation (ios): change native location accuracy values see
Filesystem: createIntermediateDirectories was removed from MkdirOptions, was deprecated, use recursive instead see
Filesystem: writeFile returns uri instead of nothing see
Filesystem: add recursive option to writeFile, changes behaviour on Android and web see
Filesystem: Removed Application directory because was broken see
Android template: remove unused launch_splash.xml see
Device: Remove batteryLevel and isCharging from getInfo, use getBatteryInfo see
Modals: inputPlaceholder sets a placeholder instead of text see. Use inputText instead see
LocalNotifications: schedule return proper LocalNotificationScheduleResult see
App: AppRestoredResult is optional now, returned only if succeeded, return error otherwise see
Clipboard: Removed ReadOptions see

Template changes:

Android: target SDK 29 see
Android: update gradle and dependencies see
Android X changes also require template changes
Android: use common variables see
iOS: Update template to use Swift 5 (not mandatory) see

1.5.1

05 Mar 17:05
Compare
Choose a tag to compare

1.5.0

03 Feb 18:52
Compare
Choose a tag to compare

1.4.0

12 Dec 12:49
Compare
Choose a tag to compare

1.3.0

24 Oct 18:24
Compare
Choose a tag to compare

1.1.1

19 Jul 10:34
Compare
Choose a tag to compare

1.0.0-beta.11 (BREAKING CHANGES)

19 Nov 22:01
Compare
Choose a tag to compare

This is one of the last beta's before 1.0. As such, we've snuck in a few important breaking changes and things to be aware of.

First, the webserver was removed from Capacitor completely. That means no more localhost. Instead, we've moved to using a custom URL scheme, in this case capacitor://. This removes a lot of complexity and potential security issues with the web server model, and it should end any issues with the server not running/reloading/etc.

However, we've had to drop iOS 10 support to get access to this new feature in WKWebView. According to Apple, iOS 10 and below account for less than 10% of usage worldwide, which is our cut off for continuing support.

Additionally, there are a few more breaking changes for existing projects. We wanted to get this in now so we can avoid future breaking changes once we hit 1.0 final:

Breaking changes for Android:

There are some dependency path changes required in android/settings.gradle:

Remove these lines:

include ':capacitor-android'
project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/android/capacitor/')

Change these lines:

include ':capacitor-android-plugins'
project(':capacitor-android-plugins').projectDir = new File('../node_modules/@capacitor/cli/assets/capacitor-android-plugins/')

to

include ':capacitor-cordova-android-plugins'
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')

Your settings.gradle should look something like this:

include ':app'
include ':capacitor-cordova-android-plugins'
project(':capacitor-cordova-android-plugins').projectDir = new File('./capacitor-cordova-android-plugins/')

apply from: 'capacitor.settings.gradle'

Next, edit android/build.gradle:

Change this line:

implementation project(':capacitor-android-plugins')

to

implementation project(':capacitor-cordova-android-plugins')

Breaking changes for iOS:

  • iOS 10 support has been dropped
  • Change deployment target to 11.0 or greater
  • The port option will not work as there is no server anymore
  • localStorage will be lost as the url changes. We always recommend using the Storage API to avoid this issue.