@pinwheel/react-native-pinwheel 3.2.0 → 3.2.2

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 (27) hide show
  1. package/README.md +8 -0
  2. package/RNPinwheelSDK.podspec +0 -1
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/com/rtnpinwheel/Pinwheel.kt +6 -1
  5. package/android/src/main/java/com/rtnpinwheel/PinwheelManager.kt +7 -2
  6. package/ios/RTNPinwheelView.h +7 -5
  7. package/ios/RTNPinwheelView.mm +3 -3
  8. package/package.json +1 -1
  9. package/src/Pinwheel.d.ts +3 -1
  10. package/src/Pinwheel.tsx +11 -2
  11. package/src/RTNPinwheelNativeComponent.d.ts +3 -2
  12. package/src/RTNPinwheelNativeComponent.ts +9 -8
  13. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/Info.plist +0 -44
  14. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Headers/ObjCWrapper.h +0 -18
  15. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Headers/PinwheelVCWrapper.h +0 -14
  16. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Info.plist +0 -0
  17. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/Modules/module.modulemap +0 -6
  18. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/ObjCWrapper +0 -0
  19. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/README.md +0 -15
  20. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64/ObjCWrapper.framework/_CodeSignature/CodeResources +0 -146
  21. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Headers/ObjCWrapper.h +0 -18
  22. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Headers/PinwheelVCWrapper.h +0 -14
  23. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Info.plist +0 -0
  24. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/Modules/module.modulemap +0 -6
  25. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/ObjCWrapper +0 -0
  26. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/README.md +0 -15
  27. package/PinwheelLinkSDKObjC/ObjCWrapper.xcframework/ios-arm64_x86_64-simulator/ObjCWrapper.framework/_CodeSignature/CodeResources +0 -146
package/README.md CHANGED
@@ -101,6 +101,14 @@ Callback for all significant events that happen during the modal flow. See all p
101
101
  | -------- | -------- |
102
102
  | function | No |
103
103
 
