Skip to content

Commit 18b5866

Browse files
committed
fix for audiostream/issues/25
1 parent 6b66c0c commit 18b5866

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

pythonforandroid/recipes/audiostream/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11

22
from pythonforandroid.recipe import CythonRecipe
3+
from pythonforandroid.toolchain import shprint, current_directory, info
4+
import sh
35
from os.path import join
46

57

68
class AudiostreamRecipe(CythonRecipe):
7-
version = 'master'
9+
version = 'b32e3a4b30ef4bb529ae0f3b2bb0a35350ce5aca'
810
url = 'https://github.com/kivy/audiostream/archive/{version}.zip'
911
name = 'audiostream'
1012
depends = ['python3', 'sdl2', 'pyjnius']
@@ -24,5 +26,15 @@ def get_recipe_env(self, arch):
2426
env['LIBLINK'] = 'NOTNONE' # Hacky fix. Needed by audiostream setup.py
2527
return env
2628

29+
def postbuild_arch(self, arch):
30+
# TODO: It looks like this happened automatically in the past.
31+
# Given the goal of migrating off of recipes, it would
32+
# be good to repair or build infrastructure for doing this
33+
# automatically.
34+
super().postbuild_arch(arch)
35+
info('Copying audiostream java files to classes build dir')
36+
with current_directory(self.get_build_dir(arch.arch)):
37+
shprint(sh.cp, '-a', join('audiostream', 'platform', 'android'), self.ctx.javaclass_dir)
38+
2739

2840
recipe = AudiostreamRecipe()

0 commit comments

Comments
 (0)