flet-geolocator 0.2.0.dev35__tar.gz → 0.2.0.dev52__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of flet-geolocator might be problematic. Click here for more details.

Files changed (25) hide show
  1. {flet_geolocator-0.2.0.dev35/src/flet_geolocator.egg-info → flet_geolocator-0.2.0.dev52}/PKG-INFO +7 -5
  2. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/README.md +6 -4
  3. flet_geolocator-0.2.0.dev52/pyproject.toml +97 -0
  4. flet_geolocator-0.2.0.dev52/src/flet_geolocator/__init__.py +27 -0
  5. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flet_geolocator/geolocator.py +69 -58
  6. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flet_geolocator/types.py +47 -39
  7. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52/src/flet_geolocator.egg-info}/PKG-INFO +7 -5
  8. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/lib/src/geolocator.dart +1 -1
  9. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/pubspec.lock +50 -42
  10. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/pubspec.yaml +1 -1
  11. flet_geolocator-0.2.0.dev35/pyproject.toml +0 -71
  12. flet_geolocator-0.2.0.dev35/src/flet_geolocator/__init__.py +0 -13
  13. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/LICENSE +0 -0
  14. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/setup.cfg +0 -0
  15. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flet_geolocator.egg-info/SOURCES.txt +0 -0
  16. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flet_geolocator.egg-info/dependency_links.txt +0 -0
  17. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flet_geolocator.egg-info/requires.txt +0 -0
  18. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flet_geolocator.egg-info/top_level.txt +0 -0
  19. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/CHANGELOG.md +0 -0
  20. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/LICENSE +0 -0
  21. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/README.md +0 -0
  22. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/analysis_options.yaml +0 -0
  23. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/lib/flet_geolocator.dart +0 -0
  24. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/lib/src/extension.dart +0 -0
  25. {flet_geolocator-0.2.0.dev35 → flet_geolocator-0.2.0.dev52}/src/flutter/flet_geolocator/lib/src/utils/geolocator.dart +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-geolocator
3
- Version: 0.2.0.dev35
3
+ Version: 0.2.0.dev52
4
4
  Summary: Adds geolocation capabilities to your Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
  [![downloads](https://static.pepy.tech/badge/flet-geolocator/month)](https://pepy.tech/project/flet-geolocator)
21
21
  [![license](https://img.shields.io/github/license/flet-dev/flet-geolocator.svg)](https://github.com/flet-dev/flet-geolocator/blob/main/LICENSE)
22
22
 
23
- Adds geolocation capabilities to your [Flet](https://flet.dev) apps.
23
+ Adds geolocation capabilities to your [Flet](https://flet.dev) apps.
24
24
 
25
25
  Features include:
26
26
  - Get the last known location;
@@ -47,7 +47,9 @@ This package supports the following platforms:
47
47
  | Android | ✅ |
48
48
  | Web | ✅ |
49
49
 
50
- ## Installation
50
+ ## Usage
51
+
52
+ ### Installation
51
53
 
52
54
  To install the `flet-geolocator` package and add it to your project dependencies:
53
55
 
@@ -67,6 +69,6 @@ To install the `flet-geolocator` package and add it to your project dependencies
67
69
  poetry add flet-geolocator
68
70
  ```
69
71
 
70
- ## Examples
72
+ ### Examples
71
73
 
72
- For examples, see [this](./examples)
74
+ For examples, see [these](./examples).
@@ -4,7 +4,7 @@
4
4
  [![downloads](https://static.pepy.tech/badge/flet-geolocator/month)](https://pepy.tech/project/flet-geolocator)
5
5
  [![license](https://img.shields.io/github/license/flet-dev/flet-geolocator.svg)](https://github.com/flet-dev/flet-geolocator/blob/main/LICENSE)
6
6
 
7
- Adds geolocation capabilities to your [Flet](https://flet.dev) apps.
7
+ Adds geolocation capabilities to your [Flet](https://flet.dev) apps.
8
8
 
9
9
  Features include:
10
10
  - Get the last known location;
@@ -31,7 +31,9 @@ This package supports the following platforms:
31
31
  | Android | ✅ |
32
32
  | Web | ✅ |
33
33
 
34
- ## Installation
34
+ ## Usage
35
+
36
+ ### Installation
35
37
 
36
38
  To install the `flet-geolocator` package and add it to your project dependencies:
37
39
 
@@ -51,6 +53,6 @@ To install the `flet-geolocator` package and add it to your project dependencies
51
53
  poetry add flet-geolocator
52
54
  ```
53
55
 
54
- ## Examples
56
+ ### Examples
55
57
 
56
- For examples, see [this](./examples)
58
+ For examples, see [these](./examples).
@@ -0,0 +1,97 @@
1
+ [project]
2
+ name = "flet-geolocator"
3
+ version = "0.2.0.dev52"
4
+ description = "Adds geolocation capabilities to your Flet apps."
5
+ readme = "README.md"
6
+ authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
7
+ license = "Apache-2.0"
8
+ requires-python = ">=3.10"
9
+ dependencies = [
10
+ "flet >=0.70.0.dev0",
11
+ ]
12
+
13
+ [project.urls]
14
+ Homepage = "https://flet.dev"
15
+ Documentation = "https://flet-dev.github.io/flet-audio"
16
+ Repository = "https://github.com/flet-dev/flet-geolocator"
17
+ Issues = "https://github.com/flet-dev/flet-geolocator/issues"
18
+
19
+ [tool.setuptools.package-data]
20
+ "flutter.flet_geolocator" = ["**/*"]
21
+
22
+ [dependency-groups]
23
+ test = [
24
+ "pytest >=7.2.0",
25
+ ]
26
+ lint = [
27
+ "ruff >=0.11.7",
28
+ ]
29
+ dev = [
30
+ "pre-commit >=4.2.0",
31
+ { include-group = 'lint' },
32
+ { include-group = 'test' },
33
+ ]
34
+ docs-coverage = [
35
+ "docstr-coverage >=2.3.2",
36
+ ]
37
+ docs = [
38
+ "mkdocs >=1.6.1",
39
+ "mkdocs-material >=9.6.15",
40
+ "mkdocstrings-python >=1.16.12",
41
+ "mkdocstrings-python-xref >=1.16.3",
42
+ "mike >=2.1.3",
43
+ "markdown >=3.6",
44
+ "pymdown-extensions >=10.16",
45
+ "mkdocs-exclude >=1.0.2",
46
+ "mkdocs-glightbox >=0.4.0",
47
+ "mkdocs-open-in-new-tab >=1.0.8",
48
+ "mkdocs-section-index >=0.3.10",
49
+ "griffe-modernized-annotations >=1.0.8",
50
+ "griffe-warnings-deprecated >=1.1.0",
51
+ "pygments >=2.16",
52
+ "markdown-exec[ansi] >=1.11.0",
53
+ "pydocstyle >=6.3.0",
54
+ "linkcheckmd >=1.4.0",
55
+ "mkdocs-external-images",
56
+ { include-group = 'docs-coverage' },
57
+ ]
58
+ all = [
59
+ { include-group = 'dev' },
60
+ { include-group = 'docs' },
61
+ ]
62
+
63
+ [tool.uv.sources]
64
+ mkdocs-external-images = { git = "https://github.com/flet-dev/mkdocs-external-images", tag = "v0.2.0" }
65
+
66
+ [build-system]
67
+ requires = ["setuptools"]
68
+ build-backend = "setuptools.build_meta"
69
+
70
+ [tool.ruff]
71
+ line-length = 88
72
+ target-version = "py39"
73
+ fix = true
74
+ show-fixes = true
75
+
76
+ [tool.ruff.lint]
77
+ select = [
78
+ # pycodestyle
79
+ "E",
80
+ # Pyflakes
81
+ "F",
82
+ # pyupgrade
83
+ "UP",
84
+ # flake8-bugbear
85
+ "B",
86
+ # flake8-simplify
87
+ "SIM",
88
+ # isort
89
+ "I"
90
+ ]
91
+ preview = true
92
+ pydocstyle = { convention = 'google' }
93
+
94
+ [tool.ruff.format]
95
+ quote-style = "double"
96
+ indent-style = "space"
97
+ line-ending = "auto"
@@ -0,0 +1,27 @@
1
+ from flet_geolocator.geolocator import Geolocator
2
+ from flet_geolocator.types import (
3
+ ForegroundNotificationConfiguration,
4
+ GeolocatorAndroidConfiguration,
5
+ GeolocatorConfiguration,
6
+ GeolocatorIosActivityType,
7
+ GeolocatorIosConfiguration,
8
+ GeolocatorPermissionStatus,
9
+ GeolocatorPosition,
10
+ GeolocatorPositionAccuracy,
11
+ GeolocatorPositionChangeEvent,
12
+ GeolocatorWebConfiguration,
13
+ )
14
+
15
+ __all__ = [
16
+ "ForegroundNotificationConfiguration",
17
+ "Geolocator",
18
+ "GeolocatorAndroidConfiguration",
19
+ "GeolocatorConfiguration",
20
+ "GeolocatorIosActivityType",
21
+ "GeolocatorIosConfiguration",
22
+ "GeolocatorPermissionStatus",
23
+ "GeolocatorPosition",
24
+ "GeolocatorPositionAccuracy",
25
+ "GeolocatorPositionChangeEvent",
26
+ "GeolocatorWebConfiguration",
27
+ ]
@@ -1,10 +1,9 @@
1
- import asyncio
2
1
  from dataclasses import field
3
2
  from typing import Optional
4
3
 
5
4
  import flet as ft
6
5
 
7
- from .types import (
6
+ from flet_geolocator.types import (
8
7
  GeolocatorConfiguration,
9
8
  GeolocatorPermissionStatus,
10
9
  GeolocatorPosition,
@@ -19,7 +18,8 @@ class Geolocator(ft.Service):
19
18
  """
20
19
  A control that allows you to fetch GPS data from your device.
21
20
 
22
- This control is non-visual and should be added to `page.overlay` list.
21
+ This control is non-visual and should be added to
22
+ [`Page.overlay`][flet.] list.
23
23
  """
24
24
 
25
25
  configuration: Optional[GeolocatorConfiguration] = None
@@ -27,30 +27,29 @@ class Geolocator(ft.Service):
27
27
  Some additional configuration.
28
28
  """
29
29
 
30
- on_position_change: ft.OptionalEventHandler[
31
- GeolocatorPositionChangeEvent["Geolocator"]
32
- ] = None
30
+ on_position_change: Optional[ft.EventHandler[GeolocatorPositionChangeEvent]] = None
33
31
  """
34
32
  Fires when the position of the device changes.
35
-
36
- Event handler argument is of type [`GeolocatorPositionChangeEvent`][(p).].
37
33
  """
38
34
 
39
- on_error: ft.OptionalControlEventHandler["Geolocator"] = None
35
+ on_error: Optional[ft.ControlEventHandler["Geolocator"]] = None
40
36
  """
41
37
  Fires when an error occurs.
42
-
43
- The `data` property of the event handler argument contains information on the error.
38
+
39
+ The [`data`][flet.Event.data] property of the event
40
+ handler argument contains information on the error.
44
41
  """
45
42
 
46
- position: Optional[GeolocatorPosition] = field(default=None, init=False) # todo: make this property readonly
43
+ position: Optional[GeolocatorPosition] = field(
44
+ default=None, init=False
45
+ ) # TODO: make this property readonly
47
46
  """
48
47
  The current position of the device. (read-only)
49
48
 
50
49
  Starts as `None` and will be updated when the position changes.
51
50
  """
52
51
 
53
- async def get_current_position_async(
52
+ async def get_current_position(
54
53
  self,
55
54
  configuration: Optional[GeolocatorConfiguration] = None,
56
55
  timeout: float = 30,
@@ -58,50 +57,59 @@ class Geolocator(ft.Service):
58
57
  """
59
58
  Gets the current position of the device with the desired accuracy and settings.
60
59
 
60
+ Note:
61
+ Depending on the availability of different location services,
62
+ this can take several seconds. It is recommended to call the
63
+ [`get_last_known_position`][..] method first to receive a
64
+ known/cached position and update it with the result of the
65
+ [`get_current_position`][..] method.
66
+
61
67
  Args:
62
68
  configuration: Additional configuration for the location request.
63
- If not specified, then the [`Geolocator.configuration`][(p).] property is used.
69
+ If not specified, then the [`Geolocator.configuration`][(p).]
70
+ property is used.
64
71
  timeout: The maximum amount of time (in seconds) to wait for a response.
72
+
65
73
  Returns:
66
74
  The current position of the device as a [`GeolocatorPosition`][(p).].
75
+
67
76
  Raises:
68
77
  TimeoutError: If the request times out.
69
-
70
- Note:
71
- Depending on the availability of different location services, this can take several seconds.
72
- It is recommended to call the [`get_last_known_position`][..] method first to receive a
73
- known/cached position and update it with the result of the [`get_current_position`][..] method.
74
78
  """
75
- r = await self._invoke_method_async(
79
+ r = await self._invoke_method(
76
80
  method_name="get_current_position",
77
81
  arguments={"configuration": configuration or self.configuration},
78
82
  timeout=timeout,
79
83
  )
80
84
  return GeolocatorPosition(**r)
81
85
 
82
- async def get_last_known_position_async(
83
- self, timeout: float = 10
84
- ) -> GeolocatorPosition:
86
+ async def get_last_known_position(self, timeout: float = 10) -> GeolocatorPosition:
85
87
  """
86
88
  Gets the last known position stored on the user's device.
87
- The accuracy can be defined using the [`Geolocator.configuration`][(p).] property.
89
+ The accuracy can be defined using the
90
+ [`Geolocator.configuration`][(p).] property.
88
91
 
89
92
  Note:
90
93
  This method is not supported on web plaform.
91
94
 
92
95
  Args:
93
96
  timeout: The maximum amount of time (in seconds) to wait for a response.
97
+
94
98
  Returns:
95
- `True` if the app's settings were opened successfully, `False` otherwise.
99
+ The last known position of the device as a [`GeolocatorPosition`][(p).].
100
+
96
101
  Raises:
97
102
  AssertionError: If invoked on a web platform.
98
103
  TimeoutError: If the request times out.
99
104
  """
100
105
  assert not self.page.web, "get_last_known_position is not supported on web"
101
- r = await self._invoke_method_async("get_last_known_position", timeout=timeout)
106
+ r = await self._invoke_method(
107
+ "get_last_known_position",
108
+ timeout=timeout,
109
+ )
102
110
  return GeolocatorPosition(**r)
103
111
 
104
- async def get_permission_status_async(
112
+ async def get_permission_status(
105
113
  self, timeout: float = 10
106
114
  ) -> GeolocatorPermissionStatus:
107
115
  """
@@ -109,46 +117,54 @@ class Geolocator(ft.Service):
109
117
 
110
118
  Args:
111
119
  timeout: The maximum amount of time (in seconds) to wait for a response.
120
+
112
121
  Returns:
113
122
  The status of the permission.
123
+
114
124
  Raises:
115
125
  TimeoutError: If the request times out.
116
126
  """
117
- r = await self._invoke_method_async("get_permission_status", timeout=timeout)
127
+ r = await self._invoke_method(
128
+ "get_permission_status",
129
+ timeout=timeout,
130
+ )
118
131
  return GeolocatorPermissionStatus(r)
119
132
 
120
- async def request_permission_async(
121
- self, timeout: int = 60
122
- ) -> GeolocatorPermissionStatus:
133
+ async def request_permission(self, timeout: int = 60) -> GeolocatorPermissionStatus:
123
134
  """
124
135
  Requests the device for access to the device's location.
125
136
 
126
137
  Args:
127
138
  timeout: The maximum amount of time (in seconds) to wait for a response.
139
+
128
140
  Returns:
129
141
  The status of the permission request.
142
+
130
143
  Raises:
131
144
  TimeoutError: If the request times out.
132
145
  """
133
- r = await self._invoke_method_async("request_permission", timeout=timeout)
146
+ r = await self._invoke_method(
147
+ "request_permission",
148
+ timeout=timeout,
149
+ )
134
150
  return GeolocatorPermissionStatus(r)
135
151
 
136
- async def is_location_service_enabled_async(self, timeout: float = 10) -> bool:
152
+ async def is_location_service_enabled(self, timeout: float = 10) -> bool:
137
153
  """
138
154
  Checks if location service is enabled.
139
155
 
140
156
  Args:
141
157
  timeout: The maximum amount of time (in seconds) to wait for a response.
158
+
142
159
  Returns:
143
160
  `True` if location service is enabled, `False` otherwise.
161
+
144
162
  Raises:
145
163
  TimeoutError: If the request times out.
146
164
  """
147
- return await self._invoke_method_async(
148
- "is_location_service_enabled", timeout=timeout
149
- )
165
+ return await self._invoke_method("is_location_service_enabled", timeout=timeout)
150
166
 
151
- async def open_app_settings_async(self, timeout: float = 10) -> bool:
167
+ async def open_app_settings(self, timeout: float = 10) -> bool:
152
168
  """
153
169
  Attempts to open the app's settings.
154
170
 
@@ -157,16 +173,21 @@ class Geolocator(ft.Service):
157
173
 
158
174
  Args:
159
175
  timeout: The maximum amount of time (in seconds) to wait for a response.
176
+
160
177
  Returns:
161
178
  `True` if the app's settings were opened successfully, `False` otherwise.
179
+
162
180
  Raises:
163
181
  AssertionError: If invoked on a web platform.
164
182
  TimeoutError: If the request times out.
165
183
  """
166
184
  assert not self.page.web, "open_app_settings is not supported on web"
167
- return await self._invoke_method_async("open_app_settings", timeout=timeout)
185
+ return await self._invoke_method(
186
+ "open_app_settings",
187
+ timeout=timeout,
188
+ )
168
189
 
169
- def open_location_settings(self, timeout: float = 10):
190
+ async def open_location_settings(self, timeout: float = 10) -> bool:
170
191
  """
171
192
  Attempts to open the device's location settings.
172
193
 
@@ -175,33 +196,21 @@ class Geolocator(ft.Service):
175
196
 
176
197
  Args:
177
198
  timeout: The maximum amount of time (in seconds) to wait for a response.
178
- Returns:
179
- `True` if the device's settings were opened successfully, `False` otherwise.
180
- Raises:
181
- AssertionError: If invoked on a web platform.
182
- TimeoutError: If the request times out.
183
- """
184
- asyncio.create_task(self.open_location_settings_async(timeout=timeout))
185
199
 
186
- async def open_location_settings_async(self, timeout: float = 10):
187
- """
188
- Attempts to open the device's location settings.
189
-
190
- Note:
191
- This method is not supported on web plaform.
192
-
193
- Args:
194
- timeout: The maximum amount of time (in seconds) to wait for a response.
195
200
  Returns:
196
201
  `True` if the device's settings were opened successfully, `False` otherwise.
202
+
197
203
  Raises:
198
204
  AssertionError: If invoked on a web platform.
199
205
  TimeoutError: If the request times out.
200
206
  """
201
207
  assert not self.page.web, "open_location_settings is not supported on web"
202
- await self._invoke_method_async("open_location_settings", timeout=timeout)
208
+ return await self._invoke_method(
209
+ "open_location_settings",
210
+ timeout=timeout,
211
+ )
203
212
 
204
- async def distance_between_async(
213
+ async def distance_between(
205
214
  self,
206
215
  start_latitude: ft.Number,
207
216
  start_longitude: ft.Number,
@@ -221,12 +230,14 @@ class Geolocator(ft.Service):
221
230
  end_latitude: The latitude of the ending point, in degrees.
222
231
  end_longitude: The longitude of the ending point, in degrees.
223
232
  timeout: The maximum amount of time (in seconds) to wait for a response.
233
+
224
234
  Returns:
225
235
  The distance between the coordinates in meters.
236
+
226
237
  Raises:
227
238
  TimeoutError: If the request times out.
228
239
  """
229
- await self._invoke_method_async(
240
+ await self._invoke_method(
230
241
  method_name="distance_between",
231
242
  arguments={
232
243
  "start_latitude": start_latitude,
@@ -1,21 +1,24 @@
1
1
  import datetime
2
2
  from dataclasses import dataclass, field
3
3
  from enum import Enum
4
- from typing import Optional
4
+ from typing import TYPE_CHECKING, Optional
5
5
 
6
6
  import flet as ft
7
7
 
8
+ if TYPE_CHECKING:
9
+ from flet_geolocator.geolocator import Geolocator # noqa
10
+
8
11
  __all__ = [
9
- "GeolocatorPositionAccuracy",
10
- "GeolocatorPermissionStatus",
11
- "GeolocatorIosActivityType",
12
- "GeolocatorPosition",
12
+ "ForegroundNotificationConfiguration",
13
+ "GeolocatorAndroidConfiguration",
13
14
  "GeolocatorConfiguration",
14
- "GeolocatorWebConfiguration",
15
+ "GeolocatorIosActivityType",
15
16
  "GeolocatorIosConfiguration",
16
- "GeolocatorAndroidConfiguration",
17
+ "GeolocatorPermissionStatus",
18
+ "GeolocatorPosition",
19
+ "GeolocatorPositionAccuracy",
17
20
  "GeolocatorPositionChangeEvent",
18
- "ForegroundNotificationConfiguration",
21
+ "GeolocatorWebConfiguration",
19
22
  ]
20
23
 
21
24
 
@@ -89,17 +92,18 @@ class GeolocatorPermissionStatus(Enum):
89
92
 
90
93
  DENIED = "denied"
91
94
  """
92
- Permission to access the device's location is denied.
95
+ Permission to access the device's location is denied.
93
96
 
94
- The app should try to request permission using the [`Geolocator.request_permission`][(p).] method.
97
+ The app should try to request permission using the
98
+ [`Geolocator.request_permission`][(p).] method.
95
99
  """
96
100
 
97
101
  DENIED_FOREVER = "deniedForever"
98
102
  """
99
103
  Permission to access the device's location is permanently denied.
100
104
 
101
- When requesting permissions, the permission dialog will not be shown until the user updates
102
- the permission in the app settings.
105
+ When requesting permissions, the permission dialog will not be shown until the
106
+ user updates the permission in the app settings.
103
107
  """
104
108
 
105
109
  WHILE_IN_USE = "whileInUse"
@@ -109,15 +113,16 @@ class GeolocatorPermissionStatus(Enum):
109
113
 
110
114
  ALWAYS = "always"
111
115
  """
112
- Permission to access the device's location is allowed even when the app is running in the background.
116
+ Permission to access the device's location is allowed even when the app is
117
+ running in the background.
113
118
  """
114
119
 
115
120
  UNABLE_TO_DETERMINE = "unableToDetermine"
116
121
  """
117
122
  Permission status cannot be determined.
118
123
 
119
- This status is only returned by the [`Geolocator.request_permission`][(p).] method on the web platform
120
- for browsers that did not implement the Permissions API.
124
+ This status is only returned by the [`Geolocator.request_permission`][(p).] method
125
+ on the web platform for browsers that did not implement the Permissions API.
121
126
  See: https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API
122
127
  """
123
128
 
@@ -175,7 +180,7 @@ class GeolocatorPosition:
175
180
  """
176
181
  The speed at which the device is traveling in meters per second over ground.
177
182
 
178
- The speed is not available on all devices.
183
+ The speed is not available on all devices.
179
184
  In these cases the value is `0.0`.
180
185
  """
181
186
 
@@ -183,7 +188,7 @@ class GeolocatorPosition:
183
188
  """
184
189
  The altitude of the device in meters.
185
190
 
186
- The altitude is not available on all devices.
191
+ The altitude is not available on all devices.
187
192
  In these cases the returned value is `0.0`.
188
193
  """
189
194
 
@@ -196,7 +201,7 @@ class GeolocatorPosition:
196
201
  """
197
202
  The estimated horizontal accuracy of the position in meters.
198
203
 
199
- The accuracy is not available on all devices.
204
+ The accuracy is not available on all devices.
200
205
  In these cases the value is `0.0`.
201
206
  """
202
207
 
@@ -204,7 +209,7 @@ class GeolocatorPosition:
204
209
  """
205
210
  The estimated vertical accuracy of the position in meters.
206
211
 
207
- The accuracy is not available on all devices.
212
+ The accuracy is not available on all devices.
208
213
  In these cases the value is `0.0`.
209
214
  """
210
215
 
@@ -212,7 +217,7 @@ class GeolocatorPosition:
212
217
  """
213
218
  The heading in which the device is traveling in degrees.
214
219
 
215
- The heading is not available on all devices.
220
+ The heading is not available on all devices.
216
221
  In these cases the value is `0.0`.
217
222
  """
218
223
 
@@ -220,7 +225,7 @@ class GeolocatorPosition:
220
225
  """
221
226
  The estimated heading accuracy of the position in degrees.
222
227
 
223
- The heading accuracy is not available on all devices.
228
+ The heading accuracy is not available on all devices.
224
229
  In these cases the value is `0.0`.
225
230
  """
226
231
 
@@ -228,7 +233,7 @@ class GeolocatorPosition:
228
233
  """
229
234
  The estimated speed accuracy of this position, in meters per second.
230
235
 
231
- The speed accuracy is not available on all devices.
236
+ The speed accuracy is not available on all devices.
232
237
  In these cases the value is `0.0`.
233
238
  """
234
239
 
@@ -237,7 +242,8 @@ class GeolocatorPosition:
237
242
  The floor specifies the floor of the building on which the device is
238
243
  located.
239
244
 
240
- The floor property is only available on iOS and only when the information is available.
245
+ The floor property is only available on iOS
246
+ and only when the information is available.
241
247
  In all other cases this value will be `None`.
242
248
  """
243
249
 
@@ -261,7 +267,7 @@ class GeolocatorConfiguration:
261
267
  """
262
268
  The minimum distance (measured in meters) a device must move
263
269
  horizontally before an update event is generated.
264
-
270
+
265
271
  Set to `0` when you want to be notified of all movements.
266
272
  """
267
273
 
@@ -280,8 +286,8 @@ class GeolocatorWebConfiguration(GeolocatorConfiguration):
280
286
  maximum_age: ft.DurationValue = field(default_factory=lambda: ft.Duration())
281
287
  """
282
288
  A value indicating the maximum age of a possible cached
283
- position that is acceptable to return. If set to 0, it means
284
- that the device cannot use a cached position and must
289
+ position that is acceptable to return. If set to 0, it means
290
+ that the device cannot use a cached position and must
285
291
  attempt to retrieve the real current position.
286
292
  """
287
293
 
@@ -300,7 +306,7 @@ class GeolocatorIosConfiguration(GeolocatorConfiguration):
300
306
  """
301
307
  Allows the location manager to pause updates to improve battery life
302
308
  on the target device without sacrificing location data.
303
- When this property is set to `true`, the location manager pauses updates
309
+ When this property is set to `True`, the location manager pauses updates
304
310
  (and powers down the appropriate hardware) at times when the
305
311
  location data is unlikely to change.
306
312
  """
@@ -309,7 +315,7 @@ class GeolocatorIosConfiguration(GeolocatorConfiguration):
309
315
  """
310
316
  Flag to ask the Apple OS to show the background location indicator (iOS only)
311
317
  if app starts up and background and requests the users location.
312
-
318
+
313
319
  For this setting to work and for the location to be retrieved the user must
314
320
  have granted "always" permissions for location retrieval.
315
321
  """
@@ -317,7 +323,7 @@ class GeolocatorIosConfiguration(GeolocatorConfiguration):
317
323
  allow_background_location_updates: bool = True
318
324
  """
319
325
  Flag to allow the app to receive location updates in the background (iOS only)
320
-
326
+
321
327
  Note:
322
328
  For this setting to work `Info.plist` should contain the following keys:
323
329
  - UIBackgroundModes and the value should contain "location"
@@ -360,7 +366,8 @@ class ForegroundNotificationConfiguration:
360
366
  """
361
367
  When enabled, a WifiLock is acquired when background execution is started.
362
368
  This allows the application to keep the Wi-Fi radio awake, even when the
363
- user has not used the device in a while (e.g. for background network communications).
369
+ user has not used the device in a while
370
+ (e.g. for background network communications).
364
371
 
365
372
  Wifi lock permissions should be obtained first by using a permissions library.
366
373
  """
@@ -389,23 +396,24 @@ class GeolocatorAndroidConfiguration(GeolocatorConfiguration):
389
396
  """
390
397
  Whether altitude should be calculated as MSL (EGM2008) from NMEA messages
391
398
  and reported as the altitude instead of using the geoidal height (WSG84). Setting
392
- this property true will help to align Android altitude to that of iOS which uses MSL.
393
-
394
- If the NMEA message is empty then the altitude reported will still be the standard WSG84
395
- altitude from the GPS receiver.
396
-
399
+ this property true will help to align Android altitude to that of iOS which
400
+ uses MSL.
401
+
402
+ If the NMEA message is empty then the altitude reported will still be
403
+ the standard WSG84 altitude from the GPS receiver.
404
+
397
405
  MSL Altitude is only available starting from Android N and not all devices support
398
406
  NMEA message returning $GPGGA sequences.
399
-
400
- This property only works with position stream updates and has no effect when getting the
401
- current position or last known position.
407
+
408
+ This property only works with position stream updates and has no effect when
409
+ getting the current position or last known position.
402
410
  """
403
411
 
404
412
  foreground_notification_config: Optional[ForegroundNotificationConfiguration] = None
405
413
 
406
414
 
407
415
  @dataclass
408
- class GeolocatorPositionChangeEvent(ft.Event[ft.EventControlType]):
416
+ class GeolocatorPositionChangeEvent(ft.Event["Geolocator"]):
409
417
  position: GeolocatorPosition
410
418
  """
411
419
  The current/new position of the device.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-geolocator
3
- Version: 0.2.0.dev35
3
+ Version: 0.2.0.dev52
4
4
  Summary: Adds geolocation capabilities to your Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -20,7 +20,7 @@ Dynamic: license-file
20
20
  [![downloads](https://static.pepy.tech/badge/flet-geolocator/month)](https://pepy.tech/project/flet-geolocator)
21
21
  [![license](https://img.shields.io/github/license/flet-dev/flet-geolocator.svg)](https://github.com/flet-dev/flet-geolocator/blob/main/LICENSE)
22
22
 
23
- Adds geolocation capabilities to your [Flet](https://flet.dev) apps.
23
+ Adds geolocation capabilities to your [Flet](https://flet.dev) apps.
24
24
 
25
25
  Features include:
26
26
  - Get the last known location;
@@ -47,7 +47,9 @@ This package supports the following platforms:
47
47
  | Android | ✅ |
48
48
  | Web | ✅ |
49
49
 
50
- ## Installation
50
+ ## Usage
51
+
52
+ ### Installation
51
53
 
52
54
  To install the `flet-geolocator` package and add it to your project dependencies:
53
55
 
@@ -67,6 +69,6 @@ To install the `flet-geolocator` package and add it to your project dependencies
67
69
  poetry add flet-geolocator
68
70
  ```
69
71
 
70
- ## Examples
72
+ ### Examples
71
73
 
72
- For examples, see [this](./examples)
74
+ For examples, see [these](./examples).
@@ -67,7 +67,7 @@ class GeolocatorService extends FletService {
67
67
  break;
68
68
  case "open_location_settings":
69
69
  if (!kIsWeb) {
70
- await Geolocator.openLocationSettings();
70
+ return await Geolocator.openLocationSettings();
71
71
  }
72
72
  break;
73
73
  case "get_last_known_position":
@@ -13,10 +13,10 @@ packages:
13
13
  dependency: transitive
14
14
  description:
15
15
  name: async
16
- sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
16
+ sha256: "758e6d74e971c3e5aceb4110bfd6698efc7f501675bcfe0c775459a8140750eb"
17
17
  url: "https://pub.dev"
18
18
  source: hosted
19
- version: "2.12.0"
19
+ version: "2.13.0"
20
20
  boolean_selector:
21
21
  dependency: transitive
22
22
  description:
@@ -101,10 +101,10 @@ packages:
101
101
  dependency: transitive
102
102
  description:
103
103
  name: fake_async
104
- sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
104
+ sha256: "5368f224a74523e8d2e7399ea1638b37aecfca824a3cc4dfdf77bf1fa905ac44"
105
105
  url: "https://pub.dev"
106
106
  source: hosted
107
- version: "1.3.2"
107
+ version: "1.3.3"
108
108
  ffi:
109
109
  dependency: transitive
110
110
  description:
@@ -125,10 +125,10 @@ packages:
125
125
  dependency: transitive
126
126
  description:
127
127
  name: file_picker
128
- sha256: ef9908739bdd9c476353d6adff72e88fd00c625f5b959ae23f7567bd5137db0a
128
+ sha256: ef7d2a085c1b1d69d17b6842d0734aad90156de08df6bd3c12496d0bd6ddf8e2
129
129
  url: "https://pub.dev"
130
130
  source: hosted
131
- version: "10.2.0"
131
+ version: "10.3.1"
132
132
  fixnum:
133
133
  dependency: transitive
134
134
  description:
@@ -142,7 +142,7 @@ packages:
142
142
  description:
143
143
  path: "packages/flet"
144
144
  ref: main
145
- resolved-ref: b996d06ff462b88f5b31d6cceafac34ea6f57968
145
+ resolved-ref: "4ea9558543657d31dba3b11d6017beed2e16d447"
146
146
  url: "https://github.com/flet-dev/flet.git"
147
147
  source: git
148
148
  version: "0.70.0"
@@ -163,10 +163,10 @@ packages:
163
163
  dependency: "direct dev"
164
164
  description:
165
165
  name: flutter_lints
166
- sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04
166
+ sha256: "9e8c3858111da373efc5aa341de011d9bd23e2c5c5e0c62bccf32438e192d7b1"
167
167
  url: "https://pub.dev"
168
168
  source: hosted
169
- version: "2.0.3"
169
+ version: "3.0.2"
170
170
  flutter_localizations:
171
171
  dependency: transitive
172
172
  description: flutter
@@ -184,10 +184,10 @@ packages:
184
184
  dependency: transitive
185
185
  description:
186
186
  name: flutter_plugin_android_lifecycle
187
- sha256: f948e346c12f8d5480d2825e03de228d0eb8c3a737e4cdaa122267b89c022b5e
187
+ sha256: "6382ce712ff69b0f719640ce957559dde459e55ecd433c767e06d139ddf16cab"
188
188
  url: "https://pub.dev"
189
189
  source: hosted
190
- version: "2.0.28"
190
+ version: "2.0.29"
191
191
  flutter_svg:
192
192
  dependency: transitive
193
193
  description:
@@ -306,10 +306,10 @@ packages:
306
306
  dependency: transitive
307
307
  description:
308
308
  name: intl
309
- sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf
309
+ sha256: "3df61194eb431efc39c4ceba583b95633a403f46c9fd341e550ce0bfa50e9aa5"
310
310
  url: "https://pub.dev"
311
311
  source: hosted
312
- version: "0.19.0"
312
+ version: "0.20.2"
313
313
  json_annotation:
314
314
  dependency: transitive
315
315
  description:
@@ -322,10 +322,10 @@ packages:
322
322
  dependency: transitive
323
323
  description:
324
324
  name: leak_tracker
325
- sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
325
+ sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
326
326
  url: "https://pub.dev"
327
327
  source: hosted
328
- version: "10.0.8"
328
+ version: "10.0.9"
329
329
  leak_tracker_flutter_testing:
330
330
  dependency: transitive
331
331
  description:
@@ -346,10 +346,10 @@ packages:
346
346
  dependency: transitive
347
347
  description:
348
348
  name: lints
349
- sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452"
349
+ sha256: cbf8d4b858bb0134ef3ef87841abdf8d63bfc255c266b7bf6b39daa1085c4290
350
350
  url: "https://pub.dev"
351
351
  source: hosted
352
- version: "2.1.1"
352
+ version: "3.0.0"
353
353
  logging:
354
354
  dependency: transitive
355
355
  description:
@@ -410,18 +410,18 @@ packages:
410
410
  dependency: transitive
411
411
  description:
412
412
  name: package_info_plus
413
- sha256: "7976bfe4c583170d6cdc7077e3237560b364149fcd268b5f53d95a991963b191"
413
+ sha256: "16eee997588c60225bda0488b6dcfac69280a6b7a3cf02c741895dd370a02968"
414
414
  url: "https://pub.dev"
415
415
  source: hosted
416
- version: "8.3.0"
416
+ version: "8.3.1"
417
417
  package_info_plus_platform_interface:
418
418
  dependency: transitive
419
419
  description:
420
420
  name: package_info_plus_platform_interface
421
- sha256: "6c935fb612dff8e3cc9632c2b301720c77450a126114126ffaafe28d2e87956c"
421
+ sha256: "202a487f08836a592a6bd4f901ac69b3a8f146af552bbd14407b6b41e1c3f086"
422
422
  url: "https://pub.dev"
423
423
  source: hosted
424
- version: "3.2.0"
424
+ version: "3.2.1"
425
425
  path:
426
426
  dependency: transitive
427
427
  description:
@@ -458,10 +458,10 @@ packages:
458
458
  dependency: transitive
459
459
  description:
460
460
  name: path_provider_foundation
461
- sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942"
461
+ sha256: "16eef174aacb07e09c351502740fa6254c165757638eba1e9116b0a781201bbd"
462
462
  url: "https://pub.dev"
463
463
  source: hosted
464
- version: "2.4.1"
464
+ version: "2.4.2"
465
465
  path_provider_linux:
466
466
  dependency: transitive
467
467
  description:
@@ -558,14 +558,22 @@ packages:
558
558
  url: "https://pub.dev"
559
559
  source: hosted
560
560
  version: "0.2.0"
561
+ screenshot:
562
+ dependency: transitive
563
+ description:
564
+ name: screenshot
565
+ sha256: "63817697a7835e6ce82add4228e15d233b74d42975c143ad8cfe07009fab866b"
566
+ url: "https://pub.dev"
567
+ source: hosted
568
+ version: "3.0.0"
561
569
  sensors_plus:
562
570
  dependency: transitive
563
571
  description:
564
572
  name: sensors_plus
565
- sha256: "905282c917c6bb731c242f928665c2ea15445aa491249dea9d98d7c79dc8fd39"
573
+ sha256: "89e2bfc3d883743539ce5774a2b93df61effde40ff958ecad78cd66b1a8b8d52"
566
574
  url: "https://pub.dev"
567
575
  source: hosted
568
- version: "6.1.1"
576
+ version: "6.1.2"
569
577
  sensors_plus_platform_interface:
570
578
  dependency: transitive
571
579
  description:
@@ -586,10 +594,10 @@ packages:
586
594
  dependency: transitive
587
595
  description:
588
596
  name: shared_preferences_android
589
- sha256: "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac"
597
+ sha256: "5bcf0772a761b04f8c6bf814721713de6f3e5d9d89caf8d3fe031b02a342379e"
590
598
  url: "https://pub.dev"
591
599
  source: hosted
592
- version: "2.4.10"
600
+ version: "2.4.11"
593
601
  shared_preferences_foundation:
594
602
  dependency: transitive
595
603
  description:
@@ -711,18 +719,18 @@ packages:
711
719
  dependency: transitive
712
720
  description:
713
721
  name: url_launcher_android
714
- sha256: "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79"
722
+ sha256: "0aedad096a85b49df2e4725fa32118f9fa580f3b14af7a2d2221896a02cd5656"
715
723
  url: "https://pub.dev"
716
724
  source: hosted
717
- version: "6.3.16"
725
+ version: "6.3.17"
718
726
  url_launcher_ios:
719
727
  dependency: transitive
720
728
  description:
721
729
  name: url_launcher_ios
722
- sha256: "7f2022359d4c099eea7df3fdf739f7d3d3b9faf3166fb1dd390775176e0b76cb"
730
+ sha256: d80b3f567a617cb923546034cc94bfe44eb15f989fe670b37f26abdb9d939cb7
723
731
  url: "https://pub.dev"
724
732
  source: hosted
725
- version: "6.3.3"
733
+ version: "6.3.4"
726
734
  url_launcher_linux:
727
735
  dependency: transitive
728
736
  description:
@@ -735,10 +743,10 @@ packages:
735
743
  dependency: transitive
736
744
  description:
737
745
  name: url_launcher_macos
738
- sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2"
746
+ sha256: c043a77d6600ac9c38300567f33ef12b0ef4f4783a2c1f00231d2b1941fea13f
739
747
  url: "https://pub.dev"
740
748
  source: hosted
741
- version: "3.2.2"
749
+ version: "3.2.3"
742
750
  url_launcher_platform_interface:
743
751
  dependency: transitive
744
752
  description:
@@ -791,10 +799,10 @@ packages:
791
799
  dependency: transitive
792
800
  description:
793
801
  name: vector_graphics_compiler
794
- sha256: "557a315b7d2a6dbb0aaaff84d857967ce6bdc96a63dc6ee2a57ce5a6ee5d3331"
802
+ sha256: ca81fdfaf62a5ab45d7296614aea108d2c7d0efca8393e96174bf4d51e6725b0
795
803
  url: "https://pub.dev"
796
804
  source: hosted
797
- version: "1.1.17"
805
+ version: "1.1.18"
798
806
  vector_math:
799
807
  dependency: transitive
800
808
  description:
@@ -807,10 +815,10 @@ packages:
807
815
  dependency: transitive
808
816
  description:
809
817
  name: vm_service
810
- sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
818
+ sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02
811
819
  url: "https://pub.dev"
812
820
  source: hosted
813
- version: "14.3.1"
821
+ version: "15.0.0"
814
822
  web:
815
823
  dependency: transitive
816
824
  description:
@@ -839,10 +847,10 @@ packages:
839
847
  dependency: transitive
840
848
  description:
841
849
  name: win32
842
- sha256: "329edf97fdd893e0f1e3b9e88d6a0e627128cc17cc316a8d67fda8f1451178ba"
850
+ sha256: "66814138c3562338d05613a6e368ed8cfb237ad6d64a9e9334be3f309acfca03"
843
851
  url: "https://pub.dev"
844
852
  source: hosted
845
- version: "5.13.0"
853
+ version: "5.14.0"
846
854
  win32_registry:
847
855
  dependency: transitive
848
856
  description:
@@ -855,10 +863,10 @@ packages:
855
863
  dependency: transitive
856
864
  description:
857
865
  name: window_manager
858
- sha256: "51d50168ab267d344b975b15390426b1243600d436770d3f13de67e55b05ec16"
866
+ sha256: "7eb6d6c4164ec08e1bf978d6e733f3cebe792e2a23fb07cbca25c2872bfdbdcd"
859
867
  url: "https://pub.dev"
860
868
  source: hosted
861
- version: "0.5.0"
869
+ version: "0.5.1"
862
870
  window_to_front:
863
871
  dependency: transitive
864
872
  description:
@@ -884,5 +892,5 @@ packages:
884
892
  source: hosted
885
893
  version: "6.5.0"
886
894
  sdks:
887
- dart: ">=3.7.0 <4.0.0"
895
+ dart: ">=3.8.0 <4.0.0"
888
896
  flutter: ">=3.29.0"
@@ -20,4 +20,4 @@ dependencies:
20
20
  dev_dependencies:
21
21
  flutter_test:
22
22
  sdk: flutter
23
- flutter_lints: ^2.0.0
23
+ flutter_lints: ^3.0.0
@@ -1,71 +0,0 @@
1
- [project]
2
- name = "flet-geolocator"
3
- version = "0.2.0.dev35"
4
- description = "Adds geolocation capabilities to your Flet apps."
5
- readme = "README.md"
6
- authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
7
- license = "Apache-2.0"
8
- requires-python = ">=3.10"
9
- dependencies = [
10
- "flet >=0.70.0.dev0",
11
- ]
12
-
13
- [project.urls]
14
- Homepage = "https://flet.dev"
15
- Documentation = "https://flet-dev.github.io/flet-audio"
16
- Repository = "https://github.com/flet-dev/flet-geolocator"
17
- Issues = "https://github.com/flet-dev/flet-geolocator/issues"
18
-
19
- [tool.setuptools.package-data]
20
- "flutter.flet_geolocator" = ["**/*"]
21
-
22
- [dependency-groups]
23
- dev = [
24
- "pre-commit>=4.2.0",
25
- "ruff>=0.11.7",
26
- ]
27
- docs = [
28
- "mkdocs",
29
- "mkdocs-material",
30
- "mkdocstrings[python]",
31
- "mkdocstrings-python-xref",
32
- "mike",
33
- "markdown>=3.6",
34
- "pymdown-extensions",
35
- "mkdocs-glightbox",
36
- "mkdocs-section-index",
37
- "griffe-modernized-annotations",
38
- "pygments>=2.16",
39
- ]
40
-
41
- [build-system]
42
- requires = ["setuptools"]
43
- build-backend = "setuptools.build_meta"
44
-
45
- [tool.ruff]
46
- line-length = 88
47
- target-version = "py39"
48
- fix = true
49
- show-fixes = true
50
-
51
- [tool.ruff.lint]
52
- select = [
53
- # pycodestyle
54
- "E",
55
- # Pyflakes
56
- "F",
57
- # pyupgrade
58
- "UP",
59
- # flake8-bugbear
60
- "B",
61
- # flake8-simplify
62
- "SIM",
63
- # isort
64
- "I"
65
- ]
66
- preview = true
67
-
68
- [tool.ruff.format]
69
- quote-style = "double"
70
- indent-style = "space"
71
- line-ending = "auto"
@@ -1,13 +0,0 @@
1
- from .geolocator import Geolocator
2
- from .types import (
3
- ForegroundNotificationConfiguration,
4
- GeolocatorAndroidConfiguration,
5
- GeolocatorConfiguration,
6
- GeolocatorIosActivityType,
7
- GeolocatorIosConfiguration,
8
- GeolocatorPermissionStatus,
9
- GeolocatorPosition,
10
- GeolocatorPositionAccuracy,
11
- GeolocatorPositionChangeEvent,
12
- GeolocatorWebConfiguration,
13
- )