@sodyo/react-native-sodyo-sdk 3.1.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.
- package/.gitattributes +1 -0
- package/README.md +131 -0
- package/RNSodyoSdk.podspec +22 -0
- package/android/build.gradle +62 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/com/sodyo/RNSodyoSdk/ConversionUtil.java +169 -0
- package/android/src/main/java/com/sodyo/RNSodyoSdk/RNSodyoSdkModule.java +293 -0
- package/android/src/main/java/com/sodyo/RNSodyoSdk/RNSodyoSdkPackage.java +29 -0
- package/android/src/main/java/com/sodyo/RNSodyoSdk/RNSodyoSdkView.java +101 -0
- package/ios/RNSodyoSdk.h +26 -0
- package/ios/RNSodyoSdk.m +180 -0
- package/ios/RNSodyoSdk.xcodeproj/project.pbxproj +269 -0
- package/ios/RNSodyoSdk.xcodeproj/xcshareddata/xcschemes/RNSodyoSdk.xcscheme +80 -0
- package/ios/RNSodyoSdk.xcworkspace/contents.xcworkspacedata +9 -0
- package/ios/RNSodyoSdkManager.m +59 -0
- package/ios/RNSodyoSdkView.h +4 -0
- package/ios/RNSodyoSdkView.m +28 -0
- package/package.json +27 -0
- package/sodyosdk.d.ts +36 -0
- package/sodyosdk.js +199 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
package com.sodyo.RNSodyoSDK;
|
|
3
|
+
|
|
4
|
+
import java.util.Arrays;
|
|
5
|
+
import java.util.Collections;
|
|
6
|
+
import java.util.List;
|
|
7
|
+
|
|
8
|
+
import com.facebook.react.ReactPackage;
|
|
9
|
+
import com.facebook.react.bridge.NativeModule;
|
|
10
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
11
|
+
import com.facebook.react.uimanager.ViewManager;
|
|
12
|
+
import com.facebook.react.bridge.JavaScriptModule;
|
|
13
|
+
|
|
14
|
+
public class RNSodyoSdkPackage implements ReactPackage {
|
|
15
|
+
@Override
|
|
16
|
+
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
|
|
17
|
+
return Arrays.<NativeModule>asList(new RNSodyoSdkModule(reactContext));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Deprecated from RN 0.47
|
|
21
|
+
public List<Class<? extends JavaScriptModule>> createJSModules() {
|
|
22
|
+
return Collections.emptyList();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@Override
|
|
26
|
+
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
|
|
27
|
+
return Arrays.<ViewManager>asList(new RNSodyoSdkView(reactContext));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
|
|
2
|
+
package com.sodyo.RNSodyoSDK;
|
|
3
|
+
|
|
4
|
+
import com.facebook.react.uimanager.SimpleViewManager;
|
|
5
|
+
import com.facebook.react.uimanager.ThemedReactContext;
|
|
6
|
+
import com.facebook.react.bridge.ReactApplicationContext;
|
|
7
|
+
import com.facebook.react.uimanager.annotations.ReactProp;
|
|
8
|
+
|
|
9
|
+
import android.util.Log;
|
|
10
|
+
import android.widget.FrameLayout;
|
|
11
|
+
import android.app.Fragment;
|
|
12
|
+
import android.app.FragmentManager;
|
|
13
|
+
import android.app.FragmentTransaction;
|
|
14
|
+
import javax.annotation.Nullable;
|
|
15
|
+
|
|
16
|
+
import com.sodyo.sdk.SodyoScannerFragment;
|
|
17
|
+
|
|
18
|
+
public class RNSodyoSdkView extends SimpleViewManager<FrameLayout> {
|
|
19
|
+
static final String TAG = "RNSodyoSdkView";
|
|
20
|
+
|
|
21
|
+
static final String TAG_FRAGMENT = "SODYO_SCANNER";
|
|
22
|
+
|
|
23
|
+
public static final String REACT_CLASS = "RNSodyoSdkView";
|
|
24
|
+
|
|
25
|
+
private final @Nullable ReactApplicationContext mCallerContext;
|
|
26
|
+
|
|
27
|
+
private @Nullable SodyoScannerFragment sodyoFragment;
|
|
28
|
+
|
|
29
|
+
private boolean isCameraEnabled = true;
|
|
30
|
+
|
|
31
|
+
@Override
|
|
32
|
+
public String getName() {
|
|
33
|
+
return REACT_CLASS;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
public RNSodyoSdkView(ReactApplicationContext callerContext) {
|
|
37
|
+
mCallerContext = callerContext;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@Override
|
|
41
|
+
public FrameLayout createViewInstance(ThemedReactContext context) {
|
|
42
|
+
Log.i(TAG,"createViewInstance");
|
|
43
|
+
|
|
44
|
+
final FrameLayout view = new FrameLayout(context);
|
|
45
|
+
|
|
46
|
+
if (sodyoFragment == null) {
|
|
47
|
+
Log.i(TAG,"init SodyoScannerFragment");
|
|
48
|
+
sodyoFragment = new SodyoScannerFragment();
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
FragmentManager fragmentManager = mCallerContext.getCurrentActivity().getFragmentManager();
|
|
52
|
+
FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
|
|
53
|
+
|
|
54
|
+
fragmentTransaction.add(sodyoFragment, TAG_FRAGMENT).commit();
|
|
55
|
+
|
|
56
|
+
fragmentManager.executePendingTransactions();
|
|
57
|
+
|
|
58
|
+
view.addView(sodyoFragment.getView(), FrameLayout.LayoutParams.MATCH_PARENT, FrameLayout.LayoutParams.MATCH_PARENT);
|
|
59
|
+
return view;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@Override
|
|
63
|
+
public void onDropViewInstance(FrameLayout view) {
|
|
64
|
+
super.onDropViewInstance(view);
|
|
65
|
+
|
|
66
|
+
Log.i(TAG,"onDropViewInstance");
|
|
67
|
+
|
|
68
|
+
sodyoFragment = null;
|
|
69
|
+
isCameraEnabled = true;
|
|
70
|
+
|
|
71
|
+
try {
|
|
72
|
+
FragmentManager fragmentManager = mCallerContext.getCurrentActivity().getFragmentManager();
|
|
73
|
+
Fragment fragment = fragmentManager.findFragmentByTag(TAG_FRAGMENT);
|
|
74
|
+
|
|
75
|
+
if (fragment != null) {
|
|
76
|
+
fragmentManager.beginTransaction().remove(fragment).commit();
|
|
77
|
+
}
|
|
78
|
+
} catch (Exception e) {
|
|
79
|
+
e.printStackTrace();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@ReactProp(name = "isEnabled", defaultBoolean=true)
|
|
84
|
+
public void setIsEnabled(FrameLayout view, boolean isEnabled) {
|
|
85
|
+
if (sodyoFragment == null) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
if (isEnabled && !isCameraEnabled) {
|
|
90
|
+
Log.i(TAG,"start camera");
|
|
91
|
+
isCameraEnabled = true;
|
|
92
|
+
sodyoFragment.startCamera();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (!isEnabled && isCameraEnabled) {
|
|
96
|
+
Log.i(TAG,"stop camera");
|
|
97
|
+
isCameraEnabled = false;
|
|
98
|
+
sodyoFragment.stopCamera();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
package/ios/RNSodyoSdk.h
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
#if __has_include(<React/RCTBridgeModule.h>)
|
|
3
|
+
#import <React/RCTBridgeModule.h>
|
|
4
|
+
#import <React/RCTEventEmitter.h>
|
|
5
|
+
#import <React/RCTLog.h>
|
|
6
|
+
#else
|
|
7
|
+
#import "RCTBridgeModule.h"
|
|
8
|
+
#import "RCTEventEmitter.h"
|
|
9
|
+
#import "RCTLog.h"
|
|
10
|
+
#endif
|
|
11
|
+
|
|
12
|
+
#if __has_include(<SodyoSDK/SodyoSDK.h>)
|
|
13
|
+
#import <SodyoSDK/SodyoSDK.h>
|
|
14
|
+
#else
|
|
15
|
+
#import "SodyoSDK.h"
|
|
16
|
+
#endif
|
|
17
|
+
|
|
18
|
+
@interface RNSodyoSdk : RCTEventEmitter <RCTBridgeModule, SodyoSDKDelegate, SodyoMarkerDelegate> {
|
|
19
|
+
UIViewController *sodyoScanner;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@property (nonatomic, strong) RCTResponseSenderBlock successStartCallback;
|
|
23
|
+
@property (nonatomic, strong) RCTResponseSenderBlock errorStartCallback;
|
|
24
|
+
@property (nonatomic) BOOL isCloseContentObserverExist;
|
|
25
|
+
|
|
26
|
+
@end
|
package/ios/RNSodyoSdk.m
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
|
|
2
|
+
#import "RNSodyoSdk.h"
|
|
3
|
+
|
|
4
|
+
@implementation RNSodyoSdk
|
|
5
|
+
|
|
6
|
+
- (dispatch_queue_t)methodQueue
|
|
7
|
+
{
|
|
8
|
+
return dispatch_get_main_queue();
|
|
9
|
+
}
|
|
10
|
+
RCT_EXPORT_MODULE()
|
|
11
|
+
|
|
12
|
+
RCT_EXPORT_METHOD(
|
|
13
|
+
init:(NSString *)apiKey
|
|
14
|
+
successCallback:(RCTResponseSenderBlock)successCallback
|
|
15
|
+
errorCallback:(RCTResponseSenderBlock)errorCallback
|
|
16
|
+
)
|
|
17
|
+
{
|
|
18
|
+
RCTLogInfo(@"SodyoSDK: init()");
|
|
19
|
+
|
|
20
|
+
self.successStartCallback = successCallback;
|
|
21
|
+
self.errorStartCallback = errorCallback;
|
|
22
|
+
[SodyoSDK LoadApp:apiKey Delegate:self MarkerDelegate:self PresentingViewController:nil];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
RCT_EXPORT_METHOD(createCloseContentListener)
|
|
26
|
+
{
|
|
27
|
+
RCTLogInfo(@"SodyoSDK: createCloseContentListener()");
|
|
28
|
+
|
|
29
|
+
if (self.isCloseContentObserverExist) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
self.isCloseContentObserverExist = true;
|
|
34
|
+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sendCloseContentEvent) name:@"SodyoNotificationCloseIAD" object:nil];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
RCT_EXPORT_METHOD(start)
|
|
38
|
+
{
|
|
39
|
+
NSLog(@"start");
|
|
40
|
+
[self launchSodyoScanner];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
RCT_EXPORT_METHOD(close)
|
|
44
|
+
{
|
|
45
|
+
NSLog(@"close");
|
|
46
|
+
[self closeScanner];
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
RCT_EXPORT_METHOD(setCustomAdLabel:(NSString *)labels)
|
|
50
|
+
{
|
|
51
|
+
NSLog(@"setCustomAdLabel");
|
|
52
|
+
[SodyoSDK setCustomAdLabel:labels];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
RCT_EXPORT_METHOD(setAppUserId:(NSString *)userId)
|
|
56
|
+
{
|
|
57
|
+
NSLog(@"setAppUserId");
|
|
58
|
+
[SodyoSDK setUserId:userId];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
RCT_EXPORT_METHOD(setUserInfo:(NSDictionary *) userInfo)
|
|
62
|
+
{
|
|
63
|
+
NSLog(@"setUserInfo");
|
|
64
|
+
[SodyoSDK setUserInfo:userInfo];
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
RCT_EXPORT_METHOD(setScannerParams:(NSDictionary *) params)
|
|
68
|
+
{
|
|
69
|
+
NSLog(@"setScannerParams");
|
|
70
|
+
[SodyoSDK setScannerParams:params];
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
RCT_EXPORT_METHOD(addScannerParam:(NSString *) key value:(NSString *) value)
|
|
74
|
+
{
|
|
75
|
+
NSLog(@"addScannerParam");
|
|
76
|
+
[SodyoSDK addScannerParams:key value:value];
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
RCT_EXPORT_METHOD(setDynamicProfileValue:(NSString *) key value:(NSString *) value)
|
|
80
|
+
{
|
|
81
|
+
NSLog(@"setDynamicProfileValue");
|
|
82
|
+
[SodyoSDK setDynamicProfileValue:key value:value];
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
RCT_EXPORT_METHOD(performMarker:(NSString *) markerId)
|
|
86
|
+
{
|
|
87
|
+
NSLog(@"performMarker");
|
|
88
|
+
UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
|
|
89
|
+
[SodyoSDK setPresentingViewController:rootViewController];
|
|
90
|
+
[SodyoSDK performMarker:markerId];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
RCT_EXPORT_METHOD(setSodyoLogoVisible:(BOOL *) isVisible)
|
|
94
|
+
{
|
|
95
|
+
NSLog(@"setSodyoLogoVisible");
|
|
96
|
+
if (isVisible) {
|
|
97
|
+
return [SodyoSDK showDefaultOverlay];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
[SodyoSDK hideDefaultOverlay];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
RCT_EXPORT_METHOD(setEnv:(NSString *) env)
|
|
104
|
+
{
|
|
105
|
+
NSLog(@"setEnv");
|
|
106
|
+
|
|
107
|
+
NSDictionary *envs = @{ @"DEV": @"3", @"QA": @"1", @"PROD": @"0" };
|
|
108
|
+
NSDictionary *params = @{ @"SodyoAdEnv" : envs[env], @"ScanQR": @"false" };
|
|
109
|
+
[SodyoSDK setScannerParams:params];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
- (NSArray<NSString *> *)supportedEvents
|
|
113
|
+
{
|
|
114
|
+
return @[@"EventSodyoError", @"EventMarkerDetectSuccess", @"EventMarkerDetectError", @"EventMarkerContent", @"EventCloseSodyoContent"];
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
- (void) launchSodyoScanner {
|
|
118
|
+
NSLog(@"launchSodyoScanner");
|
|
119
|
+
if (!self->sodyoScanner) {
|
|
120
|
+
self->sodyoScanner = [SodyoSDK initSodyoScanner];
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (sodyoScanner.isViewLoaded && sodyoScanner.view.window) {
|
|
124
|
+
NSLog(@"Sodyo scanner already active");
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
|
|
129
|
+
self->sodyoScanner.modalPresentationStyle = UIModalPresentationFullScreen;
|
|
130
|
+
[SodyoSDK setPresentingViewController:rootViewController];
|
|
131
|
+
[rootViewController presentViewController:self->sodyoScanner animated:YES completion:nil];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
- (void) closeScanner {
|
|
135
|
+
NSLog(@"closeScanner");
|
|
136
|
+
UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
|
|
137
|
+
[rootViewController dismissViewControllerAnimated:YES completion:nil];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
- (void) sendCloseContentEvent {
|
|
141
|
+
NSLog(@"sendCloseContentEvent");
|
|
142
|
+
[self sendEventWithName:@"EventCloseSodyoContent" body:nil];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#pragma mark - SodyoSDKDelegate
|
|
146
|
+
- (void) onSodyoAppLoadSuccess:(NSInteger)AppID {
|
|
147
|
+
NSLog(@"onSodyoAppLoadSuccess");
|
|
148
|
+
|
|
149
|
+
if (self.successStartCallback != nil) {
|
|
150
|
+
self.successStartCallback(@[[NSNull null]]);
|
|
151
|
+
self.successStartCallback = nil;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
- (void) onSodyoAppLoadFailed:(NSInteger)AppID error:(NSError *)error {
|
|
156
|
+
NSLog(@"Failed loading Sodyo: %@", error);
|
|
157
|
+
if (self.errorStartCallback != nil) {
|
|
158
|
+
self.errorStartCallback(@[@{@"error": error}]);
|
|
159
|
+
self.errorStartCallback = nil;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
- (void) sodyoError:(NSError *)error {
|
|
164
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
165
|
+
NSLog(@"sodyoError: %@", error.userInfo[@"NSLocalizedDescription"]);
|
|
166
|
+
NSArray* params = @[@"sodyoError", error.userInfo[@"NSLocalizedDescription"]];
|
|
167
|
+
[self sendEventWithName:@"EventSodyoError" body:@{@"error": params[1]}];
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
- (void) SodyoMarkerDetectedWithData:(NSDictionary*)Data {
|
|
172
|
+
NSLog(@"SodyoMarkerDetectedWithData: %@", Data[@"sodyoMarkerData"]);
|
|
173
|
+
[self sendEventWithName:@"EventMarkerDetectSuccess" body:@{@"data": Data[@"sodyoMarkerData"]}];
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
- (void) SodyoMarkerContent:(NSString *)markerId Data:(NSDictionary *)Data {
|
|
177
|
+
NSLog(@"SodyoMarkerDetectedWithData: %@", Data);
|
|
178
|
+
[self sendEventWithName:@"EventMarkerContent" body:@{@"markerId": markerId, @"data": Data}];
|
|
179
|
+
}
|
|
180
|
+
@end
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 46;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
B3E7B58A1CC2AC0600A0062D /* RNSodyoSdk.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSodyoSdk.m */; };
|
|
11
|
+
/* End PBXBuildFile section */
|
|
12
|
+
|
|
13
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
14
|
+
58B511D91A9E6C8500147676 /* CopyFiles */ = {
|
|
15
|
+
isa = PBXCopyFilesBuildPhase;
|
|
16
|
+
buildActionMask = 2147483647;
|
|
17
|
+
dstPath = "include/$(PRODUCT_NAME)";
|
|
18
|
+
dstSubfolderSpec = 16;
|
|
19
|
+
files = (
|
|
20
|
+
);
|
|
21
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
22
|
+
};
|
|
23
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
24
|
+
|
|
25
|
+
/* Begin PBXFileReference section */
|
|
26
|
+
134814201AA4EA6300B7C361 /* libRNSodyoSdk.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNSodyoSdk.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
27
|
+
377DF877233131090051EFB7 /* SodyoSDK.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SodyoSDK.framework; path = ../../../ios/Pods/SodyoSDK/SodyoSDK/Frameworks/SodyoSDK.framework; sourceTree = "<group>"; };
|
|
28
|
+
B3E7B5881CC2AC0600A0062D /* RNSodyoSdk.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSodyoSdk.h; sourceTree = "<group>"; };
|
|
29
|
+
B3E7B5891CC2AC0600A0062D /* RNSodyoSdk.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSodyoSdk.m; sourceTree = "<group>"; };
|
|
30
|
+
/* End PBXFileReference section */
|
|
31
|
+
|
|
32
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
33
|
+
58B511D81A9E6C8500147676 /* Frameworks */ = {
|
|
34
|
+
isa = PBXFrameworksBuildPhase;
|
|
35
|
+
buildActionMask = 2147483647;
|
|
36
|
+
files = (
|
|
37
|
+
);
|
|
38
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
39
|
+
};
|
|
40
|
+
/* End PBXFrameworksBuildPhase section */
|
|
41
|
+
|
|
42
|
+
/* Begin PBXGroup section */
|
|
43
|
+
134814211AA4EA7D00B7C361 /* Products */ = {
|
|
44
|
+
isa = PBXGroup;
|
|
45
|
+
children = (
|
|
46
|
+
134814201AA4EA6300B7C361 /* libRNSodyoSdk.a */,
|
|
47
|
+
);
|
|
48
|
+
name = Products;
|
|
49
|
+
sourceTree = "<group>";
|
|
50
|
+
};
|
|
51
|
+
377DF876233130F10051EFB7 /* Frameworks */ = {
|
|
52
|
+
isa = PBXGroup;
|
|
53
|
+
children = (
|
|
54
|
+
377DF877233131090051EFB7 /* SodyoSDK.framework */,
|
|
55
|
+
);
|
|
56
|
+
name = Frameworks;
|
|
57
|
+
sourceTree = "<group>";
|
|
58
|
+
};
|
|
59
|
+
58B511D21A9E6C8500147676 = {
|
|
60
|
+
isa = PBXGroup;
|
|
61
|
+
children = (
|
|
62
|
+
B3E7B5881CC2AC0600A0062D /* RNSodyoSdk.h */,
|
|
63
|
+
B3E7B5891CC2AC0600A0062D /* RNSodyoSdk.m */,
|
|
64
|
+
134814211AA4EA7D00B7C361 /* Products */,
|
|
65
|
+
377DF876233130F10051EFB7 /* Frameworks */,
|
|
66
|
+
);
|
|
67
|
+
sourceTree = "<group>";
|
|
68
|
+
};
|
|
69
|
+
/* End PBXGroup section */
|
|
70
|
+
|
|
71
|
+
/* Begin PBXNativeTarget section */
|
|
72
|
+
58B511DA1A9E6C8500147676 /* RNSodyoSdk */ = {
|
|
73
|
+
isa = PBXNativeTarget;
|
|
74
|
+
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSodyoSdk" */;
|
|
75
|
+
buildPhases = (
|
|
76
|
+
58B511D71A9E6C8500147676 /* Sources */,
|
|
77
|
+
58B511D81A9E6C8500147676 /* Frameworks */,
|
|
78
|
+
58B511D91A9E6C8500147676 /* CopyFiles */,
|
|
79
|
+
);
|
|
80
|
+
buildRules = (
|
|
81
|
+
);
|
|
82
|
+
dependencies = (
|
|
83
|
+
);
|
|
84
|
+
name = RNSodyoSdk;
|
|
85
|
+
productName = RCTDataManager;
|
|
86
|
+
productReference = 134814201AA4EA6300B7C361 /* libRNSodyoSdk.a */;
|
|
87
|
+
productType = "com.apple.product-type.library.static";
|
|
88
|
+
};
|
|
89
|
+
/* End PBXNativeTarget section */
|
|
90
|
+
|
|
91
|
+
/* Begin PBXProject section */
|
|
92
|
+
58B511D31A9E6C8500147676 /* Project object */ = {
|
|
93
|
+
isa = PBXProject;
|
|
94
|
+
attributes = {
|
|
95
|
+
LastUpgradeCheck = 0830;
|
|
96
|
+
ORGANIZATIONNAME = Facebook;
|
|
97
|
+
TargetAttributes = {
|
|
98
|
+
58B511DA1A9E6C8500147676 = {
|
|
99
|
+
CreatedOnToolsVersion = 6.1.1;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSodyoSdk" */;
|
|
104
|
+
compatibilityVersion = "Xcode 3.2";
|
|
105
|
+
developmentRegion = English;
|
|
106
|
+
hasScannedForEncodings = 0;
|
|
107
|
+
knownRegions = (
|
|
108
|
+
English,
|
|
109
|
+
en,
|
|
110
|
+
);
|
|
111
|
+
mainGroup = 58B511D21A9E6C8500147676;
|
|
112
|
+
productRefGroup = 58B511D21A9E6C8500147676;
|
|
113
|
+
projectDirPath = "";
|
|
114
|
+
projectRoot = "";
|
|
115
|
+
targets = (
|
|
116
|
+
58B511DA1A9E6C8500147676 /* RNSodyoSdk */,
|
|
117
|
+
);
|
|
118
|
+
};
|
|
119
|
+
/* End PBXProject section */
|
|
120
|
+
|
|
121
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
122
|
+
58B511D71A9E6C8500147676 /* Sources */ = {
|
|
123
|
+
isa = PBXSourcesBuildPhase;
|
|
124
|
+
buildActionMask = 2147483647;
|
|
125
|
+
files = (
|
|
126
|
+
B3E7B58A1CC2AC0600A0062D /* RNSodyoSdk.m in Sources */,
|
|
127
|
+
);
|
|
128
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
129
|
+
};
|
|
130
|
+
/* End PBXSourcesBuildPhase section */
|
|
131
|
+
|
|
132
|
+
/* Begin XCBuildConfiguration section */
|
|
133
|
+
58B511ED1A9E6C8500147676 /* Debug */ = {
|
|
134
|
+
isa = XCBuildConfiguration;
|
|
135
|
+
buildSettings = {
|
|
136
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
137
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
138
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
139
|
+
CLANG_ENABLE_MODULES = YES;
|
|
140
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
141
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
142
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
143
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
144
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
145
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
146
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
147
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
148
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
149
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
150
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
151
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
152
|
+
COPY_PHASE_STRIP = NO;
|
|
153
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
154
|
+
ENABLE_TESTABILITY = YES;
|
|
155
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
156
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
157
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
158
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
159
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
160
|
+
"DEBUG=1",
|
|
161
|
+
"$(inherited)",
|
|
162
|
+
);
|
|
163
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
|
164
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
165
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
166
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
167
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
168
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
169
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
170
|
+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
|
171
|
+
MTL_ENABLE_DEBUG_INFO = YES;
|
|
172
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
173
|
+
SDKROOT = iphoneos;
|
|
174
|
+
};
|
|
175
|
+
name = Debug;
|
|
176
|
+
};
|
|
177
|
+
58B511EE1A9E6C8500147676 /* Release */ = {
|
|
178
|
+
isa = XCBuildConfiguration;
|
|
179
|
+
buildSettings = {
|
|
180
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
181
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
|
182
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
183
|
+
CLANG_ENABLE_MODULES = YES;
|
|
184
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
185
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
186
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
187
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
188
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
189
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
190
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
191
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
192
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
193
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
194
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
195
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
196
|
+
COPY_PHASE_STRIP = YES;
|
|
197
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
198
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
199
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
|
200
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
201
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
202
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
203
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
204
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
205
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
206
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
207
|
+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
|
208
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
209
|
+
SDKROOT = iphoneos;
|
|
210
|
+
VALIDATE_PRODUCT = YES;
|
|
211
|
+
};
|
|
212
|
+
name = Release;
|
|
213
|
+
};
|
|
214
|
+
58B511F01A9E6C8500147676 /* Debug */ = {
|
|
215
|
+
isa = XCBuildConfiguration;
|
|
216
|
+
buildSettings = {
|
|
217
|
+
HEADER_SEARCH_PATHS = (
|
|
218
|
+
"$(inherited)",
|
|
219
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
220
|
+
"$(SRCROOT)/../../../React/**",
|
|
221
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
222
|
+
);
|
|
223
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
224
|
+
PRODUCT_NAME = RNSodyoSdk;
|
|
225
|
+
SKIP_INSTALL = YES;
|
|
226
|
+
};
|
|
227
|
+
name = Debug;
|
|
228
|
+
};
|
|
229
|
+
58B511F11A9E6C8500147676 /* Release */ = {
|
|
230
|
+
isa = XCBuildConfiguration;
|
|
231
|
+
buildSettings = {
|
|
232
|
+
HEADER_SEARCH_PATHS = (
|
|
233
|
+
"$(inherited)",
|
|
234
|
+
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
|
|
235
|
+
"$(SRCROOT)/../../../React/**",
|
|
236
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
237
|
+
);
|
|
238
|
+
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
|
|
239
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
240
|
+
PRODUCT_NAME = RNSodyoSdk;
|
|
241
|
+
SKIP_INSTALL = YES;
|
|
242
|
+
};
|
|
243
|
+
name = Release;
|
|
244
|
+
};
|
|
245
|
+
/* End XCBuildConfiguration section */
|
|
246
|
+
|
|
247
|
+
/* Begin XCConfigurationList section */
|
|
248
|
+
58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSodyoSdk" */ = {
|
|
249
|
+
isa = XCConfigurationList;
|
|
250
|
+
buildConfigurations = (
|
|
251
|
+
58B511ED1A9E6C8500147676 /* Debug */,
|
|
252
|
+
58B511EE1A9E6C8500147676 /* Release */,
|
|
253
|
+
);
|
|
254
|
+
defaultConfigurationIsVisible = 0;
|
|
255
|
+
defaultConfigurationName = Release;
|
|
256
|
+
};
|
|
257
|
+
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSodyoSdk" */ = {
|
|
258
|
+
isa = XCConfigurationList;
|
|
259
|
+
buildConfigurations = (
|
|
260
|
+
58B511F01A9E6C8500147676 /* Debug */,
|
|
261
|
+
58B511F11A9E6C8500147676 /* Release */,
|
|
262
|
+
);
|
|
263
|
+
defaultConfigurationIsVisible = 0;
|
|
264
|
+
defaultConfigurationName = Release;
|
|
265
|
+
};
|
|
266
|
+
/* End XCConfigurationList section */
|
|
267
|
+
};
|
|
268
|
+
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
|
|
269
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Scheme
|
|
3
|
+
LastUpgradeVersion = "1020"
|
|
4
|
+
version = "1.3">
|
|
5
|
+
<BuildAction
|
|
6
|
+
parallelizeBuildables = "NO"
|
|
7
|
+
buildImplicitDependencies = "YES">
|
|
8
|
+
<BuildActionEntries>
|
|
9
|
+
<BuildActionEntry
|
|
10
|
+
buildForTesting = "YES"
|
|
11
|
+
buildForRunning = "YES"
|
|
12
|
+
buildForProfiling = "YES"
|
|
13
|
+
buildForArchiving = "YES"
|
|
14
|
+
buildForAnalyzing = "YES">
|
|
15
|
+
<BuildableReference
|
|
16
|
+
BuildableIdentifier = "primary"
|
|
17
|
+
BlueprintIdentifier = "58B511DA1A9E6C8500147676"
|
|
18
|
+
BuildableName = "libRNSodyoSdk.a"
|
|
19
|
+
BlueprintName = "RNSodyoSdk"
|
|
20
|
+
ReferencedContainer = "container:RNSodyoSdk.xcodeproj">
|
|
21
|
+
</BuildableReference>
|
|
22
|
+
</BuildActionEntry>
|
|
23
|
+
</BuildActionEntries>
|
|
24
|
+
</BuildAction>
|
|
25
|
+
<TestAction
|
|
26
|
+
buildConfiguration = "Debug"
|
|
27
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
28
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
29
|
+
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
30
|
+
<Testables>
|
|
31
|
+
</Testables>
|
|
32
|
+
<AdditionalOptions>
|
|
33
|
+
</AdditionalOptions>
|
|
34
|
+
</TestAction>
|
|
35
|
+
<LaunchAction
|
|
36
|
+
buildConfiguration = "Debug"
|
|
37
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
38
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
39
|
+
launchStyle = "0"
|
|
40
|
+
useCustomWorkingDirectory = "NO"
|
|
41
|
+
ignoresPersistentStateOnLaunch = "NO"
|
|
42
|
+
debugDocumentVersioning = "YES"
|
|
43
|
+
debugServiceExtension = "internal"
|
|
44
|
+
allowLocationSimulation = "YES">
|
|
45
|
+
<MacroExpansion>
|
|
46
|
+
<BuildableReference
|
|
47
|
+
BuildableIdentifier = "primary"
|
|
48
|
+
BlueprintIdentifier = "58B511DA1A9E6C8500147676"
|
|
49
|
+
BuildableName = "libRNSodyoSdk.a"
|
|
50
|
+
BlueprintName = "RNSodyoSdk"
|
|
51
|
+
ReferencedContainer = "container:RNSodyoSdk.xcodeproj">
|
|
52
|
+
</BuildableReference>
|
|
53
|
+
</MacroExpansion>
|
|
54
|
+
<AdditionalOptions>
|
|
55
|
+
</AdditionalOptions>
|
|
56
|
+
</LaunchAction>
|
|
57
|
+
<ProfileAction
|
|
58
|
+
buildConfiguration = "Release"
|
|
59
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
60
|
+
savedToolIdentifier = ""
|
|
61
|
+
useCustomWorkingDirectory = "NO"
|
|
62
|
+
debugDocumentVersioning = "YES">
|
|
63
|
+
<MacroExpansion>
|
|
64
|
+
<BuildableReference
|
|
65
|
+
BuildableIdentifier = "primary"
|
|
66
|
+
BlueprintIdentifier = "58B511DA1A9E6C8500147676"
|
|
67
|
+
BuildableName = "libRNSodyoSdk.a"
|
|
68
|
+
BlueprintName = "RNSodyoSdk"
|
|
69
|
+
ReferencedContainer = "container:RNSodyoSdk.xcodeproj">
|
|
70
|
+
</BuildableReference>
|
|
71
|
+
</MacroExpansion>
|
|
72
|
+
</ProfileAction>
|
|
73
|
+
<AnalyzeAction
|
|
74
|
+
buildConfiguration = "Debug">
|
|
75
|
+
</AnalyzeAction>
|
|
76
|
+
<ArchiveAction
|
|
77
|
+
buildConfiguration = "Release"
|
|
78
|
+
revealArchiveInOrganizer = "YES">
|
|
79
|
+
</ArchiveAction>
|
|
80
|
+
</Scheme>
|