Deep linking settings

This commit is contained in:
Feodor Fitsner 2024-10-14 13:30:48 -07:00
parent 5b00ffb439
commit c6cd93d779
2 changed files with 6 additions and 6 deletions

View File

@ -36,14 +36,14 @@
<category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" /> <!-- Google TV --> <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> <!-- Google TV -->
</intent-filter> </intent-filter>
<!-- flet: deep linking {% if cookiecutter.options.deep_linking_url %} --> <!-- flet: deep linking {% if cookiecutter.options.deep_linking.scheme and cookiecutter.options.deep_linking.host %} -->
<meta-data android:name="flutter_deeplinking_enabled" android:value="true" /> <meta-data android:name="flutter_deeplinking_enabled" android:value="true" />
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="{{ cookiecutter.options.deep_linking_url.scheme }}" <data android:scheme="{{ cookiecutter.options.deep_linking.scheme }}"
android:host="{{ cookiecutter.options.deep_linking_url.netloc }}" /> android:host="{{ cookiecutter.options.deep_linking.host }}" />
</intent-filter> </intent-filter>
<!-- flet: end of deep linking {% endif %} --> <!-- flet: end of deep linking {% endif %} -->
</activity> </activity>

View File

@ -50,7 +50,7 @@
<key>NSAllowsArbitraryLoads</key> <key>NSAllowsArbitraryLoads</key>
<true /> <true />
</dict> </dict>
<!-- flet: deep linking {% if cookiecutter.options.deep_linking_url %} --> <!-- flet: deep linking {% if cookiecutter.options.deep_linking.scheme and cookiecutter.options.deep_linking.host%} -->
<key>FlutterDeepLinkingEnabled</key> <key>FlutterDeepLinkingEnabled</key>
<true /> <true />
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
@ -59,10 +59,10 @@
<key>CFBundleTypeRole</key> <key>CFBundleTypeRole</key>
<string>Editor</string> <string>Editor</string>
<key>CFBundleURLName</key> <key>CFBundleURLName</key>
<string>{{ cookiecutter.options.deep_linking_url.netloc }}</string> <string>{{ cookiecutter.options.deep_linking.host }}</string>
<key>CFBundleURLSchemes</key> <key>CFBundleURLSchemes</key>
<array> <array>
<string>{{ cookiecutter.options.deep_linking_url.scheme }}</string> <string>{{ cookiecutter.options.deep_linking.scheme }}</string>
</array> </array>
</dict> </dict>
</array> </array>