From 319a357a172cbae82f9b1e148e65411521e3d478 Mon Sep 17 00:00:00 2001 From: Jeff Ward Date: Wed, 28 Jun 2023 14:44:43 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20caveat=20for=20Hybrid=20ap?= =?UTF-8?q?plications?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Applications that add Flutter and the datadog_flutter_plugin with already existing instances of the Datadog SDK for iOS generate build time errors when using two of the options for embedding. This documents that those methods are not supported. refs: #443 --- examples/native-hybrid-app/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/native-hybrid-app/README.md b/examples/native-hybrid-app/README.md index 35eb47603..07d0133a3 100644 --- a/examples/native-hybrid-app/README.md +++ b/examples/native-hybrid-app/README.md @@ -33,6 +33,7 @@ On Android, create a `ComponentPredicate` to check if the Activity is an instanc ### Caveats * The `source` of the data coming from these Hybrid apps is always the Native platform, no matter whether the event was sent from the Native SDK or the Flutter SDK. +* Currently, you can only embed your Flutter app using Cocoapods, documented as "Option A" in [Flutter's documentation](https://docs.flutter.dev/add-to-app/ios/project-setup#option-a---embed-with-cocoapods-and-the-flutter-sdk). Using `.xcframeworks` (Options B and C) will generate compiler errors, especially if you are already using Datadog in your native project. See our [Github Issue](https://github.com/DataDog/dd-sdk-flutter/issues/443) for more details. ## Flutter app is primary - use Datadog as normal