File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
pythonforandroid/bootstraps/sdl2/build Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -261,14 +261,15 @@ def make_package(args):
261
261
shutil .copy (args .presplash or default_presplash ,
262
262
'src/main/res/drawable/presplash.jpg' )
263
263
264
+ jars = []
264
265
# If extra Java jars were requested, copy them into the libs directory
265
266
if args .add_jar :
266
267
for jarname in args .add_jar :
267
268
if not exists (jarname ):
268
269
print ('Requested jar does not exist: {}' .format (jarname ))
269
270
sys .exit (- 1 )
270
271
shutil .copy (jarname , 'src/main/libs' )
271
-
272
+ jars . append ( basename ( jarname ))
272
273
# if extra aar were requested, copy them into the libs directory
273
274
aars = []
274
275
if args .add_aar :
@@ -381,6 +382,7 @@ def make_package(args):
381
382
'build.gradle' ,
382
383
args = args ,
383
384
aars = aars ,
385
+ jars = jars ,
384
386
android_api = android_api ,
385
387
build_tools_version = build_tools_version )
386
388
Original file line number Diff line number Diff line change @@ -67,6 +67,9 @@ dependencies {
67
67
{%- for aar in aars % }
68
68
compile(name : ' {{ aar }}' , ext : ' aar' )
69
69
{%- endfor -% }
70
+ {%- for jar in jars % }
71
+ compile files(' src/main/libs/{{ jar }}' )
72
+ {%- endfor -% }
70
73
{%- if args. depends -% }
71
74
{%- for depend in args. depends % }
72
75
compile ' {{ depend }}'
You can’t perform that action at this time.
0 commit comments