android-notify 1.53__tar.gz → 1.54__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.53
3
+ Version: 1.54
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
@@ -409,7 +409,7 @@ notification.send()
409
409
 
410
410
  args
411
411
 
412
- - app_icon: To Change Default app icon use PNG Or Image Will display as a Black Box
412
+ - app_icon: If not specified defaults to app icon, To Change Default app icon use PNG format Or Image Will display as a Black Box
413
413
 
414
414
  ### Instance.send
415
415
 
@@ -373,7 +373,7 @@ notification.send()
373
373
 
374
374
  args
375
375
 
376
- - app_icon: To Change Default app icon use PNG Or Image Will display as a Black Box
376
+ - app_icon: If not specified defaults to app icon, To Change Default app icon use PNG format Or Image Will display as a Black Box
377
377
 
378
378
  ### Instance.send
379
379
 
@@ -1,7 +1,7 @@
1
1
  """ Non-Advanced Stuff """
2
2
  import random
3
3
  import os
4
-
4
+ print("This function has deprecated use Notification() class")
5
5
  ON_ANDROID = False
6
6
  try:
7
7
  from jnius import autoclass,cast # Needs Java to be installed
@@ -142,6 +142,7 @@ class Notification(BaseNotification):
142
142
  print(f'new notification title: {self.title}')
143
143
  if ON_ANDROID:
144
144
  self.__builder.setContentTitle(String(self.title))
145
+ self.notification_manager.notify(self.__id, self.__builder.build())
145
146
 
146
147
  def updateMessage(self,new_message):
147
148
  """Changes Old Message
@@ -154,6 +155,7 @@ class Notification(BaseNotification):
154
155
  print(f'new notification message: {self.message}')
155
156
  if ON_ANDROID:
156
157
  self.__builder.setContentText(String(self.message))
158
+ self.notification_manager.notify(self.__id, self.__builder.build())
157
159
 
158
160
  def updateProgressBar(self,current_value,message:str=''):
159
161
  """Updates progress bar current value
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: android-notify
3
- Version: 1.53
3
+ Version: 1.54
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
@@ -409,7 +409,7 @@ notification.send()
409
409
 
410
410
  args
411
411
 
412
- - app_icon: To Change Default app icon use PNG Or Image Will display as a Black Box
412
+ - app_icon: If not specified defaults to app icon, To Change Default app icon use PNG format Or Image Will display as a Black Box
413
413
 
414
414
  ### Instance.send
415
415
 
@@ -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.53",
9
+ version="1.54",
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.",
@@ -43,11 +43,11 @@ setup(
43
43
  'kivy-application'
44
44
  ],
45
45
  project_urls={
46
- "Documentation": "https://github.com/fector101/android-notify/", # Replace with your documentation URL
47
- # "Documentation": "https://github.com/fector101/android-notify/wiki", # Replace with your documentation URL
46
+ "Documentation": "https://github.com/fector101/android-notify/",
47
+ # "Documentation": "https://github.com/fector101/android-notify/wiki",
48
48
  "Source": "https://github.com/fector101/android-notify",
49
49
  "Tracker": "https://github.com/fector101/android-notify/issues",
50
- "Funding": "https://www.buymeacoffee.com/fector101" # Replace with your Buy Me a Coffee link
50
+ "Funding": "https://www.buymeacoffee.com/fector101"
51
51
  },
52
52
  license="MIT"
53
53
  )
File without changes