Skip to content

Commit

Permalink
Merge pull request #217 from urbanairship/MOBILE-4688
Browse files Browse the repository at this point in the history
Prepare patch release 7.8.1
  • Loading branch information
Ulrico972 authored Sep 10, 2024
2 parents 085ae96 + af26300 commit c971812
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 12 deletions.
13 changes: 7 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# Flutter Plugin Changelog

## Version 7.8.0 - September 3, 2024
## Version 7.8.1 - September 10, 2024

Minor release that adds early access support for Embedded Content.
Patch release that brings back in-app messages methods and fixes a potential Swift compile error.

### Changes

- Adds AirshipEmbeddedView and listener methods to Airship.inApp for Embedded Content.
- Brought back `setPaused()`, `isPaused()`, `setDisplayInterval()` and `displayInterval()` methods.
- Fixed a potential Swift compile error.

## Version 7.7.1 - August 16, 2024
## Version 7.8.0 - September 3, 2024

Patch release that adds a message center message list refresh operation on iOS. This allows message center messages to properly display when launched from a push while the iOS app is backgrounded. iOS apps that open message center messages directly from push notifications are encouraged to update.
Minor release that adds early access support for Embedded Content.

### Changes

- Refresh message center messages when message is initially unavailable on iOS.
- Adds AirshipEmbeddedView and listener methods to Airship.inApp for Embedded Content.

## Version 7.7.1 - August 16, 2024

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package com.airship.flutter

class AirshipPluginVersion {
companion object {
const val AIRSHIP_PLUGIN_VERSION = "7.8.0"
const val AIRSHIP_PLUGIN_VERSION = "7.8.1"
}
}
2 changes: 1 addition & 1 deletion ios/Classes/AirshipPluginVersion.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Foundation

class AirshipPluginVersion {
static let pluginVersion = "7.8.0"
static let pluginVersion = "7.8.1"
}
7 changes: 5 additions & 2 deletions ios/Classes/SwiftAirshipPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,11 @@ public class SwiftAirshipPlugin: NSObject, FlutterPlugin {
return try AirshipJSON.wrap(flag).unWrap()

case "featureFlagManager#trackInteraction":
guard let arg = try? call.requireAnyArg() as? String,
let jsonData = arg.data(using: .utf8),
guard let arg = try? call.requireAnyArg() as? String else {
throw AirshipErrors.error("Call requires a String argument")
}

guard let jsonData = arg.data(using: .utf8),
let featureFlagProxy = try? JSONDecoder().decode(FeatureFlagProxy.self, from: jsonData) else {
throw AirshipErrors.error("Call requires a json string that's decodable to FeatureFlagProxy")
}
Expand Down
2 changes: 1 addition & 1 deletion ios/airship_flutter.podspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

AIRSHIP_FLUTTER_VERSION="7.8.0"
AIRSHIP_FLUTTER_VERSION="7.8.1"

#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
Expand Down
20 changes: 20 additions & 0 deletions lib/src/airship_in_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ class AirshipInApp {
_setupController();
}

/// Pauses or unpauses in-app automation.
Future<void> setPaused(bool paused) async {
return await _module.channel.invokeMethod('inApp#setPaused', paused);
}

/// Checks if in-app automation is paused or not.
Future<bool> get isPaused async {
return await _module.channel.invokeMethod('inApp#isPaused');
}

/// Sets the display interval for messages.
Future<void> setDisplayInterval(int milliseconds) async {
return _module.channel.invokeMethod('inApp#setDisplayInterval', milliseconds);
}

/// Gets the display interval for messages.
Future<int> get displayInterval async {
return await _module.channel.invokeMethod('inApp#getDisplayInterval');
}

List<EmbeddedInfo> getEmbeddedInfos() => _embeddedInfos;

bool isEmbeddedAvailable({required String embeddedId}) =>
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: airship_flutter
description: "Cross-platform plugin interface for the native Airship iOS and Android SDKs. Simplifies adding Airship to Flutter apps."
version: 7.8.0
version: 7.8.1
homepage: https://www.airship.com/
repository: https://github.com/urbanairship/airship-flutter
issue_tracker: https://github.com/urbanairship/airship-flutter/issues
Expand Down

0 comments on commit c971812

Please sign in to comment.