104
+ ### `handleInsets`
105
+
106
+ Determines whether the SDK should respond to window insets on Android. This allows the modal to adjust automatically for areas such as the display cutout and system bars when displaying content [edge-to-edge](https://developer.android.com/develop/ui/views/layout/edge-to-edge).
107
+
108
+ | Type | Required | Default |
109
+ | ------- | -------- | ------- |
110
+ | boolean | No | true |
111
+
104
112
  ## Running The Example App Locally
105
113
 
106
114
  You may want to run the example app locally to get started.
@@ -18,5 +18,4 @@ Pod::Spec.new do |s|
18
18
  install_modules_dependencies(s)
19
19
 
20
20
  s.dependency 'PinwheelSDK', '3.1.1'
21
- s.vendored_frameworks = "PinwheelLinkSDKObjC/ObjCWrapper.xcframework"
22
21
  end
@@ -32,7 +32,7 @@ repositories {
32
32
  google()
33
33
  }
34
34
 
35
- def PW_ANDROID_SDK_VERSION = '3.1.1'
35
+ def PW_ANDROID_SDK_VERSION = '3.1.2'
36
36
 
37
37
  dependencies {
38
38
  def pwVersion = rootProject.hasProperty('pwVersion') ? rootProject.pwVersion : PW_ANDROID_SDK_VERSION
@@ -20,6 +20,7 @@ class Pinwheel : FrameLayout {
20
20
  private var token: String? = null
21
21
  private var pinwheelFragment: PinwheelFragment? = null
22
22
  private var pinwheelEventListener: PinwheelEventListener? = null
23
+ private var handleInsets: Boolean = true
23
24
 
24
25
  constructor(context: Context) : super(context) {
25
26
  init()
@@ -46,6 +47,10 @@ class Pinwheel : FrameLayout {
46
47
  this.token = token
47
48
  }
48
49
 
50
+ fun setHandleInsets(handleInsets: Boolean) {
51
+ this.handleInsets = handleInsets
52
+ }
53
+
49
54
  fun getReactNativeVersion(): String {
50
55
  val version = ReactNativeVersion.VERSION
51
56
  return "${version["major"]}.${version["minor"]}.${version["patch"]}"
@@ -54,7 +59,7 @@ class Pinwheel : FrameLayout {
54
59
  private fun createFragment() {
55
60
  Handler(Looper.getMainLooper()).post {
56
61
  this.token?.let {
57
- val pinwheelFragment = PinwheelFragment.newInstance(it, "react native", "3.2.0", getReactNativeVersion())
62
+ val pinwheelFragment = PinwheelFragment.newInstance(it, "react native", "3.2.2", getReactNativeVersion(), this.handleInsets)
58
63
  pinwheelEventListener?.let { listener ->
59
64
  pinwheelFragment.pinwheelEventListener = listener
60
65
  }
@@ -12,7 +12,7 @@ import com.facebook.react.viewmanagers.RTNPinwheelManagerInterface
12
12
  import com.facebook.react.viewmanagers.RTNPinwheelManagerDelegate
13
13
 
14
14
  @ReactModule(name = PinwheelManager.NAME)
15
- class PinwheelManager(private val reactContext: ReactApplicationContext) :
15
+ class PinwheelManager(private val reactContext: ReactApplicationContext) :
16
16
  SimpleViewManager<Pinwheel>(),
17
17
  RTNPinwheelManagerInterface<Pinwheel> {
18
18
 
@@ -29,7 +29,7 @@ class PinwheelManager(private val reactContext: ReactApplicationContext) :
29
29
  (reactContext.getNativeModule(PinwheelEventsModule::class.java) as? PinwheelEventsModule)?.let { module ->
30
30
  view.setPinwheelEventListener(module)
31
31
  }
32
-
32
+
33
33
  return view
34
34
  }
35
35
 
@@ -38,6 +38,11 @@ class PinwheelManager(private val reactContext: ReactApplicationContext) :
38
38
  view.setToken(token)
39
39
  }
40
40
 
41
+ @ReactProp(name = "handleInsets")
42
+ override fun setHandleInsets(view: Pinwheel, handleInsets: Boolean) {
43
+ view.setHandleInsets(handleInsets)
44
+ }
45
+
41
46
  @ReactPropGroup(names = ["width", "height"], customType = "Style")
42
47
  fun setStyle(view: Pinwheel, index: Int, value: Int) {
43
48
  if (index == 0) propWidth = value
@@ -4,22 +4,24 @@
4
4
 
5
5
  # endif
6
6
 
7
- #import <ObjCWrapper/PinwheelVCWrapper.h>
7
+ #import <WebKit/WebKit.h>
8
+ #import <PinwheelSDK/PinwheelSDK-Swift.h>
8
9
  #import <UIKit/UIKit.h>
9
10
 
10
11
  NS_ASSUME_NONNULL_BEGIN
11
12
 
12
13
  #ifdef RCT_NEW_ARCH_ENABLED
13
14
 
14
- @interface RTNPinwheelView : RCTViewComponentView <PinwheelVCWrapperDelegate>
15
+ @interface RTNPinwheelView : RCTViewComponentView <PinwheelWrapperDelegate>
15
16
 
16
- #else
17
+ #else
17
18
 
18
- @interface RTNPinwheelView : UIView <PinwheelVCWrapperDelegate>
19
+ @interface RTNPinwheelView : UIView <PinwheelWrapperDelegate>
19
20
 
20
21
  #endif
21
22
 
22
- @property (nonatomic, strong) PinwheelVCWrapper *pinwheelWrapperVC;
23
+
24
+ @property (nonatomic, strong) PinwheelWrapperVC *pinwheelWrapperVC;
23
25
  @property (nonatomic, assign) NSString *token;
24
26
 
25
27
  - (instancetype)initWithFrame:(CGRect)frame token:(NSString *)token;
@@ -38,7 +38,7 @@ using namespace facebook::react;
38
38
 
39
39
  - (void)initPinwheelWrapperVC {
40
40
  if (self.token != nil && self.pinwheelWrapperVC == nil) {
41
- self.pinwheelWrapperVC = [[PinwheelVCWrapper alloc] initWithToken:self.token delegate:self sdk:@"react native" version: @"3.2.0"];
41
+ self.pinwheelWrapperVC = [[PinwheelWrapperVC alloc] initWithToken:self.token delegate:self sdk:@"react native" version: @"3.2.2"];
42
42
  [self addSubview:self.pinwheelWrapperVC.view];
43
43
  }
44
44
  }
@@ -102,7 +102,7 @@ Class<RCTComponentViewProtocol> RTNPinwheelCls(void)
102
102
  return RTNPinwheelView.class;
103
103
  }
104
104
 
105
- #else
105
+ #else
106
106
 
107
107
  #import "RTNPinwheelView.h"
108
108
  #import "RTNPinwheelEvents.h"
@@ -125,7 +125,7 @@ Class<RCTComponentViewProtocol> RTNPinwheelCls(void)
125
125
 
126
126
  - (void)initPinwheelWrapperVC {
127
127
  if (self.token != nil && self.pinwheelWrapperVC == nil) {
128
- self.pinwheelWrapperVC = [[PinwheelVCWrapper alloc] initWithToken:self.token delegate:self sdk:@"react native" version: @"3.2.0"];
128
+ self.pinwheelWrapperVC = [[PinwheelWrapperVC alloc] initWithToken:self.token delegate:self sdk:@"react native" version: @"3.2.2"];
129
129
  [self addSubview:self.pinwheelWrapperVC.view];
130
130
  }
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinwheel/react-native-pinwheel",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/Pinwheel.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import React from 'react';
2
2
  import { LinkOptions } from './client-events/client';
3
- declare const Pinwheel: ({ linkToken, onLogin, onLoginAttempt, onSuccess, onError, onExit, onEvent, }: LinkOptions) => React.JSX.Element;
3
+ declare const Pinwheel: ({ linkToken, onLogin, onLoginAttempt, onSuccess, onError, onExit, onEvent, handleInsets, }: LinkOptions & {
4
+ handleInsets?: boolean;
5
+ }) => React.JSX.Element;
4
6
  export default Pinwheel;
package/src/Pinwheel.tsx CHANGED
@@ -17,7 +17,10 @@ const Pinwheel = ({
17
17
  onError,
18
18
  onExit,
19
19
  onEvent,
20
- }: LinkOptions) => {
20
+ handleInsets,
21
+ }: LinkOptions & {
22
+ handleInsets?: boolean;
23
+ }) => {
21
24
  const eventsListener = useCallback(
22
25
  (event: any) => {
23
26
  if (!event) {
@@ -72,7 +75,13 @@ const Pinwheel = ({
72
75
 
73
76
  return (
74
77
  <SafeAreaView style={styles.container}>
75
- {linkToken && <RTNPinwheel style={{ flex: 1 }} token={linkToken} />}
78
+ {linkToken && (
79
+ <RTNPinwheel
80
+ style={{ flex: 1 }}
81
+ token={linkToken}
82
+ handleInsets={handleInsets ?? true}
83
+ />
84
+ )}
76
85
  </SafeAreaView>
77
86
  );
78
87
  };
@@ -1,7 +1,8 @@
1
- import type { ViewProps } from "react-native";
2
- import type { HostComponent } from "react-native";
1
+ import type { ViewProps } from 'react-native';
2
+ import type { HostComponent } from 'react-native';
3
3
  export interface NativeProps extends ViewProps {
4
4
  token: string;
5
+ handleInsets: boolean;
5
6
  }
6
7
  declare const _default: HostComponent<NativeProps>;
7
8
  export default _default;
@@ -1,15 +1,16 @@
1
- import type { ViewProps } from "react-native";
2
- import type { HostComponent } from "react-native";
3
- import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
1
+ import type { ViewProps } from 'react-native';
2
+ import type { HostComponent } from 'react-native';
3
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
4
4
 
5
5
  type Event = {
6
- name: string;
7
- }
6
+ name: string;
7
+ };
8
8
 
9
9
  export interface NativeProps extends ViewProps {
10
- token: string;
10
+ token: string;
11
+ handleInsets: boolean;
11
12
  }
12
13
 
13
14
  export default codegenNativeComponent<NativeProps>(
14
- "RTNPinwheel"
15
- ) as HostComponent<NativeProps>;
15
+ 'RTNPinwheel'
16
+ ) as HostComponent<NativeProps>;
@@ -1,44 +0,0 @@
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>
@@ -1,18 +0,0 @@
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>
@@ -1,14 +0,0 @@
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
-
@@ -1,6 +0,0 @@
1
- framework module ObjCWrapper {
2
- umbrella header "ObjCWrapper.h"
3
- export *
4
-
5
- module * { export * }
6
- }
@@ -1,15 +0,0 @@
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
-
@@ -1,146 +0,0 @@
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>
@@ -1,18 +0,0 @@
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>
@@ -1,14 +0,0 @@
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
-
@@ -1,6 +0,0 @@
1
- framework module ObjCWrapper {
2
- umbrella header "ObjCWrapper.h"
3
- export *
4
-
5
- module * { export * }
6
- }
@@ -1,15 +0,0 @@
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
-
@@ -1,146 +0,0 @@
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>