Skip to content
Closed
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
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ unlinked_spec.ds
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Linux related
**/linux/flutter/ephemeral/

# Windows related
**/windows/flutter/ephemeral/

# macOS related
**/macos/Flutter/ephemeral/

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
Expand Down
4 changes: 4 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
# "DIFFERENT FROM FLUTTER/FLUTTER" below.

analyzer:
exclude:
- "packages/**/linux/flutter/ephemeral/**"
- "packages/**/windows/flutter/ephemeral/**"
- "packages/**/macos/Flutter/ephemeral/**"
language:
strict-casts: true
strict-raw-types: true
Expand Down
Binary file added assets/logos/flutter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions ci/allowed_custom_analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- animation_metadata
- diagram_capture
- diagram_generator
- diagram_viewer
- diagrams
9 changes: 8 additions & 1 deletion ci/check
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,12 @@ fi

for check in "${CHECKS[@]}"; do
echo "Running $check"
dart pub global run flutter_plugin_tools "$check" --run-on-changed-packages
EXTRA_ARGS=""
if [[ "$check" == "analyze" ]]; then
# Remove ephemeral directories that may contain extra analysis_options.yaml files
# symlinked by plugins, which causes flutter_plugin_tools to fail.
find . -name "ephemeral" -type d -prune -exec rm -rf {} +
EXTRA_ARGS="--custom-analysis=ci/allowed_custom_analysis.yaml"
fi
dart pub global run flutter_plugin_tools "$check" --run-on-changed-packages $EXTRA_ARGS
done
6 changes: 4 additions & 2 deletions packages/diagram_capture/lib/diagram_capture.dart
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,10 @@ typedef DiagramKeyframe = void Function(Duration duration);

/// A callback given to drawAnimatedDiagramToFiles that is called for each
/// frame.
typedef DiagramGestureCallback =
void Function(DiagramController diagram, Duration now);
typedef DiagramGestureCallback = void Function(
DiagramController diagram,
Duration now,
);

/// A controller for creating diagrams generated by using Flutter widgets.
///
Expand Down
6 changes: 3 additions & 3 deletions packages/diagram_capture/test/diagram_capture_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ void main() {
expect(outputFile.lengthSync(), greaterThan(0));

Map<String, dynamic> loadMetadata(File metadataFile) {
final Map<String, dynamic> metadata =
json.decode(metadataFile.readAsStringSync())
as Map<String, dynamic>;
final Map<String, dynamic> metadata = json.decode(
metadataFile.readAsStringSync(),
) as Map<String, dynamic>;
final String baseDir = path.dirname(metadataFile.absolute.path);
final List<File> frameFiles =
(metadata['frame_files']! as List<dynamic>)
Expand Down
9 changes: 9 additions & 0 deletions packages/diagram_viewer/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,15 @@ build/
**/ios/ServiceDefinitions.json
**/ios/Runner/GeneratedPluginRegistrant.*

# Linux related
**/linux/flutter/ephemeral/

# Windows related
**/windows/flutter/ephemeral/

# macOS related
**/macos/Flutter/ephemeral/

# Exceptions to above rules.
!**/ios/**/default.mode1v3
!**/ios/**/default.mode2v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
jni
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import FlutterMacOS
import Foundation

import path_provider_foundation
import shared_preferences_foundation

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
SharedPreferencesPlugin.register(with: registry.registrar(forPlugin: "SharedPreferencesPlugin"))
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
)

list(APPEND FLUTTER_FFI_PLUGIN_LIST
jni
)

set(PLUGIN_BUNDLED_LIBRARIES)
Expand Down
Loading