Overview
Flutter is an open-source UI software development framework by Google. You can use Flutter to develop cross platform applications from a single codebase.
Prerequisites
Before you start the integration, ensure you have the following prerequisites ready:
-
Register your application
with the Capillary apps team by providing the following:Bundle Id
for your iOS appApplicationId
for your Android app- App signature (SHA256) from your Android app signing report
After registering with the Capillary apps team, you will be provided the Account ID, base URL (End point), and SSL public key.
-
Obtain access to the necessary GitHub repositories. You need access to the following repositories:
If you have a registered Capillary email address:
- Raise a JIRA ticket to the ACM team for access to the required GitHub repositories. After gaining access, generate a GitHub Personal Access Token (PAT) with access to all three repositories.
- Rename
hydra_github_cred.env.template
tohydra_github_cred.env
and provide the username and PAT asHYDRA_GITHUB_USER_NAME
andHYDRA_GITHUB_PAT
respectively.Note
Do not add any space after the equal (=) sign and do not add any quotes or double quotes.
If you have a registered Capillary email address:
- The team will provide you with a username and a Personal Access Token (PAT) file named
hydra_github_cred.env
. Save this file to be used later in this integration.Note
The PAT has an expiry date that can be a month or two. Before these credentials expire, our team will provide you with new files. You will need to re-run the setup script once you get the new credentials.
-
Clone the main branch of the flutter-hydra-lib.git repository. Ensure you obtain the following files from the cloned repository:
- setup_local.sh
- setup_cicd.sh
- hydra-config.json.template
- hydra_github_cred.env.template
-
(Optional) Clone the flutter-hydra-lib.git repository. Obtain the example app
hydra-lib-example
to refer while integrating the plugin in your project. -
Get the Account ID, base URL (End point), SSL public key and Remote log level from Firebase Remote Configuration.
For this, you will need to add four parameters in the Firebase console. The names of these parameters must be:- hydra_account_id
- hydra_base_url
- hydra_ssl_public_key
- hydra_remote_log_level
If you prefer to use a different CMS tool, you have the option to pass these values to the Hydra SDK after you fetch them from your chosen CMS
SDK Installation and Initialization
To add Capillary's Flutter SDK to your application, refer to the Installation Guide.
Updated 1 day ago