Template cleanup
This commit is contained in:
parent
81d6931fa7
commit
fcfb51b0f3
|
|
@ -1,16 +1,11 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<!-- {% for k, v in cookiecutter.options.android_permissions.items() %} {% if v == True %}-->
|
||||
<!-- flet: permission {% for k, v in cookiecutter.options.android_permissions.items() %} {% if v == True %} -->
|
||||
<uses-permission android:name="{{ k }}" />
|
||||
<!-- {% endif %} {% endfor %} -->
|
||||
<!-- flet: enf of permission {% endif %} {% endfor %} -->
|
||||
|
||||
<!-- {% for k, v in cookiecutter.options.android_features.items() %} -->
|
||||
<uses-feature android:name="{{ k }}"
|
||||
android:required="{% if v == True %}true{% else %}false{% endif %}" />
|
||||
<!-- {% endfor %} -->
|
||||
|
||||
<!-- Google TV -->
|
||||
<uses-feature android:name="android.software.leanback" android:required="false" />
|
||||
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
|
||||
<!-- flet: feature {% for k, v in cookiecutter.options.android_features.items() %} -->
|
||||
<uses-feature android:name="{{ k }}" android:required="{% if v == True %}true{% else %}false{% endif %}" />
|
||||
<!-- flet: end of feature {% endfor %} -->
|
||||
|
||||
<application
|
||||
android:label="{{ cookiecutter.product_name }}"
|
||||
|
|
@ -41,7 +36,7 @@
|
|||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> <!-- Google TV -->
|
||||
</intent-filter>
|
||||
<!-- {% if cookiecutter.options.deep_linking_url %} -->
|
||||
<!-- flet: deep linking {% if cookiecutter.options.deep_linking_url %} -->
|
||||
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
|
@ -50,7 +45,7 @@
|
|||
<data android:scheme="{{ cookiecutter.options.deep_linking_url.scheme }}"
|
||||
android:host="{{ cookiecutter.options.deep_linking_url.netloc }}" />
|
||||
</intent-filter>
|
||||
<!-- {% endif %} -->
|
||||
<!-- flet: end of deep linking {% endif %} -->
|
||||
</activity>
|
||||
<!-- Don't delete the meta-data below.
|
||||
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
|
||||
|
|
|
|||
|
|
@ -50,14 +50,31 @@
|
|||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true />
|
||||
</dict>
|
||||
<!-- {% for k, v in cookiecutter.options.info_plist.items() %} -->
|
||||
<key>{{ k }}</key>
|
||||
<!-- {% if v == True %} -->
|
||||
<!-- flet: deep linking {% if cookiecutter.options.deep_linking_url %} -->
|
||||
<key>FlutterDeepLinkingEnabled</key>
|
||||
<true />
|
||||
<!-- {% elif v == False %} -->
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Editor</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>{{ cookiecutter.options.deep_linking_url.netloc }}</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>{{ cookiecutter.options.deep_linking_url.scheme }}</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<!-- flet: end of deep linking {% endif %} -->
|
||||
<!-- flet: prop {% for k, v in cookiecutter.options.info_plist.items() %} -->
|
||||
<key>{{ k }}</key>
|
||||
<!-- flet: True {% if v == True %} -->
|
||||
<true />
|
||||
<!-- flet: False {% elif v == False %} -->
|
||||
<false />
|
||||
<!-- {% else %} -->
|
||||
<!-- flet: string value {% else %} -->
|
||||
<string>{{ v }}</string>
|
||||
<!-- {% endif %} {% endfor %} -->
|
||||
<!-- flet: end of prop {% endif %} {% endfor %} -->
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -2,12 +2,12 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!-- {% for k, v in cookiecutter.options.macos_entitlements.items() %} -->
|
||||
<!-- flet: entitlement {% for k, v in cookiecutter.options.macos_entitlements.items() %} -->
|
||||
<key>{{ k }}</key>
|
||||
<!-- {% if v == True %} -->
|
||||
<!-- flet: True {% if v == True %} -->
|
||||
<true />
|
||||
<!-- {% elif v == False %} -->
|
||||
<!-- flet: False {% elif v == False %} -->
|
||||
<false />
|
||||
<!-- {% endif %} {% endfor %} -->
|
||||
<!-- flet: end of entitlement {% endif %} {% endfor %} -->
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -28,14 +28,14 @@
|
|||
<string>MainMenu</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
<!-- {% for k, v in cookiecutter.options.info_plist.items() %} -->
|
||||
<!-- flet: prop {% for k, v in cookiecutter.options.info_plist.items() %} -->
|
||||
<key>{{ k }}</key>
|
||||
<!-- {% if v == True %} -->
|
||||
<!-- flet: True {% if v == True %} -->
|
||||
<true />
|
||||
<!-- {% elif v == False %} -->
|
||||
<!-- flet: False {% elif v == False %} -->
|
||||
<false />
|
||||
<!-- {% else %} -->
|
||||
<!-- flet: string value {% else %} -->
|
||||
<string>{{ v }}</string>
|
||||
<!-- {% endif %} {% endfor %} -->
|
||||
<!-- flet: end of prop {% endif %} {% endfor %} -->
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
@ -2,12 +2,12 @@
|
|||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<!-- {% for k, v in cookiecutter.options.macos_entitlements.items() %} -->
|
||||
<!-- flet: entitlement {% for k, v in cookiecutter.options.macos_entitlements.items() %} -->
|
||||
<key>{{ k }}</key>
|
||||
<!-- {% if v == True %} -->
|
||||
<!-- flet: True {% if v == True %} -->
|
||||
<true />
|
||||
<!-- {% elif v == False %} -->
|
||||
<!-- flet: False {% elif v == False %} -->
|
||||
<false />
|
||||
<!-- {% endif %} {% endfor %} -->
|
||||
<!-- flet: end of entitlement {% endif %} {% endfor %} -->
|
||||
</dict>
|
||||
</plist>
|
||||
Loading…
Reference in New Issue