Merge pull request #650 from SomberNight/manifest_set_launchMode

allow setting launchMode for the main activity in the manifest
This commit is contained in:
Akshay Arora 2018-04-10 17:20:52 +05:30 committed by GitHub
commit d3628f1568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -162,6 +162,9 @@ fullscreen = 0
# (str) XML file to include as an intent filters in <activity> tag # (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters = #android.manifest.intent_filters =
# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard
# (list) Android additionnal libraries to copy into libs/armeabi # (list) Android additionnal libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so #android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so #android.add_libs_armeabi_v7a = libs/android-v7/*.so

View file

@ -773,6 +773,12 @@ class TargetAndroid(Target):
build_cmd += [("--intent-filters", join(self.buildozer.root_dir, build_cmd += [("--intent-filters", join(self.buildozer.root_dir,
intent_filters))] intent_filters))]
# activity launch mode
launch_mode = config.getdefault(
'app', 'android.manifest.launch_mode', '')
if launch_mode:
build_cmd += [("--activity-launch-mode", launch_mode)]
# build only in debug right now. # build only in debug right now.
if self.build_mode == 'debug': if self.build_mode == 'debug':
build_cmd += [("debug", )] build_cmd += [("debug", )]