android-notify 1.50__tar.gz → 1.50.1__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 android-notify might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: android-notify
3
- Version: 1.50
3
+ Version: 1.50.1
4
4
  Summary: A Python package that simpilfies creating Android notifications in Kivy apps.
5
5
  Home-page: https://github.com/fector101/android-notify
6
6
  Author: Fabian
@@ -220,7 +220,11 @@ class Notification:
220
220
  checkInReference([inputted_kwargs['style']],self.style_values,'values')
221
221
 
222
222
  def __setArgs(self,options_dict:dict):
223
+ non_string_keys=['progress_max_value','progress_current_value','callback','logs']
224
+
223
225
  for key,value in options_dict.items():
226
+ if key not in non_string_keys: # Fixing Types
227
+ value = str(value)
224
228
  if key == 'channel_name' and value.strip():
225
229
  setattr(self,key, value[:40])
226
230
  elif key == 'channel_id' and value.strip(): # If user input's a channel id (i format properly)
@@ -509,15 +513,7 @@ class NotificationHandler:
509
513
 
510
514
  @classmethod
511
515
  def bindNotifyListener(cls):
512
- """Binds the notification listener.\n\n
513
- ```
514
- from kivy.app import App
515
- from android_notify import bindNotifyListener
516
- class Myapp(App):
517
- def on_start(self):
518
- bindNotifyListener() # if successfull returns True
519
- ```
520
- """
516
+ """This Creates a Listener for All Notification Clicks and Functions"""
521
517
  if not cls.is_on_android():
522
518
  return "Not on Android"
523
519
  #Beta TODO Automatic bind when Notification object is called the first time use keep trying BroadcastReceiver
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: android-notify
3
- Version: 1.50
3
+ Version: 1.50.1
4
4
  Summary: A Python package that simpilfies creating Android notifications in Kivy apps.
5
5
  Home-page: https://github.com/fector101/android-notify
6
6
  Author: Fabian
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as readme_data:
6
6
 
7
7
  setup(
8
8
  name="android-notify",
9
- version="1.50",
9
+ version="1.50.1",
10
10
  author="Fabian",
11
11
  author_email='fector101@yahoo.com',
12
12
  description="A Python package that simpilfies creating Android notifications in Kivy apps.",
File without changes
File without changes