android-notify 1.59.4__py3-none-any.whl → 1.60.1__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.
- android_notify/__init__.py +4 -4
- android_notify/__main__.py +24 -0
- android_notify/an_types.py +226 -91
- android_notify/an_utils.py +129 -18
- android_notify/base.py +97 -90
- android_notify/config.py +145 -0
- android_notify/core.py +227 -139
- android_notify/styles.py +25 -22
- android_notify/sword.py +1043 -992
- {android_notify-1.59.4.dist-info → android_notify-1.60.1.dist-info}/METADATA +69 -12
- android_notify-1.60.1.dist-info/RECORD +13 -0
- android_notify-1.59.4.dist-info/RECORD +0 -12
- {android_notify-1.59.4.dist-info → android_notify-1.60.1.dist-info}/WHEEL +0 -0
- {android_notify-1.59.4.dist-info → android_notify-1.60.1.dist-info}/top_level.txt +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: android-notify
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: A Python package that simplifies creating Android notifications in Kivy apps.
|
|
3
|
+
Version: 1.60.1
|
|
4
|
+
Summary: A Python package that simplifies creating Android notifications in Kivy and Flet apps.
|
|
5
5
|
Home-page: https://android-notify.vercel.app
|
|
6
6
|
Author: Fabian
|
|
7
7
|
Author-email: fector101@yahoo.com
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Documentation, https://android-notify.vercel.app/
|
|
10
|
-
Project-URL: Source, https://github.com/fector101/
|
|
11
|
-
Project-URL: Tracker, https://github.com/fector101/
|
|
10
|
+
Project-URL: Source, https://github.com/fector101/android_notify
|
|
11
|
+
Project-URL: Tracker, https://github.com/fector101/android_notify/issues
|
|
12
12
|
Project-URL: Funding, https://www.buymeacoffee.com/fector101
|
|
13
13
|
Keywords: android,notifications,kivy,mobile,post-notifications,pyjnius,android-notifications,kivy-notifications,python-android,mobile-development,push-notifications,mobile-app,kivy-application
|
|
14
14
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -19,7 +19,6 @@ Classifier: Intended Audience :: Developers
|
|
|
19
19
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
20
20
|
Requires-Python: >=3.6
|
|
21
21
|
Description-Content-Type: text/markdown
|
|
22
|
-
Requires-Dist: kivy>=2.0.0
|
|
23
22
|
Requires-Dist: pyjnius>=1.4.2
|
|
24
23
|
Dynamic: author
|
|
25
24
|
Dynamic: author-email
|
|
@@ -37,7 +36,7 @@ Dynamic: summary
|
|
|
37
36
|
<div align="center">
|
|
38
37
|
<br>
|
|
39
38
|
<h1> Android-Notify </h1>
|
|
40
|
-
<p><a href='https://android-notify.vercel.app'>Android Notify</a> is a Python library for effortlessly creating and managing Android notifications in Kivy apps.</p>
|
|
39
|
+
<p><a href='https://android-notify.vercel.app'>Android Notify</a> is a Python library for effortlessly creating and managing Android notifications in Kivy and Flet apps.</p>
|
|
41
40
|
<p>Supports various styles and ensures seamless integration, customization and Pythonic APIs.</p>
|
|
42
41
|
<!-- <br> -->
|
|
43
42
|
<!-- <img src="https://raw.githubusercontent.com/Fector101/android_notify/main/docs/imgs/democollage.jpg"> -->
|
|
@@ -49,19 +48,20 @@ The Android Notify package provides a simple yet comprehensive way to create and
|
|
|
49
48
|
|
|
50
49
|
- **Multiple Notification Styles**: Support for various notification styles including:
|
|
51
50
|
- Simple text notifications
|
|
52
|
-
- Progress bar notifications (determinate and indeterminate)
|
|
53
|
-
- Big text notifications
|
|
54
|
-
- Inbox-style notifications
|
|
51
|
+
- [Progress bar notifications](https://android-notify.vercel.app/components#progress-bars) (determinate and indeterminate)
|
|
55
52
|
- Large icon notifications
|
|
56
53
|
- Big picture notifications
|
|
57
54
|
- Combined image styles
|
|
55
|
+
- Custom notification Icon - [images section](https://android-notify.vercel.app/components#images)
|
|
56
|
+
- Big text notifications
|
|
57
|
+
- Inbox-style notifications
|
|
58
|
+
- Colored texts and Icons
|
|
58
59
|
|
|
59
60
|
- **Rich Functionality**:
|
|
60
61
|
- Add action buttons with custom callbacks
|
|
61
|
-
- Update notification content dynamically
|
|
62
|
+
- [Update notification](https://android-notify.vercel.app/advanced-methods#updating-notification) content dynamically
|
|
62
63
|
- Manage progress bars with fine-grained control
|
|
63
|
-
- Custom notification
|
|
64
|
-
- Custom notification channels for Android 8.0+ (Creating and Deleting)
|
|
64
|
+
- [Custom notification channels](https://android-notify.vercel.app/advanced-methods#channel-management) for Android 8.0+ (Creating and Deleting)
|
|
65
65
|
- Silent notifications
|
|
66
66
|
- Persistent notifications
|
|
67
67
|
- Click handlers and callbacks
|
|
@@ -85,6 +85,8 @@ Notification(
|
|
|
85
85
|
|
|
86
86
|
## Installation
|
|
87
87
|
|
|
88
|
+
### Kivy apps:
|
|
89
|
+
|
|
88
90
|
In your **`buildozer.spec`** file, ensure you include the following:
|
|
89
91
|
|
|
90
92
|
```ini
|
|
@@ -99,13 +101,68 @@ android.enable_androidx = True
|
|
|
99
101
|
android.api = 35
|
|
100
102
|
```
|
|
101
103
|
|
|
104
|
+
### Flet apps:
|
|
105
|
+
|
|
106
|
+
1/3) In your `pyproject.toml` file, ensure you include the following:
|
|
107
|
+
|
|
108
|
+
```toml
|
|
109
|
+
[tool.flet.android]
|
|
110
|
+
dependencies = [
|
|
111
|
+
"certifi==2025.6.15","pyjnius","android-notify"
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
[tool.flet.android.permission]
|
|
115
|
+
"android.permission.POST_NOTIFICATIONS" = true
|
|
116
|
+
```
|
|
117
|
+
2/3) At Path `<project-root>/build/flutter/android/app/build.gradle` add the following lines at the end of the file:
|
|
118
|
+
|
|
119
|
+
Change from this: `dependencies{}`
|
|
120
|
+
To this:
|
|
121
|
+
```gradle
|
|
122
|
+
dependencies {
|
|
123
|
+
implementation 'androidx.core:core:1.6.0'
|
|
124
|
+
implementation 'androidx.core:core-ktx:1.15.0'
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
3/3) At Path `<project-root>/build/flutter/android/app/proguard-rules.pro` add the following lines at the end of the file:
|
|
128
|
+
|
|
129
|
+
Change from this:
|
|
130
|
+
```proguard
|
|
131
|
+
-keep class com.flet.serious_python_android.** { *; }
|
|
132
|
+
-keepnames class * { *; }
|
|
133
|
+
```
|
|
134
|
+
To this:
|
|
135
|
+
```proguard
|
|
136
|
+
-keep class com.flet.serious_python_android.** { *; }
|
|
137
|
+
-keepnames class * { *; }
|
|
138
|
+
|
|
139
|
+
# Keep any AndroidX Core class with 'Notification' in its name
|
|
140
|
+
-keep class androidx.core.**Notification** { *; }
|
|
141
|
+
-keep class androidx.core.**Notification**$* { *; }
|
|
142
|
+
|
|
143
|
+
# Used to request access to Notification
|
|
144
|
+
-keep class androidx.core.app.ActivityCompat { *; }
|
|
145
|
+
```
|
|
146
|
+
> [!NOTE]
|
|
147
|
+
> If you change these values `dependencies, name, bundle_id, product, company` in your `pyproject.toml` file, make sure to go through the above steps again to ensure the changes are reflected in the build files.
|
|
148
|
+
[complete flet example](https://github.com/Fector101/android_notify/tree/main/docs/examples/flet-working)
|
|
149
|
+
|
|
102
150
|
Can be installed via `pip` For testing purposes:
|
|
103
151
|
|
|
104
152
|
```bash
|
|
105
153
|
pip install android_notify
|
|
154
|
+
android-notify -v
|
|
106
155
|
```
|
|
107
156
|
|
|
108
157
|
## Documentation
|
|
158
|
+
For Dev Version use
|
|
159
|
+
```requirements = python3, kivy, pyjnius, https://github.com/Fector101/android_notify/archive/main.zip```
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
To use colored text in your notifications:
|
|
163
|
+
- Copy the [res](https://github.com/Fector101/android_notify/tree/main/android_notify/res) folder to your app path.
|
|
164
|
+
Lastly in your `buildozer.spec` file
|
|
165
|
+
- Add `source.include_exts = xml` and `android.add_resources = ./res`
|
|
109
166
|
|
|
110
167
|
For full documentation, examples, and advanced usage, API reference visit the
|
|
111
168
|
[documentation](https://android-notify.vercel.app)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
android_notify/__init__.py,sha256=XvJ8BRuABcEVWSrMvl2IgNan2kB13ElACrWID4tgtDE,176
|
|
2
|
+
android_notify/__main__.py,sha256=LIU8lzSxW3NXVslLH41hAvQYcU_Jhdsp_IMK5QPOQKU,708
|
|
3
|
+
android_notify/an_types.py,sha256=dGbD96VY_UdJxk7JSsOmiE4p25xrYuLQwrj3Lb9THWc,5377
|
|
4
|
+
android_notify/an_utils.py,sha256=6uh7WwefXdCr2r85dOxRCRj1hL56gdWGnyfQykAAI1A,5057
|
|
5
|
+
android_notify/base.py,sha256=syAIDau70vnRe-ouMhSyRT1ufOG8BP6Tu_HIVQmGzpo,3806
|
|
6
|
+
android_notify/config.py,sha256=vcT_HueZsm-mYket_vSBIbAa8NkQ3qAotMHo1VYWJM0,5426
|
|
7
|
+
android_notify/core.py,sha256=H0x7dReYtTpb3UxuhFENVw4IQVx2zVKXWynn9eh26rU,9650
|
|
8
|
+
android_notify/styles.py,sha256=D4hATjsV6hiRo6aoXs6_IpXahIs1QklVUQLjguy18eo,924
|
|
9
|
+
android_notify/sword.py,sha256=gBznRn0hD2Ohx2yCEXjebD0VXtrKKN-14lYHae7wflM,43679
|
|
10
|
+
android_notify-1.60.1.dist-info/METADATA,sha256=40Gq_kiLrk2uy_Ap8EG-4Hb0B1q_1Mk5ZcwrnoNcNrA,6780
|
|
11
|
+
android_notify-1.60.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
12
|
+
android_notify-1.60.1.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
|
|
13
|
+
android_notify-1.60.1.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
android_notify/__init__.py,sha256=lcLjyfegXgU7cyGhfSphAOBipXwemrVkdYy3mcF6X5Y,172
|
|
2
|
-
android_notify/__main__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
android_notify/an_types.py,sha256=LlE0zzPskVG2topZx3mVETGu5MqnpThs58Ph392ocy4,2390
|
|
4
|
-
android_notify/an_utils.py,sha256=ZEP_67Til9WdX0nyFpVQ9lSJnUG6uyHMWzUn7Q6s1OI,452
|
|
5
|
-
android_notify/base.py,sha256=PAF8-Jw60395O32ZGJ8xSJXIQbUglpYgngfJycCYCeY,3501
|
|
6
|
-
android_notify/core.py,sha256=Per4HFwYwP-mxHJqnwcLlWXsbZsSeeAYN49MmFU2qVk,6113
|
|
7
|
-
android_notify/styles.py,sha256=jLxeXB41HXe0fn3l07JZsHi-d0u-dESvsV_OqQow_Xc,726
|
|
8
|
-
android_notify/sword.py,sha256=PbqbYR2Wjt5d5DL346OLepaKhsAgd-MlnXY9UNAqv1U,41197
|
|
9
|
-
android_notify-1.59.4.dist-info/METADATA,sha256=skTNItz_1JsdBlCwHwnTD97XEzQB5cAcZi4z4w2wnmM,4494
|
|
10
|
-
android_notify-1.59.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
-
android_notify-1.59.4.dist-info/top_level.txt,sha256=IR1ONMrRSRINZpWn2X0dL5gbWwWINsK7PW8Jy2p4fU8,15
|
|
12
|
-
android_notify-1.59.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|