diff --git a/pubspec.lock b/pubspec.lock index 8448fdef..553c6875 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -436,10 +436,10 @@ packages: dependency: "direct main" description: name: path_provider - sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" path_provider_android: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index e75d4985..3d47c225 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -39,7 +39,7 @@ dependencies: url_launcher: ^6.2.5 flutter_launcher_icons: ^0.13.1 bitsdojo_window: ^0.1.5 - path_provider: ^2.1.1 + path_provider: ^2.1.3 shared_preferences: ^2.2.2 get: ^4.6.6 flutter_markdown: ^0.6.22 diff --git a/tool/flutter_distributor b/tool/flutter_distributor deleted file mode 160000 index 4e3f2fe0..00000000 --- a/tool/flutter_distributor +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 4e3f2fe0d152866732b20a2a29e2250b88401980 diff --git a/tool/flutter_distributor/examples/custom_binary_name/pubspec.yaml b/tool/flutter_distributor/examples/custom_binary_name/pubspec.yaml new file mode 100644 index 00000000..ff78cf6d --- /dev/null +++ b/tool/flutter_distributor/examples/custom_binary_name/pubspec.yaml @@ -0,0 +1,90 @@ +name: custom_binary_name +description: A new Flutter project. +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: '>=2.16.0 <4.0.0' + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.2 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^2.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/tool/flutter_distributor/examples/hello_world/pubspec.yaml b/tool/flutter_distributor/examples/hello_world/pubspec.yaml new file mode 100644 index 00000000..3af11a0b --- /dev/null +++ b/tool/flutter_distributor/examples/hello_world/pubspec.yaml @@ -0,0 +1,90 @@ +name: hello_world +description: A new Flutter project. +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +# In Windows, build-name is used as the major, minor, and patch parts +# of the product and file versions while build-number is used as the build suffix. +version: 1.0.0+1 + +environment: + sdk: ">=2.16.0 <4.0.0" + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.2 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^2.0.0 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter packages. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/tool/flutter_distributor/examples/multiple_flavors/pubspec.yaml b/tool/flutter_distributor/examples/multiple_flavors/pubspec.yaml new file mode 100644 index 00000000..953cca1b --- /dev/null +++ b/tool/flutter_distributor/examples/multiple_flavors/pubspec.yaml @@ -0,0 +1,92 @@ +name: multiple_flavors +description: A new Flutter project. + +# The following line prevents the package from being accidentally published to +# pub.dev using `flutter pub publish`. This is preferred for private packages. +publish_to: 'none' # Remove this line if you wish to publish to pub.dev + +# The following defines the version and build number for your application. +# A version number is three numbers separated by dots, like 1.2.43 +# followed by an optional build number separated by a +. +# Both the version and the builder number may be overridden in flutter +# build by specifying --build-name and --build-number, respectively. +# In Android, build-name is used as versionName while build-number used as versionCode. +# Read more about Android versioning at https://developer.android.com/studio/publish/versioning +# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. +# Read more about iOS versioning at +# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html +version: 1.0.0+1 + +environment: + sdk: ">=2.16.0 <4.0.0" + +# Dependencies specify other packages that your package needs in order to work. +# To automatically upgrade your package dependencies to the latest versions +# consider running `flutter pub upgrade --major-versions`. Alternatively, +# dependencies can be manually updated by changing the version numbers below to +# the latest version available on pub.dev. To see which dependencies have newer +# versions available, run `flutter pub outdated`. +dependencies: + flutter: + sdk: flutter + + package_info_plus: ^4.0.1 + + # The following adds the Cupertino Icons font to your application. + # Use with the CupertinoIcons class for iOS style icons. + cupertino_icons: ^1.0.2 + +dev_dependencies: + flutter_test: + sdk: flutter + + # The "flutter_lints" package below contains a set of recommended lints to + # encourage good coding practices. The lint set provided by the package is + # activated in the `analysis_options.yaml` file located at the root of your + # package. See that file for information about deactivating specific lint + # rules and activating additional ones. + flutter_lints: ^1.0.0 + + flutter_flavorizr: ^2.1.3 + +# For information on the generic Dart part of this file, see the +# following page: https://dart.dev/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # The following line ensures that the Material Icons font is + # included with your application, so that you can use the icons in + # the material Icons class. + uses-material-design: true + + # To add assets to your application, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # For details regarding adding assets from package dependencies, see + # https://flutter.dev/assets-and-images/#from-packages + + # To add custom fonts to your application, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts from package dependencies, + # see https://flutter.dev/custom-fonts/#from-packages diff --git a/tool/flutter_distributor/packages/app_package_maker/pubspec.yaml b/tool/flutter_distributor/packages/app_package_maker/pubspec.yaml new file mode 100644 index 00000000..88ce7d65 --- /dev/null +++ b/tool/flutter_distributor/packages/app_package_maker/pubspec.yaml @@ -0,0 +1,20 @@ +name: app_package_maker +description: App package maker +version: 0.3.6 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/app_package_maker +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + mustache_template: ^2.0.0 + pub_semver: ^2.1.0 + pubspec_parse: ^1.1.0 + shell_executor: + path: ../shell_executor + yaml: ^3.1.0 + +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/packages/app_package_parser/pubspec.yaml b/tool/flutter_distributor/packages/app_package_parser/pubspec.yaml new file mode 100644 index 00000000..dbda6998 --- /dev/null +++ b/tool/flutter_distributor/packages/app_package_parser/pubspec.yaml @@ -0,0 +1,12 @@ +name: app_package_parser +description: App package parser +version: 0.2.4 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/app_package_parser +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/packages/app_package_publisher/pubspec.yaml b/tool/flutter_distributor/packages/app_package_publisher/pubspec.yaml new file mode 100644 index 00000000..67151e18 --- /dev/null +++ b/tool/flutter_distributor/packages/app_package_publisher/pubspec.yaml @@ -0,0 +1,17 @@ +name: app_package_publisher +description: App package publisher +version: 0.3.6 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/app_package_publisher +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + pubspec_parse: ^1.1.0 + shell_executor: + path: ../shell_executor + +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/packages/flutter_app_builder/pubspec.yaml b/tool/flutter_distributor/packages/flutter_app_builder/pubspec.yaml new file mode 100644 index 00000000..2f1ba2d9 --- /dev/null +++ b/tool/flutter_distributor/packages/flutter_app_builder/pubspec.yaml @@ -0,0 +1,22 @@ +name: flutter_app_builder +description: Build your Flutter app via Dart. +version: 0.3.7 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/flutter_app_builder +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + glob: ^2.1.1 + path: ^1.8.1 + pub_semver: ^2.1.0 + pubspec_parse: ^1.1.0 + recase: ^4.1.0 + shell_executor: + path: ../shell_executor + +dev_dependencies: + dependency_validator: ^3.0.0 + test: ^1.23.1 diff --git a/tool/flutter_distributor/packages/flutter_app_packager/pubspec.yaml b/tool/flutter_distributor/packages/flutter_app_packager/pubspec.yaml new file mode 100644 index 00000000..95cdec21 --- /dev/null +++ b/tool/flutter_distributor/packages/flutter_app_packager/pubspec.yaml @@ -0,0 +1,22 @@ +name: flutter_app_packager +description: Package your Flutter app into OS-specific bundles (.dmg, .exe, etc.) via Dart or the command line. +version: 0.3.7 +homepage: https://github.com/leanflutter/flutter_distributor +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + app_package_maker: + path: ../app_package_maker + archive: ^3.4.10 + io: ^1.0.3 + liquid_engine: ^0.2.2 + msix: ^3.16.6 + path: ^1.8.1 + shell_executor: + path: ../shell_executor + +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/packages/flutter_app_publisher/pubspec.yaml b/tool/flutter_distributor/packages/flutter_app_publisher/pubspec.yaml new file mode 100644 index 00000000..b5e3212a --- /dev/null +++ b/tool/flutter_distributor/packages/flutter_app_publisher/pubspec.yaml @@ -0,0 +1,23 @@ +name: flutter_app_publisher +description: Flutter app publisher +version: 0.3.6 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/flutter_app_publisher +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + app_package_publisher: + path: ../app_package_publisher + dio: ^5.3.4 + googleapis: ^9.1.0 + googleapis_auth: ^1.3.1 + parse_app_package: + path: ../parse_app_package + qiniu_sdk_base: ^0.5.0 + shell_executor: + path: ../shell_executor +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/packages/flutter_distributor/pubspec.yaml b/tool/flutter_distributor/packages/flutter_distributor/pubspec.yaml new file mode 100644 index 00000000..4f31f613 --- /dev/null +++ b/tool/flutter_distributor/packages/flutter_distributor/pubspec.yaml @@ -0,0 +1,45 @@ +name: flutter_distributor +description: A complete tool for packaging and publishing your Flutter apps. +version: 0.3.7 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/flutter_distributor +issue_tracker: https://github.com/leanflutter/flutter_distributor/issues +publish_to: none + +platforms: + linux: + macos: + windows: + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + ansicolor: ^2.0.1 + app_package_maker: + path: ../app_package_maker + app_package_publisher: + path: ../app_package_publisher + args: ^2.2.0 + dio: ^5.3.4 + flutter_app_builder: + path: ../flutter_app_builder + flutter_app_packager: + path: ../flutter_app_packager + flutter_app_publisher: + path: ../flutter_app_publisher + logging: ^1.0.2 + path: ^1.8.1 + pubspec_parse: ^1.1.0 + shell_executor: + path: ../shell_executor + shell_uikit: + path: ../shell_uikit + yaml: ^3.1.0 + +dev_dependencies: + dependency_validator: ^3.0.0 + test: ^1.23.1 + +executables: + flutter_distributor: main diff --git a/tool/flutter_distributor/packages/parse_app_package/pubspec.yaml b/tool/flutter_distributor/packages/parse_app_package/pubspec.yaml new file mode 100644 index 00000000..6fc397de --- /dev/null +++ b/tool/flutter_distributor/packages/parse_app_package/pubspec.yaml @@ -0,0 +1,24 @@ +name: parse_app_package +description: Parse app package +version: 0.3.6 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/parse_app_package +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dependencies: + app_package_parser: + path: ../app_package_parser + archive: ^3.4.10 + args: ^2.2.0 + shell_executor: + path: ../shell_executor + xml: ^6.3.0 + +executables: + parse_app_package: main + +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/packages/shell_executor/pubspec.yaml b/tool/flutter_distributor/packages/shell_executor/pubspec.yaml new file mode 100644 index 00000000..40d67511 --- /dev/null +++ b/tool/flutter_distributor/packages/shell_executor/pubspec.yaml @@ -0,0 +1,13 @@ +name: shell_executor +description: A simple shell commands executor. +version: 0.1.5 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/shell_executor +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dev_dependencies: + dependency_validator: ^3.0.0 + test: ^1.23.1 diff --git a/tool/flutter_distributor/packages/shell_uikit/pubspec.yaml b/tool/flutter_distributor/packages/shell_uikit/pubspec.yaml new file mode 100644 index 00000000..5cb8f0d8 --- /dev/null +++ b/tool/flutter_distributor/packages/shell_uikit/pubspec.yaml @@ -0,0 +1,12 @@ +name: shell_uikit +description: A simple shell ui kit. +version: 0.1.1 +homepage: https://distributor.leanflutter.org +repository: https://github.com/leanflutter/flutter_distributor/tree/main/packages/shell_uikit +publish_to: none + +environment: + sdk: ">=2.16.0 <4.0.0" + +dev_dependencies: + dependency_validator: ^3.0.0 diff --git a/tool/flutter_distributor/pubspec.yaml b/tool/flutter_distributor/pubspec.yaml new file mode 100644 index 00000000..1fe58718 --- /dev/null +++ b/tool/flutter_distributor/pubspec.yaml @@ -0,0 +1,9 @@ +name: flutter_distributor_workspace +publish_to: "none" + +environment: + sdk: ">=2.16.0 <4.0.0" + +dev_dependencies: + flutter_lints: ^2.0.0 + melos: ^3.1.0