Skip to content

Commit

Permalink
Adjustment in the script for web build
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoSMarques committed Dec 14, 2024
1 parent 11872a1 commit b850986
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_branch_sdk/flutter_branch_sdk.dart';

Expand Down Expand Up @@ -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());
}
2 changes: 1 addition & 1 deletion tool/build-web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
flutter build web --wasm --source-maps

1 comment on commit b850986

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.