From e82b5654af9f6a57630a33e346810f5060a1d38f Mon Sep 17 00:00:00 2001 From: Ansh Dadwal Date: Thu, 9 Jul 2026 11:09:05 +0530 Subject: [PATCH] recipes: new `watchfiles` recipe --- pythonforandroid/recipes/watchfiles/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pythonforandroid/recipes/watchfiles/__init__.py 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()