Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 'Future' is from 'dart:async'. #29

Open
Kiruel opened this issue Mar 7, 2025 · 1 comment
Open

[BUG] 'Future' is from 'dart:async'. #29

Kiruel opened this issue Mar 7, 2025 · 1 comment

Comments

@Kiruel
Copy link

Kiruel commented Mar 7, 2025

Hello,

After update to 7.2.3 got this problem:

 /Users/runner/.pub-cache/hosted/pub.dev/infobip_mobilemessaging-7.2.3/ios/Classes/Configuration.swift:121:42: warning: 'archivedData(withRootObject:)' was deprecated in iOS 12.0: Use +archivedDataWithRootObject:requiringSecureCoding:error: instead
            let data: Data = NSKeyedArchiver.archivedData(withRootObject: rawConfig)
                                             ^
    /Users/runner/.pub-cache/hosted/pub.dev/infobip_mobilemessaging-7.2.3/ios/Classes/Configuration.swift:130:34: warning: 'unarchiveObject(with:)' was deprecated in iOS 12.0: Use +unarchivedObjectOfClass:fromData:error: instead
            return NSKeyedUnarchiver.unarchiveObject(with: data) as? [String : AnyObject]
                                     ^
    warning: Flutter archive not built in Release mode. Ensure FLUTTER_BUILD_MODE is set to release or run "flutter build ios --release", then re-run Archive from Xcode.error: lib/data/source/infobip_sdk/infobip_sdk_manager.dart:19:30: Error: A value of type 'void' can't be returned from a function with return type 'Future<void>'.
     - 'Future' is from 'dart:async'.
          InfobipMobilemessaging.on(
@alboldy-ib
Copy link
Contributor

Hello there,

Version 7.2.3 removed some unused Futures, in exact for .on() method, I recommend checking your infobip_sdk_manager wrapper.

As for the archivedData warning, it is not yet in priority.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants