Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions packages/amplify_core/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,15 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
- --enable-asserts
compilers:
dart2js:
args:
- --define=dart.vm.product=true
- --enable-asserts
dart2wasm:
args:
- --define=dart.vm.product=true
- -enable-asserts
source_gen:combining_builder:
options:
# TODO(equartey): Remove when customAuthWithSrp & customAuthWithoutSrp are supported by CLI
Expand Down
12 changes: 9 additions & 3 deletions packages/analytics/amplify_analytics_pinpoint_dart/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
- --enable-asserts
compilers:
dart2js:
args:
- --define=dart.vm.product=true
- --enable-asserts
dart2wasm:
args:
- --define=dart.vm.product=true
- -enable-asserts
12 changes: 9 additions & 3 deletions packages/api/amplify_api_dart/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
- --enable-asserts
compilers:
dart2js:
args:
- --define=dart.vm.product=true
- --enable-asserts
dart2wasm:
args:
- --define=dart.vm.product=true
- -enable-asserts
5 changes: 5 additions & 0 deletions packages/auth/amplify_auth_cognito_dart/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,10 @@ pubspec.lock
*.js.map
*.js.deps

# WASM outputs
*.mjs
*.wasm
*.wasm.map

doc/api
coverage/
56 changes: 32 additions & 24 deletions packages/auth/amplify_auth_cognito_dart/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ targets:
enabled: true
build_web_compilers:entrypoint:
enabled: false
debug:

compile:
auto_apply_builders: false
builders:
build_web_compilers:dart2js_archive_extractor:
Expand All @@ -17,38 +18,45 @@ targets:
enabled: true
generate_for:
- lib/src/workers/*.debug.dart
options:
compiler: dart2js
dart2js_args:
- --no-minify
dependencies:
- $default
release:
auto_apply_builders: false
builders:
build_web_compilers:dart2js_archive_extractor:
enabled: false
build_web_compilers:entrypoint:
enabled: true
generate_for:
- lib/src/workers/*.release.dart
options:
compiler: dart2js
dart2js_args:
- -O2
- --define=dart.vm.product=true
dev_options:
compilers:
dart2js:
args:
- --no-minify
dart2wasm:
args:
- --no-minify
release_options:
compilers:
dart2js:
args:
- -O2
- --define=dart.vm.product=true
dart2wasm:
args:
- -O2
- --define=dart.vm.product=true
dependencies:
- $default

workers:
auto_apply_builders: false
builders:
worker_bee_builder:worker_copy_builder:
enabled: true
generate_for:
- lib/src/workers/*.debug.dart.js
- lib/src/workers/*.debug.dart.js.map
- lib/src/workers/*.debug.dart2js.js
- lib/src/workers/*.debug.dart2js.js.map
- lib/src/workers/*.release.dart.js
- lib/src/workers/*.release.dart.js.map
- lib/src/workers/*.release.dart2js.js
- lib/src/workers/*.release.dart2js.js.map
- lib/src/workers/*.debug.mjs
- lib/src/workers/*.debug.wasm
- lib/src/workers/*.debug.wasm.map
- lib/src/workers/*.release.mjs
- lib/src/workers/*.release.wasm
- lib/src/workers/*.release.wasm.map
dependencies:
- amplify_auth_cognito_dart:debug
- amplify_auth_cognito_dart:release
- amplify_auth_cognito_dart:compile
9 changes: 7 additions & 2 deletions packages/auth/amplify_auth_cognito_dart/example/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
compilers:
dart2js:
args:
- --define=dart.vm.product=true
dart2wasm:
args:
- --define=dart.vm.product=true
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class ASFWorkerImpl extends ASFWorker {
.map(Uri.encodeComponent)
.join('/');
const relativePath = zDebugMode
? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js';
? 'packages/amplify_auth_cognito_dart/src/workers/workers.dev.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.mins.js';
final testRelativePath = Uri(
scheme: baseUri.scheme,
host: baseUri.host,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class ConfirmDeviceWorkerImpl extends ConfirmDeviceWorker {
.map(Uri.encodeComponent)
.join('/');
const relativePath = zDebugMode
? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js';
? 'packages/amplify_auth_cognito_dart/src/workers/workers.dev.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.mins.js';
final testRelativePath = Uri(
scheme: baseUri.scheme,
host: baseUri.host,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class SrpDevicePasswordVerifierWorkerImpl
.map(Uri.encodeComponent)
.join('/');
const relativePath = zDebugMode
? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js';
? 'packages/amplify_auth_cognito_dart/src/workers/workers.dev.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.mins.js';
final testRelativePath = Uri(
scheme: baseUri.scheme,
host: baseUri.host,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class SrpInitWorkerImpl extends SrpInitWorker {
.map(Uri.encodeComponent)
.join('/');
const relativePath = zDebugMode
? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js';
? 'packages/amplify_auth_cognito_dart/src/workers/workers.dev.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.mins.js';
final testRelativePath = Uri(
scheme: baseUri.scheme,
host: baseUri.host,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class SrpPasswordVerifierWorkerImpl extends SrpPasswordVerifierWorker {
.map(Uri.encodeComponent)
.join('/');
const relativePath = zDebugMode
? 'packages/amplify_auth_cognito_dart/src/workers/workers.debug.dart.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.release.dart.js';
? 'packages/amplify_auth_cognito_dart/src/workers/workers.dev.js'
: 'packages/amplify_auth_cognito_dart/src/workers/workers.mins.js';
final testRelativePath = Uri(
scheme: baseUri.scheme,
host: baseUri.host,
Expand Down
6 changes: 5 additions & 1 deletion packages/auth/amplify_auth_cognito_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,8 @@ dev_dependencies:
flutter:
assets:
- lib/src/workers/workers.min.js
- lib/src/workers/workers.min.js.map
- lib/src/workers/workers.min.dart2js.js
- lib/src/workers/workers.min.dart2js.js.map
- lib/src/workers/workers.min.wasm
- lib/src/workers/workers.min.wasm.map
- lib/src/workers/workers.min.mjs
12 changes: 9 additions & 3 deletions packages/auth/amplify_auth_cognito_test/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
- --enable-asserts
compilers:
dart2js:
args:
- --define=dart.vm.product=true
- --enable-asserts
dart2wasm:
args:
- --define=dart.vm.product=true
- -enable-asserts
12 changes: 9 additions & 3 deletions packages/aws_common/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
- --enable-asserts
compilers:
dart2js:
args:
- --define=dart.vm.product=true
- --enable-asserts
dart2wasm:
args:
- --define=dart.vm.product=true
- -enable-asserts
8 changes: 2 additions & 6 deletions packages/aws_common/lib/src/util/globals.dart
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,5 @@ const bool zProfileMode = bool.fromEnvironment('dart.vm.profile');
/// Whether running in release mode.
const bool zReleaseMode = bool.fromEnvironment('dart.vm.product');

/// Whether running on the Web.
///
/// Since JS does not support integers, an int and a double will be identical
/// when representing the same value. However, this will not be true for all
/// other compilation targets.
const bool zIsWeb = identical(0, 0.0);
/// Whether running on the Webin JavaScript or WebAssembly.
const bool zIsWeb = bool.fromEnvironment('dart.library.js_interop');
12 changes: 9 additions & 3 deletions packages/aws_signature_v4/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
- --enable-asserts
compilers:
dart2js:
args:
- --define=dart.vm.product=true
- --enable-asserts
dart2wasm:
args:
- --define=dart.vm.product=true
- -enable-asserts
9 changes: 7 additions & 2 deletions packages/example_common/example/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
compilers:
dart2js:
args:
- --define=dart.vm.product=true
dart2wasm:
args:
- --define=dart.vm.product=true
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ pubspec.lock
*.js
*.js.map
*.js.deps

# WASM outputs
*.mjs
*.wasm
*.wasm.map
56 changes: 32 additions & 24 deletions packages/secure_storage/amplify_secure_storage_dart/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ targets:
enabled: true
build_web_compilers:entrypoint:
enabled: false
debug:

compile:
auto_apply_builders: false
builders:
build_web_compilers:dart2js_archive_extractor:
Expand All @@ -17,38 +18,45 @@ targets:
enabled: true
generate_for:
- lib/src/worker/*.debug.dart
options:
compiler: dart2js
dart2js_args:
- --no-minify
dependencies:
- $default
release:
auto_apply_builders: false
builders:
build_web_compilers:dart2js_archive_extractor:
enabled: false
build_web_compilers:entrypoint:
enabled: true
generate_for:
- lib/src/worker/*.release.dart
options:
compiler: dart2js
dart2js_args:
- -O2
- --define=dart.vm.product=true
dev_options:
compilers:
dart2js:
args:
- --no-minify
dart2wasm:
args:
- --no-minify
release_options:
compilers:
dart2js:
args:
- -O2
- --define=dart.vm.product=true
dart2wasm:
args:
- -O2
- --define=dart.vm.product=true
dependencies:
- $default

workers:
auto_apply_builders: false
builders:
worker_bee_builder:worker_copy_builder:
enabled: true
generate_for:
- lib/src/worker/*.debug.dart.js
- lib/src/worker/*.debug.dart.js.map
- lib/src/worker/*.debug.dart2js.js
- lib/src/worker/*.debug.dart2js.js.map
- lib/src/worker/*.release.dart.js
- lib/src/worker/*.release.dart.js.map
- lib/src/worker/*.release.dart2js.js
- lib/src/worker/*.release.dart2js.js.map
- lib/src/worker/*.debug.mjs
- lib/src/worker/*.debug.wasm
- lib/src/worker/*.debug.wasm.map
- lib/src/worker/*.release.mjs
- lib/src/worker/*.release.wasm
- lib/src/worker/*.release.wasm.map
dependencies:
- amplify_secure_storage_dart:debug
- amplify_secure_storage_dart:release
- amplify_secure_storage_dart:compile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,10 @@ targets:
builders:
build_web_compilers:entrypoint:
release_options:
dart2js_args:
- --define=dart.vm.product=true
compilers:
dart2js:
args:
- --define=dart.vm.product=true
dart2wasm:
args:
- --define=dart.vm.product=true
Loading
Loading