Skip to content

Commit 01241eb

Browse files
authored
Merge pull request #326 from FlutterFlow/feature/configuration-files-in-libraries
Configuration Files in Libraries
2 parents 0c2c188 + cbbcbd3 commit 01241eb

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

docs/ff-concepts/adding-customization/configuration-files.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Here’s exactly how you do it:
167167
height: 0,
168168
width: '100%'}}>
169169
<iframe
170-
src="https://demo.arcade.software/srZqoYaaoVR1mCE3t8AL?embed&show_copy_link=true"
170+
src="https://demo.arcade.software/wHFUlfRHxQlbzmjR0Bfs?embed&show_copy_link=true"
171171
title=""
172172
style={{
173173
position: 'absolute',
@@ -757,9 +757,15 @@ There's a known limitation where editing the `main.dart` file with Supabase enab
757757

758758
<details>
759759
<summary>
760-
How can I create a Library that needs to edit Info.plist / Entitlements.plist / AndroidManifest.xml
760+
Can I modify the Configuration Files in a Library project?
761761
</summary>
762762
<p>
763-
Right now, changes to the configuration files made in a Library project are not ported over to the projects that import them. This means if you create a Library that needs specific permissions added to these files, the consumers of your Library will need to edit the files in the project that imports the Library. We are hoping to have automatic import of changes to the configuration files available in the next few releases.
763+
Yes, you can. When a Library Project is imported, any configuration file snippets, such as those for `AndroidManifest.xml`, `Info.plist`, or `Entitlements.plist` are automatically merged into the importing project's configuration files.
764+
765+
Additionally, your Library Project can pass values (like API keys) into those snippets using [**Library Values**](../../resources/projects/libraries.md#library-values), making it easy to customize.
766+
767+
![config-values-in-library](imgs/config-values-in-library.avif)
768+
769+
This makes Libraries incredibly powerful and enables easy integration of tools like **PostHog** (analytics), **Sentry** (crash reporting), **CleverTap**, **flutter_local_notifications**, **flutter_nfc_kit**, and many more directly from the Marketplace.
764770
</p>
765771
</details>
Binary file not shown.

0 commit comments

Comments
 (0)