├── .gitignore
├── README.md
├── analysis_options.yaml
├── built_path
├── CHANGELOG.md
├── LICENSE
├── README.md
├── build.yaml
├── example
│ ├── .gitignore
│ ├── .idea
│ │ ├── libraries
│ │ │ ├── Dart_SDK.xml
│ │ │ └── Flutter_for_Android.xml
│ │ ├── modules.xml
│ │ ├── runConfigurations
│ │ │ └── main_dart.xml
│ │ └── workspace.xml
│ ├── .metadata
│ ├── android
│ │ ├── .gitignore
│ │ ├── app
│ │ │ ├── build.gradle
│ │ │ └── src
│ │ │ │ └── main
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── java
│ │ │ │ └── com
│ │ │ │ │ └── example
│ │ │ │ │ └── example
│ │ │ │ │ └── MainActivity.java
│ │ │ │ └── res
│ │ │ │ ├── drawable
│ │ │ │ └── launch_background.xml
│ │ │ │ ├── mipmap-hdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-mdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ ├── mipmap-xxxhdpi
│ │ │ │ └── ic_launcher.png
│ │ │ │ └── values
│ │ │ │ └── styles.xml
│ │ ├── build.gradle
│ │ ├── gradle.properties
│ │ ├── gradle
│ │ │ └── wrapper
│ │ │ │ ├── gradle-wrapper.jar
│ │ │ │ └── gradle-wrapper.properties
│ │ ├── gradlew
│ │ ├── gradlew.bat
│ │ └── settings.gradle
│ ├── build.yaml
│ ├── example.iml
│ ├── example_android.iml
│ ├── ios
│ │ ├── .gitignore
│ │ ├── Flutter
│ │ │ ├── AppFrameworkInfo.plist
│ │ │ ├── Debug.xcconfig
│ │ │ └── Release.xcconfig
│ │ ├── Runner.xcodeproj
│ │ │ ├── project.pbxproj
│ │ │ ├── project.xcworkspace
│ │ │ │ └── contents.xcworkspacedata
│ │ │ └── xcshareddata
│ │ │ │ └── xcschemes
│ │ │ │ └── Runner.xcscheme
│ │ ├── Runner.xcworkspace
│ │ │ └── contents.xcworkspacedata
│ │ └── Runner
│ │ │ ├── AppDelegate.h
│ │ │ ├── AppDelegate.m
│ │ │ ├── Assets.xcassets
│ │ │ ├── AppIcon.appiconset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── Icon-App-1024x1024@1x.png
│ │ │ │ ├── Icon-App-20x20@1x.png
│ │ │ │ ├── Icon-App-20x20@2x.png
│ │ │ │ ├── Icon-App-20x20@3x.png
│ │ │ │ ├── Icon-App-29x29@1x.png
│ │ │ │ ├── Icon-App-29x29@2x.png
│ │ │ │ ├── Icon-App-29x29@3x.png
│ │ │ │ ├── Icon-App-40x40@1x.png
│ │ │ │ ├── Icon-App-40x40@2x.png
│ │ │ │ ├── Icon-App-40x40@3x.png
│ │ │ │ ├── Icon-App-60x60@2x.png
│ │ │ │ ├── Icon-App-60x60@3x.png
│ │ │ │ ├── Icon-App-76x76@1x.png
│ │ │ │ ├── Icon-App-76x76@2x.png
│ │ │ │ └── Icon-App-83.5x83.5@2x.png
│ │ │ └── LaunchImage.imageset
│ │ │ │ ├── Contents.json
│ │ │ │ ├── LaunchImage.png
│ │ │ │ ├── LaunchImage@2x.png
│ │ │ │ ├── LaunchImage@3x.png
│ │ │ │ └── README.md
│ │ │ ├── Base.lproj
│ │ │ ├── LaunchScreen.storyboard
│ │ │ └── Main.storyboard
│ │ │ ├── Info.plist
│ │ │ └── main.m
│ ├── lib
│ │ ├── main.dart
│ │ └── main.svg_path.g.dart
│ └── pubspec.yaml
├── lib
│ ├── builder.dart
│ ├── built_path.dart
│ └── src
│ │ ├── flutter_path_proxy.dart
│ │ └── path_generator.dart
├── pubspec.yaml
└── test
│ └── src
│ ├── simple_example.dart
│ └── simple_example.svg_path.g.dart
└── built_path_annotations
├── CHANGELOG.md
├── LICENSE
├── README.md
├── lib
└── built_path_annotations.dart
└── pubspec.yaml
/.gitignore:
--------------------------------------------------------------------------------
1 | # Files and directories created by pub
2 | .dart_tool/
3 | .packages
4 | .pub/
5 | pubspec.lock
6 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | built_path/README.md
--------------------------------------------------------------------------------
/analysis_options.yaml:
--------------------------------------------------------------------------------
1 | # Specify analysis options.
2 | #
3 | # Until there are meta linter rules, each desired lint must be explicitly enabled.
4 | # See: https://github.com/dart-lang/linter/issues/288
5 | #
6 | # For a list of lints, see: http://dart-lang.github.io/linter/lints/
7 | # See the configuration guide for more
8 | # https://github.com/dart-lang/sdk/tree/master/pkg/analyzer#configuring-the-analyzer
9 | #
10 | # There are four similar analysis options files in the flutter repos:
11 | # - analysis_options.yaml (this file)
12 | # - packages/flutter/lib/analysis_options_user.yaml
13 | # - https://github.com/flutter/plugins/blob/master/analysis_options.yaml
14 | # - https://github.com/flutter/engine/blob/master/analysis_options.yaml
15 | #
16 | # This file contains the analysis options used by Flutter tools, such as IntelliJ,
17 | # Android Studio, and the `flutter analyze` command.
18 | #
19 | # The flutter/plugins repo contains a copy of this file, which should be kept
20 | # in sync with this file.
21 |
22 | analyzer:
23 | language:
24 | enableSuperMixins: true
25 | strong-mode:
26 | implicit-dynamic: false
27 | errors:
28 | # treat missing required parameters as a warning (not a hint)
29 | missing_required_param: warning
30 | # treat missing returns as a warning (not a hint)
31 | missing_return: warning
32 | # allow having TODOs in the code
33 | todo: ignore
34 | unrecognized_error_code: ignore
35 | asset_does_not_exist: ignore
36 | exclude:
37 | # for Travis - don't try to analyze the flutter repo
38 | - 'flutter/**'
39 |
40 |
41 | linter:
42 | rules:
43 | # these rules are documented on and in the same order as
44 | # the Dart Lint rules page to make maintenance easier
45 | # https://github.com/dart-lang/linter/blob/master/example/all.yaml
46 | - always_declare_return_types
47 | - always_put_control_body_on_new_line
48 | # - always_put_required_named_parameters_first # we prefer having parameters in the same order as fields https://github.com/flutter/flutter/issues/10219
49 | - always_require_non_null_named_parameters
50 | - always_specify_types
51 | - annotate_overrides
52 | # - avoid_annotating_with_dynamic # conflicts with always_specify_types
53 | - avoid_as
54 | # - avoid_bool_literals_in_conditional_expressions # not yet tested
55 | # - avoid_catches_without_on_clauses # we do this commonly
56 | # - avoid_catching_errors # we do this commonly
57 | - avoid_classes_with_only_static_members
58 | - avoid_empty_else
59 | - avoid_function_literals_in_foreach_calls
60 | - avoid_init_to_null
61 | - avoid_null_checks_in_equality_operators
62 | # - avoid_positional_boolean_parameters # not yet tested
63 | # - avoid_private_typedef_functions # we prefer having typedef (discussion in https://github.com/flutter/flutter/pull/16356)
64 | - avoid_relative_lib_imports
65 | - avoid_renaming_method_parameters
66 | - avoid_return_types_on_setters
67 | # - avoid_returning_null # we do this commonly
68 | # - avoid_returning_this # https://github.com/dart-lang/linter/issues/842
69 | # - avoid_setters_without_getters # not yet tested
70 | # - avoid_single_cascade_in_expression_statements # not yet tested
71 | - avoid_slow_async_io
72 | # - avoid_types_as_parameter_names # https://github.com/dart-lang/linter/pull/954/files
73 | # - avoid_types_on_closure_parameters # conflicts with always_specify_types
74 | # - avoid_unused_constructor_parameters # https://github.com/dart-lang/linter/pull/847
75 | - await_only_futures
76 | - camel_case_types
77 | - cancel_subscriptions
78 | # - cascade_invocations # not yet tested
79 | # - close_sinks # https://github.com/flutter/flutter/issues/5789
80 | # - comment_references # blocked on https://github.com/dart-lang/dartdoc/issues/1153
81 | # - constant_identifier_names # https://github.com/dart-lang/linter/issues/204
82 | - control_flow_in_finally
83 | - directives_ordering
84 | - empty_catches
85 | - empty_constructor_bodies
86 | - empty_statements
87 | - hash_and_equals
88 | - implementation_imports
89 | # - invariant_booleans # https://github.com/flutter/flutter/issues/5790
90 | - iterable_contains_unrelated_type
91 | # - join_return_with_assignment # not yet tested
92 | - library_names
93 | - library_prefixes
94 | - list_remove_unrelated_type
95 | # - literal_only_boolean_expressions # https://github.com/flutter/flutter/issues/5791
96 | - no_adjacent_strings_in_list
97 | - no_duplicate_case_values
98 | - non_constant_identifier_names
99 | # - omit_local_variable_types # opposite of always_specify_types
100 | # - one_member_abstracts # too many false positives
101 | # - only_throw_errors # https://github.com/flutter/flutter/issues/5792
102 | - overridden_fields
103 | - package_api_docs
104 | - package_names
105 | - package_prefixed_library_names
106 | # - parameter_assignments # we do this commonly
107 | - prefer_adjacent_string_concatenation
108 | - prefer_asserts_in_initializer_lists
109 | - prefer_bool_in_asserts
110 | - prefer_collection_literals
111 | - prefer_conditional_assignment
112 | - prefer_const_constructors
113 | - prefer_const_constructors_in_immutables
114 | - prefer_const_declarations
115 | - prefer_const_literals_to_create_immutables
116 | # - prefer_constructors_over_static_methods # not yet tested
117 | - prefer_contains
118 | # - prefer_equal_for_default_values # not yet tested
119 | # - prefer_expression_function_bodies # conflicts with https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#consider-using--for-short-functions-and-methods
120 | - prefer_final_fields
121 | - prefer_final_locals
122 | - prefer_foreach
123 | # - prefer_function_declarations_over_variables # not yet tested
124 | - prefer_initializing_formals
125 | # - prefer_interpolation_to_compose_strings # not yet tested
126 | - prefer_is_empty
127 | - prefer_is_not_empty
128 | - prefer_single_quotes
129 | - prefer_typing_uninitialized_variables
130 | - recursive_getters
131 | - slash_for_doc_comments
132 | - sort_constructors_first
133 | - sort_unnamed_constructors_first
134 | - super_goes_last
135 | - test_types_in_equals
136 | - throw_in_finally
137 | # - type_annotate_public_apis # subset of always_specify_types
138 | - type_init_formals
139 | # - unawaited_futures # https://github.com/flutter/flutter/issues/5793
140 | - unnecessary_brace_in_string_interps
141 | - unnecessary_getters_setters
142 | # - unnecessary_lambdas # https://github.com/dart-lang/linter/issues/498
143 | - unnecessary_null_aware_assignments
144 | - unnecessary_null_in_if_null_operators
145 | - unnecessary_overrides
146 | - unnecessary_parenthesis
147 | # - unnecessary_statements # not yet tested
148 | - unnecessary_this
149 | - unrelated_type_equality_checks
150 | - use_rethrow_when_possible
151 | # - use_setters_to_change_properties # not yet tested
152 | # - use_string_buffers # https://github.com/dart-lang/linter/pull/664
153 | # - use_to_and_as_if_applicable # has false positives, so we prefer to catch this by code-review
154 | - valid_regexps
--------------------------------------------------------------------------------
/built_path/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # CHANGELOG
2 |
3 | ## 0.1.0
4 |
5 | - First release
6 |
--------------------------------------------------------------------------------
/built_path/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2018 Dan Field
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
--------------------------------------------------------------------------------
/built_path/README.md:
--------------------------------------------------------------------------------
1 | # Built Path
2 |
3 | This library can help Flutter applications pre-compile SVG Path data into
4 | Flutter (`dart:ui`) `Path` objects.
5 |
6 | For example:
7 |
8 | ```dart
9 | import 'package:built_path_annotations/built_path_annotations.dart';
10 |
11 | part 'example.svg_path.g.dart';
12 |
13 | @SvgPath('M10 10 L20 20 Z')
14 | Path get diagonalLine => _$diagonalLine;
15 | ```
16 |
17 | Will generate Dart code like the following:
18 |
19 | ```dart
20 | part of 'example.dart'
21 |
22 | Path __$diagonalLine;
23 | Path get _$diagonalLine => __$diagonalLine ??
24 | (__$diagonalLine = new Path()
25 | ..moveTo(10.0, 10.0)
26 | ..lineTo(20.0, 20.0)
27 | ..close());
28 | ```
29 |
30 | Note that for a Flutter project, you'll have to run
31 | `flutter packages pub run build_runner build`. Follow https://github.com/flutter/flutter/issues/13360,
32 | as this syntax may change in a future version of Flutter.
33 |
34 | Also note that there will be an error reported about `dart:ui` until
35 | https://github.com/dart-lang/build/issues/733 is resolved, but the code should
36 | still get generated.
37 |
38 | The `example/` folder contains a full working example for Flutter, including
39 | the `build.yaml` and generated code.
--------------------------------------------------------------------------------
/built_path/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | builders:
4 | built_path:
5 | generate_for:
6 | # - example/lib/main.dart
7 | - test/src/*_example.dart
8 |
9 | builders:
10 | built_path:
11 | import: "package:built_path/builder.dart"
12 | builder_factories: ["svgPath"]
13 | build_extensions: {".dart": [".g.dart"]}
14 | auto_apply: dependents
15 | build_to: source
16 | applies_builders: ["source_gen|combining_builder"]
17 |
18 |
--------------------------------------------------------------------------------
/built_path/example/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | .dart_tool/
3 |
4 | .packages
5 | .pub/
6 |
7 | build/
8 |
9 | .flutter-plugins
10 |
--------------------------------------------------------------------------------
/built_path/example/.idea/libraries/Dart_SDK.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/built_path/example/.idea/libraries/Flutter_for_Android.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/built_path/example/.idea/modules.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
--------------------------------------------------------------------------------
/built_path/example/.idea/runConfigurations/main_dart.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/built_path/example/.idea/workspace.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/built_path/example/.metadata:
--------------------------------------------------------------------------------
1 | # This file tracks properties of this Flutter project.
2 | # Used by Flutter tool to assess capabilities and perform upgrades etc.
3 | #
4 | # This file should be version controlled and should not be manually edited.
5 |
6 | version:
7 | revision: 12eff1d5da0f3fa67370601e20a6d9641cadcf22
8 | channel: master
9 |
--------------------------------------------------------------------------------
/built_path/example/android/.gitignore:
--------------------------------------------------------------------------------
1 | *.iml
2 | *.class
3 | .gradle
4 | /local.properties
5 | /.idea/workspace.xml
6 | /.idea/libraries
7 | .DS_Store
8 | /build
9 | /captures
10 | GeneratedPluginRegistrant.java
11 |
--------------------------------------------------------------------------------
/built_path/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | def localProperties = new Properties()
2 | def localPropertiesFile = rootProject.file('local.properties')
3 | if (localPropertiesFile.exists()) {
4 | localPropertiesFile.withReader('UTF-8') { reader ->
5 | localProperties.load(reader)
6 | }
7 | }
8 |
9 | def flutterRoot = localProperties.getProperty('flutter.sdk')
10 | if (flutterRoot == null) {
11 | throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
12 | }
13 |
14 | def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
15 | if (flutterVersionCode == null) {
16 | flutterVersionCode = '1'
17 | }
18 |
19 | def flutterVersionName = localProperties.getProperty('flutter.versionName')
20 | if (flutterVersionName == null) {
21 | flutterVersionName = '1.0'
22 | }
23 |
24 | apply plugin: 'com.android.application'
25 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
26 |
27 | android {
28 | compileSdkVersion 27
29 |
30 | lintOptions {
31 | disable 'InvalidPackage'
32 | }
33 |
34 | defaultConfig {
35 | // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
36 | applicationId "com.example.example"
37 | minSdkVersion 16
38 | targetSdkVersion 27
39 | versionCode flutterVersionCode.toInteger()
40 | versionName flutterVersionName
41 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
42 | }
43 |
44 | buildTypes {
45 | release {
46 | // TODO: Add your own signing config for the release build.
47 | // Signing with the debug keys for now, so `flutter run --release` works.
48 | signingConfig signingConfigs.debug
49 | }
50 | }
51 | }
52 |
53 | flutter {
54 | source '../..'
55 | }
56 |
57 | dependencies {
58 | testImplementation 'junit:junit:4.12'
59 | androidTestImplementation 'com.android.support.test:runner:1.0.2'
60 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
61 | }
62 |
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
8 |
9 |
10 |
15 |
19 |
26 |
30 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/java/com/example/example/MainActivity.java:
--------------------------------------------------------------------------------
1 | package com.example.example;
2 |
3 | import android.os.Bundle;
4 | import io.flutter.app.FlutterActivity;
5 | import io.flutter.plugins.GeneratedPluginRegistrant;
6 |
7 | public class MainActivity extends FlutterActivity {
8 | @Override
9 | protected void onCreate(Bundle savedInstanceState) {
10 | super.onCreate(savedInstanceState);
11 | GeneratedPluginRegistrant.registerWith(this);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/drawable/launch_background.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
12 |
13 |
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
--------------------------------------------------------------------------------
/built_path/example/android/app/src/main/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
--------------------------------------------------------------------------------
/built_path/example/android/build.gradle:
--------------------------------------------------------------------------------
1 | buildscript {
2 | repositories {
3 | google()
4 | jcenter()
5 | }
6 |
7 | dependencies {
8 | classpath 'com.android.tools.build:gradle:3.1.2'
9 | }
10 | }
11 |
12 | allprojects {
13 | repositories {
14 | google()
15 | jcenter()
16 | }
17 | }
18 |
19 | rootProject.buildDir = '../build'
20 | subprojects {
21 | project.buildDir = "${rootProject.buildDir}/${project.name}"
22 | }
23 | subprojects {
24 | project.evaluationDependsOn(':app')
25 | }
26 |
27 | task clean(type: Delete) {
28 | delete rootProject.buildDir
29 | }
30 |
--------------------------------------------------------------------------------
/built_path/example/android/gradle.properties:
--------------------------------------------------------------------------------
1 | org.gradle.jvmargs=-Xmx1536M
2 |
--------------------------------------------------------------------------------
/built_path/example/android/gradle/wrapper/gradle-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/android/gradle/wrapper/gradle-wrapper.jar
--------------------------------------------------------------------------------
/built_path/example/android/gradle/wrapper/gradle-wrapper.properties:
--------------------------------------------------------------------------------
1 | #Fri Jun 23 08:50:38 CEST 2017
2 | distributionBase=GRADLE_USER_HOME
3 | distributionPath=wrapper/dists
4 | zipStoreBase=GRADLE_USER_HOME
5 | zipStorePath=wrapper/dists
6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
7 |
--------------------------------------------------------------------------------
/built_path/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | ##############################################################################
4 | ##
5 | ## Gradle start up script for UN*X
6 | ##
7 | ##############################################################################
8 |
9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10 | DEFAULT_JVM_OPTS=""
11 |
12 | APP_NAME="Gradle"
13 | APP_BASE_NAME=`basename "$0"`
14 |
15 | # Use the maximum available, or set MAX_FD != -1 to use that value.
16 | MAX_FD="maximum"
17 |
18 | warn ( ) {
19 | echo "$*"
20 | }
21 |
22 | die ( ) {
23 | echo
24 | echo "$*"
25 | echo
26 | exit 1
27 | }
28 |
29 | # OS specific support (must be 'true' or 'false').
30 | cygwin=false
31 | msys=false
32 | darwin=false
33 | case "`uname`" in
34 | CYGWIN* )
35 | cygwin=true
36 | ;;
37 | Darwin* )
38 | darwin=true
39 | ;;
40 | MINGW* )
41 | msys=true
42 | ;;
43 | esac
44 |
45 | # Attempt to set APP_HOME
46 | # Resolve links: $0 may be a link
47 | PRG="$0"
48 | # Need this for relative symlinks.
49 | while [ -h "$PRG" ] ; do
50 | ls=`ls -ld "$PRG"`
51 | link=`expr "$ls" : '.*-> \(.*\)$'`
52 | if expr "$link" : '/.*' > /dev/null; then
53 | PRG="$link"
54 | else
55 | PRG=`dirname "$PRG"`"/$link"
56 | fi
57 | done
58 | SAVED="`pwd`"
59 | cd "`dirname \"$PRG\"`/" >/dev/null
60 | APP_HOME="`pwd -P`"
61 | cd "$SAVED" >/dev/null
62 |
63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64 |
65 | # Determine the Java command to use to start the JVM.
66 | if [ -n "$JAVA_HOME" ] ; then
67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68 | # IBM's JDK on AIX uses strange locations for the executables
69 | JAVACMD="$JAVA_HOME/jre/sh/java"
70 | else
71 | JAVACMD="$JAVA_HOME/bin/java"
72 | fi
73 | if [ ! -x "$JAVACMD" ] ; then
74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75 |
76 | Please set the JAVA_HOME variable in your environment to match the
77 | location of your Java installation."
78 | fi
79 | else
80 | JAVACMD="java"
81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82 |
83 | Please set the JAVA_HOME variable in your environment to match the
84 | location of your Java installation."
85 | fi
86 |
87 | # Increase the maximum file descriptors if we can.
88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89 | MAX_FD_LIMIT=`ulimit -H -n`
90 | if [ $? -eq 0 ] ; then
91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92 | MAX_FD="$MAX_FD_LIMIT"
93 | fi
94 | ulimit -n $MAX_FD
95 | if [ $? -ne 0 ] ; then
96 | warn "Could not set maximum file descriptor limit: $MAX_FD"
97 | fi
98 | else
99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100 | fi
101 | fi
102 |
103 | # For Darwin, add options to specify how the application appears in the dock
104 | if $darwin; then
105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106 | fi
107 |
108 | # For Cygwin, switch paths to Windows format before running java
109 | if $cygwin ; then
110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112 | JAVACMD=`cygpath --unix "$JAVACMD"`
113 |
114 | # We build the pattern for arguments to be converted via cygpath
115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116 | SEP=""
117 | for dir in $ROOTDIRSRAW ; do
118 | ROOTDIRS="$ROOTDIRS$SEP$dir"
119 | SEP="|"
120 | done
121 | OURCYGPATTERN="(^($ROOTDIRS))"
122 | # Add a user-defined pattern to the cygpath arguments
123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125 | fi
126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
127 | i=0
128 | for arg in "$@" ; do
129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
131 |
132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134 | else
135 | eval `echo args$i`="\"$arg\""
136 | fi
137 | i=$((i+1))
138 | done
139 | case $i in
140 | (0) set -- ;;
141 | (1) set -- "$args0" ;;
142 | (2) set -- "$args0" "$args1" ;;
143 | (3) set -- "$args0" "$args1" "$args2" ;;
144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150 | esac
151 | fi
152 |
153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154 | function splitJvmOpts() {
155 | JVM_OPTS=("$@")
156 | }
157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159 |
160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"
161 |
--------------------------------------------------------------------------------
/built_path/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @if "%DEBUG%" == "" @echo off
2 | @rem ##########################################################################
3 | @rem
4 | @rem Gradle startup script for Windows
5 | @rem
6 | @rem ##########################################################################
7 |
8 | @rem Set local scope for the variables with windows NT shell
9 | if "%OS%"=="Windows_NT" setlocal
10 |
11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12 | set DEFAULT_JVM_OPTS=
13 |
14 | set DIRNAME=%~dp0
15 | if "%DIRNAME%" == "" set DIRNAME=.
16 | set APP_BASE_NAME=%~n0
17 | set APP_HOME=%DIRNAME%
18 |
19 | @rem Find java.exe
20 | if defined JAVA_HOME goto findJavaFromJavaHome
21 |
22 | set JAVA_EXE=java.exe
23 | %JAVA_EXE% -version >NUL 2>&1
24 | if "%ERRORLEVEL%" == "0" goto init
25 |
26 | echo.
27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28 | echo.
29 | echo Please set the JAVA_HOME variable in your environment to match the
30 | echo location of your Java installation.
31 |
32 | goto fail
33 |
34 | :findJavaFromJavaHome
35 | set JAVA_HOME=%JAVA_HOME:"=%
36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37 |
38 | if exist "%JAVA_EXE%" goto init
39 |
40 | echo.
41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42 | echo.
43 | echo Please set the JAVA_HOME variable in your environment to match the
44 | echo location of your Java installation.
45 |
46 | goto fail
47 |
48 | :init
49 | @rem Get command-line arguments, handling Windowz variants
50 |
51 | if not "%OS%" == "Windows_NT" goto win9xME_args
52 | if "%@eval[2+2]" == "4" goto 4NT_args
53 |
54 | :win9xME_args
55 | @rem Slurp the command line arguments.
56 | set CMD_LINE_ARGS=
57 | set _SKIP=2
58 |
59 | :win9xME_args_slurp
60 | if "x%~1" == "x" goto execute
61 |
62 | set CMD_LINE_ARGS=%*
63 | goto execute
64 |
65 | :4NT_args
66 | @rem Get arguments from the 4NT Shell from JP Software
67 | set CMD_LINE_ARGS=%$
68 |
69 | :execute
70 | @rem Setup the command line
71 |
72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73 |
74 | @rem Execute Gradle
75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76 |
77 | :end
78 | @rem End local scope for the variables with windows NT shell
79 | if "%ERRORLEVEL%"=="0" goto mainEnd
80 |
81 | :fail
82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83 | rem the _cmd.exe /c_ return code!
84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85 | exit /b 1
86 |
87 | :mainEnd
88 | if "%OS%"=="Windows_NT" endlocal
89 |
90 | :omega
91 |
--------------------------------------------------------------------------------
/built_path/example/android/settings.gradle:
--------------------------------------------------------------------------------
1 | include ':app'
2 |
3 | def flutterProjectRoot = rootProject.projectDir.parentFile.toPath()
4 |
5 | def plugins = new Properties()
6 | def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins')
7 | if (pluginsFile.exists()) {
8 | pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) }
9 | }
10 |
11 | plugins.each { name, path ->
12 | def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile()
13 | include ":$name"
14 | project(":$name").projectDir = pluginDirectory
15 | }
16 |
--------------------------------------------------------------------------------
/built_path/example/build.yaml:
--------------------------------------------------------------------------------
1 | targets:
2 | $default:
3 | builders:
4 | built_path:
5 | generate_for:
6 | - lib/main.dart
7 |
--------------------------------------------------------------------------------
/built_path/example/example.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/built_path/example/example_android.iml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/built_path/example/ios/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | .vagrant/
3 | .sconsign.dblite
4 | .svn/
5 |
6 | .DS_Store
7 | *.swp
8 | profile
9 |
10 | DerivedData/
11 | build/
12 | GeneratedPluginRegistrant.h
13 | GeneratedPluginRegistrant.m
14 |
15 | .generated/
16 |
17 | *.pbxuser
18 | *.mode1v3
19 | *.mode2v3
20 | *.perspectivev3
21 |
22 | !default.pbxuser
23 | !default.mode1v3
24 | !default.mode2v3
25 | !default.perspectivev3
26 |
27 | xcuserdata
28 |
29 | *.moved-aside
30 |
31 | *.pyc
32 | *sync/
33 | Icon?
34 | .tags*
35 |
36 | /Flutter/app.flx
37 | /Flutter/app.zip
38 | /Flutter/flutter_assets/
39 | /Flutter/App.framework
40 | /Flutter/Flutter.framework
41 | /Flutter/Generated.xcconfig
42 | /ServiceDefinitions.json
43 |
44 | Pods/
45 | .symlinks/
46 |
--------------------------------------------------------------------------------
/built_path/example/ios/Flutter/AppFrameworkInfo.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | App
9 | CFBundleIdentifier
10 | io.flutter.flutter.app
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | App
15 | CFBundlePackageType
16 | FMWK
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | 1.0
23 | MinimumOSVersion
24 | 9.0
25 |
26 |
27 |
--------------------------------------------------------------------------------
/built_path/example/ios/Flutter/Debug.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/built_path/example/ios/Flutter/Release.xcconfig:
--------------------------------------------------------------------------------
1 | #include "Generated.xcconfig"
2 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
11 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
12 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = 9740EEB21CF90195004384FC /* Debug.xcconfig */; };
13 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */; };
14 | 97C146F31CF9000F007C117D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 97C146F21CF9000F007C117D /* main.m */; };
15 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
16 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
17 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
18 | /* End PBXBuildFile section */
19 |
20 | /* Begin PBXCopyFilesBuildPhase section */
21 | 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
22 | isa = PBXCopyFilesBuildPhase;
23 | buildActionMask = 2147483647;
24 | dstPath = "";
25 | dstSubfolderSpec = 10;
26 | files = (
27 | );
28 | name = "Embed Frameworks";
29 | runOnlyForDeploymentPostprocessing = 0;
30 | };
31 | /* End PBXCopyFilesBuildPhase section */
32 |
33 | /* Begin PBXFileReference section */
34 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; };
35 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; };
36 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; };
37 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = ""; };
38 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; };
39 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; };
40 | 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = ""; };
41 | 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = ""; };
42 | 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
43 | 97C146F21CF9000F007C117D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; };
44 | 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
45 | 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
46 | 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
47 | 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
48 | /* End PBXFileReference section */
49 |
50 | /* Begin PBXFrameworksBuildPhase section */
51 | 97C146EB1CF9000F007C117D /* Frameworks */ = {
52 | isa = PBXFrameworksBuildPhase;
53 | buildActionMask = 2147483647;
54 | files = (
55 | );
56 | runOnlyForDeploymentPostprocessing = 0;
57 | };
58 | /* End PBXFrameworksBuildPhase section */
59 |
60 | /* Begin PBXGroup section */
61 | 9740EEB11CF90186004384FC /* Flutter */ = {
62 | isa = PBXGroup;
63 | children = (
64 | 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
65 | 9740EEB21CF90195004384FC /* Debug.xcconfig */,
66 | 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
67 | 9740EEB31CF90195004384FC /* Generated.xcconfig */,
68 | );
69 | name = Flutter;
70 | sourceTree = "";
71 | };
72 | 97C146E51CF9000F007C117D = {
73 | isa = PBXGroup;
74 | children = (
75 | 9740EEB11CF90186004384FC /* Flutter */,
76 | 97C146F01CF9000F007C117D /* Runner */,
77 | 97C146EF1CF9000F007C117D /* Products */,
78 | CF3B75C9A7D2FA2A4C99F110 /* Frameworks */,
79 | );
80 | sourceTree = "";
81 | };
82 | 97C146EF1CF9000F007C117D /* Products */ = {
83 | isa = PBXGroup;
84 | children = (
85 | 97C146EE1CF9000F007C117D /* Runner.app */,
86 | );
87 | name = Products;
88 | sourceTree = "";
89 | };
90 | 97C146F01CF9000F007C117D /* Runner */ = {
91 | isa = PBXGroup;
92 | children = (
93 | 7AFFD8ED1D35381100E5BB4D /* AppDelegate.h */,
94 | 7AFFD8EE1D35381100E5BB4D /* AppDelegate.m */,
95 | 97C146FA1CF9000F007C117D /* Main.storyboard */,
96 | 97C146FD1CF9000F007C117D /* Assets.xcassets */,
97 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
98 | 97C147021CF9000F007C117D /* Info.plist */,
99 | 97C146F11CF9000F007C117D /* Supporting Files */,
100 | 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
101 | 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
102 | );
103 | path = Runner;
104 | sourceTree = "";
105 | };
106 | 97C146F11CF9000F007C117D /* Supporting Files */ = {
107 | isa = PBXGroup;
108 | children = (
109 | 97C146F21CF9000F007C117D /* main.m */,
110 | );
111 | name = "Supporting Files";
112 | sourceTree = "";
113 | };
114 | /* End PBXGroup section */
115 |
116 | /* Begin PBXNativeTarget section */
117 | 97C146ED1CF9000F007C117D /* Runner */ = {
118 | isa = PBXNativeTarget;
119 | buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
120 | buildPhases = (
121 | 9740EEB61CF901F6004384FC /* Run Script */,
122 | 97C146EA1CF9000F007C117D /* Sources */,
123 | 97C146EB1CF9000F007C117D /* Frameworks */,
124 | 97C146EC1CF9000F007C117D /* Resources */,
125 | 9705A1C41CF9048500538489 /* Embed Frameworks */,
126 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
127 | );
128 | buildRules = (
129 | );
130 | dependencies = (
131 | );
132 | name = Runner;
133 | productName = Runner;
134 | productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
135 | productType = "com.apple.product-type.application";
136 | };
137 | /* End PBXNativeTarget section */
138 |
139 | /* Begin PBXProject section */
140 | 97C146E61CF9000F007C117D /* Project object */ = {
141 | isa = PBXProject;
142 | attributes = {
143 | LastUpgradeCheck = 0910;
144 | ORGANIZATIONNAME = "The Chromium Authors";
145 | TargetAttributes = {
146 | 97C146ED1CF9000F007C117D = {
147 | CreatedOnToolsVersion = 7.3.1;
148 | };
149 | };
150 | };
151 | buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
152 | compatibilityVersion = "Xcode 3.2";
153 | developmentRegion = English;
154 | hasScannedForEncodings = 0;
155 | knownRegions = (
156 | en,
157 | Base,
158 | );
159 | mainGroup = 97C146E51CF9000F007C117D;
160 | productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
161 | projectDirPath = "";
162 | projectRoot = "";
163 | targets = (
164 | 97C146ED1CF9000F007C117D /* Runner */,
165 | );
166 | };
167 | /* End PBXProject section */
168 |
169 | /* Begin PBXResourcesBuildPhase section */
170 | 97C146EC1CF9000F007C117D /* Resources */ = {
171 | isa = PBXResourcesBuildPhase;
172 | buildActionMask = 2147483647;
173 | files = (
174 | 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
175 | 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
176 | 9740EEB41CF90195004384FC /* Debug.xcconfig in Resources */,
177 | 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
178 | 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
179 | );
180 | runOnlyForDeploymentPostprocessing = 0;
181 | };
182 | /* End PBXResourcesBuildPhase section */
183 |
184 | /* Begin PBXShellScriptBuildPhase section */
185 | 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
186 | isa = PBXShellScriptBuildPhase;
187 | buildActionMask = 2147483647;
188 | files = (
189 | );
190 | inputPaths = (
191 | );
192 | name = "Thin Binary";
193 | outputPaths = (
194 | );
195 | runOnlyForDeploymentPostprocessing = 0;
196 | shellPath = /bin/sh;
197 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
198 | };
199 | 9740EEB61CF901F6004384FC /* Run Script */ = {
200 | isa = PBXShellScriptBuildPhase;
201 | buildActionMask = 2147483647;
202 | files = (
203 | );
204 | inputPaths = (
205 | );
206 | name = "Run Script";
207 | outputPaths = (
208 | );
209 | runOnlyForDeploymentPostprocessing = 0;
210 | shellPath = /bin/sh;
211 | shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
212 | };
213 | /* End PBXShellScriptBuildPhase section */
214 |
215 | /* Begin PBXSourcesBuildPhase section */
216 | 97C146EA1CF9000F007C117D /* Sources */ = {
217 | isa = PBXSourcesBuildPhase;
218 | buildActionMask = 2147483647;
219 | files = (
220 | 978B8F6F1D3862AE00F588F7 /* AppDelegate.m in Sources */,
221 | 97C146F31CF9000F007C117D /* main.m in Sources */,
222 | 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
223 | );
224 | runOnlyForDeploymentPostprocessing = 0;
225 | };
226 | /* End PBXSourcesBuildPhase section */
227 |
228 | /* Begin PBXVariantGroup section */
229 | 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
230 | isa = PBXVariantGroup;
231 | children = (
232 | 97C146FB1CF9000F007C117D /* Base */,
233 | );
234 | name = Main.storyboard;
235 | sourceTree = "";
236 | };
237 | 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
238 | isa = PBXVariantGroup;
239 | children = (
240 | 97C147001CF9000F007C117D /* Base */,
241 | );
242 | name = LaunchScreen.storyboard;
243 | sourceTree = "";
244 | };
245 | /* End PBXVariantGroup section */
246 |
247 | /* Begin XCBuildConfiguration section */
248 | 97C147031CF9000F007C117D /* Debug */ = {
249 | isa = XCBuildConfiguration;
250 | buildSettings = {
251 | ALWAYS_SEARCH_USER_PATHS = NO;
252 | CLANG_ANALYZER_NONNULL = YES;
253 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
254 | CLANG_CXX_LIBRARY = "libc++";
255 | CLANG_ENABLE_MODULES = YES;
256 | CLANG_ENABLE_OBJC_ARC = YES;
257 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
258 | CLANG_WARN_BOOL_CONVERSION = YES;
259 | CLANG_WARN_COMMA = YES;
260 | CLANG_WARN_CONSTANT_CONVERSION = YES;
261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
262 | CLANG_WARN_EMPTY_BODY = YES;
263 | CLANG_WARN_ENUM_CONVERSION = YES;
264 | CLANG_WARN_INFINITE_RECURSION = YES;
265 | CLANG_WARN_INT_CONVERSION = YES;
266 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
267 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
268 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
269 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
270 | CLANG_WARN_STRICT_PROTOTYPES = YES;
271 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
272 | CLANG_WARN_UNREACHABLE_CODE = YES;
273 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
274 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
275 | COPY_PHASE_STRIP = NO;
276 | DEBUG_INFORMATION_FORMAT = dwarf;
277 | ENABLE_STRICT_OBJC_MSGSEND = YES;
278 | ENABLE_TESTABILITY = YES;
279 | GCC_C_LANGUAGE_STANDARD = gnu99;
280 | GCC_DYNAMIC_NO_PIC = NO;
281 | GCC_NO_COMMON_BLOCKS = YES;
282 | GCC_OPTIMIZATION_LEVEL = 0;
283 | GCC_PREPROCESSOR_DEFINITIONS = (
284 | "DEBUG=1",
285 | "$(inherited)",
286 | );
287 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
288 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
289 | GCC_WARN_UNDECLARED_SELECTOR = YES;
290 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
291 | GCC_WARN_UNUSED_FUNCTION = YES;
292 | GCC_WARN_UNUSED_VARIABLE = YES;
293 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
294 | MTL_ENABLE_DEBUG_INFO = YES;
295 | ONLY_ACTIVE_ARCH = YES;
296 | SDKROOT = iphoneos;
297 | TARGETED_DEVICE_FAMILY = "1,2";
298 | };
299 | name = Debug;
300 | };
301 | 97C147041CF9000F007C117D /* Release */ = {
302 | isa = XCBuildConfiguration;
303 | buildSettings = {
304 | ALWAYS_SEARCH_USER_PATHS = NO;
305 | CLANG_ANALYZER_NONNULL = YES;
306 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
307 | CLANG_CXX_LIBRARY = "libc++";
308 | CLANG_ENABLE_MODULES = YES;
309 | CLANG_ENABLE_OBJC_ARC = YES;
310 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
311 | CLANG_WARN_BOOL_CONVERSION = YES;
312 | CLANG_WARN_COMMA = YES;
313 | CLANG_WARN_CONSTANT_CONVERSION = YES;
314 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
315 | CLANG_WARN_EMPTY_BODY = YES;
316 | CLANG_WARN_ENUM_CONVERSION = YES;
317 | CLANG_WARN_INFINITE_RECURSION = YES;
318 | CLANG_WARN_INT_CONVERSION = YES;
319 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
320 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
321 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
322 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
323 | CLANG_WARN_STRICT_PROTOTYPES = YES;
324 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
325 | CLANG_WARN_UNREACHABLE_CODE = YES;
326 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
327 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
328 | COPY_PHASE_STRIP = NO;
329 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
330 | ENABLE_NS_ASSERTIONS = NO;
331 | ENABLE_STRICT_OBJC_MSGSEND = YES;
332 | GCC_C_LANGUAGE_STANDARD = gnu99;
333 | GCC_NO_COMMON_BLOCKS = YES;
334 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
335 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
336 | GCC_WARN_UNDECLARED_SELECTOR = YES;
337 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
338 | GCC_WARN_UNUSED_FUNCTION = YES;
339 | GCC_WARN_UNUSED_VARIABLE = YES;
340 | IPHONEOS_DEPLOYMENT_TARGET = 9.0;
341 | MTL_ENABLE_DEBUG_INFO = NO;
342 | SDKROOT = iphoneos;
343 | TARGETED_DEVICE_FAMILY = "1,2";
344 | VALIDATE_PRODUCT = YES;
345 | };
346 | name = Release;
347 | };
348 | 97C147061CF9000F007C117D /* Debug */ = {
349 | isa = XCBuildConfiguration;
350 | baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
351 | buildSettings = {
352 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
353 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
354 | ENABLE_BITCODE = NO;
355 | FRAMEWORK_SEARCH_PATHS = (
356 | "$(inherited)",
357 | "$(PROJECT_DIR)/Flutter",
358 | );
359 | INFOPLIST_FILE = Runner/Info.plist;
360 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
361 | LIBRARY_SEARCH_PATHS = (
362 | "$(inherited)",
363 | "$(PROJECT_DIR)/Flutter",
364 | );
365 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
366 | PRODUCT_NAME = "$(TARGET_NAME)";
367 | VERSIONING_SYSTEM = "apple-generic";
368 | };
369 | name = Debug;
370 | };
371 | 97C147071CF9000F007C117D /* Release */ = {
372 | isa = XCBuildConfiguration;
373 | baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
374 | buildSettings = {
375 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
376 | CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
377 | ENABLE_BITCODE = NO;
378 | FRAMEWORK_SEARCH_PATHS = (
379 | "$(inherited)",
380 | "$(PROJECT_DIR)/Flutter",
381 | );
382 | INFOPLIST_FILE = Runner/Info.plist;
383 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
384 | LIBRARY_SEARCH_PATHS = (
385 | "$(inherited)",
386 | "$(PROJECT_DIR)/Flutter",
387 | );
388 | PRODUCT_BUNDLE_IDENTIFIER = com.example.example;
389 | PRODUCT_NAME = "$(TARGET_NAME)";
390 | VERSIONING_SYSTEM = "apple-generic";
391 | };
392 | name = Release;
393 | };
394 | /* End XCBuildConfiguration section */
395 |
396 | /* Begin XCConfigurationList section */
397 | 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
398 | isa = XCConfigurationList;
399 | buildConfigurations = (
400 | 97C147031CF9000F007C117D /* Debug */,
401 | 97C147041CF9000F007C117D /* Release */,
402 | );
403 | defaultConfigurationIsVisible = 0;
404 | defaultConfigurationName = Release;
405 | };
406 | 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
407 | isa = XCConfigurationList;
408 | buildConfigurations = (
409 | 97C147061CF9000F007C117D /* Debug */,
410 | 97C147071CF9000F007C117D /* Release */,
411 | );
412 | defaultConfigurationIsVisible = 0;
413 | defaultConfigurationName = Release;
414 | };
415 | /* End XCConfigurationList section */
416 | };
417 | rootObject = 97C146E61CF9000F007C117D /* Project object */;
418 | }
419 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
31 |
32 |
33 |
34 |
40 |
41 |
42 |
43 |
44 |
45 |
56 |
58 |
64 |
65 |
66 |
67 |
68 |
69 |
75 |
77 |
83 |
84 |
85 |
86 |
88 |
89 |
92 |
93 |
94 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/AppDelegate.h:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 |
4 | @interface AppDelegate : FlutterAppDelegate
5 |
6 | @end
7 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/AppDelegate.m:
--------------------------------------------------------------------------------
1 | #include "AppDelegate.h"
2 | #include "GeneratedPluginRegistrant.h"
3 |
4 | @implementation AppDelegate
5 |
6 | - (BOOL)application:(UIApplication *)application
7 | didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
8 | [GeneratedPluginRegistrant registerWithRegistry:self];
9 | // Override point for customization after application launch.
10 | return [super application:application didFinishLaunchingWithOptions:launchOptions];
11 | }
12 |
13 | @end
14 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "size" : "20x20",
5 | "idiom" : "iphone",
6 | "filename" : "Icon-App-20x20@2x.png",
7 | "scale" : "2x"
8 | },
9 | {
10 | "size" : "20x20",
11 | "idiom" : "iphone",
12 | "filename" : "Icon-App-20x20@3x.png",
13 | "scale" : "3x"
14 | },
15 | {
16 | "size" : "29x29",
17 | "idiom" : "iphone",
18 | "filename" : "Icon-App-29x29@1x.png",
19 | "scale" : "1x"
20 | },
21 | {
22 | "size" : "29x29",
23 | "idiom" : "iphone",
24 | "filename" : "Icon-App-29x29@2x.png",
25 | "scale" : "2x"
26 | },
27 | {
28 | "size" : "29x29",
29 | "idiom" : "iphone",
30 | "filename" : "Icon-App-29x29@3x.png",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "40x40",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-40x40@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "40x40",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-40x40@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "size" : "60x60",
47 | "idiom" : "iphone",
48 | "filename" : "Icon-App-60x60@2x.png",
49 | "scale" : "2x"
50 | },
51 | {
52 | "size" : "60x60",
53 | "idiom" : "iphone",
54 | "filename" : "Icon-App-60x60@3x.png",
55 | "scale" : "3x"
56 | },
57 | {
58 | "size" : "20x20",
59 | "idiom" : "ipad",
60 | "filename" : "Icon-App-20x20@1x.png",
61 | "scale" : "1x"
62 | },
63 | {
64 | "size" : "20x20",
65 | "idiom" : "ipad",
66 | "filename" : "Icon-App-20x20@2x.png",
67 | "scale" : "2x"
68 | },
69 | {
70 | "size" : "29x29",
71 | "idiom" : "ipad",
72 | "filename" : "Icon-App-29x29@1x.png",
73 | "scale" : "1x"
74 | },
75 | {
76 | "size" : "29x29",
77 | "idiom" : "ipad",
78 | "filename" : "Icon-App-29x29@2x.png",
79 | "scale" : "2x"
80 | },
81 | {
82 | "size" : "40x40",
83 | "idiom" : "ipad",
84 | "filename" : "Icon-App-40x40@1x.png",
85 | "scale" : "1x"
86 | },
87 | {
88 | "size" : "40x40",
89 | "idiom" : "ipad",
90 | "filename" : "Icon-App-40x40@2x.png",
91 | "scale" : "2x"
92 | },
93 | {
94 | "size" : "76x76",
95 | "idiom" : "ipad",
96 | "filename" : "Icon-App-76x76@1x.png",
97 | "scale" : "1x"
98 | },
99 | {
100 | "size" : "76x76",
101 | "idiom" : "ipad",
102 | "filename" : "Icon-App-76x76@2x.png",
103 | "scale" : "2x"
104 | },
105 | {
106 | "size" : "83.5x83.5",
107 | "idiom" : "ipad",
108 | "filename" : "Icon-App-83.5x83.5@2x.png",
109 | "scale" : "2x"
110 | },
111 | {
112 | "size" : "1024x1024",
113 | "idiom" : "ios-marketing",
114 | "filename" : "Icon-App-1024x1024@1x.png",
115 | "scale" : "1x"
116 | }
117 | ],
118 | "info" : {
119 | "version" : 1,
120 | "author" : "xcode"
121 | }
122 | }
123 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.png",
6 | "scale" : "1x"
7 | },
8 | {
9 | "idiom" : "universal",
10 | "filename" : "LaunchImage@2x.png",
11 | "scale" : "2x"
12 | },
13 | {
14 | "idiom" : "universal",
15 | "filename" : "LaunchImage@3x.png",
16 | "scale" : "3x"
17 | }
18 | ],
19 | "info" : {
20 | "version" : 1,
21 | "author" : "xcode"
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dnfield/flutter_built_path/19be1acf526690d774448dfbef8e93c60c05ba1e/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md:
--------------------------------------------------------------------------------
1 | # Launch Screen Assets
2 |
3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory.
4 |
5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | example
15 | CFBundlePackageType
16 | APPL
17 | CFBundleShortVersionString
18 | $(FLUTTER_BUILD_NAME)
19 | CFBundleSignature
20 | ????
21 | CFBundleVersion
22 | $(FLUTTER_BUILD_NUMBER)
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UISupportedInterfaceOrientations
30 |
31 | UIInterfaceOrientationPortrait
32 | UIInterfaceOrientationLandscapeLeft
33 | UIInterfaceOrientationLandscapeRight
34 |
35 | UISupportedInterfaceOrientations~ipad
36 |
37 | UIInterfaceOrientationPortrait
38 | UIInterfaceOrientationPortraitUpsideDown
39 | UIInterfaceOrientationLandscapeLeft
40 | UIInterfaceOrientationLandscapeRight
41 |
42 | UIViewControllerBasedStatusBarAppearance
43 |
44 |
45 |
46 |
--------------------------------------------------------------------------------
/built_path/example/ios/Runner/main.m:
--------------------------------------------------------------------------------
1 | #import
2 | #import
3 | #import "AppDelegate.h"
4 |
5 | int main(int argc, char* argv[]) {
6 | @autoreleasepool {
7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/built_path/example/lib/main.dart:
--------------------------------------------------------------------------------
1 | import 'dart:ui' show Path;
2 |
3 | import 'package:built_path_annotations/built_path_annotations.dart';
4 | import 'package:flutter/material.dart';
5 |
6 | part 'main.svg_path.g.dart';
7 |
8 | void main() => runApp(new MyApp());
9 |
10 | class MyApp extends StatelessWidget {
11 | @override
12 | Widget build(BuildContext context) {
13 | return new MaterialApp(
14 | title: 'Flutter Demo',
15 | theme: new ThemeData(
16 | primarySwatch: Colors.blue,
17 | ),
18 | home: new MyHomePage(title: 'Flutter Demo Home Page'),
19 | );
20 | }
21 | }
22 |
23 | class MyHomePage extends StatelessWidget {
24 | const MyHomePage({Key key, this.title}) : super(key: key);
25 | final String title;
26 |
27 | @SvgPath('M20,30 Q40,5 60,30 T100,30')
28 | // @SvgPath('M10 20 C 10 10 20 10 25 20 S 40 30 40 20')
29 | Path get path => _$MyHomePage_path;
30 |
31 | @SvgPath('M 250,75 L 323,301 131,161 369,161 177,301 z',
32 | fillRule: FillRule.evenOdd)
33 | Path get star => _$MyHomePage_star;
34 |
35 | @override
36 | Widget build(BuildContext context) {
37 | return new Scaffold(
38 | appBar: new AppBar(
39 | title: new Text(title),
40 | ),
41 | body: new Column(
42 | children: [
43 | new CustomPaint(painter: new PathPainter(path)),
44 | new CustomPaint(painter: new PathPainter(star, false)),
45 | ],
46 | ),
47 | );
48 | }
49 | }
50 |
51 | class PathPainter extends CustomPainter {
52 | PathPainter(this.path, [this.isStroke = true]);
53 |
54 | final Path path;
55 | final bool isStroke;
56 |
57 | @override
58 | void paint(Canvas canvas, Size size) {
59 | canvas.drawPath(
60 | path,
61 | new Paint()
62 | ..style = isStroke ? PaintingStyle.stroke : PaintingStyle.fill
63 | ..strokeWidth = 4.0);
64 | }
65 |
66 | @override
67 | bool shouldRepaint(PathPainter oldDelegate) => true;
68 |
69 | @override
70 | bool shouldRebuildSemantics(PathPainter oldDelegate) => false;
71 | }
72 |
--------------------------------------------------------------------------------
/built_path/example/lib/main.svg_path.g.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: non_constant_identifier_names
2 | // GENERATED CODE - DO NOT MODIFY BY HAND
3 |
4 | part of 'main.dart';
5 |
6 | // **************************************************************************
7 | // SvgPathGenerator
8 | // **************************************************************************
9 |
10 | Path __$MyHomePage_path;
11 | Path get _$MyHomePage_path =>
12 | __$MyHomePage_path ??
13 | (__$MyHomePage_path = new Path()
14 | ..moveTo(20.0, 30.0)
15 | ..cubicTo(33.33333333333333, 13.333333333333332, 46.666666666666664,
16 | 13.333333333333332, 60.0, 30.0)
17 | ..cubicTo(73.33333333333333, 46.666666666666664, 86.66666666666666,
18 | 46.666666666666664, 100.0, 30.0));
19 | Path __$MyHomePage_star;
20 | Path get _$MyHomePage_star =>
21 | __$MyHomePage_star ??
22 | (__$MyHomePage_star = new Path()
23 | ..moveTo(250.0, 75.0)
24 | ..lineTo(323.0, 301.0)
25 | ..lineTo(131.0, 161.0)
26 | ..lineTo(369.0, 161.0)
27 | ..lineTo(177.0, 301.0)
28 | ..close()
29 | ..fillType = PathFillType.evenOdd);
30 |
--------------------------------------------------------------------------------
/built_path/example/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: example
2 | description: A new Flutter project.
3 |
4 | # The following defines the version and build number for your application.
5 | # A version number is three numbers separated by dots, like 1.2.43
6 | # followed by an optional build number separated by a +.
7 | # Both the version and the builder number may be overridden in flutter
8 | # build by specifying --build-name and --build-number, respectively.
9 | # Read more about versioning at semver.org.
10 | version: 1.0.0+1
11 |
12 | environment:
13 | sdk: '>=2.0.0-dev <3.0.0'
14 |
15 | dependencies:
16 | built_path:
17 | path: '..'
18 | built_path_annotations:
19 | path: '../../built_path_annotations'
20 | flutter:
21 | sdk: flutter
22 |
23 | # The following adds the Cupertino Icons font to your application.
24 | # Use with the CupertinoIcons class for iOS style icons.
25 | cupertino_icons: ^0.1.2
26 |
27 | dev_dependencies:
28 | build_runner: ^2.1.4
29 | flutter_test:
30 | sdk: flutter
31 |
32 |
33 | # For information on the generic Dart part of this file, see the
34 | # following page: https://www.dartlang.org/tools/pub/pubspec
35 |
36 | # The following section is specific to Flutter.
37 | flutter:
38 |
39 | # The following line ensures that the Material Icons font is
40 | # included with your application, so that you can use the icons in
41 | # the material Icons class.
42 | uses-material-design: true
43 |
44 | # To add assets to your application, add an assets section, like this:
45 | # assets:
46 | # - images/a_dot_burr.jpeg
47 | # - images/a_dot_ham.jpeg
48 |
49 | # An image asset can refer to one or more resolution-specific "variants", see
50 | # https://flutter.io/assets-and-images/#resolution-aware.
51 |
52 | # For details regarding adding assets from package dependencies, see
53 | # https://flutter.io/assets-and-images/#from-packages
54 |
55 | # To add custom fonts to your application, add a fonts section here,
56 | # in this "flutter" section. Each entry in this list should have a
57 | # "family" key with the font family name, and a "fonts" key with a
58 | # list giving the asset and other descriptors for the font. For
59 | # example:
60 | # fonts:
61 | # - family: Schyler
62 | # fonts:
63 | # - asset: fonts/Schyler-Regular.ttf
64 | # - asset: fonts/Schyler-Italic.ttf
65 | # style: italic
66 | # - family: Trajan Pro
67 | # fonts:
68 | # - asset: fonts/TrajanPro.ttf
69 | # - asset: fonts/TrajanPro_Bold.ttf
70 | # weight: 700
71 | #
72 | # For details regarding fonts from package dependencies,
73 | # see https://flutter.io/custom-fonts/#from-packages
74 |
--------------------------------------------------------------------------------
/built_path/lib/builder.dart:
--------------------------------------------------------------------------------
1 | library path_parsing.builder;
2 |
3 | import 'package:build/build.dart';
4 |
5 | import 'src/path_generator.dart';
6 |
7 | Builder svgPath(BuilderOptions options) {
8 | return svgPathSharedPartBuilder();
9 | }
10 |
--------------------------------------------------------------------------------
/built_path/lib/built_path.dart:
--------------------------------------------------------------------------------
1 | export 'src/path_generator.dart';
2 |
--------------------------------------------------------------------------------
/built_path/lib/src/flutter_path_proxy.dart:
--------------------------------------------------------------------------------
1 | import 'package:path_parsing/path_parsing.dart';
2 |
3 | class FlutterPathGenProxy extends PathProxy {
4 | FlutterPathGenProxy() {
5 | code = new StringBuffer();
6 | code.write('new Path()');
7 | }
8 |
9 | StringBuffer code;
10 |
11 | @override
12 | void close() {
13 | code.write('..close()');
14 | }
15 |
16 | @override
17 | void cubicTo(
18 | double x1, double y1, double x2, double y2, double x3, double y3) {
19 | code.write('..cubicTo($x1, $y1, $x2, $y2, $x3, $y3)');
20 | }
21 |
22 | @override
23 | void lineTo(double x, double y) {
24 | code.write('..lineTo($x, $y)');
25 | }
26 |
27 | @override
28 | void moveTo(double x, double y) {
29 | code.write('..moveTo($x, $y)');
30 | }
31 |
32 | @override
33 | String toString() {
34 | return code.toString();
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/built_path/lib/src/path_generator.dart:
--------------------------------------------------------------------------------
1 | import 'dart:async';
2 |
3 | import 'package:analyzer/dart/constant/value.dart';
4 | import 'package:analyzer/dart/element/element.dart';
5 | import 'package:build/build.dart';
6 | import 'package:built_path/src/flutter_path_proxy.dart';
7 | import 'package:built_path_annotations/built_path_annotations.dart';
8 | import 'package:path_parsing/path_parsing.dart';
9 | import 'package:source_gen/source_gen.dart';
10 |
11 | Builder svgPathSharedPartBuilder({String formatOutput(String code)}) {
12 | return new PartBuilder(
13 | [new SvgPathGenerator()], '.svg_path.g.dart',
14 | formatOutput: formatOutput,
15 | header: '// ignore_for_file: non_constant_identifier_names\n'
16 | '// GENERATED CODE - DO NOT MODIFY BY HAND\n');
17 | }
18 |
19 | class SvgPathGenerator extends Generator {
20 | final TypeChecker _checker = const TypeChecker.fromRuntime(SvgPath);
21 |
22 | String _getFillRule(int index) {
23 | if (index == 0) {
24 | return '..fillType = PathFillType.nonZero';
25 | } else if (index == 1) {
26 | return '..fillType = PathFillType.evenOdd';
27 | }
28 | throw new StateError('Unhandled FillRule index $index');
29 | }
30 |
31 | void checkField(Element field, StringBuffer buffer, String friendlyName) {
32 | DartObject annotation = _checker.firstAnnotationOf(field);
33 | if (annotation == null && field is FieldElement) {
34 | annotation = _checker.firstAnnotationOf(field.getter);
35 | }
36 | if (annotation != null) {
37 | buffer.writeln('Path __\$$friendlyName;');
38 | buffer.writeln(
39 | 'Path get _\$$friendlyName => __\$$friendlyName ?? (__\$$friendlyName =');
40 | final FlutterPathGenProxy proxy = new FlutterPathGenProxy();
41 |
42 | writeSvgPathDataToPath(
43 | annotation.getField('data').toStringValue(),
44 | proxy,
45 | );
46 | buffer.write(proxy);
47 |
48 | final int fillRuleIndex =
49 | annotation.getField('fillRule')?.getField('index')?.toIntValue();
50 | if (fillRuleIndex != null) {
51 | buffer.write(_getFillRule(fillRuleIndex));
52 | }
53 | buffer.writeln(');');
54 | }
55 | }
56 |
57 | @override
58 | FutureOr generate(LibraryReader library, BuildStep buildStep) async {
59 | final StringBuffer buffer = new StringBuffer();
60 | for (Element el in library.allElements) {
61 | if (el is ClassElement) {
62 | for (FieldElement field in el.fields) {
63 | checkField(field, buffer, '${el.name}_${field.name}');
64 | }
65 | } else {
66 | checkField(el, buffer, el.name);
67 | }
68 | }
69 | return buffer.toString();
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/built_path/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: built_path
2 | version: 0.2.1
3 | description: >-
4 | Process SVG Path data into Flutter Path objects
5 | using build_runner.
6 |
7 | author: Dan Field
8 | homepage: https://github.com/dnfield/flutter_built_path
9 |
10 | environment:
11 | sdk: '>=2.0.0-dev <3.0.0'
12 | # flutter: ">=0.5.1 <2.0.0"
13 |
14 | dependencies:
15 | analyzer: ^2.7.0
16 | build: ^2.1.1
17 | built_path_annotations: ^0.1.0
18 | # built_path_annotations:
19 | # path: ../built_path_annotations
20 | path_parsing: ^1.0.0
21 | source_gen: ^1.1.1
22 | # flutter:
23 | # sdk: flutter
24 |
25 | dev_dependencies:
26 | build_config: ^1.0.0
27 | build_runner: ^2.1.4
28 | build_test: ^2.1.4
29 | test: ">=1.8.0 <2.0.0"
30 |
--------------------------------------------------------------------------------
/built_path/test/src/simple_example.dart:
--------------------------------------------------------------------------------
1 | // stub this out instead of trying to depend on Flutter for this repo
2 | import 'package:built_path_annotations/built_path_annotations.dart';
3 |
4 | part 'simple_example.svg_path.g.dart';
5 |
6 | // stub, we're not referncing dart:ui here
7 | enum PathFillType { nonZero, evenOdd }
8 |
9 | // stub, we're not referencing dart:ui here
10 | class Path {
11 | void lineTo(double x, double y) {}
12 | void moveTo(double x, double y) {}
13 | void cubicTo(
14 | double x, double y, double x2, double y2, double x3, double y3) {}
15 | void close() {}
16 |
17 | PathFillType fillType;
18 | }
19 |
20 | @SvgPath('M 10 10 L 20 20 z')
21 | Path get path => _$path;
22 |
23 | @SvgPath('M 250,75 L 323,301 131,161 369,161 177,301 z',
24 | fillRule: FillRule.evenOdd)
25 | Path get star => _$star;
26 |
27 | class Paths {
28 | @SvgPath('M 0 0 L 20 10 C 10 10 15 15 20 10 z')
29 | Path get anotherPath => _$Paths_anotherPath;
30 | }
31 |
--------------------------------------------------------------------------------
/built_path/test/src/simple_example.svg_path.g.dart:
--------------------------------------------------------------------------------
1 | // ignore_for_file: non_constant_identifier_names
2 | // GENERATED CODE - DO NOT MODIFY BY HAND
3 |
4 | part of 'simple_example.dart';
5 |
6 | // **************************************************************************
7 | // SvgPathGenerator
8 | // **************************************************************************
9 |
10 | Path __$path;
11 | Path get _$path =>
12 | __$path ??
13 | (__$path = new Path()
14 | ..moveTo(10.0, 10.0)
15 | ..lineTo(20.0, 20.0)
16 | ..close());
17 | Path __$star;
18 | Path get _$star =>
19 | __$star ??
20 | (__$star = new Path()
21 | ..moveTo(250.0, 75.0)
22 | ..lineTo(323.0, 301.0)
23 | ..lineTo(131.0, 161.0)
24 | ..lineTo(369.0, 161.0)
25 | ..lineTo(177.0, 301.0)
26 | ..close()
27 | ..fillType = PathFillType.evenOdd);
28 | Path __$Paths_anotherPath;
29 | Path get _$Paths_anotherPath =>
30 | __$Paths_anotherPath ??
31 | (__$Paths_anotherPath = new Path()
32 | ..moveTo(0.0, 0.0)
33 | ..lineTo(20.0, 10.0)
34 | ..cubicTo(10.0, 10.0, 15.0, 15.0, 20.0, 10.0)
35 | ..close());
36 |
--------------------------------------------------------------------------------
/built_path_annotations/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # CHANGELOG
2 |
3 | ## 0.1.0
4 |
5 | - First release
6 |
--------------------------------------------------------------------------------
/built_path_annotations/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2018 Dan Field
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
--------------------------------------------------------------------------------
/built_path_annotations/README.md:
--------------------------------------------------------------------------------
1 | # Built Path Annotations
2 |
3 | Annotations for the built_path package - see that package for more information.
--------------------------------------------------------------------------------
/built_path_annotations/lib/built_path_annotations.dart:
--------------------------------------------------------------------------------
1 | class SvgPath {
2 | const SvgPath(this.data, {this.fillRule});
3 |
4 | /// The SVG Path data string, i.e. the `d` attribute from an SVG `` element.
5 | final String data;
6 |
7 | /// Will control the [PathFillType] for the [Path].
8 | final FillRule? fillRule;
9 | }
10 |
11 | enum FillRule { nonZero, evenOdd }
12 |
--------------------------------------------------------------------------------
/built_path_annotations/pubspec.yaml:
--------------------------------------------------------------------------------
1 | name: built_path_annotations
2 | version: 0.2.0
3 | description: >-
4 | Contains annotations for `package:built_path`.
5 | See that package for more information.
6 |
7 | author: Dan Field
8 | homepage: https://github.com/dnfield/flutter_built_path
9 |
10 | environment:
11 | sdk: '>=2.12.0 <3.0.0'
12 | # flutter: ">=0.5.1 <2.0.0"
13 |
14 | # dependencies:
15 | # flutter:
16 | # sdk: flutter
--------------------------------------------------------------------------------