@bluebillywig/react-native-bb-player 8.45.15 → 8.45.16

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.
Files changed (59) hide show
  1. package/android/build.gradle +4 -0
  2. package/ios/BBPlayer-Bridging-Header.h +1 -0
  3. package/ios/BBPlayerModule.swift +7 -1
  4. package/ios/Frameworks/BBNativePlayerKit.xcframework/Info.plist +44 -0
  5. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Assets.car +0 -0
  6. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/BBNativePlayerKit +0 -0
  7. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Headers/BBNativePlayerKit-Swift.h +760 -0
  8. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Headers/BBNativePlayerKit.h +19 -0
  9. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Headers/UMPBridge.h +124 -0
  10. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Info.plist +0 -0
  11. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Lato-Black.ttf +0 -0
  12. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Lato-Bold.ttf +0 -0
  13. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Lato-Regular.ttf +0 -0
  14. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.abi.json +18288 -0
  15. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.private.swiftinterface +347 -0
  16. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios.swiftinterface +347 -0
  18. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64/BBNativePlayerKit.framework/Modules/module.modulemap +11 -0
  19. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Assets.car +0 -0
  20. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/BBNativePlayerKit +0 -0
  21. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Headers/BBNativePlayerKit-Swift.h +1516 -0
  22. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Headers/BBNativePlayerKit.h +19 -0
  23. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Headers/UMPBridge.h +124 -0
  24. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Info.plist +0 -0
  25. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Lato-Black.ttf +0 -0
  26. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Lato-Bold.ttf +0 -0
  27. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Lato-Regular.ttf +0 -0
  28. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.abi.json +18288 -0
  29. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +347 -0
  30. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  31. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/arm64-apple-ios-simulator.swiftinterface +347 -0
  32. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.abi.json +18288 -0
  33. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +347 -0
  34. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/BBNativePlayerKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +347 -0
  36. package/ios/Frameworks/BBNativePlayerKit.xcframework/ios-arm64_x86_64-simulator/BBNativePlayerKit.framework/Modules/module.modulemap +11 -0
  37. package/ios/Frameworks/bbnativeshared.xcframework/Info.plist +48 -0
  38. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/bbnativeshared.framework/Headers/bbnativeshared.h +3525 -0
  39. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/bbnativeshared.framework/Info.plist +35 -0
  40. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/bbnativeshared.framework/Modules/module.modulemap +8 -0
  41. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/bbnativeshared.framework/bbnativeshared +0 -0
  42. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/dSYMs/bbnativeshared.framework.dSYM/Contents/Info.plist +20 -0
  43. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/dSYMs/bbnativeshared.framework.dSYM/Contents/Resources/DWARF/bbnativeshared +0 -0
  44. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64/dSYMs/bbnativeshared.framework.dSYM/Contents/Resources/Relocations/aarch64/bbnativeshared.yml +13523 -0
  45. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/bbnativeshared.framework/Headers/bbnativeshared.h +3525 -0
  46. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/bbnativeshared.framework/Info.plist +31 -0
  47. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/bbnativeshared.framework/Modules/module.modulemap +5 -0
  48. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/bbnativeshared.framework/bbnativeshared +0 -0
  49. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/dSYMs/bbnativeshared.framework.dSYM/Contents/Info.plist +20 -0
  50. package/ios/Frameworks/bbnativeshared.xcframework/ios-arm64_x86_64-simulator/dSYMs/bbnativeshared.framework.dSYM/Contents/Resources/DWARF/bbnativeshared +0 -0
  51. package/lib/commonjs/BBModalPlayer.js +30 -3
  52. package/lib/commonjs/BBModalPlayer.js.map +1 -1
  53. package/lib/module/BBModalPlayer.js +32 -4
  54. package/lib/module/BBModalPlayer.js.map +1 -1
  55. package/lib/typescript/src/BBModalPlayer.d.ts +6 -1
  56. package/lib/typescript/src/BBModalPlayer.d.ts.map +1 -1
  57. package/package.json +2 -1
  58. package/react-native-bb-player.podspec +13 -6
  59. package/src/BBModalPlayer.ts +40 -5
