Skip to content

Commit

Permalink
updated README.md and changes in AppDelegate.swift To run app in ios …
Browse files Browse the repository at this point in the history
…simulator
  • Loading branch information
Raviramnani1 committed Jul 5, 2024
1 parent fcad761 commit 6e34b69
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions wallet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Pylons Wallet

This project is a starting point for a Flutter application.

1) Req .prod_env file and place it in /wallet/env/ dir.
2) Req GoogleService-Info.plist file and place it in /wallet/ios/runner dir.
3) Req Google-services.json file and place it in /wallet/android/app dir.
4) Remove comments in AppDelegate.swift file to play in ios simulator
5) Req to add generated simulator Debug token to be added in firebase console>ios debug.



Expand Down
9 changes: 6 additions & 3 deletions wallet/ios/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ import flutter_downloader
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
// Uncomment while using ios simulator
// let providerFactory = AppCheckDebugProviderFactory()
// AppCheck.setAppCheckProviderFactory(providerFactory)
// Uncomment while using ios simulator

let providerFactory = AppCheckDebugProviderFactory()
AppCheck.setAppCheckProviderFactory(providerFactory)
FirebaseApp.configure()
// Register Flutter plugins
GeneratedPluginRegistrant.register(with: self)
FlutterDownloaderPlugin.setPluginRegistrantCallback(registerPlugins)
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
Expand Down

0 comments on commit 6e34b69

Please sign in to comment.