Skip to content

Commit

Permalink
Merge pull request #112 from OutSystems/development
Browse files Browse the repository at this point in the history
Prepare `main` for `2.3.1`
  • Loading branch information
OS-ricardomoreirasilva authored Aug 12, 2024
2 parents 1873bf0 + 9abe3d8 commit afc5402
Show file tree
Hide file tree
Showing 31 changed files with 1,473 additions and 1,452 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

The changes documented here do not include those from the original repository.

## [Version 2.3.1]

### Fixes
- Fixes notification click when notification is delievered while the app is in foreground (https://outsystemsrd.atlassian.net/browse/RMET-3559).
- Removes protected/reserverd keys from being sent as deeplink parameters data when clicking notification, and also when receiving in-app notifications. (https://outsystemsrd.atlassian.net/browse/RMET-3559).

### Fixes
- Remove return by callbacks, eliminating the disalignment with the threads where the methods are being called (https://outsystemsrd.atlassian.net/browse/RMET-3554).

### Chores:
- Update `firebaseMessaging` iOS pod to version `10.29.0`.

## [Version 2.3.0]

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.outsystems.firebase.cloudmessaging",
"version": "2.3.0",
"version": "2.3.1",
"description": "Outsystems plugin for Firebase Cloud Messaging",
"keywords": [
"ecosystem:cordova",
Expand Down
10 changes: 3 additions & 7 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.firebase.cloudmessaging" version="2.3.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="com.outsystems.firebase.cloudmessaging" version="2.3.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">

<name>OSFirebaseCloudMessaging</name>
<description>Outsystems plugin for Firebase Cloud Messaging</description>
Expand All @@ -20,8 +20,7 @@
<param name="ios-package" value="OSFirebaseCloudMessaging"/>
<param name="onload" value="true" />
</feature>
<preference name="deployment-target" value="13" />
<preference name="UseSwiftLanguageVersion" value="5" />
<preference name="SwiftVersion" value="5" />
</config-file>

<config-file target="*-Info.plist" parent="UIBackgroundModes">
Expand All @@ -46,8 +45,6 @@
<framework src="src/ios/frameworks/OSFirebaseMessagingLib.xcframework" embed="true" custom="true" />
<framework src="src/ios/frameworks/OSLocalNotificationsLib.xcframework" embed="true" custom="true" />

<dependency id="cordova-plugin-add-swift-support" url="https://github.com/OutSystems/cordova-plugin-add-swift-support.git#2.0.3-OS1"/>

<!-- Hooks -->
<hook type="after_prepare" src="hooks/ios/iOSCopyPreferences.js" />

Expand All @@ -56,8 +53,7 @@
<source url="https://cdn.cocoapods.org/"/>
</config>
<pods use-frameworks="true">
<pod name="FirebaseMessaging" spec="10.23.0" />
<pod name="OSCommonPluginLib" spec="1.0.0" />
<pod name="FirebaseMessaging" spec="10.29.0" />
</pods>
</podspec>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ apply plugin: 'kotlin-kapt'
dependencies {
implementation("com.github.outsystems:oscore-android:1.2.0@aar")
implementation("com.github.outsystems:oscordova-android:2.0.1@aar")
implementation("com.github.outsystems:osfirebasemessaging-android:1.2.0@aar")
implementation("com.github.outsystems:osfirebasemessaging-android:1.2.1@aar")
implementation("com.github.outsystems:oslocalnotifications-android:1.0.0@aar")

implementation("com.google.code.gson:gson:2.8.9")
Expand Down
1 change: 0 additions & 1 deletion src/ios/AppDelegate+OSFirebaseCloudMessaging.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#import "AppDelegate+OSFirebaseCloudMessaging.h"
#import "OutSystems-Swift.h"
#import <objc/runtime.h>
#import <OSFirebaseMessagingLib/OSFirebaseMessagingLib-Swift.h>

Expand Down
14 changes: 5 additions & 9 deletions src/ios/OSFCMEventExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,14 @@ import OSFirebaseMessagingLib

extension OSFCMClickableType: CustomStringConvertible {
public var description: String {
var result: String
switch self {
return switch self {
case .notification(latestVersion: let latestVersion):
result = "notificationClick"
if latestVersion {
result += "V2"
}
"notificationClick\(latestVersion ? "V2" : "")"
case .action:
result = "internalRouteActionClick"
"internalRouteActionClick"
@unknown default:
preconditionFailure("Not supposed to get here")
}

return result
}
}

Expand Down
Loading

0 comments on commit afc5402

Please sign in to comment.