Add flutter_dependencies
This commit is contained in:
parent
fed5d5fabc
commit
438daea208
|
|
@ -7,6 +7,7 @@
|
||||||
"org_name": "com.flet",
|
"org_name": "com.flet",
|
||||||
"company_name": "Your Company",
|
"company_name": "Your Company",
|
||||||
"copyright": "Copyright (c) 2023 Your Company",
|
"copyright": "Copyright (c) 2023 Your Company",
|
||||||
|
"flutter_dependencies": [],
|
||||||
"sep": "/",
|
"sep": "/",
|
||||||
"kotlin_dir": "{{ cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep }}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}",
|
"kotlin_dir": "{{ cookiecutter.org_name.replace('.', cookiecutter.sep) }}{{ cookiecutter.sep }}{{ cookiecutter.project_name }}{{ cookiecutter.sep }}",
|
||||||
"hide_loading_animation": true,
|
"hide_loading_animation": true,
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,10 @@ import 'package:path/path.dart' as path;
|
||||||
import 'package:serious_python/serious_python.dart';
|
import 'package:serious_python/serious_python.dart';
|
||||||
import 'package:url_strategy/url_strategy.dart';
|
import 'package:url_strategy/url_strategy.dart';
|
||||||
|
|
||||||
|
{% for dep in cookiecutter.flutter_dependencies %}
|
||||||
|
import 'package:{{ dep }}/{{ dep }}.dart' as {{ dep }};
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
const bool isProduction = bool.fromEnvironment('dart.vm.product');
|
const bool isProduction = bool.fromEnvironment('dart.vm.product');
|
||||||
|
|
||||||
const assetPath = "app/app.zip";
|
const assetPath = "app/app.zip";
|
||||||
|
|
@ -19,6 +23,12 @@ final hideLoadingPage =
|
||||||
const outLogFilename = "out.log";
|
const outLogFilename = "out.log";
|
||||||
const errorExitCode = 100;
|
const errorExitCode = 100;
|
||||||
|
|
||||||
|
const createControlFactories = [
|
||||||
|
{% for dep in cookiecutter.flutter_dependencies %}
|
||||||
|
{{ dep }}.createControl,
|
||||||
|
{% endfor %}
|
||||||
|
];
|
||||||
|
|
||||||
const pythonScript = """
|
const pythonScript = """
|
||||||
import certifi, os, runpy, socket, sys, traceback
|
import certifi, os, runpy, socket, sys, traceback
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue