diff --git a/pythonforandroid/recipes/watchfiles/__init__.py b/pythonforandroid/recipes/watchfiles/__init__.py new file mode 100644 index 000000000..c022b6857 --- /dev/null +++ b/pythonforandroid/recipes/watchfiles/__init__.py @@ -0,0 +1,16 @@ +from pythonforandroid.recipe import RustCompiledComponentsRecipe + + +class WatchfilesRecipe(RustCompiledComponentsRecipe): + version = "1.1.1" + url = ( + "https://github.com/samuelcolvin/watchfiles/archive/refs/tags/v{version}.tar.gz" + ) + + def get_recipe_env(self, arch, **kwargs): + env = super().get_recipe_env(arch, **kwargs) + env["ANDROID_API_LEVEL"] = str(self.ctx.ndk_api) + return env + + +recipe = WatchfilesRecipe()