diff --git a/example/lib/main.dart b/example/lib/main.dart index bb2fa4a..f730ed6 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -1,3 +1,4 @@ +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_branch_sdk/flutter_branch_sdk.dart'; @@ -25,7 +26,9 @@ void main() async { enableLogging: true, disableTracking: false, branchAttributionLevel: BranchAttributionLevel.NONE); - FlutterBranchSdk.setConsumerProtectionAttributionLevel( - BranchAttributionLevel.FULL); + if (!kIsWeb) { + FlutterBranchSdk.setConsumerProtectionAttributionLevel( + BranchAttributionLevel.FULL); + } runApp(const MyApp()); } diff --git a/tool/build-web.sh b/tool/build-web.sh index 96d3e50..f0d7d87 100644 --- a/tool/build-web.sh +++ b/tool/build-web.sh @@ -8,4 +8,4 @@ flutter pub get #flutter build web --source-maps #flutter build web --profile --source-maps --dart-define=Dart2jsOptimization=O0 #flutter build web -flutter build web --wasm \ No newline at end of file +flutter build web --wasm --source-maps \ No newline at end of file