Skip to content

Commit 830bb13

Browse files
authored
Merge pull request #3354 from kivy/watchfiles
recipes: new `watchfiles` recipe
2 parents 10d4798 + e82b565 commit 830bb13

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from pythonforandroid.recipe import RustCompiledComponentsRecipe
2+
3+
4+
class WatchfilesRecipe(RustCompiledComponentsRecipe):
5+
version = "1.1.1"
6+
url = (
7+
"https://github.com/samuelcolvin/watchfiles/archive/refs/tags/v{version}.tar.gz"
8+
)
9+
10+
def get_recipe_env(self, arch, **kwargs):
11+
env = super().get_recipe_env(arch, **kwargs)
12+
env["ANDROID_API_LEVEL"] = str(self.ctx.ndk_api)
13+
return env
14+
15+
16+
recipe = WatchfilesRecipe()

0 commit comments

Comments
 (0)