File tree Expand file tree Collapse file tree 6 files changed +54
-2
lines changed Expand file tree Collapse file tree 6 files changed +54
-2
lines changed Original file line number Diff line number Diff line change 33
33
./scripts/release_xcframework.sh 3.x
34
34
ls -l bin/release
35
35
36
- - uses : actions/upload-artifact@v2
36
+ - uses : actions/upload-artifact@v4
37
37
with :
38
38
name : plugins
39
39
path : bin/release/*
Original file line number Diff line number Diff line change 43
43
struct APNSInitializer {
44
44
45
45
APNSInitializer () {
46
+ #if VERSION_MAJOR == 4 && VERSION_MINOR >= 4
47
+ [GodotApplicationDelegate addService: [GodotAPNAppDelegate shared ]];
48
+ #else
46
49
[GodotApplicalitionDelegate addService: [GodotAPNAppDelegate shared ]];
50
+ #endif
47
51
}
48
52
};
49
53
static APNSInitializer initializer;
Original file line number Diff line number Diff line change 36
36
#import " platform/iphone/godot_app_delegate.h"
37
37
#endif
38
38
39
+ #if VERSION_MAJOR == 4 && VERSION_MINOR >= 4
40
+ @interface GodotApplicationDelegate (PushNotifications)
41
+ #else
39
42
@interface GodotApplicalitionDelegate (PushNotifications)
43
+ #endif
40
44
41
45
@end
Original file line number Diff line number Diff line change 30
30
31
31
#include " godot_app_delegate_extension.h"
32
32
33
+ #if VERSION_MAJOR == 4 && VERSION_MINOR >= 4
34
+ @implementation GodotApplicationDelegate (PushNotifications)
35
+
36
+ - (void )application : (UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken : (NSData *)deviceToken {
37
+ for (ApplicationDelegateService *service in GodotApplicationDelegate.services ) {
38
+ if (![service respondsToSelector: _cmd ]) {
39
+ continue ;
40
+ }
41
+
42
+ [service application: application didRegisterForRemoteNotificationsWithDeviceToken: deviceToken];
43
+ }
44
+ }
45
+
46
+ - (void )application : (UIApplication *)application didFailToRegisterForRemoteNotificationsWithError : (NSError *)error {
47
+ for (ApplicationDelegateService *service in GodotApplicationDelegate.services ) {
48
+ if (![service respondsToSelector: _cmd ]) {
49
+ continue ;
50
+ }
51
+
52
+ [service application: application didFailToRegisterForRemoteNotificationsWithError: error];
53
+ }
54
+ }
55
+
56
+ - (void )application : (UIApplication *)application didReceiveRemoteNotification : (NSDictionary *)userInfo fetchCompletionHandler : (void (^)(UIBackgroundFetchResult result))completionHandler {
57
+ for (ApplicationDelegateService *service in GodotApplicationDelegate.services ) {
58
+ if (![service respondsToSelector: _cmd ]) {
59
+ continue ;
60
+ }
61
+
62
+ [service application: application didReceiveRemoteNotification: userInfo fetchCompletionHandler: completionHandler];
63
+ }
64
+
65
+ completionHandler (UIBackgroundFetchResultNoData);
66
+ }
67
+
68
+ @end
69
+
70
+ #else
71
+
33
72
@implementation GodotApplicalitionDelegate (PushNotifications)
34
73
35
74
- (void )application : (UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken : (NSData *)deviceToken {
@@ -65,3 +104,4 @@ - (void)application:(UIApplication *)application didReceiveRemoteNotification:(N
65
104
}
66
105
67
106
@end
107
+ #endif
Original file line number Diff line number Diff line change @@ -218,7 +218,11 @@ - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CM
218
218
}
219
219
220
220
// set our texture...
221
+ #if VERSION_MAJOR == 4 && VERSION_MINOR >= 4
222
+ feed->set_ycbcr_images (img[0 ], img[1 ]);
223
+ #else
221
224
feed->set_YCbCr_imgs (img[0 ], img[1 ]);
225
+ #endif
222
226
223
227
// update our matrix to match the orientation, note, before changing anything
224
228
// here, be aware that the project orientation settings must match your xcode
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ - (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedW
376
376
ERR_FAIL_COND_V (!p_params.has (" product_ids" ), ERR_INVALID_PARAMETER);
377
377
378
378
GodotStringArray pids = p_params[" product_ids" ];
379
- printf (" ************ request product info! %i \n " , pids.size ());
379
+ printf (" ************ request product info! %lli \n " , pids.size ());
380
380
381
381
NSMutableArray *array = [[NSMutableArray alloc ] initWithCapacity: pids.size ()];
382
382
for (int i = 0 ; i < pids.size (); i++) {
You can’t perform that action at this time.
0 commit comments