Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemilla committed May 25, 2023
1 parent 24c13e9 commit 1677b5a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
21 changes: 14 additions & 7 deletions example/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,18 @@ import courier_flutter

@UIApplicationMain
@objc class AppDelegate: CourierFlutterDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
GeneratedPluginRegistrant.register(with: self)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}

override func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
super.application(application, didFailToRegisterForRemoteNotificationsWithError: error)
}

override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
super.application(application, didRegisterForRemoteNotificationsWithDeviceToken: deviceToken)
}

}
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.3"
version: "1.0.4"
cupertino_icons:
dependency: "direct main"
description:
Expand Down
4 changes: 2 additions & 2 deletions ios/Classes/CourierFlutterDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ open class CourierFlutterDelegate: FlutterAppDelegate {

// MARK: Token Management

public override func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
open override func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) {
Courier.log("Unable to register for remote notifications: \(error.localizedDescription)")
}

public override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
open override func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) {
Task {
do {
try await Courier.shared.setAPNSToken(deviceToken)
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: The best way to add push notifications to your Flutter app!
version: 1.0.4
version: 1.0.5
homepage: https://courier.com

environment:
Expand Down
2 changes: 1 addition & 1 deletion test/courier_flutter_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class MockCourierFlutterCorePlatform
String? _accessToken;
String? _apnsToken;
String? _fcmToken;
bool _isDebugging = false;
final bool _isDebugging = false;

@override
Future<bool> isDebugging(bool isDebugging) {
Expand Down

0 comments on commit 1677b5a

Please sign in to comment.