flet-geolocator 0.70.0.dev6365__py3-none-any.whl → 0.70.0.dev6412__py3-none-any.whl

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.
@@ -55,9 +55,9 @@ class Geolocator(ft.Service):
55
55
  Note:
56
56
  Depending on the availability of different location services,
57
57
  this can take several seconds. It is recommended to call the
58
- [`get_last_known_position`][..] method first to receive a
58
+ [`get_last_known_position`][(c).] method first to receive a
59
59
  known/cached position and update it with the result of the
60
- [`get_current_position`][..] method.
60
+ [`get_current_position`][(c).] method.
61
61
 
62
62
  Args:
63
63
  configuration: Additional configuration for the location request.
@@ -86,9 +86,12 @@ class Geolocator(ft.Service):
86
86
  The last known position of the device as a [`GeolocatorPosition`][(p).].
87
87
 
88
88
  Raises:
89
- AssertionError: If invoked on a web platform.
89
+ FletUnsupportedPlatformException: If invoked on a web platform.
90
90
  """
91
- assert not self.page.web, "get_last_known_position is not supported on web"
91
+ if self.page.web:
92
+ raise ft.FletUnsupportedPlatformException(
93
+ "get_last_known_position is not supported on web"
94
+ )
92
95
  r = await self._invoke_method(
93
96
  "get_last_known_position",
94
97
  )
@@ -138,9 +141,12 @@ class Geolocator(ft.Service):
138
141
  `True` if the app's settings were opened successfully, `False` otherwise.
139
142
 
140
143
  Raises:
141
- AssertionError: If invoked on a web platform.
144
+ FletUnsupportedPlatformException: If invoked on a web platform.
142
145
  """
143
- assert not self.page.web, "open_app_settings is not supported on web"
146
+ if self.page.web:
147
+ raise ft.FletUnsupportedPlatformException(
148
+ "open_app_settings is not supported on web"
149
+ )
144
150
  return await self._invoke_method(
145
151
  "open_app_settings",
146
152
  )
@@ -156,9 +162,12 @@ class Geolocator(ft.Service):
156
162
  `True` if the device's settings were opened successfully, `False` otherwise.
157
163
 
158
164
  Raises:
159
- AssertionError: If invoked on a web platform.
165
+ FletUnsupportedPlatformException: If invoked on a web platform.
160
166
  """
161
- assert not self.page.web, "open_location_settings is not supported on web"
167
+ if self.page.web:
168
+ raise ft.FletUnsupportedPlatformException(
169
+ "open_location_settings is not supported on web"
170
+ )
162
171
  return await self._invoke_method(
163
172
  "open_location_settings",
164
173
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-geolocator
3
- Version: 0.70.0.dev6365
3
+ Version: 0.70.0.dev6412
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
@@ -11,7 +11,7 @@ Project-URL: Issues, https://github.com/flet-dev/flet/issues
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: flet==0.70.0.dev6365
14
+ Requires-Dist: flet==0.70.0.dev6412
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-geolocator
@@ -1,15 +1,15 @@
1
1
  flet_geolocator/__init__.py,sha256=2oT0PnZGnjufBoTZK-3WDyYJJnZExT7OnJ-F1Qqoenw,789
2
- flet_geolocator/geolocator.py,sha256=St09cxENAKPBqwi8iWlxIvtSdRzfX8YBYODbG1wgTi8,6308
2
+ flet_geolocator/geolocator.py,sha256=jE2168bZDA74oBZuWUBCx9id36YE0wNegOcSOQ67ia4,6597
3
3
  flet_geolocator/types.py,sha256=E_68vz7BEv_PWDk1j0DAoWDOfax-XBJ9J2Ije2cOktg,13028
4
- flet_geolocator-0.70.0.dev6365.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
+ flet_geolocator-0.70.0.dev6412.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
5
  flutter/flet_geolocator/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
6
- flutter/flet_geolocator/pubspec.lock,sha256=7_6Hw9GTv2CiFCjdnGPfDqOrZ7lsp8vkZfIl3xPabNE,26560
6
+ flutter/flet_geolocator/pubspec.lock,sha256=zWc451IE4uzLH0-Dr0OCarQ3hUJkwjKyESH15Y3qEfM,26558
7
7
  flutter/flet_geolocator/pubspec.yaml,sha256=-AODCVZe7N6b0OHJ4S64U1AY23h9kp8fuhR9El_jsCU,368
8
8
  flutter/flet_geolocator/lib/flet_geolocator.dart,sha256=f5rUWcdvXkySvVjv50N-m0neLWB3P2okmEWxGg9r9Vk,70
9
9
  flutter/flet_geolocator/lib/src/extension.dart,sha256=x8zm0Pt3ZsyTj7q8MImtLTIK_kCAoaqYaJ41NWPug-8,314
10
10
  flutter/flet_geolocator/lib/src/geolocator.dart,sha256=GiN-E11OqatsYDIOwIgscrBhK9OPcHduttnuED6cqHs,3275
11
11
  flutter/flet_geolocator/lib/src/utils/geolocator.dart,sha256=BZxf9l1CIvuNEnZMVONUxAnGVSXl2XY1zihP1gH6qdo,3999
12
- flet_geolocator-0.70.0.dev6365.dist-info/METADATA,sha256=JPxFcw7R4kW1f-ynTktgeumy1xU2e0ks1owDTPbWLUs,2149
13
- flet_geolocator-0.70.0.dev6365.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- flet_geolocator-0.70.0.dev6365.dist-info/top_level.txt,sha256=MuAs94VDBb5Btg9cvN83W2sHm_YslMQ2JOKZhqm88cs,24
15
- flet_geolocator-0.70.0.dev6365.dist-info/RECORD,,
12
+ flet_geolocator-0.70.0.dev6412.dist-info/METADATA,sha256=_8qnZ31zxe_YmSk2a2Ft8rfkC7f86fQQjm_SCCUW73M,2149
13
+ flet_geolocator-0.70.0.dev6412.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ flet_geolocator-0.70.0.dev6412.dist-info/top_level.txt,sha256=MuAs94VDBb5Btg9cvN83W2sHm_YslMQ2JOKZhqm88cs,24
15
+ flet_geolocator-0.70.0.dev6412.dist-info/RECORD,,
@@ -77,10 +77,10 @@ packages:
77
77
  dependency: transitive
78
78
  description:
79
79
  name: device_info_plus
80
- sha256: "49413c8ca514dea7633e8def233b25efdf83ec8522955cc2c0e3ad802927e7c6"
80
+ sha256: dd0e8e02186b2196c7848c9d394a5fd6e5b57a43a546082c5820b1ec72317e33
81
81
  url: "https://pub.dev"
82
82
  source: hosted
83
- version: "12.1.0"
83
+ version: "12.2.0"
84
84
  device_info_plus_platform_interface:
85
85
  dependency: transitive
86
86
  description: