@truewatchtech/react-native-mobile 0.3.15 → 0.4.1

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 (113) hide show
  1. package/FTMobileReactNativeSDK.podspec +32 -2
  2. package/android/build.gradle +10 -4
  3. package/android/src/main/java/com/ft/sdk/reactnative/FTMobileImpl.java +434 -5
  4. package/android/src/main/java/com/ft/sdk/reactnative/FTRUMImpl.java +12 -0
  5. package/android/src/main/java/com/ft/sdk/reactnative/FTTraceImpl.java +1 -1
  6. package/android/src/newarch/java/com/ft/sdk/reactnative/FTLogModule.java +7 -14
  7. package/android/src/newarch/java/com/ft/sdk/reactnative/FTMobileModule.java +46 -12
  8. package/android/src/newarch/java/com/ft/sdk/reactnative/FTRUMModule.java +12 -13
  9. package/android/src/newarch/java/com/ft/sdk/reactnative/FTTraceModule.java +6 -8
  10. package/android/src/oldarch/java/com/ft/sdk/reactnative/FTMobileModule.java +34 -2
  11. package/android/src/rnpost74/java/com/ft/sdk/reactnative/FTMobilePackage.java +14 -4
  12. package/android/src/rnpre74/java/com/ft/sdk/reactnative/FTMobilePackage.java +0 -2
  13. package/ios/FTMobileReactNative.h +9 -5
  14. package/ios/FTMobileReactNative.mm +619 -0
  15. package/ios/FTReactNativeLog.h +8 -3
  16. package/ios/FTReactNativeLog.mm +79 -0
  17. package/ios/FTReactNativeRUM.h +8 -4
  18. package/ios/{FTReactNativeRUM.m → FTReactNativeRUM.mm} +143 -84
  19. package/ios/FTReactNativeTrace.h +7 -3
  20. package/ios/FTReactNativeTrace.mm +74 -0
  21. package/ios/FtMobileAgent.xcodeproj/project.pbxproj +22 -0
  22. package/lib/commonjs/ft_logger.js +14 -13
  23. package/lib/commonjs/ft_logger.js.map +1 -1
  24. package/lib/commonjs/ft_mobile_agent.js +153 -6
  25. package/lib/commonjs/ft_mobile_agent.js.map +1 -1
  26. package/lib/commonjs/ft_rum.js +55 -21
  27. package/lib/commonjs/ft_rum.js.map +1 -1
  28. package/lib/commonjs/ft_tracing.js +29 -10
  29. package/lib/commonjs/ft_tracing.js.map +1 -1
  30. package/lib/commonjs/index.js +30 -0
  31. package/lib/commonjs/index.js.map +1 -1
  32. package/lib/commonjs/rum/FTRumActionTracking.js +10 -4
  33. package/lib/commonjs/rum/FTRumActionTracking.js.map +1 -1
  34. package/lib/commonjs/rum/FTRumErrorTracking.js +4 -4
  35. package/lib/commonjs/rum/FTRumErrorTracking.js.map +1 -1
  36. package/lib/commonjs/specs/NativeFTMobileReactNative.js +10 -0
  37. package/lib/commonjs/specs/NativeFTMobileReactNative.js.map +1 -0
  38. package/lib/commonjs/specs/NativeFTReactNativeLog.js +10 -0
  39. package/lib/commonjs/specs/NativeFTReactNativeLog.js.map +1 -0
  40. package/lib/commonjs/specs/NativeFTReactNativeRUM.js +10 -0
  41. package/lib/commonjs/specs/NativeFTReactNativeRUM.js.map +1 -0
  42. package/lib/commonjs/specs/NativeFTReactNativeTrace.js +10 -0
  43. package/lib/commonjs/specs/NativeFTReactNativeTrace.js.map +1 -0
  44. package/lib/commonjs/version.js +1 -1
  45. package/lib/commonjs/version.js.map +1 -1
  46. package/lib/module/ft_logger.js +14 -12
  47. package/lib/module/ft_logger.js.map +1 -1
  48. package/lib/module/ft_mobile_agent.js +159 -5
  49. package/lib/module/ft_mobile_agent.js.map +1 -1
  50. package/lib/module/ft_rum.js +54 -16
  51. package/lib/module/ft_rum.js.map +1 -1
  52. package/lib/module/ft_tracing.js +29 -9
  53. package/lib/module/ft_tracing.js.map +1 -1
  54. package/lib/module/index.js +3 -3
  55. package/lib/module/index.js.map +1 -1
  56. package/lib/module/rum/FTRumActionTracking.js +10 -4
  57. package/lib/module/rum/FTRumActionTracking.js.map +1 -1
  58. package/lib/module/rum/FTRumErrorTracking.js +4 -4
  59. package/lib/module/rum/FTRumErrorTracking.js.map +1 -1
  60. package/lib/module/specs/NativeFTMobileReactNative.js +5 -0
  61. package/lib/module/specs/NativeFTMobileReactNative.js.map +1 -0
  62. package/lib/module/specs/NativeFTReactNativeLog.js +5 -0
  63. package/lib/module/specs/NativeFTReactNativeLog.js.map +1 -0
  64. package/lib/module/specs/NativeFTReactNativeRUM.js +5 -0
  65. package/lib/module/specs/NativeFTReactNativeRUM.js.map +1 -0
  66. package/lib/module/specs/NativeFTReactNativeTrace.js +5 -0
  67. package/lib/module/specs/NativeFTReactNativeTrace.js.map +1 -0
  68. package/lib/module/version.js +1 -1
  69. package/lib/module/version.js.map +1 -1
  70. package/lib/typescript/ft_logger.d.ts +6 -6
  71. package/lib/typescript/ft_mobile_agent.d.ts +165 -14
  72. package/lib/typescript/ft_rum.d.ts +32 -8
  73. package/lib/typescript/ft_tracing.d.ts +6 -6
  74. package/lib/typescript/index.d.ts +3 -3
  75. package/lib/typescript/specs/NativeFTMobileReactNative.d.ts +75 -0
  76. package/lib/typescript/specs/NativeFTReactNativeLog.d.ts +23 -0
  77. package/lib/typescript/specs/NativeFTReactNativeRUM.d.ts +89 -0
  78. package/lib/typescript/specs/NativeFTReactNativeTrace.d.ts +24 -0
  79. package/lib/typescript/version.d.ts +1 -1
  80. package/package.json +29 -96
  81. package/scripts/replace-react-require.js +37 -38
  82. package/src/ft_logger.tsx +71 -40
  83. package/src/ft_mobile_agent.tsx +374 -92
  84. package/src/ft_rum.tsx +227 -123
  85. package/src/ft_tracing.tsx +58 -38
  86. package/src/index.tsx +58 -16
  87. package/src/rum/FTRumActionTracking.tsx +212 -204
  88. package/src/rum/FTRumErrorTracking.tsx +70 -71
  89. package/src/specs/NativeFTMobileReactNative.ts +83 -0
  90. package/src/specs/NativeFTReactNativeLog.ts +29 -0
  91. package/src/specs/NativeFTReactNativeRUM.ts +104 -0
  92. package/src/specs/NativeFTReactNativeTrace.ts +26 -0
  93. package/src/version.ts +1 -1
  94. package/LICENSE +0 -201
  95. package/android/.project +0 -17
  96. package/android/.settings/org.eclipse.buildship.core.prefs +0 -13
  97. package/android/gradlew +0 -185
  98. package/android/local.properties +0 -8
  99. package/android/src/main/java/com/ft/sdk/InnerClassProxy.java +0 -8
  100. package/ios/.idea/.name +0 -1
  101. package/ios/.idea/ios.iml +0 -2
  102. package/ios/.idea/modules.xml +0 -8
  103. package/ios/.idea/vcs.xml +0 -6
  104. package/ios/.idea/xcode.xml +0 -4
  105. package/ios/FTMobileReactNative.m +0 -183
  106. package/ios/FTReactNativeLog.m +0 -60
  107. package/ios/FTReactNativeTrace.m +0 -58
  108. package/ios/FtMobileAgent.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -4
  109. package/ios/FtMobileAgent.xcodeproj/project.xcworkspace/xcuserdata/Brandon.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  110. package/ios/FtMobileAgent.xcodeproj/project.xcworkspace/xcuserdata/Brandon.xcuserdatad/xcschemes/xcschememanagement.plist +0 -5
  111. package/ios/FtMobileAgent.xcodeproj/xcuserdata/Brandon.xcuserdatad/xcschemes/FtMobileAgent.xcscheme +0 -56
  112. package/ios/FtMobileAgent.xcodeproj/xcuserdata/Brandon.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  113. package/ios/RCTVersion.h +0 -8
