Skip to content

Commit

Permalink
🚀 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemilla committed Aug 16, 2024
1 parent cb22e33 commit 9598a6f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 10 deletions.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
path: ".."
relative: true
source: path
version: "3.1.0"
version: "3.1.1"
crypto:
dependency: transitive
description:
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: Demonstrates how to use the courier_flutter plugin.
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev

version: 1.0.0+11
version: 1.0.0+12

environment:
sdk: '>=2.18.1 <3.0.0'
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/CourierClientMethodHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation
import Courier_iOS

internal class CourierClientMethodHandler: NSObject, FlutterPlugin {
internal class CourierClientMethodHandler: CourierFlutterMethodHandler, FlutterPlugin {

static func getChannel(with registrar: FlutterPluginRegistrar) -> FlutterMethodChannel {
return FlutterMethodChannel(name: CourierFlutterChannel.client.rawValue, binaryMessenger: registrar.messenger())
Expand Down
21 changes: 21 additions & 0 deletions ios/Classes/CourierFlutterMethodHandler.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// CourierFlutterMethodHandler.swift
// courier_flutter
//
// Created by Michael Miller on 8/16/24.
//

import Courier_iOS

public class CourierFlutterMethodHandler: NSObject {

override init() {
super.init()

// Set the flutter ios user agent
// This ensures all the requests are tagged with this agent
Courier.agent = CourierAgent.flutter_ios

}

}
5 changes: 0 additions & 5 deletions ios/Classes/CourierPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import Courier_iOS

public class CourierPlugin: NSObject, FlutterPlugin {

public override init() {
super.init()
Courier.agent = CourierAgent.flutter_ios
}

public static func register(with registrar: FlutterPluginRegistrar) {
CourierSharedMethodHandler.register(with: registrar)
CourierClientMethodHandler.register(with: registrar)
Expand Down
2 changes: 1 addition & 1 deletion ios/Classes/CourierSharedMethodHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import Courier_iOS

internal class CourierSharedMethodHandler: NSObject, FlutterPlugin {
internal class CourierSharedMethodHandler: CourierFlutterMethodHandler, FlutterPlugin {

static func getChannel(with registrar: FlutterPluginRegistrar) -> FlutterMethodChannel {
return FlutterMethodChannel(name: CourierFlutterChannel.shared.rawValue, binaryMessenger: registrar.messenger())
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: courier_flutter
description: Inbox, Push Notifications and Preferences for Flutter
version: 3.1.1
version: 3.1.2
homepage: https://courier.com

environment:
Expand Down

0 comments on commit 9598a6f

Please sign in to comment.