pyobjc-framework-BackgroundAssets 9.0__tar.gz → 9.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.
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/BackgroundAssets/_metadata.py +23 -2
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/pyobjc_framework_BackgroundAssets.egg-info/PKG-INFO +1 -1
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/pyobjc_framework_BackgroundAssets.egg-info/SOURCES.txt +5 -2
- pyobjc-framework-BackgroundAssets-9.1/Lib/pyobjc_framework_BackgroundAssets.egg-info/requires.txt +2 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Modules/pyobjc-api.h +1 -1
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Modules/pyobjc-compat.h +25 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/PKG-INFO +1 -1
- pyobjc-framework-BackgroundAssets-9.0/PyObjCTest/test_batypes.py → pyobjc-framework-BackgroundAssets-9.1/PyObjCTest/test_badownload.py +9 -4
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/PyObjCTest/test_badownloadmanager.py +7 -1
- pyobjc-framework-BackgroundAssets-9.1/PyObjCTest/test_baurldownload.py +11 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/metadata/BackgroundAssets.fwinfo +11 -0
- pyobjc-framework-BackgroundAssets-9.1/metadata/raw/arm64-13.3.fwinfo +944 -0
- pyobjc-framework-BackgroundAssets-9.1/metadata/raw/x86_64-13.3.fwinfo +944 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/pyobjc_setup.py +14 -7
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/setup.py +1 -1
- pyobjc-framework-BackgroundAssets-9.0/Lib/pyobjc_framework_BackgroundAssets.egg-info/requires.txt +0 -2
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/BackgroundAssets/__init__.py +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/pyobjc_framework_BackgroundAssets.egg-info/dependency_links.txt +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/pyobjc_framework_BackgroundAssets.egg-info/not-zip-safe +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Lib/pyobjc_framework_BackgroundAssets.egg-info/top_level.txt +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/License.txt +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/MANIFEST.in +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Modules/_BackgroundAssets.m +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Modules/_BackgroundAssets_protocols.m +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/PyObjCTest/__init__.py +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/PyObjCTest/test_backgroundassets.py +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/PyObjCTest/test_badownloaderextension.py +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/metadata/metadata.ini +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/metadata/raw/arm64-13.0.fwinfo +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/metadata/raw/x86_64-13.0.fwinfo +0 -0
- {pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is generated by objective.metadata
|
|
2
2
|
#
|
|
3
|
-
# Last update:
|
|
3
|
+
# Last update: Fri Feb 17 21:17:00 2023
|
|
4
4
|
#
|
|
5
5
|
# flake8: noqa
|
|
6
6
|
|
|
@@ -38,16 +38,32 @@ misc.update(
|
|
|
38
38
|
"BAContentRequest": NewType("BAContentRequest", int),
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
|
-
misc.update(
|
|
41
|
+
misc.update(
|
|
42
|
+
{
|
|
43
|
+
"BADownloadState": NewType("BADownloadState", int),
|
|
44
|
+
"BADownloaderPriority": NewType("BADownloaderPriority", int),
|
|
45
|
+
}
|
|
46
|
+
)
|
|
42
47
|
misc.update({})
|
|
43
48
|
r = objc.registerMetaDataForSelector
|
|
44
49
|
objc._updatingMetadata(True)
|
|
45
50
|
try:
|
|
51
|
+
r(b"BADownload", b"isEssential", {"retval": {"type": b"Z"}})
|
|
46
52
|
r(
|
|
47
53
|
b"BADownloadManager",
|
|
48
54
|
b"cancelDownload:error:",
|
|
49
55
|
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
50
56
|
)
|
|
57
|
+
r(
|
|
58
|
+
b"BADownloadManager",
|
|
59
|
+
b"etchCurrentDownloads:",
|
|
60
|
+
{"arguments": {2: {"type_modifier": b"o"}}},
|
|
61
|
+
)
|
|
62
|
+
r(
|
|
63
|
+
b"BADownloadManager",
|
|
64
|
+
b"fetchCurrentDownloads:",
|
|
65
|
+
{"arguments": {2: {"type_modifier": b"o"}}},
|
|
66
|
+
)
|
|
51
67
|
r(
|
|
52
68
|
b"BADownloadManager",
|
|
53
69
|
b"fetchCurrentDownloadsWithCompletionHandler:",
|
|
@@ -112,6 +128,11 @@ try:
|
|
|
112
128
|
b"startForegroundDownload:error:",
|
|
113
129
|
{"retval": {"type": b"Z"}, "arguments": {3: {"type_modifier": b"o"}}},
|
|
114
130
|
)
|
|
131
|
+
r(
|
|
132
|
+
b"BAURLDownload",
|
|
133
|
+
b"initWithIdentifier:request:essential:fileSize:applicationGroupIdentifier:priority:",
|
|
134
|
+
{"arguments": {4: {"type": b"Z"}}},
|
|
135
|
+
)
|
|
115
136
|
r(
|
|
116
137
|
b"NSObject",
|
|
117
138
|
b"backgroundDownload:didReceiveChallenge:completionHandler:",
|
|
@@ -16,10 +16,13 @@ Modules/pyobjc-api.h
|
|
|
16
16
|
Modules/pyobjc-compat.h
|
|
17
17
|
PyObjCTest/__init__.py
|
|
18
18
|
PyObjCTest/test_backgroundassets.py
|
|
19
|
+
PyObjCTest/test_badownload.py
|
|
19
20
|
PyObjCTest/test_badownloaderextension.py
|
|
20
21
|
PyObjCTest/test_badownloadmanager.py
|
|
21
|
-
PyObjCTest/
|
|
22
|
+
PyObjCTest/test_baurldownload.py
|
|
22
23
|
metadata/BackgroundAssets.fwinfo
|
|
23
24
|
metadata/metadata.ini
|
|
24
25
|
metadata/raw/arm64-13.0.fwinfo
|
|
25
|
-
metadata/raw/
|
|
26
|
+
metadata/raw/arm64-13.3.fwinfo
|
|
27
|
+
metadata/raw/x86_64-13.0.fwinfo
|
|
28
|
+
metadata/raw/x86_64-13.3.fwinfo
|
{pyobjc-framework-BackgroundAssets-9.0 → pyobjc-framework-BackgroundAssets-9.1}/Modules/pyobjc-api.h
RENAMED
|
@@ -145,7 +145,7 @@ static struct pyobjc_api* PyObjC_API;
|
|
|
145
145
|
#define PyObjCObject_ReleaseTransient (PyObjC_API->releasetransient)
|
|
146
146
|
#define PyObjC_NULL (*(PyObjC_API->pyobjc_null))
|
|
147
147
|
#define PyObjC_DepythonifyCArray (PyObjC_API->dep_c_array_count)
|
|
148
|
-
#define
|
|
148
|
+
#define PyObjCVarList_New (PyObjC_API->varlistnew)
|
|
149
149
|
#define PyObjCObject_Convert (PyObjC_API->pyobjcobject_convert)
|
|
150
150
|
#define PyObjCPointerWrapper_RegisterID (PyObjC_API->register_id_alias)
|
|
151
151
|
#define PyObjCMemView_Check (PyObjC_API->memview_check)
|
|
@@ -37,6 +37,15 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
37
37
|
#define instancetype id
|
|
38
38
|
#endif
|
|
39
39
|
|
|
40
|
+
#ifdef __has_attribute
|
|
41
|
+
#if __has_attribute(objc_subclassing_restricted)
|
|
42
|
+
#define PyObjC_FINAL_CLASS __attribute__((__objc_subclassing_restricted__))
|
|
43
|
+
#endif
|
|
44
|
+
#endif
|
|
45
|
+
#ifndef PyObjC_FINAL_CLASS
|
|
46
|
+
#define PyObjC_FINAL_CLASS
|
|
47
|
+
#endif
|
|
48
|
+
|
|
40
49
|
/*
|
|
41
50
|
*
|
|
42
51
|
* Start of Cocoa definitions
|
|
@@ -284,6 +293,22 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
284
293
|
#define MAC_OS_X_VERSION_13_0 130000
|
|
285
294
|
#endif
|
|
286
295
|
|
|
296
|
+
#ifndef MAC_OS_X_VERSION_13_1
|
|
297
|
+
#define MAC_OS_X_VERSION_13_1 130100
|
|
298
|
+
#endif
|
|
299
|
+
|
|
300
|
+
#ifndef MAC_OS_X_VERSION_13_2
|
|
301
|
+
#define MAC_OS_X_VERSION_13_2 130200
|
|
302
|
+
#endif
|
|
303
|
+
|
|
304
|
+
#ifndef MAC_OS_X_VERSION_13_3
|
|
305
|
+
#define MAC_OS_X_VERSION_13_3 130300
|
|
306
|
+
#endif
|
|
307
|
+
|
|
308
|
+
#ifndef MAC_OS_X_VERSION_13_4
|
|
309
|
+
#define MAC_OS_X_VERSION_13_4 130400
|
|
310
|
+
#endif
|
|
311
|
+
|
|
287
312
|
/*
|
|
288
313
|
*
|
|
289
314
|
* End of Cocoa definitions
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
2
|
import BackgroundAssets
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
class
|
|
5
|
+
class TestBADownload(TestCase):
|
|
6
6
|
def test_constants(self):
|
|
7
7
|
self.assertIsEnumType(BackgroundAssets.BADownloadState)
|
|
8
|
-
|
|
9
8
|
self.assertEqual(BackgroundAssets.BADownloadStateFailed, -1)
|
|
10
9
|
self.assertEqual(BackgroundAssets.BADownloadStateCreated, 0)
|
|
11
10
|
self.assertEqual(BackgroundAssets.BADownloadStateWaiting, 1)
|
|
12
11
|
self.assertEqual(BackgroundAssets.BADownloadStateDownloading, 2)
|
|
13
12
|
self.assertEqual(BackgroundAssets.BADownloadStateFinished, 3)
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
@min_os_level("13.0")
|
|
15
|
+
def test_constants13_0(self):
|
|
16
|
+
self.assertIsEnumType(BackgroundAssets.BADownloaderPriority)
|
|
16
17
|
self.assertIsInstance(BackgroundAssets.BADownloaderPriorityMin, int)
|
|
17
18
|
self.assertIsInstance(BackgroundAssets.BADownloaderPriorityDefault, int)
|
|
18
19
|
self.assertIsInstance(BackgroundAssets.BADownloaderPriorityMax, int)
|
|
20
|
+
|
|
21
|
+
@min_os_level("13.3")
|
|
22
|
+
def test_methods13_3(self):
|
|
23
|
+
self.assertResultIsBOOL(BackgroundAssets.BADownload.isEssential)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from PyObjCTools.TestSupport import TestCase
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
2
|
import BackgroundAssets
|
|
3
3
|
import objc
|
|
4
4
|
|
|
@@ -69,3 +69,9 @@ class TestBADownloadManager(TestCase):
|
|
|
69
69
|
BackgroundAssets.BADownloadManager.cancelDownload_error_
|
|
70
70
|
)
|
|
71
71
|
self.assertArgIsOut(BackgroundAssets.BADownloadManager.cancelDownload_error_, 1)
|
|
72
|
+
|
|
73
|
+
@min_os_level("13.3")
|
|
74
|
+
def test_methods13_3(self):
|
|
75
|
+
self.assertArgIsOut(
|
|
76
|
+
BackgroundAssets.BADownloadManager.fetchCurrentDownloads_, 0
|
|
77
|
+
)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from PyObjCTools.TestSupport import TestCase, min_os_level
|
|
2
|
+
import BackgroundAssets
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class TestBAURLDownload(TestCase):
|
|
6
|
+
@min_os_level("13.3")
|
|
7
|
+
def test_methods13_3(self):
|
|
8
|
+
self.assertArgIsBOOL(
|
|
9
|
+
BackgroundAssets.BAURLDownload.initWithIdentifier_request_essential_fileSize_applicationGroupIdentifier_priority_,
|
|
10
|
+
2,
|
|
11
|
+
)
|
|
@@ -2,9 +2,20 @@
|
|
|
2
2
|
// for information on how to update this file.
|
|
3
3
|
{
|
|
4
4
|
"definitions": {
|
|
5
|
+
"typed_enum": {
|
|
6
|
+
"BADownloadState": { "type": "q" },
|
|
7
|
+
"BADownloaderPriority": { "type": "q" }
|
|
8
|
+
},
|
|
5
9
|
"classes": {
|
|
6
10
|
"BADownloadManager": {
|
|
7
11
|
"methods": [
|
|
12
|
+
{
|
|
13
|
+
"args": {
|
|
14
|
+
"0": { "type_modifier": "o" }
|
|
15
|
+
},
|
|
16
|
+
"class_method": false,
|
|
17
|
+
"selector": "etchCurrentDownloads:"
|
|
18
|
+
},
|
|
8
19
|
{
|
|
9
20
|
"args": {
|
|
10
21
|
"1": { "type_modifier": "o" }
|