Skip to content

Commit

Permalink
Release 1.2.1 (#8)
Browse files Browse the repository at this point in the history
* Fix optional string methods on Android

* Bump version

* Changelog, update proxy

* Update CHANGELOG.md
  • Loading branch information
rlepinski committed May 13, 2024
1 parent 65e744b commit 612a83d
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 14 deletions.
11 changes: 8 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# Capacitor Plugin Changelog

## Version 1.2.0 May 2, 2024
## Version 1.2.1 May 13, 2024
Patch release that updates to latest Airship SDKs and fixes issues with methods that take an optional string parameter on Android.

### Changes
- Updated iOS SDK to 18.2.0
- Updated Android SDK to 17.8.1
- Fixed `Airship.messageCenter.display(null)` and `Airship.analytics.trackScreen(null)` on Android

## Version 1.2.0 May 2, 2024
Minor release that fixes push events on Android.

### Changes
Expand All @@ -10,7 +17,6 @@ Minor release that fixes push events on Android.
- Updated iOS SDK to 18.1.2

## Version 1.1.0 April 18, 2024

Minor release that updates the Airship SDKs.

### Changes
Expand All @@ -19,5 +25,4 @@ Minor release that updates the Airship SDKs.


## Version 1.0.0 March 22, 2024

Initial capacitor plugin release
2 changes: 1 addition & 1 deletion UaCapacitorAirship.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ Pod::Spec.new do |s|
s.ios.deployment_target = '14.0'
s.dependency 'Capacitor'
s.swift_version = '5.1'
s.dependency "AirshipFrameworkProxy", "6.1.2"
s.dependency "AirshipFrameworkProxy", "6.2.0"
end
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ repositories {
}

dependencies {
def proxyVersion = '6.1.2'
def airshipVersion = '17.8.0'
def proxyVersion = '6.2.0'
def airshipVersion = '17.8.1'
def kotlinVersion = project.hasProperty('kotlinVersion') ? rootProject.ext.kotlinVersion : '1.8.20'


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
package com.airship.capacitor

object AirshipCapacitorVersion {
var version = "1.2.0"
var version = "1.2.1"
}
4 changes: 2 additions & 2 deletions android/src/main/java/com/airship/capacitor/AirshipPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class AirshipPlugin : Plugin() {
"inApp#getDisplayInterval" -> call.resolveResult(method) { proxy.inApp.getDisplayInterval() }

// Analytics
"analytics#trackScreen" -> call.resolveResult(method) { proxy.analytics.trackScreen(arg.optString()) }
"analytics#trackScreen" -> call.resolveResult(method) { proxy.analytics.trackScreen(arg.string) }
"analytics#addCustomEvent" -> call.resolveResult(method) { proxy.analytics.addEvent(arg) }
"analytics#associateIdentifier" -> {
val associatedIdentifierArgs = arg.requireStringList()
Expand All @@ -168,7 +168,7 @@ class AirshipPlugin : Plugin() {
JsonValue.wrapOpt(proxy.messageCenter.getMessages())
}
"messageCenter#dismiss" -> call.resolveResult(method) { proxy.messageCenter.dismiss() }
"messageCenter#display" -> call.resolveResult(method) { proxy.messageCenter.display(arg.optString()) }
"messageCenter#display" -> call.resolveResult(method) { proxy.messageCenter.display(arg.string) }
"messageCenter#showMessageView" -> call.resolveResult(method) { proxy.messageCenter.showMessageView(arg.requireString()) }
"messageCenter#markMessageRead" -> call.resolveResult(method) { proxy.messageCenter.markMessageRead(arg.requireString()) }
"messageCenter#deleteMessage" -> call.resolveResult(method) { proxy.messageCenter.deleteMessage(arg.requireString()) }
Expand Down
2 changes: 1 addition & 1 deletion ios/Plugin/AirshipCapacitorVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
import Foundation

class AirshipCapacitorVersion {
static let version = "1.2.0"
static let version = "1.2.1"
}
2 changes: 1 addition & 1 deletion ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def capacitor_pods
use_frameworks!
pod 'Capacitor', :path => '../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../node_modules/@capacitor/ios'
pod 'AirshipFrameworkProxy', '6.1.2'
pod 'AirshipFrameworkProxy', '6.2.0'
end

target 'Plugin' do
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ua/capacitor-airship",
"version": "1.2.0",
"version": "1.2.1",
"description": "Airship capacitor plugin",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down

0 comments on commit 612a83d

Please sign in to comment.