@@ -1,8 +0,0 @@
1
- package com.ft.sdk;
2
-
3
- public class InnerClassProxy {
4
-
5
- public static void addPkgInfo(FTSDKConfig config, String key, String value) {
6
- config.addPkgInfo(key, value);
7
- }
8
- }
package/ios/.idea/.name DELETED
@@ -1 +0,0 @@
1
- FtMobileAgent
package/ios/.idea/ios.iml DELETED
@@ -1,2 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module classpath="AppCode" type="CIDR_MODULE" version="4" />
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/ios.iml" filepath="$PROJECT_DIR$/.idea/ios.iml" />
6
- </modules>
7
- </component>
8
- </project>
package/ios/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="$PROJECT_DIR$/.." vcs="Git" />
5
- </component>
6
- </project>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="XcodeMetaData" PROJECT_DIR="$PROJECT_DIR$" PROJECT_FILE="$PROJECT_DIR$/FtMobileAgent.xcodeproj" />
4
- </project>
@@ -1,183 +0,0 @@
1
- //
2
- // FTMobileReactNative.m
3
- // FtMobileAgent
4
- //
5
- // Created by Hu Leilei on 2021/12/14.
6
- // Copyright © 2021 Facebook. All rights reserved.
7
- //
8
-
9
- #import "FTMobileReactNative.h"
10
- #import <FTMobileSDK/FTMobileAgent.h>
11
- #import <FTMobileSDK/FTMobileConfig+Private.h>
12
- #import <React/RCTConvert.h>
13
- #import <FTMobileSDK/FTThreadDispatchManager.h>
14
- #import <FTMobileSDK/FTConstants.h>
15
- @implementation FTMobileReactNative
16
- RCT_EXPORT_MODULE()
17
- RCT_REMAP_METHOD(sdkConfig,
18
- context:(NSDictionary *)context
19
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
20
- rejecter:(RCTPromiseRejectBlock)reject)
21
- {
22
- [FTThreadDispatchManager performBlockDispatchMainSyncSafe:^{
23
- FTMobileConfig *config;
24
- NSString *datakitUrl = [RCTConvert NSString:context[@"datakitUrl"]];
25
- NSString *dataWayUrl = [RCTConvert NSString:context[@"datawayUrl"]];
26
- NSString *clientToken = [RCTConvert NSString:context[@"clientToken"]];
27
- if(dataWayUrl && dataWayUrl.length>0 && clientToken && clientToken.length>0){
28
- config = [[FTMobileConfig alloc]initWithDatawayUrl:dataWayUrl clientToken:clientToken];
29
- }else if(datakitUrl && datakitUrl.length>0){
30
- config = [[FTMobileConfig alloc]initWithDatakitUrl:datakitUrl];
31
- }else{
32
- resolve(nil);
33
- return;
34
- }
35
- if ([context.allKeys containsObject:@"debug"]) {
36
- config.enableSDKDebugLog = [RCTConvert BOOL:context[@"debug"]];
37
- }
38
- if ([context.allKeys containsObject:@"service"]) {
39
- config.service = [RCTConvert NSString:context[@"service"]];
40
- }
41
- if([context.allKeys containsObject:@"env"]){
42
- id env = context[@"env"];
43
- if([env isKindOfClass:NSString.class]){
44
- config.env = env;
45
- }
46
- }
47
- if([context.allKeys containsObject:@"envType"]){
48
- id env = context[@"envType"];
49
- if([env isKindOfClass:NSNumber.class]){
50
- int envType = [env intValue];
51
- if(envType>=0 && envType<5){
52
- [config setEnvWithType:envType];
53
- }
54
- }
55
- }
56
- if ([context.allKeys containsObject:@"autoSync"]) {
57
- config.autoSync = [RCTConvert BOOL:context[@"autoSync"]];
58
- }
59
- if ([context.allKeys containsObject:@"syncPageSize"]) {
60
- config.syncPageSize = [RCTConvert int:context[@"syncPageSize"]];
61
- }
62
- if ([context.allKeys containsObject:@"syncSleepTime"]) {
63
- config.syncSleepTime = [RCTConvert int:context[@"syncSleepTime"]];
64
- }
65
- if ([context.allKeys containsObject:@"enableDataIntegerCompatible"]) {
66
- config.enableDataIntegerCompatible = [RCTConvert BOOL:context[@"enableDataIntegerCompatible"]];
67
- }
68
- if ([context.allKeys containsObject:@"compressIntakeRequests"]) {
69
- config.compressIntakeRequests = [RCTConvert BOOL:context[@"compressIntakeRequests"]];
70
- }
71
- if ([context.allKeys containsObject:@"globalContext"]) {
72
- config.globalContext = [RCTConvert NSDictionary:context[@"globalContext"]];
73
- }
74
- if ([context.allKeys containsObject:@"groupIdentifiers"]){
75
- config.groupIdentifiers = [RCTConvert NSArray:context[@"groupIdentifiers"]];
76
- }
77
- if ([context.allKeys containsObject:@"dbDiscardStrategy"]){
78
- config.dbDiscardType = [RCTConvert int:context[@"dbDiscardStrategy"]];
79
- }
80
- if ([context.allKeys containsObject:@"enableLimitWithDbSize"]){
81
- config.enableLimitWithDbSize = [RCTConvert BOOL:context[@"enableLimitWithDbSize"]];
82
- }
83
- if ([context.allKeys containsObject:@"dbCacheLimit"]){
84
- config.dbCacheLimit = [RCTConvert double:context[@"dbCacheLimit"]];
85
- }
86
- if ([context.allKeys containsObject:@"dataModifier"]){
87
- NSDictionary *dataModifierDict = [[RCTConvert NSDictionary:context[@"dataModifier"]] copy];
88
- config.dataModifier = ^id _Nullable(NSString * _Nonnull key, id _Nonnull value) {
89
- if ([dataModifierDict.allKeys containsObject:key]) {
90
- return dataModifierDict[key];
91
- }
92
- return value;
93
- };
94
- }
95
- if ([context.allKeys containsObject:@"lineDataModifier"]){
96
- NSDictionary *dataModifierDict = [[RCTConvert NSDictionary:context[@"lineDataModifier"]] copy];
97
- config.lineDataModifier = ^NSDictionary<NSString *,id> * _Nullable(NSString * _Nonnull measurement, NSDictionary<NSString *,id> * _Nonnull data) {
98
- if ([measurement isEqualToString:FT_LOGGER_SOURCE] || [measurement isEqualToString:FT_LOGGER_TVOS_SOURCE]) {
99
- return [dataModifierDict valueForKey:@"log"];
100
- }else{
101
- return [dataModifierDict valueForKey:measurement];
102
- }
103
- };
104
- }
105
- NSString *pkgInfo = [RCTConvert NSString:context[@"pkgInfo"]];
106
- [config addPkgInfo:@"reactnative" value:pkgInfo];
107
- [FTMobileAgent startWithConfigOptions:config];
108
- resolve(nil);
109
- }];
110
- }
111
-
112
- RCT_REMAP_METHOD(bindRUMUserData,
113
- userId:(NSString*)userId userName:(NSString*)userName userEmail:(NSString*)userEmail extra:(NSDictionary *)extra
114
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
115
- rejecter:(RCTPromiseRejectBlock)reject){
116
- [[FTMobileAgent sharedInstance] bindUserWithUserID:userId userName:userName userEmail:userEmail extra:extra];
117
- resolve(nil);
118
- }
119
-
120
- RCT_REMAP_METHOD(unbindRUMUserData,
121
- unbindRUMUserData_Resolver:(RCTPromiseResolveBlock)resolve
122
- rejecter:(RCTPromiseRejectBlock)reject
123
- ){
124
- [[FTMobileAgent sharedInstance] unbindUser];
125
- resolve(nil);
126
- }
127
- RCT_REMAP_METHOD(appendGlobalContext,
128
- appendGlobalContext:(NSDictionary *)context
129
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
130
- rejecter:(RCTPromiseRejectBlock)reject){
131
- [FTMobileAgent appendGlobalContext:context];
132
- resolve(nil);
133
- }
134
- RCT_REMAP_METHOD(appendRUMGlobalContext,
135
- appendRUMGlobalContext:(NSDictionary *)context
136
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
137
- rejecter:(RCTPromiseRejectBlock)reject){
138
- [FTMobileAgent appendRUMGlobalContext:context];
139
- resolve(nil);
140
- }
141
- RCT_REMAP_METHOD(appendLogGlobalContext,
142
- appendLogGlobalContext:(NSDictionary *)context
143
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
144
- rejecter:(RCTPromiseRejectBlock)reject){
145
- [FTMobileAgent appendLogGlobalContext:context];
146
- resolve(nil);
147
- }
148
-
149
- RCT_REMAP_METHOD(flushSyncData,
150
- flushSyncData_Resolver:(RCTPromiseResolveBlock)resolve
151
- rejecter:(RCTPromiseRejectBlock)reject
152
- ){
153
- [[FTMobileAgent sharedInstance] flushSyncData];
154
- resolve(nil);
155
- }
156
- RCT_REMAP_METHOD(trackEventFromExtension,
157
- identifier:(NSString*)identifier
158
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
159
- rejecter:(RCTPromiseRejectBlock)reject){
160
- [[FTMobileAgent sharedInstance] trackEventFromExtensionWithGroupIdentifier:identifier completion:^(NSString * _Nonnull groupIdentifier, NSArray * _Nonnull events) {
161
- if(events.count>0){
162
- resolve(@{@"groupIdentifier":identifier,
163
- @"datas":events
164
- });
165
- }else{
166
- resolve(nil);
167
- }
168
-
169
- }];
170
- }
171
- RCT_REMAP_METHOD(shutDown,
172
- shutDown_findEventsWithResolver:(RCTPromiseResolveBlock)resolve
173
- rejecter:(RCTPromiseRejectBlock)reject){
174
- [FTMobileAgent shutDown];
175
- resolve(nil);
176
- }
177
- RCT_REMAP_METHOD(clearAllData,
178
- clearAllData_findEventsWithResolver:(RCTPromiseResolveBlock)resolve
179
- rejecter:(RCTPromiseRejectBlock)reject){
180
- [FTMobileAgent clearAllData];
181
- resolve(nil);
182
- }
183
- @end
@@ -1,60 +0,0 @@
1
- //
2
- // FTReactNativeLog.m
3
- // FtMobileAgent
4
- //
5
- // Created by Hu Leilei on 2021/12/14.
6
- // Copyright © 2021 Facebook. All rights reserved.
7
- //
8
-
9
- #import "FTReactNativeLog.h"
10
- #import <FTMobileSDK/FTMobileAgent.h>
11
- #import <React/RCTConvert.h>
12
- #import <FTMobileSDK/FTLogger+Private.h>
13
- @implementation FTReactNativeLog
14
- RCT_EXPORT_MODULE()
15
-
16
- RCT_REMAP_METHOD(logConfig,
17
- context:(NSDictionary *)context
18
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
19
- rejecter:(RCTPromiseRejectBlock)reject){
20
- FTLoggerConfig *logger = [[FTLoggerConfig alloc]init];
21
- if ([context.allKeys containsObject:@"sampleRate"]) {
22
- logger.samplerate = [RCTConvert double:context[@"sampleRate"]]*100;
23
- }
24
- NSArray<NSNumber *>*filters = [RCTConvert NSNumberArray:context[@"logLevelFilters"]];
25
- if (filters) {
26
- logger.logLevelFilter = filters;
27
- }
28
- if([context.allKeys containsObject:@"discardStrategy"]){
29
- logger.discardType = [RCTConvert int:context[@"discardStrategy"]];
30
- }
31
- if ([context.allKeys containsObject:@"globalContext"]) {
32
- logger.globalContext = [RCTConvert NSDictionary:context[@"globalContext"]];
33
- }
34
- logger.enableCustomLog = [RCTConvert BOOL:context[@"enableCustomLog"]];
35
- logger.enableLinkRumData = [RCTConvert BOOL:context[@"enableLinkRumData"]];
36
- if ([context.allKeys containsObject:@"logCacheLimitCount"]) {
37
- logger.logCacheLimitCount = [RCTConvert int:context[@"logCacheLimitCount"]];
38
- }
39
- [[FTMobileAgent sharedInstance] startLoggerWithConfigOptions:logger];
40
- resolve(nil);
41
- }
42
-
43
- RCT_REMAP_METHOD(logging,
44
- logging:(NSString *)content status:(nonnull NSNumber *)status property:(NSDictionary *)property
45
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
46
- rejecter:(RCTPromiseRejectBlock)reject){
47
-
48
- LogStatus logStatus =(LogStatus)[status integerValue];
49
- [[FTLogger sharedInstance] log:content statusType:logStatus property:property];
50
- resolve(nil);
51
- }
52
- RCT_REMAP_METHOD(logWithStatusString,
53
- logWithStatusString:(NSString *)content status:(NSString *)status property:(NSDictionary *)property
54
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
55
- rejecter:(RCTPromiseRejectBlock)reject){
56
- [[FTLogger sharedInstance] log:content status:status property:property];
57
- resolve(nil);
58
- }
59
- @end
60
-
@@ -1,58 +0,0 @@
1
- //
2
- // FTReactNativeTrace.m
3
- // FtMobileAgent
4
- //
5
- // Created by Hu Leilei on 2021/12/14.
6
- // Copyright © 2021 Facebook. All rights reserved.
7
- //
8
-
9
- #import "FTReactNativeTrace.h"
10
- #import "FtMobileAgent.h"
11
- #import <FTMobileSDK/FTMobileAgent.h>
12
- #import <FTMobileSDK/FTExternalDataManager.h>
13
- #import <FTMobileSDK/FTResourceMetricsModel.h>
14
- #import <FTMobileSDK/FTResourceContentModel.h>
15
- #import <React/RCTConvert.h>
16
- #import <FTMobileSDK/FTTraceManager.h>
17
- @implementation FTReactNativeTrace
18
- RCT_EXPORT_MODULE()
19
-
20
- RCT_REMAP_METHOD(setConfig,
21
- context:(NSDictionary *)context
22
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
23
- rejecter:(RCTPromiseRejectBlock)reject){
24
- FTTraceConfig *trace = [[FTTraceConfig alloc]init];
25
- if ([context.allKeys containsObject:@"sampleRate"]) {
26
- trace.samplerate =[RCTConvert double:context[@"sampleRate"]] * 100;
27
- }
28
- if ([context.allKeys containsObject:@"traceType"]) {
29
- int traceType = [RCTConvert int:context[@"traceType"]];
30
- trace.networkTraceType = traceType;
31
- }
32
- trace.enableLinkRumData = [RCTConvert BOOL:context[@"enableLinkRUMData"]];
33
- trace.enableAutoTrace = [RCTConvert BOOL:context[@"enableNativeAutoTrace"]];
34
- [[FTMobileAgent sharedInstance] startTraceWithConfigOptions:trace];
35
- resolve(nil);
36
- }
37
-
38
- RCT_REMAP_METHOD(getTraceHeaderFields,
39
- url:(NSString *)url
40
- key:(NSString *)key
41
- findEventsWithResolver:(RCTPromiseResolveBlock)resolve
42
- rejecter:(RCTPromiseRejectBlock)reject){
43
- NSDictionary *traceHeader = nil;
44
- if(key&&key.length>0){
45
- traceHeader = [[FTExternalDataManager sharedManager] getTraceHeaderWithKey:key url:[NSURL URLWithString:url]];
46
- }else{
47
- traceHeader = [[FTExternalDataManager sharedManager] getTraceHeaderWithUrl:[NSURL URLWithString:url]];
48
- }
49
- if (traceHeader) {
50
- resolve(traceHeader);
51
- }else{
52
- resolve(nil);
53
- }
54
- }
55
-
56
- @end
57
-
58
-
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- </Workspace>
@@ -1,5 +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
- </plist>
@@ -1,56 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- version = "1.7">
4
- <BuildAction
5
- parallelizeBuildables = "YES"
6
- buildImplicitDependencies = "YES">
7
- <BuildActionEntries>
8
- <BuildActionEntry
9
- buildForTesting = "YES"
10
- buildForRunning = "YES"
11
- buildForProfiling = "YES"
12
- buildForArchiving = "YES"
13
- buildForAnalyzing = "YES">
14
- <BuildableReference
15
- BuildableIdentifier = "primary"
16
- BlueprintIdentifier = "58B511DA1A9E6C8500147676"
17
- BuildableName = "libFtMobileAgent.a"
18
- BlueprintName = "FtMobileAgent"
19
- ReferencedContainer = "container:FtMobileAgent.xcodeproj">
20
- </BuildableReference>
21
- </BuildActionEntry>
22
- </BuildActionEntries>
23
- </BuildAction>
24
- <TestAction
25
- buildConfiguration = "Debug"
26
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
27
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28
- shouldUseLaunchSchemeArgsEnv = "YES"
29
- shouldAutocreateTestPlan = "YES">
30
- </TestAction>
31
- <LaunchAction
32
- buildConfiguration = "Debug"
33
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
34
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
35
- launchStyle = "0"
36
- useCustomWorkingDirectory = "NO"
37
- ignoresPersistentStateOnLaunch = "NO"
38
- debugDocumentVersioning = "YES"
39
- debugServiceExtension = "internal"
40
- allowLocationSimulation = "YES">
41
- </LaunchAction>
42
- <ProfileAction
43
- buildConfiguration = "Release"
44
- shouldUseLaunchSchemeArgsEnv = "YES"
45
- savedToolIdentifier = ""
46
- useCustomWorkingDirectory = "NO"
47
- debugDocumentVersioning = "YES">
48
- </ProfileAction>
49
- <AnalyzeAction
50
- buildConfiguration = "Debug">
51
- </AnalyzeAction>
52
- <ArchiveAction
53
- buildConfiguration = "Release"
54
- revealArchiveInOrganizer = "YES">
55
- </ArchiveAction>
56
- </Scheme>
@@ -1,14 +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>SchemeUserState</key>
6
- <dict>
7
- <key>FtMobileAgent.xcscheme</key>
8
- <dict>
9
- <key>orderHint</key>
10
- <integer>0</integer>
11
- </dict>
12
- </dict>
13
- </dict>
14
- </plist>
package/ios/RCTVersion.h DELETED
@@ -1,8 +0,0 @@
1
- #ifndef RCTVersion_h
2
- #define RCTVersion_h
3
-
4
- #define RCT_VERSION_MAJOR 0
5
- #define RCT_VERSION_MINOR 70
6
- #define RCT_VERSION_PATCH 0
7
-
8
- #endif /* RCTVersion_h */