android-widgets 0.1.3__tar.gz → 0.1.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-widgets
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: This would be used to auto gen XMLs for Android Home Screen widgets.
5
5
  Author-email: Fabian <fector101@yahoo.com>
6
6
  License: MIT
@@ -35,7 +35,7 @@ def get_package_name():
35
35
  def get_resource(name, folder_base):
36
36
  resources = get_resources()
37
37
  package_name = get_package_name()
38
- print("resources.getIdentifier",name, folder_base,"id:",resources.getIdentifier(name, folder_base, package_name))
38
+ # print("resources.getIdentifier",name, folder_base,"id:",resources.getIdentifier(name, folder_base, package_name))
39
39
  return resources.getIdentifier(name, folder_base, package_name)
40
40
 
41
41
  def get_buildozer_spec_file_path():
@@ -1,11 +1,5 @@
1
1
  import os
2
2
 
3
- try: # This for when genrating xml with P4A.hook
4
- from jnius import autoclass
5
- except ModuleNotFoundError:
6
- pass
7
-
8
-
9
3
  ON_ANDROID = False
10
4
  def is_platform_android():
11
5
  # Took this from kivy to fix my logs in P4A.hook, so no need to import things i don't need by doing `from kivy.utils import platform`
@@ -23,6 +17,7 @@ def is_platform_android():
23
17
 
24
18
 
25
19
  if is_platform_android():
20
+ from jnius import autoclass # This for when genrating xml with P4A.hook
26
21
  ON_ANDROID = True
27
22
 
28
23
  def from_service_file():
@@ -74,8 +74,6 @@ def generate_receivers(package: str) -> str:
74
74
 
75
75
 
76
76
 
77
- print("------------------ Hello from android_widget.service_injector ------------------")
78
-
79
77
 
80
78
  def inject_foreground_service_types(
81
79
  manifest_text: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: android-widgets
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: This would be used to auto gen XMLs for Android Home Screen widgets.
5
5
  Author-email: Fabian <fector101@yahoo.com>
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "android-widgets"
7
- version = "0.1.3"
7
+ version = "0.1.4"
8
8
  description = "This would be used to auto gen XMLs for Android Home Screen widgets."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  authors = [