@pinwheel/react-native-pinwheel 3.1.0 → 3.2.0-rc.0
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.
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/Info.plist +44 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Headers/ObjCWrapper.h +18 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Headers/PinwheelVCWrapper.h +14 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Info.plist +0 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Modules/module.modulemap +6 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/ObjCWrapper +0 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/README.md +15 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/_CodeSignature/CodeResources +146 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Headers/ObjCWrapper.h +18 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Headers/PinwheelVCWrapper.h +14 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Info.plist +0 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Modules/module.modulemap +6 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/ObjCWrapper +0 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/README.md +15 -0
- package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/_CodeSignature/CodeResources +146 -0
- package/RNPinwheelSDK.podspec +21 -17
- package/android/build.gradle +25 -34
- package/android/src/main/java/com/rtnpinwheel/Pinwheel.kt +103 -0
- package/android/src/main/java/com/{underdog_tech/react/PinwheelViewManager.kt → rtnpinwheel/PinwheelEventsModule.kt} +55 -120
- package/android/src/main/java/com/rtnpinwheel/PinwheelManager.kt +54 -0
- package/android/src/main/java/com/{underdog_tech/react → rtnpinwheel}/PinwheelPackage.kt +7 -9
- package/ios/RTNPinwheelEvents.h +13 -0
- package/ios/{RNTPinwheelEvents.m → RTNPinwheelEvents.mm} +15 -3
- package/ios/RTNPinwheelManager.mm +21 -0
- package/ios/RTNPinwheelView.h +17 -0
- package/ios/RTNPinwheelView.mm +102 -0
- package/package.json +32 -9
- package/src/NativePinwheelEvents.ts +62 -0
- package/src/Pinwheel.tsx +80 -0
- package/src/PinwheelEvents.ts +23 -0
- package/src/RTNPinwheelNativeComponent.ts +15 -0
- package/src/client-events/client.ts +17 -0
- package/src/client-events/registry/v2.3.ts +166 -0
- package/src/client-events/registry/v3.ts +47 -0
- package/src/client-events/utils.ts +12 -0
- package/src/index.ts +3 -0
- package/.vscode/settings.json +0 -4
- package/CHANGELOG.md +0 -157
- package/android/src/main/AndroidManifest.xml +0 -6
- package/android/src/main/java/com/underdog_tech/react/RNTPinwheelEvents.kt +0 -51
- package/dist/client-events/client.d.ts +0 -10
- package/dist/client-events/client.js +0 -1
- package/dist/client-events/registry/v2.3.d.ts +0 -125
- package/dist/client-events/registry/v2.3.js +0 -1
- package/dist/client-events/registry/v3.d.ts +0 -25
- package/dist/client-events/registry/v3.js +0 -4
- package/dist/client-events/utils.d.ts +0 -9
- package/dist/client-events/utils.js +0 -1
- package/dist/constants.d.ts +0 -4
- package/dist/constants.js +0 -4
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -49
- package/dist/pinwheel-view.d.ts +0 -6
- package/dist/pinwheel-view.js +0 -2
- package/dist/pinwheel-wrapper.android.d.ts +0 -4
- package/dist/pinwheel-wrapper.android.js +0 -33
- package/dist/pinwheel-wrapper.ios.d.ts +0 -4
- package/dist/pinwheel-wrapper.ios.js +0 -17
- package/ios/RNTPinwheelEvents.h +0 -9
- package/ios/RNTPinwheelManager.m +0 -21
- package/ios/RNTPinwheelView.h +0 -12
- package/ios/RNTPinwheelView.m +0 -65
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>AvailableLibraries</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>BinaryPath</key>
|
|
9
|
+
<string>ObjCWrapper.framework/ObjCWrapper</string>
|
|
10
|
+
<key>LibraryIdentifier</key>
|
|
11
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
12
|
+
<key>LibraryPath</key>
|
|
13
|
+
<string>ObjCWrapper.framework</string>
|
|
14
|
+
<key>SupportedArchitectures</key>
|
|
15
|
+
<array>
|
|
16
|
+
<string>arm64</string>
|
|
17
|
+
<string>x86_64</string>
|
|
18
|
+
</array>
|
|
19
|
+
<key>SupportedPlatform</key>
|
|
20
|
+
<string>ios</string>
|
|
21
|
+
<key>SupportedPlatformVariant</key>
|
|
22
|
+
<string>simulator</string>
|
|
23
|
+
</dict>
|
|
24
|
+
<dict>
|
|
25
|
+
<key>BinaryPath</key>
|
|
26
|
+
<string>ObjCWrapper.framework/ObjCWrapper</string>
|
|
27
|
+
<key>LibraryIdentifier</key>
|
|
28
|
+
<string>ios-arm64</string>
|
|
29
|
+
<key>LibraryPath</key>
|
|
30
|
+
<string>ObjCWrapper.framework</string>
|
|
31
|
+
<key>SupportedArchitectures</key>
|
|
32
|
+
<array>
|
|
33
|
+
<string>arm64</string>
|
|
34
|
+
</array>
|
|
35
|
+
<key>SupportedPlatform</key>
|
|
36
|
+
<string>ios</string>
|
|
37
|
+
</dict>
|
|
38
|
+
</array>
|
|
39
|
+
<key>CFBundlePackageType</key>
|
|
40
|
+
<string>XFWK</string>
|
|
41
|
+
<key>XCFrameworkFormatVersion</key>
|
|
42
|
+
<string>1.0</string>
|
|
43
|
+
</dict>
|
|
44
|
+
</plist>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ObjCWrapper.h
|
|
3
|
+
// ObjCWrapper
|
|
4
|
+
//
|
|
5
|
+
// Created by Robby Abaya on 10/15/24.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
//! Project version number for ObjCWrapper.
|
|
11
|
+
FOUNDATION_EXPORT double ObjCWrapperVersionNumber;
|
|
12
|
+
|
|
13
|
+
//! Project version string for ObjCWrapper.
|
|
14
|
+
FOUNDATION_EXPORT const unsigned char ObjCWrapperVersionString[];
|
|
15
|
+
|
|
16
|
+
// In this header, you should import all the public headers of your framework using statements like #import <ObjCWrapper/PublicHeader.h>
|
|
17
|
+
|
|
18
|
+
#import <ObjCWrapper/PinwheelVCWrapper.h>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import <UIKit/UIKit.h>
|
|
3
|
+
|
|
4
|
+
@protocol PinwheelVCWrapperDelegate <NSObject>
|
|
5
|
+
- (void)onEventWithName:(NSString *)name event:(NSDictionary *)event;
|
|
6
|
+
@end
|
|
7
|
+
|
|
8
|
+
@interface PinwheelVCWrapper : UIViewController
|
|
9
|
+
|
|
10
|
+
- (instancetype)initWithToken:(NSString *)token delegate:(id<PinwheelVCWrapperDelegate>)delegate;
|
|
11
|
+
- (instancetype)initWithToken:(NSString *)token delegate:(id<PinwheelVCWrapperDelegate>)delegate sdk:(NSString *)sdk version:(NSString *)version;
|
|
12
|
+
|
|
13
|
+
@end
|
|
14
|
+
|
package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Info.plist
ADDED
|
Binary file
|
package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/ObjCWrapper
ADDED
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Build for iOS device
|
|
2
|
+
```
|
|
3
|
+
xcodebuild archive -scheme ObjCWrapper -configuration Release -destination 'generic/platform=iOS' -archivePath './build/ObjCWrapper.framework-iphoneos.xcarchive' SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
|
|
4
|
+
```
|
|
5
|
+
|
|
6
|
+
Build for simulator
|
|
7
|
+
```
|
|
8
|
+
xcodebuild archive -scheme ObjCWrapper -configuration Release -destination 'generic/platform=iOS Simulator' -archivePath './build/ObjCWrapper.framework-iphonesimulator.xcarchive' SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Create a universal framework
|
|
12
|
+
```
|
|
13
|
+
xcodebuild -create-xcframework -framework './build/ObjCWrapper.framework-iphoneos.xcarchive/Products/Library/Frameworks/ObjCWrapper.framework' -framework './build/ObjCWrapper.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/ObjCWrapper.framework' -output './build/ObjCWrapper.xcframework'
|
|
14
|
+
```
|
|
15
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Headers/ObjCWrapper.h</key>
|
|
8
|
+
<data>
|
|
9
|
+
cnQhHMagZaiAQSOZZ7kB72ep+/Q=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/PinwheelVCWrapper.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
HQA7FVRGiJLXzMO/pXBoQ0JrebY=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
Hfq81ONIXXpBHGzBAzHgUpapvoc=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/module.modulemap</key>
|
|
20
|
+
<data>
|
|
21
|
+
L5o74vyASGEUJtmANJyWkKh9mGg=
|
|
22
|
+
</data>
|
|
23
|
+
<key>README.md</key>
|
|
24
|
+
<data>
|
|
25
|
+
qex4a1na6nurP3ELBb244NA322U=
|
|
26
|
+
</data>
|
|
27
|
+
</dict>
|
|
28
|
+
<key>files2</key>
|
|
29
|
+
<dict>
|
|
30
|
+
<key>Headers/ObjCWrapper.h</key>
|
|
31
|
+
<dict>
|
|
32
|
+
<key>hash2</key>
|
|
33
|
+
<data>
|
|
34
|
+
Fd6dsKVvjUvuiB3UzSYqMNfW3YjfDLkbTCuJOtEHHRw=
|
|
35
|
+
</data>
|
|
36
|
+
</dict>
|
|
37
|
+
<key>Headers/PinwheelVCWrapper.h</key>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>hash2</key>
|
|
40
|
+
<data>
|
|
41
|
+
uWMc5XNHEFcpe1cr4l6z75zkNzGCszlRuFhv4YXBxFg=
|
|
42
|
+
</data>
|
|
43
|
+
</dict>
|
|
44
|
+
<key>Modules/module.modulemap</key>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>hash2</key>
|
|
47
|
+
<data>
|
|
48
|
+
Fvd48rYZbujiraWxv91qNBMLFJk9lbxrp3O0Q2L5cik=
|
|
49
|
+
</data>
|
|
50
|
+
</dict>
|
|
51
|
+
<key>README.md</key>
|
|
52
|
+
<dict>
|
|
53
|
+
<key>hash2</key>
|
|
54
|
+
<data>
|
|
55
|
+
8M7PJiVMP9ZHKswCVX68+8rKMSlS6RN+QhAIsFvcAuo=
|
|
56
|
+
</data>
|
|
57
|
+
</dict>
|
|
58
|
+
</dict>
|
|
59
|
+
<key>rules</key>
|
|
60
|
+
<dict>
|
|
61
|
+
<key>^.*</key>
|
|
62
|
+
<true/>
|
|
63
|
+
<key>^.*\.lproj/</key>
|
|
64
|
+
<dict>
|
|
65
|
+
<key>optional</key>
|
|
66
|
+
<true/>
|
|
67
|
+
<key>weight</key>
|
|
68
|
+
<real>1000</real>
|
|
69
|
+
</dict>
|
|
70
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>omit</key>
|
|
73
|
+
<true/>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>1100</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^Base\.lproj/</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>weight</key>
|
|
80
|
+
<real>1010</real>
|
|
81
|
+
</dict>
|
|
82
|
+
<key>^version.plist$</key>
|
|
83
|
+
<true/>
|
|
84
|
+
</dict>
|
|
85
|
+
<key>rules2</key>
|
|
86
|
+
<dict>
|
|
87
|
+
<key>.*\.dSYM($|/)</key>
|
|
88
|
+
<dict>
|
|
89
|
+
<key>weight</key>
|
|
90
|
+
<real>11</real>
|
|
91
|
+
</dict>
|
|
92
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
93
|
+
<dict>
|
|
94
|
+
<key>omit</key>
|
|
95
|
+
<true/>
|
|
96
|
+
<key>weight</key>
|
|
97
|
+
<real>2000</real>
|
|
98
|
+
</dict>
|
|
99
|
+
<key>^.*</key>
|
|
100
|
+
<true/>
|
|
101
|
+
<key>^.*\.lproj/</key>
|
|
102
|
+
<dict>
|
|
103
|
+
<key>optional</key>
|
|
104
|
+
<true/>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>1000</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>omit</key>
|
|
111
|
+
<true/>
|
|
112
|
+
<key>weight</key>
|
|
113
|
+
<real>1100</real>
|
|
114
|
+
</dict>
|
|
115
|
+
<key>^Base\.lproj/</key>
|
|
116
|
+
<dict>
|
|
117
|
+
<key>weight</key>
|
|
118
|
+
<real>1010</real>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>^Info\.plist$</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>omit</key>
|
|
123
|
+
<true/>
|
|
124
|
+
<key>weight</key>
|
|
125
|
+
<real>20</real>
|
|
126
|
+
</dict>
|
|
127
|
+
<key>^PkgInfo$</key>
|
|
128
|
+
<dict>
|
|
129
|
+
<key>omit</key>
|
|
130
|
+
<true/>
|
|
131
|
+
<key>weight</key>
|
|
132
|
+
<real>20</real>
|
|
133
|
+
</dict>
|
|
134
|
+
<key>^embedded\.provisionprofile$</key>
|
|
135
|
+
<dict>
|
|
136
|
+
<key>weight</key>
|
|
137
|
+
<real>20</real>
|
|
138
|
+
</dict>
|
|
139
|
+
<key>^version\.plist$</key>
|
|
140
|
+
<dict>
|
|
141
|
+
<key>weight</key>
|
|
142
|
+
<real>20</real>
|
|
143
|
+
</dict>
|
|
144
|
+
</dict>
|
|
145
|
+
</dict>
|
|
146
|
+
</plist>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//
|
|
2
|
+
// ObjCWrapper.h
|
|
3
|
+
// ObjCWrapper
|
|
4
|
+
//
|
|
5
|
+
// Created by Robby Abaya on 10/15/24.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <Foundation/Foundation.h>
|
|
9
|
+
|
|
10
|
+
//! Project version number for ObjCWrapper.
|
|
11
|
+
FOUNDATION_EXPORT double ObjCWrapperVersionNumber;
|
|
12
|
+
|
|
13
|
+
//! Project version string for ObjCWrapper.
|
|
14
|
+
FOUNDATION_EXPORT const unsigned char ObjCWrapperVersionString[];
|
|
15
|
+
|
|
16
|
+
// In this header, you should import all the public headers of your framework using statements like #import <ObjCWrapper/PublicHeader.h>
|
|
17
|
+
|
|
18
|
+
#import <ObjCWrapper/PinwheelVCWrapper.h>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#import <Foundation/Foundation.h>
|
|
2
|
+
#import <UIKit/UIKit.h>
|
|
3
|
+
|
|
4
|
+
@protocol PinwheelVCWrapperDelegate <NSObject>
|
|
5
|
+
- (void)onEventWithName:(NSString *)name event:(NSDictionary *)event;
|
|
6
|
+
@end
|
|
7
|
+
|
|
8
|
+
@interface PinwheelVCWrapper : UIViewController
|
|
9
|
+
|
|
10
|
+
- (instancetype)initWithToken:(NSString *)token delegate:(id<PinwheelVCWrapperDelegate>)delegate;
|
|
11
|
+
- (instancetype)initWithToken:(NSString *)token delegate:(id<PinwheelVCWrapperDelegate>)delegate sdk:(NSString *)sdk version:(NSString *)version;
|
|
12
|
+
|
|
13
|
+
@end
|
|
14
|
+
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Build for iOS device
|
|
2
|
+
```
|
|
3
|
+
xcodebuild archive -scheme ObjCWrapper -configuration Release -destination 'generic/platform=iOS' -archivePath './build/ObjCWrapper.framework-iphoneos.xcarchive' SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
|
|
4
|
+
```
|
|
5
|
+
|
|
6
|
+
Build for simulator
|
|
7
|
+
```
|
|
8
|
+
xcodebuild archive -scheme ObjCWrapper -configuration Release -destination 'generic/platform=iOS Simulator' -archivePath './build/ObjCWrapper.framework-iphonesimulator.xcarchive' SKIP_INSTALL=NO BUILD_LIBRARIES_FOR_DISTRIBUTION=YES
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Create a universal framework
|
|
12
|
+
```
|
|
13
|
+
xcodebuild -create-xcframework -framework './build/ObjCWrapper.framework-iphoneos.xcarchive/Products/Library/Frameworks/ObjCWrapper.framework' -framework './build/ObjCWrapper.framework-iphonesimulator.xcarchive/Products/Library/Frameworks/ObjCWrapper.framework' -output './build/ObjCWrapper.xcframework'
|
|
14
|
+
```
|
|
15
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Headers/ObjCWrapper.h</key>
|
|
8
|
+
<data>
|
|
9
|
+
cnQhHMagZaiAQSOZZ7kB72ep+/Q=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Headers/PinwheelVCWrapper.h</key>
|
|
12
|
+
<data>
|
|
13
|
+
HQA7FVRGiJLXzMO/pXBoQ0JrebY=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Info.plist</key>
|
|
16
|
+
<data>
|
|
17
|
+
wfgn2v9O35DH9zI0iS53XohHTgI=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Modules/module.modulemap</key>
|
|
20
|
+
<data>
|
|
21
|
+
L5o74vyASGEUJtmANJyWkKh9mGg=
|
|
22
|
+
</data>
|
|
23
|
+
<key>README.md</key>
|
|
24
|
+
<data>
|
|
25
|
+
qex4a1na6nurP3ELBb244NA322U=
|
|
26
|
+
</data>
|
|
27
|
+
</dict>
|
|
28
|
+
<key>files2</key>
|
|
29
|
+
<dict>
|
|
30
|
+
<key>Headers/ObjCWrapper.h</key>
|
|
31
|
+
<dict>
|
|
32
|
+
<key>hash2</key>
|
|
33
|
+
<data>
|
|
34
|
+
Fd6dsKVvjUvuiB3UzSYqMNfW3YjfDLkbTCuJOtEHHRw=
|
|
35
|
+
</data>
|
|
36
|
+
</dict>
|
|
37
|
+
<key>Headers/PinwheelVCWrapper.h</key>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>hash2</key>
|
|
40
|
+
<data>
|
|
41
|
+
uWMc5XNHEFcpe1cr4l6z75zkNzGCszlRuFhv4YXBxFg=
|
|
42
|
+
</data>
|
|
43
|
+
</dict>
|
|
44
|
+
<key>Modules/module.modulemap</key>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>hash2</key>
|
|
47
|
+
<data>
|
|
48
|
+
Fvd48rYZbujiraWxv91qNBMLFJk9lbxrp3O0Q2L5cik=
|
|
49
|
+
</data>
|
|
50
|
+
</dict>
|
|
51
|
+
<key>README.md</key>
|
|
52
|
+
<dict>
|
|
53
|
+
<key>hash2</key>
|
|
54
|
+
<data>
|
|
55
|
+
8M7PJiVMP9ZHKswCVX68+8rKMSlS6RN+QhAIsFvcAuo=
|
|
56
|
+
</data>
|
|
57
|
+
</dict>
|
|
58
|
+
</dict>
|
|
59
|
+
<key>rules</key>
|
|
60
|
+
<dict>
|
|
61
|
+
<key>^.*</key>
|
|
62
|
+
<true/>
|
|
63
|
+
<key>^.*\.lproj/</key>
|
|
64
|
+
<dict>
|
|
65
|
+
<key>optional</key>
|
|
66
|
+
<true/>
|
|
67
|
+
<key>weight</key>
|
|
68
|
+
<real>1000</real>
|
|
69
|
+
</dict>
|
|
70
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>omit</key>
|
|
73
|
+
<true/>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>1100</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^Base\.lproj/</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>weight</key>
|
|
80
|
+
<real>1010</real>
|
|
81
|
+
</dict>
|
|
82
|
+
<key>^version.plist$</key>
|
|
83
|
+
<true/>
|
|
84
|
+
</dict>
|
|
85
|
+
<key>rules2</key>
|
|
86
|
+
<dict>
|
|
87
|
+
<key>.*\.dSYM($|/)</key>
|
|
88
|
+
<dict>
|
|
89
|
+
<key>weight</key>
|
|
90
|
+
<real>11</real>
|
|
91
|
+
</dict>
|
|
92
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
93
|
+
<dict>
|
|
94
|
+
<key>omit</key>
|
|
95
|
+
<true/>
|
|
96
|
+
<key>weight</key>
|
|
97
|
+
<real>2000</real>
|
|
98
|
+
</dict>
|
|
99
|
+
<key>^.*</key>
|
|
100
|
+
<true/>
|
|
101
|
+
<key>^.*\.lproj/</key>
|
|
102
|
+
<dict>
|
|
103
|
+
<key>optional</key>
|
|
104
|
+
<true/>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>1000</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^.*\.lproj/locversion.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>omit</key>
|
|
111
|
+
<true/>
|
|
112
|
+
<key>weight</key>
|
|
113
|
+
<real>1100</real>
|
|
114
|
+
</dict>
|
|
115
|
+
<key>^Base\.lproj/</key>
|
|
116
|
+
<dict>
|
|
117
|
+
<key>weight</key>
|
|
118
|
+
<real>1010</real>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>^Info\.plist$</key>
|
|
121
|
+
<dict>
|
|
122
|
+
<key>omit</key>
|
|
123
|
+
<true/>
|
|
124
|
+
<key>weight</key>
|
|
125
|
+
<real>20</real>
|
|
126
|
+
</dict>
|
|
127
|
+
<key>^PkgInfo$</key>
|
|
128
|
+
<dict>
|
|
129
|
+
<key>omit</key>
|
|
130
|
+
<true/>
|
|
131
|
+
<key>weight</key>
|
|
132
|
+
<real>20</real>
|
|
133
|
+
</dict>
|
|
134
|
+
<key>^embedded\.provisionprofile$</key>
|
|
135
|
+
<dict>
|
|
136
|
+
<key>weight</key>
|
|
137
|
+
<real>20</real>
|
|
138
|
+
</dict>
|
|
139
|
+
<key>^version\.plist$</key>
|
|
140
|
+
<dict>
|
|
141
|
+
<key>weight</key>
|
|
142
|
+
<real>20</real>
|
|
143
|
+
</dict>
|
|
144
|
+
</dict>
|
|
145
|
+
</dict>
|
|
146
|
+
</plist>
|
package/RNPinwheelSDK.podspec
CHANGED
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
require "json"
|
|
2
|
+
|
|
3
|
+
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
|
4
|
+
|
|
1
5
|
Pod::Spec.new do |s|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
s.name = "RNPinwheelSDK"
|
|
7
|
+
s.version = package["version"]
|
|
8
|
+
s.summary = package["description"]
|
|
9
|
+
s.description = package["description"]
|
|
10
|
+
s.homepage = package["homepage"]
|
|
11
|
+
s.license = package["license"]
|
|
12
|
+
s.platforms = { :ios => "12.0" }
|
|
13
|
+
s.author = package["author"]
|
|
14
|
+
s.source = { :git => package["repository"], :tag => "#{s.version}" }
|
|
15
|
+
|
|
16
|
+
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
17
|
+
|
|
18
|
+
install_modules_dependencies(s)
|
|
19
|
+
|
|
20
|
+
s.dependency 'PinwheelSDK', '3.1.0'
|
|
21
|
+
s.vendored_frameworks = "PinwheelLinkSDKObjC/ObjCWrapper.xcframework"
|
|
22
|
+
end
|
package/android/build.gradle
CHANGED
|
@@ -1,50 +1,41 @@
|
|
|
1
1
|
buildscript {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
ext.safeExtGet = {prop, fallback ->
|
|
3
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
4
|
+
}
|
|
5
|
+
repositories {
|
|
6
|
+
google()
|
|
7
|
+
gradlePluginPortal()
|
|
8
|
+
}
|
|
9
|
+
dependencies {
|
|
10
|
+
classpath("com.android.tools.build:gradle:7.3.1")
|
|
11
|
+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.22")
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
apply plugin: 'com.android.library'
|
|
16
|
-
apply plugin: '
|
|
16
|
+
apply plugin: 'com.facebook.react'
|
|
17
|
+
apply plugin: 'org.jetbrains.kotlin.android'
|
|
17
18
|
|
|
18
19
|
android {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
compileOptions {
|
|
28
|
-
sourceCompatibility = 1.8
|
|
29
|
-
targetCompatibility = 1.8
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
sourceSets {
|
|
33
|
-
main.java.srcDirs += 'src/main/java'
|
|
34
|
-
}
|
|
20
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 33)
|
|
21
|
+
namespace "com.rtnpinwheel"
|
|
22
|
+
|
|
23
|
+
defaultConfig {
|
|
24
|
+
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
25
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 33)
|
|
26
|
+
buildConfigField("boolean", "IS_NEW_ARCHITECTURE_ENABLED", "true")
|
|
27
|
+
}
|
|
35
28
|
}
|
|
36
29
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
mavenCentral()
|
|
41
|
-
}
|
|
30
|
+
repositories {
|
|
31
|
+
mavenCentral()
|
|
32
|
+
google()
|
|
42
33
|
}
|
|
43
34
|
|
|
44
35
|
def PW_ANDROID_SDK_VERSION = '3.1.0'
|
|
45
36
|
|
|
46
37
|
dependencies {
|
|
47
38
|
def pwVersion = rootProject.hasProperty('pwVersion') ? rootProject.pwVersion : PW_ANDROID_SDK_VERSION
|
|
48
|
-
implementation 'com.facebook.react:react-native
|
|
39
|
+
implementation 'com.facebook.react:react-native'
|
|
49
40
|
implementation "com.getpinwheel:pinwheel-android:$pwVersion"
|
|
50
41
|
}
|