Configure Flutter Client
Now we will proceed to configure and run the application in Android Studio and Xcode.
To configure the project in Android Studio please make sure to follow the below listed steps :
- Open Android Studio and in the project created earlier, run the command flutter pub get to install the required dependencies for the application.
- Navigate to the assets directory(/src/assets) of your Android app module and add the android configuration file you downloaded from the Catalyst console here.
Based on the environment you are working on currently the configuration files would be named as :
Development: app_configuration_development_properties Production: app_configuration_production_properties
To configure the iOS project in Xcode please make sure to follow the below listed steps :
- Open Xcode and in the project created earlier, run the command pod install to install the required dependencies for the application.
- Navigate to Targets->Runner in your iOS project and add the iOS configuration file you downloaded from the Catalyst console here.
Based on the environment you are working on currently the configuration files would be named as :
Development: AppConfigurationDevelopment.plist Production: AppConfigurationProduction.plist
Navigate to catalyst_paramters.env file and provide the Catalyst function URLs for both /makeCall and /getLogs routes in the appropriate variables as shown below.
copyCALL_INITIATION_URL = <Catalyst Function URL which initiates the twilio call> GET_LOGS_URL = <Catalyst Function URL which fetches the call logs from the Call Log table>.
Last Updated 2024-04-05 23:41:34 +0530 +0530