From 6f5bce227ed0637bd7c96550d54a5a81ea9cde03 Mon Sep 17 00:00:00 2001 From: Ernest Ezis Date: Sun, 6 Apr 2025 14:14:03 -0600 Subject: [PATCH] Added Build section, added some monkey-proof clarity to the Usage install --- README.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/README.md b/README.md index 7eb1422..172b0d8 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,25 @@ Add `flet-geolocator` as dependency (`pyproject.toml` or `requirements.txt`) to your Flet project. +```bash +# uv +uv add flet-geolocator +# poetry +poetry add flet-geolocator +# pip +pip install flet-geolocator +``` + +sample pyproject.toml: +```toml +dependencies = [ + "flet==0.27.6", + "flet-geolocator" +] +``` + + + ## Example ```py @@ -116,4 +135,21 @@ async def main(page: ft.Page): ft.app(main) +``` + +## Build + +Use the --permissions argument in the build command: + +```bash +flet build apk --permissions location +``` + + + +```bash +# android install +adb install build/apk/app-release.apk +Performing Streamed Install +Success ``` \ No newline at end of file