File tree Expand file tree Collapse file tree 4 files changed +26
-2
lines changed
pythonforandroid/bootstraps/sdl2/build/templates Expand file tree Collapse file tree 4 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 66
66
android : configChanges =" keyboardHidden|orientation"
67
67
android : screenOrientation =" {{ args.orientation }}"
68
68
>
69
+
70
+ {% if args.launcher %}
71
+ <intent-filter >
72
+ <action android : name =" org.kivy.LAUNCH" />
73
+ <category android : name =" android.intent.category.DEFAULT" />
74
+ <data android : scheme =" {{ url_scheme }}" />
75
+ </intent-filter >
76
+ {% else %}
69
77
<intent-filter >
70
78
<action android : name =" android.intent.action.MAIN" />
71
79
<category android : name =" android.intent.category.LAUNCHER" />
72
80
</intent-filter >
81
+ {% endif %}
82
+
73
83
{%- if args.intent_filters -%}
74
84
{{- args.intent_filters -}}
75
85
{%- endif -%}
76
86
</activity >
77
87
78
- {% if service %}
88
+ {% if args.launcher %}
89
+ <activity android : name =" org.kivy.android.ProjectChooser"
90
+ android : icon =" @drawable/icon"
91
+ android : label =" @string/app_name" >
92
+
93
+ <intent-filter >
94
+ <action android : name =" android.intent.action.MAIN" />
95
+ <category android : name =" android.intent.category.LAUNCHER" />
96
+ </intent-filter >
97
+
98
+ </activity >
99
+ {% endif %}
100
+
101
+ {% if service or args.launcher %}
79
102
<service android : name =" org.kivy.android.PythonService"
80
103
android : process =" :pythonservice" />
81
104
{% endif %}
98
121
{% endif %}
99
122
</application >
100
123
101
- </manifest >
124
+ </manifest >
Original file line number Diff line number Diff line change 3
3
<string name =" app_name" >{{ args.name }}</string >
4
4
<string name =" private_version" >0.1</string >
5
5
<string name =" presplash_color" >{{ args.presplash_color }}</string >
6
+ <string name =" urlScheme" >{{ url_scheme }}</string >
6
7
</resources >
You can’t perform that action at this time.
0 commit comments