@@ -0,0 +1,19 @@
1
+ //
2
+ // BBNativePlayerKit.h
3
+ // BBNativePlayerKit
4
+ //
5
+ // Created by Olaf Timme on 05/11/2020.
6
+ // Copyright © 2020 BlueBillywig. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ //! Project version number for BBNativePlayerKit.
12
+ FOUNDATION_EXPORT double BBNativePlayerKitVersionNumber;
13
+
14
+ //! Project version string for BBNativePlayerKit.
15
+ FOUNDATION_EXPORT const unsigned char BBNativePlayerKitVersionString[];
16
+
17
+ // In this header, you should import all the public headers of your framework using statements like #import <BBNativePlayerKit/PublicHeader.h>
18
+
19
+ #import "UMPBridge.h"
@@ -0,0 +1,124 @@
1
+ //
2
+ // UMPBridge.h
3
+ // BBNativePlayerKit
4
+ //
5
+ // Created by Claude Code under the professional guidance of Olaf Timme on 2026-01-08.
6
+ // Copyright (c) Blue Billywig. All rights reserved.
7
+ //
8
+ // Bridge for Google User Messaging Platform (UMP) SDK.
9
+ // Removes compile-time dependency by using runtime class lookups.
10
+ // Supports both UMP 2.x and 3.x with automatic version detection.
11
+ //
12
+
13
+ #import <Foundation/Foundation.h>
14
+ #import <UIKit/UIKit.h>
15
+
16
+ NS_ASSUME_NONNULL_BEGIN
17
+
18
+ /// Error domain for UMPBridge errors
19
+ extern NSString * const UMPBridgeErrorDomain;
20
+
21
+ /// Error codes for UMPBridge
22
+ typedef NS_ENUM(NSInteger, UMPBridgeError) {
23
+ UMPBridgeErrorUMPNotAvailable = 1001,
24
+ UMPBridgeErrorClassNotFound = 1002,
25
+ UMPBridgeErrorSelectorNotFound = 1003,
26
+ UMPBridgeErrorMethodInvocationFailed = 1004,
27
+ UMPBridgeErrorInvalidViewController = 1005
28
+ };
29
+
30
+ /// Consent status values matching UMP SDK
31
+ typedef NS_ENUM(NSInteger, UMPBridgeConsentStatus) {
32
+ UMPBridgeConsentStatusUnknown = 0,
33
+ UMPBridgeConsentStatusRequired = 1,
34
+ UMPBridgeConsentStatusNotRequired = 2,
35
+ UMPBridgeConsentStatusObtained = 3
36
+ };
37
+
38
+ /// Debug geography values matching UMP SDK
39
+ typedef NS_ENUM(NSInteger, UMPBridgeDebugGeography) {
40
+ UMPBridgeDebugGeographyDisabled = 0,
41
+ UMPBridgeDebugGeographyEEA = 1,
42
+ UMPBridgeDebugGeographyNotEEA = 2
43
+ };
44
+
45
+ /**
46
+ * @brief Bridge for Google User Messaging Platform (UMP) SDK.
47
+ *
48
+ * This bridge removes compile-time dependency on UMP SDK by using runtime class lookups.
49
+ * Supports both UMP 2.x and 3.x with automatic version detection.
50
+ *
51
+ * @discussion All methods ensure execution on main thread. Completion handlers are called on main thread.
52
+ *
53
+ * @note If UMP SDK is not linked by the host app, all methods degrade gracefully:
54
+ * - isUMPAvailable returns NO
55
+ * - consentStatus returns Unknown
56
+ * - canRequestAds returns NO
57
+ * - Completion handlers are called with appropriate errors
58
+ *
59
+ * @warning Do not call these methods directly from background threads.
60
+ */
61
+ @interface UMPBridge : NSObject
62
+
63
+ /**
64
+ * Checks if UMP SDK is available at runtime.
65
+ * @return YES if UMP classes can be found, NO otherwise
66
+ */
67
+ + (BOOL)isUMPAvailable;
68
+
69
+ /**
70
+ * Detects UMP SDK version.
71
+ * @return YES if UMP 3.x is detected, NO if 2.x or unavailable
72
+ */
73
+ + (BOOL)isUMP3x;
74
+
75
+ /**
76
+ * Gets current consent status.
77
+ * @return Consent status, or Unknown if UMP unavailable
78
+ */
79
+ + (UMPBridgeConsentStatus)consentStatus;
80
+
81
+ /**
82
+ * Checks if ads can be requested based on consent state.
83
+ * @return YES if ads are allowed, NO otherwise or if UMP unavailable
84
+ */
85
+ + (BOOL)canRequestAds;
86
+
87
+ /**
88
+ * Requests consent information update from UMP SDK.
89
+ *
90
+ * @param tagForUnderAge Whether user is tagged as under age of consent
91
+ * @param debugGeography Debug geography setting. Only applies on simulator.
92
+ * @param completion Completion handler called on main thread with error or nil on success
93
+ *
94
+ * @note Automatically dispatches to main thread if called from background thread
95
+ * @note Returns error if UMP unavailable
96
+ */
97
+ + (void)requestConsentInfoUpdateWithTagForUnderAge:(BOOL)tagForUnderAge
98
+ debugGeography:(UMPBridgeDebugGeography)debugGeography
99
+ completion:(nullable void(^)(NSError * _Nullable error))completion
100
+ NS_SWIFT_NAME(requestConsentInfoUpdate(withTagForUnderAge:debugGeography:completion:));
101
+
102
+ /**
103
+ * Loads and presents consent form if required.
104
+ *
105
+ * @param viewController View controller to present from
106
+ * @param completion Completion handler called on main thread with error or nil on success
107
+ *
108
+ * @note Automatically dispatches to main thread if called from background thread
109
+ * @note Returns error if UMP unavailable
110
+ */
111
+ + (void)loadAndPresentConsentFormFromViewController:(UIViewController *)viewController
112
+ completion:(nullable void(^)(NSError * _Nullable error))completion
113
+ NS_SWIFT_NAME(loadAndPresentConsentForm(from:completion:));
114
+
115
+ /**
116
+ * Resets consent information (for testing purposes).
117
+ *
118
+ * @warning Only use in debug/simulator builds. Do not call in production.
119
+ */
120
+ + (void)resetConsentInformation;
121
+
122
+ @end
123
+
124
+ NS_ASSUME_NONNULL_END