Merge pull request #612 from bauerj/add-activity
Allow adding Java activities to the manifest
This commit is contained in:
commit
94691c0138
|
@ -146,6 +146,9 @@ fullscreen = 0
|
||||||
# bootstrap)
|
# bootstrap)
|
||||||
#android.gradle_dependencies =
|
#android.gradle_dependencies =
|
||||||
|
|
||||||
|
# (list) Java classes to add as activities to the manifest.
|
||||||
|
#android.add_activites = com.example.ExampleActivity
|
||||||
|
|
||||||
# (str) python-for-android branch to use, defaults to stable
|
# (str) python-for-android branch to use, defaults to stable
|
||||||
#p4a.branch = stable
|
#p4a.branch = stable
|
||||||
|
|
||||||
|
|
|
@ -719,6 +719,11 @@ class TargetAndroid(Target):
|
||||||
raise SystemError('Failed to find jar file: {}'.format(
|
raise SystemError('Failed to find jar file: {}'.format(
|
||||||
pattern))
|
pattern))
|
||||||
|
|
||||||
|
# add Java activity
|
||||||
|
add_activities = config.getlist('app', 'android.add_activities', [])
|
||||||
|
for activity in add_activities:
|
||||||
|
build_cmd += [("--add-activity", activity)]
|
||||||
|
|
||||||
# add presplash
|
# add presplash
|
||||||
presplash = config.getdefault('app', 'presplash.filename', '')
|
presplash = config.getdefault('app', 'presplash.filename', '')
|
||||||
if presplash:
|
if presplash:
|
||||||
|
|
Loading…
Reference in a new issue