copy_secure_configurations

Copy Google services configuration files to flavor-specific Android and iOS directories.

Updated Jan 18, 2026
One-click install
npx skills add https://github.com/DanhDue/bloc_digital_wallet --skill copy-secure-configurations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: copy_secure_configurations
Source: https://github.com/DanhDue/bloc_digital_wallet/tree/main/.agent/skills/copy_secure_configurations
Command: npx skills add https://github.com/DanhDue/bloc_digital_wallet --skill copy-secure-configurations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the safe transfer of secure configuration files from a protected location (secureFiles) into the Android and iOS project directories, eliminating manual copy mistakes and mismatches between environments.

Core Features & Use Cases

  • Copy Google services configuration files (google-services.json and GoogleService-Info.plist) to the appropriate flavor-specific Android directories and iOS Firebase folder.
  • Support multiple environments (dev, stg, prd) to ensure correct credentials are applied for each build flavor.
  • Provides a simple script-based workflow that can be integrated into project setup or CI pipelines.

Quick Start

Run the script from the project root: .agent/skills/copy_secure_configurations/resources/scripts/copy_secure_files.sh to copy all secure configurations to their platform destinations.

Frequently Asked Questions about copy_secure_configurations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I copy Google services configuration files for multiple Flutter flavors?

Yes, you can automate copying secure configuration files in a CI pipeline by running the provided shell script from the project root. It safely transfers Google services configs from secureFiles to the correct Android and iOS build directories, eliminating manual copy mistakes across environments.

Why do my secure configuration files go missing when switching Flutter build flavors?

Yes, this script handles both Android and iOS platforms simultaneously. It copies google-services.json to the Android flavor directories and GoogleService-Info.plist to the iOS Firebase folder, ensuring correct credentials are applied for each platform's build flavor.

What is the best way to manage Firebase config files across dev, stg, and prd environments?

The best way to manage Firebase config files across dev, stg, and prd environments is using an automated script that reads from a protected secureFiles location. This ensures correct credentials are applied for each build flavor without manual errors.

Do I need a specific project structure to use secure configuration copying for Flutter?

Yes, you need a Flutter project structured with specific flavor directories. The script expects secure configuration files in a secureFiles folder and writes them to android/app/src/<flavor> and ios/Runner/Firebase to support dev, stg, and prd environments.