MacOS implementation
Closed this issue · 1 comments
SergeShkurko commented
Checklist
- I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Describe the problem you'd like to have solved
App crushed when i run it on macOS
Describe the ideal solution
Auth0 cocoapods package supports macOS platform. Will need only expose it availability
Alternatives and current workarounds
No response
Additional context
I made simple implementation. But i did't reuse code. I did copy some ios code to macos folder and made small fixes for availability to work
in next time will need compose ios / macos in one folder & will use conditions in swift / objc like this:
#if os(iOS)
import Flutter
import UIKit
#elseif os(macOS)
import Cocoa
import FlutterMacOS
#endif
import CoreGraphics
SergeShkurko:feature/macos_support
# set `platform :osx, '11.0'` here `macos/Podfile`
# setup build target version to `11.0` anywhere in projec. Will need:
# edit `xcode->Project Runner->Build Settings-> MACOSX_DEPLOYMENT_TARGET==11.0`
# then `xcode->Targets Runner->Build Settings-> MACOSX_DEPLOYMENT_TARGET==11.0`
# add to pubspec.yaml
dependency_overrides:
auth0_flutter:
git:
url: https://github.com/SergeShkurko/auth0-flutter.git
ref: feature/macos_support
path: auth0_flutter
Widcket commented
Hi @SergeShkurko, thanks for raising this.
We already have an open feature request for this: #173, so I'll go ahead and close this one.