flet-ads 0.2.0.dev48__tar.gz → 0.2.0.dev505__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-ads
3
- Version: 0.2.0.dev48
3
+ Version: 0.2.0.dev505
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
@@ -41,7 +41,9 @@ This package supports the following platforms:
41
41
  | Android | ✅ |
42
42
  | Web | ❌ |
43
43
 
44
- ## Installation
44
+ ## Usage
45
+
46
+ ### Installation
45
47
 
46
48
  To install the `flet-ads` package and add it to your project dependencies:
47
49
 
@@ -61,6 +63,6 @@ To install the `flet-ads` package and add it to your project dependencies:
61
63
  poetry add flet-ads
62
64
  ```
63
65
 
64
- ## Examples
66
+ ### Examples
65
67
 
66
- For examples, see [this](./examples)
68
+ For examples, see [these](./examples).
@@ -25,7 +25,9 @@ This package supports the following platforms:
25
25
  | Android | ✅ |
26
26
  | Web | ❌ |
27
27
 
28
- ## Installation
28
+ ## Usage
29
+
30
+ ### Installation
29
31
 
30
32
  To install the `flet-ads` package and add it to your project dependencies:
31
33
 
@@ -45,6 +47,6 @@ To install the `flet-ads` package and add it to your project dependencies:
45
47
  poetry add flet-ads
46
48
  ```
47
49
 
48
- ## Examples
50
+ ### Examples
49
51
 
50
- For examples, see [this](./examples)
52
+ For examples, see [these](./examples).
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "flet-ads"
3
- version = "0.2.0.dev48"
3
+ version = "0.2.0.dev505"
4
4
  description = "Display Google Ads in Flet apps."
5
5
  readme = "README.md"
6
6
  authors = [{ name = "Flet contributors", email = "hello@flet.dev" }]
@@ -49,6 +49,7 @@ docs = [
49
49
  "markdown-exec[ansi] >=1.11.0",
50
50
  "pydocstyle >=6.3.0",
51
51
  "linkcheckmd >=1.4.0",
52
+ "mkdocs-external-images",
52
53
  { include-group = 'docs-coverage' },
53
54
  ]
54
55
  all = [
@@ -56,6 +57,9 @@ all = [
56
57
  { include-group = 'docs' },
57
58
  ]
58
59
 
60
+ [tool.uv.sources]
61
+ mkdocs-external-images = { git = "https://github.com/flet-dev/mkdocs-external-images", tag = "v0.2.0" }
62
+
59
63
  [build-system]
60
64
  requires = ["setuptools"]
61
65
  build-backend = "setuptools.build_meta"
@@ -1,7 +1,7 @@
1
- from .banner_ad import BannerAd
2
- from .base_ad import BaseAd
3
- from .interstitial_ad import InterstitialAd
4
- from .types import (
1
+ from flet_ads.banner_ad import BannerAd
2
+ from flet_ads.base_ad import BaseAd
3
+ from flet_ads.interstitial_ad import InterstitialAd
4
+ from flet_ads.types import (
5
5
  AdRequest,
6
6
  PaidAdEvent,
7
7
  PrecisionType,
@@ -2,8 +2,8 @@ from typing import Optional
2
2
 
3
3
  import flet as ft
4
4
 
5
- from .base_ad import BaseAd
6
- from .types import PaidAdEvent
5
+ from flet_ads.base_ad import BaseAd
6
+ from flet_ads.types import PaidAdEvent
7
7
 
8
8
 
9
9
  @ft.control("BannerAd")
@@ -1,8 +1,6 @@
1
- import asyncio
2
-
3
1
  import flet as ft
4
2
 
5
- from .base_ad import BaseAd
3
+ from flet_ads.base_ad import BaseAd
6
4
 
7
5
 
8
6
  @ft.control("InterstitialAd")
@@ -14,8 +12,5 @@ class InterstitialAd(BaseAd):
14
12
  AssertionError: When using this control on a web and/or non-mobile platform.
15
13
  """
16
14
 
17
- def show(self):
18
- asyncio.create_task(self.show_async())
19
-
20
- async def show_async(self):
21
- await self._invoke_method_async("show")
15
+ async def show(self):
16
+ await self._invoke_method("show")
@@ -1,7 +1,7 @@
1
1
  import flet as ft
2
2
 
3
- from .banner_ad import BannerAd
4
- from .types import NativeAdTemplateStyle
3
+ from flet_ads.banner_ad import BannerAd
4
+ from flet_ads.types import NativeAdTemplateStyle
5
5
 
6
6
  __all__ = ["NativeAd"]
7
7
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-ads
3
- Version: 0.2.0.dev48
3
+ Version: 0.2.0.dev505
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
@@ -41,7 +41,9 @@ This package supports the following platforms:
41
41
  | Android | ✅ |
42
42
  | Web | ❌ |
43
43
 
44
- ## Installation
44
+ ## Usage
45
+
46
+ ### Installation
45
47
 
46
48
  To install the `flet-ads` package and add it to your project dependencies:
47
49
 
@@ -61,6 +63,6 @@ To install the `flet-ads` package and add it to your project dependencies:
61
63
  poetry add flet-ads
62
64
  ```
63
65
 
64
- ## Examples
66
+ ### Examples
65
67
 
66
- For examples, see [this](./examples)
68
+ For examples, see [these](./examples).
File without changes