flet-ads 0.70.0.dev6365__tar.gz → 0.70.0.dev6412__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-ads might be problematic. Click here for more details.
- {flet_ads-0.70.0.dev6365/src/flet_ads.egg-info → flet_ads-0.70.0.dev6412}/PKG-INFO +2 -2
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/pyproject.toml +2 -2
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads/banner_ad.py +2 -1
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads/base_ad.py +7 -4
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads/interstitial_ad.py +2 -1
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads/native_ad.py +8 -7
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412/src/flet_ads.egg-info}/PKG-INFO +2 -2
- flet_ads-0.70.0.dev6412/src/flet_ads.egg-info/requires.txt +1 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/pubspec.lock +2 -2
- flet_ads-0.70.0.dev6365/src/flet_ads.egg-info/requires.txt +0 -1
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/LICENSE +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/README.md +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/setup.cfg +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads/__init__.py +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads/types.py +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads.egg-info/SOURCES.txt +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads.egg-info/dependency_links.txt +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads.egg-info/top_level.txt +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/analysis_options.yaml +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/flet_ads.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/banner.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/extension.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/interstitial.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/native.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/utils/ads.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/utils/native.dart +0 -0
- {flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/pubspec.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-ads
|
|
3
|
-
Version: 0.70.0.
|
|
3
|
+
Version: 0.70.0.dev6412
|
|
4
4
|
Summary: Display Google Ads in 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.
|
|
14
|
+
Requires-Dist: flet==0.70.0.dev6412
|
|
15
15
|
Dynamic: license-file
|
|
16
16
|
|
|
17
17
|
# flet-ads
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "flet-ads"
|
|
3
|
-
version = "0.70.0.
|
|
3
|
+
version = "0.70.0.dev6412"
|
|
4
4
|
description = "Display Google Ads in Flet apps."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
|
|
7
7
|
license = "Apache-2.0"
|
|
8
8
|
requires-python = ">=3.10"
|
|
9
9
|
dependencies = [
|
|
10
|
-
"flet==0.70.0.
|
|
10
|
+
"flet==0.70.0.dev6412",
|
|
11
11
|
]
|
|
12
12
|
|
|
13
13
|
[project.urls]
|
|
@@ -11,7 +11,8 @@ class BannerAd(BaseAd):
|
|
|
11
11
|
Displays a banner ad.
|
|
12
12
|
|
|
13
13
|
Raises:
|
|
14
|
-
|
|
14
|
+
FletUnsupportedPlatformException: When this control is used on a web
|
|
15
|
+
and/or non-mobile platform.
|
|
15
16
|
"""
|
|
16
17
|
|
|
17
18
|
on_will_dismiss: Optional[ft.ControlEventHandler["BannerAd"]] = None
|
|
@@ -11,7 +11,8 @@ class BaseAd(ft.Control):
|
|
|
11
11
|
Base class for all ad controls in Flet Ads package.
|
|
12
12
|
|
|
13
13
|
Raises:
|
|
14
|
-
|
|
14
|
+
FletUnsupportedPlatformException: When using this control on a web
|
|
15
|
+
and/or non-mobile platform.
|
|
15
16
|
"""
|
|
16
17
|
|
|
17
18
|
unit_id: str
|
|
@@ -63,6 +64,8 @@ class BaseAd(ft.Control):
|
|
|
63
64
|
"""
|
|
64
65
|
|
|
65
66
|
def before_update(self):
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
if self.page.web or not self.page.platform.is_mobile():
|
|
68
|
+
raise ft.FletUnsupportedPlatformException(
|
|
69
|
+
f"{self.__class__.__name__} is only supported on "
|
|
70
|
+
f"Mobile (Android and iOS)"
|
|
71
|
+
)
|
|
@@ -8,7 +8,8 @@ class InterstitialAd(BaseAd):
|
|
|
8
8
|
Displays a full-screen interstitial ad.
|
|
9
9
|
|
|
10
10
|
Raises:
|
|
11
|
-
|
|
11
|
+
FletUnsupportedPlatformException: When using this control on a
|
|
12
|
+
web and/or non-mobile platform.
|
|
12
13
|
"""
|
|
13
14
|
|
|
14
15
|
async def show(self):
|
|
@@ -9,24 +9,25 @@ __all__ = ["NativeAd"]
|
|
|
9
9
|
class NativeAd(BannerAd):
|
|
10
10
|
"""
|
|
11
11
|
Renders a native ad.
|
|
12
|
-
|
|
13
|
-
Raises:
|
|
14
|
-
AssertionError: When neither [`factory_id`][(c).] nor
|
|
15
|
-
[`template_style`][(c).] is set.
|
|
16
12
|
"""
|
|
17
13
|
|
|
18
14
|
factory_id: str = None
|
|
19
15
|
"""
|
|
20
16
|
An identifier for the factory that creates the Platform view.
|
|
17
|
+
|
|
18
|
+
Raises:
|
|
19
|
+
ValueError: When neither `factory_id` nor [`template_style`][(c).] is set.
|
|
21
20
|
"""
|
|
22
21
|
|
|
23
22
|
template_style: NativeAdTemplateStyle = None
|
|
24
23
|
"""
|
|
25
24
|
A style for the native ad template.
|
|
25
|
+
|
|
26
|
+
Raises:
|
|
27
|
+
ValueError: When neither [`factory_id`][(c).] nor `template_style` is set.
|
|
26
28
|
"""
|
|
27
29
|
|
|
28
30
|
def before_update(self):
|
|
29
31
|
super().before_update()
|
|
30
|
-
|
|
31
|
-
"factory_id or template_style must be set"
|
|
32
|
-
)
|
|
32
|
+
if self.factory_id is None and self.template_style is None:
|
|
33
|
+
raise ValueError("factory_id or template_style must be set")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flet-ads
|
|
3
|
-
Version: 0.70.0.
|
|
3
|
+
Version: 0.70.0.dev6412
|
|
4
4
|
Summary: Display Google Ads in 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.
|
|
14
|
+
Requires-Dist: flet==0.70.0.dev6412
|
|
15
15
|
Dynamic: license-file
|
|
16
16
|
|
|
17
17
|
# flet-ads
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
flet==0.70.0.dev6412
|
|
@@ -77,10 +77,10 @@ packages:
|
|
|
77
77
|
dependency: transitive
|
|
78
78
|
description:
|
|
79
79
|
name: device_info_plus
|
|
80
|
-
sha256:
|
|
80
|
+
sha256: dd0e8e02186b2196c7848c9d394a5fd6e5b57a43a546082c5820b1ec72317e33
|
|
81
81
|
url: "https://pub.dev"
|
|
82
82
|
source: hosted
|
|
83
|
-
version: "12.
|
|
83
|
+
version: "12.2.0"
|
|
84
84
|
device_info_plus_platform_interface:
|
|
85
85
|
dependency: transitive
|
|
86
86
|
description:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
flet==0.70.0.dev6365
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flet_ads.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/analysis_options.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/banner.dart
RENAMED
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/extension.dart
RENAMED
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/interstitial.dart
RENAMED
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/src/native.dart
RENAMED
|
File without changes
|
|
File without changes
|
{flet_ads-0.70.0.dev6365 → flet_ads-0.70.0.dev6412}/src/flutter/flet_ads/lib/utils/native.dart
RENAMED
|
File without changes
|
|
File without changes
|