Skip to content

Releases: NativeScript/capacitor

5.0.2

01 Sep 04:45
Compare
Choose a tag to compare

Fixes

  • defining targetDevice as const (#23)

5.0.0

11 May 23:39
Compare
Choose a tag to compare

Capacitor v5 compatibility

For existing v4 users, you can update by:

  1. Update package.json:
"@nativescript/capacitor": "^5.0.0"
  1. Update ios/App/Podfile to reference the latest NativeScriptSDK ~8.4.2 Pod and adjust the post_install setup:
require_relative '../../node_modules/@nativescript/capacitor/ios/nativescript.rb'
require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
  pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
  pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
  pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
  pod 'NativescriptCapacitor', :path => '../../node_modules/@nativescript/capacitor'
end

target 'App' do
  capacitor_pods
  # Add your Pods here

 pod 'NativeScriptSDK', '~> 8.4.2'
 pod 'NativeScriptUI'
end

post_install do |installer|
  assertDeploymentTarget(installer)

  nativescript_capacitor_post_install(installer)
end

  1. Ensure latest pod specs are refreshed locally

You can run pod repo update to ensure the latest references are available on your system.

  1. Clean project dependencies and ensure lock (if using) is updated to reflect latest @nativescript/capacitor 5.0.0 is installed.

  2. Ensure native projects are cleaned before running with updates.

Should be in working order now.

4.0.0

20 Oct 03:49
Compare
Choose a tag to compare

Capacitor v4 compatibility

For existing v2 users, you can update by:

  1. Update package.json:
"@nativescript/capacitor": "^4.0.0"
  1. Update AppDelegate.swift:

From this:

self.nativescript?.runMainScript()

to this:

self.nativescript?.runMainApplication()
  1. Update ios/App/Podfile to reference the latest ~8.3.3 Pod and adjust the post_install setup:
require_relative '../../node_modules/@nativescript/capacitor/ios/nativescript.rb'
require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
  pod 'CapacitorHaptics', :path => '../../node_modules/@capacitor/haptics'
  pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
  pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
  pod 'NativescriptCapacitor', :path => '../../node_modules/@nativescript/capacitor'
end

target 'App' do
  capacitor_pods
  # Add your Pods here

 pod 'NativeScript', '~> 8.3.3' 
 pod 'NativeScriptUI'
end

post_install do |installer|
  assertDeploymentTarget(installer)

  nativescript_capacitor_post_install(installer)
end

  1. Ensure latest pod specs are refreshed locally

You can run pod repo update to ensure the latest references are available on your system.

  1. Clean project dependencies and ensure lock (if using) is updated to reflect latest @nativescript/capacitor 4.0.0 is installed.

  2. Ensure native projects are cleaned before running with updates.

Should be in working order now.

2.0.0

20 Apr 04:27
Compare
Choose a tag to compare

Features

  • v8 engine
  • < 20ms startup time of runtime
  • usage of various aspects of @nativescript/core from Capacitor
  • new yarn dev:nativescript task for auto reload of app after any changes made within src/nativescript folder.

1.0.0

09 Jun 18:36
Compare
Choose a tag to compare