Skip to content

Commit

Permalink
[MOBILE-4459] Release 1.2.0 (#3)
Browse files Browse the repository at this point in the history
* Release 1.2.0

* Update changelog

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

## Version 1.2.0 May 2, 2024

Minor release that fixes push events on Android.

### Changes
- Fixed push events on Android.
- Added `isForeground` to push received events to indicate the application state when the push was received.
- Updated iOS SDK to 18.1.2

## Version 1.1.0 April 18, 2024

Minor release that updates the Airship SDKs.
Expand Down
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.0.0"
s.dependency "AirshipFrameworkProxy", "6.1.2"
end
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ repositories {
}

dependencies {
def proxyVersion = '6.0.0'
def proxyVersion = '6.1.2'
def airshipVersion = '17.8.0'
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.1.0"
var version = "1.2.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class AirshipPlugin : Plugin() {
EventType.MESSAGE_CENTER_UPDATED to "message_center_updated",
EventType.PUSH_TOKEN_RECEIVED to "push_token_received",
EventType.FOREGROUND_PUSH_RECEIVED to "push_received",
EventType.BACKGROUND_PUSH_RECEIVED to "background_push_received",
EventType.BACKGROUND_PUSH_RECEIVED to "push_received",
EventType.NOTIFICATION_STATUS_CHANGED to "notification_status_changed"
)
}
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.1.0"
static let version = "1.2.0"
}
15 changes: 1 addition & 14 deletions ios/Plugin/AirshipPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,8 @@ public class AirshipPlugin: CAPPlugin {
return try AirshipProxy.shared.push.isQuietTimeEnabled()

case "push#ios#setQuietTime":
let proxySettings: CodableQuietTimeSettings = try call.requireCodableArg()
try AirshipProxy.shared.push.setQuietTime(
QuietTimeSettings(
startHour: proxySettings.startHour,
startMinute: proxySettings.startMinute,
endHour: proxySettings.endHour,
endMinute: proxySettings.endMinute
)
try call.requireCodableArg()
)
return nil

Expand Down Expand Up @@ -561,10 +555,3 @@ extension CAPPluginCall {
throw AirshipErrors.error("Argument must be a double")
}
}

public struct CodableQuietTimeSettings: Codable {
let startHour: UInt
let startMinute: UInt
let endHour: UInt
let endMinute: UInt
}
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.0.0'
pod 'AirshipFrameworkProxy', '6.1.2'
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.1.0",
"version": "1.2.0",
"description": "Airship capacitor plugin",
"main": "dist/plugin.cjs.js",
"module": "dist/esm/index.js",
Expand Down
8 changes: 8 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,15 @@ export interface PushTokenReceivedEvent {
* Event fired when a push is received.
*/
export interface PushReceivedEvent {
/**
* The push payload.
*/
pushPayload: PushPayload;

/**
* Indicates whether the push was received when the application was in the background or foreground.
*/
isForeground: boolean;
}

/**
Expand Down

0 comments on commit 65e744b

Please sign in to comment.