Skip to content

Commit 7aa9576

Browse files
committed
integrate fullstory
1 parent f9e712c commit 7aa9576

File tree

11 files changed

+689
-4
lines changed

11 files changed

+689
-4
lines changed

example/App.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ import {
2525
ReloadInstructions,
2626
} from 'react-native/Libraries/NewAppScreen';
2727
import { createClient } from '@segment/analytics-react-native';
28+
import FullStory from '@fullstory/react-native';
29+
30+
FullStory.onReady().then(function (result) {
31+
const replayStartUrl = result.replayStartUrl;
32+
console.log('replayStartUrl: ', replayStartUrl);
33+
});
2834

2935
const segmentClient = createClient({
3036
writeKey: 'SEGMENT_API_KEY',

example/android/app/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
apply plugin: "com.android.application"
2+
apply plugin: 'fullstory'
3+
4+
fullstory {
5+
org '<your-org-id>'
6+
enabledVariants 'all'
7+
}
28

39
import com.android.build.OutputFile
410
import org.apache.tools.ant.taskdefs.condition.Os

example/android/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ buildscript {
1818
repositories {
1919
google()
2020
mavenCentral()
21+
maven { url "https://maven.fullstory.com" }
2122
}
2223
dependencies {
2324
classpath("com.android.tools.build:gradle:7.2.1")
2425
classpath("com.facebook.react:react-native-gradle-plugin")
2526
classpath("de.undercouch:gradle-download-task:5.0.1")
27+
classpath 'com.fullstory:gradle-plugin-local:1.33.0'
2628
// NOTE: Do not place your application dependencies here; they belong
2729
// in the individual module build.gradle files
2830
}

example/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
module.exports = {
22
presets: ['module:metro-react-native-babel-preset'],
3+
plugins: ['@fullstory/react-native'],
34
};

example/ios/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ install! 'cocoapods', :deterministic_uuids => false
77
target 'SegmentFullStoryPluginExample' do
88
config = use_native_modules!
99

10+
pod 'FullStory', :http =>
11+
'https://ios-releases.fullstory.com/fullstory-1.33.0-xcframework.tar.gz'
12+
1013
# Flags change depending on the env values.
1114
flags = get_default_flags()
1215

example/ios/Podfile.lock

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ PODS:
7272
- FlipperKit/Core
7373
- FlipperKit/FlipperKitNetworkPlugin
7474
- fmt (6.2.1)
75+
- FullStory (1.33.0)
7576
- glog (0.3.5)
7677
- hermes-engine (0.70.6)
7778
- libevent (2.1.12)
@@ -406,6 +407,7 @@ DEPENDENCIES:
406407
- FlipperKit/FlipperKitReactPlugin (= 0.125.0)
407408
- FlipperKit/FlipperKitUserDefaultsPlugin (= 0.125.0)
408409
- FlipperKit/SKIOSNetworkPlugin (= 0.125.0)
410+
- "FullStory (from `{:http=>\"https://ios-releases.fullstory.com/fullstory-1.33.0-xcframework.tar.gz\"}`)"
409411
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
410412
- hermes-engine (from `../node_modules/react-native/sdks/hermes/hermes-engine.podspec`)
411413
- libevent (~> 2.1.12)
@@ -471,6 +473,8 @@ EXTERNAL SOURCES:
471473
:path: "../node_modules/react-native/Libraries/FBLazyVector"
472474
FBReactNativeSpec:
473475
:path: "../node_modules/react-native/React/FBReactNativeSpec"
476+
FullStory:
477+
:http: https://ios-releases.fullstory.com/fullstory-1.33.0-xcframework.tar.gz
474478
glog:
475479
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
476480
hermes-engine:
@@ -538,6 +542,10 @@ EXTERNAL SOURCES:
538542
Yoga:
539543
:path: "../node_modules/react-native/ReactCommon/yoga"
540544

545+
CHECKOUT OPTIONS:
546+
FullStory:
547+
:http: https://ios-releases.fullstory.com/fullstory-1.33.0-xcframework.tar.gz
548+
541549
SPEC CHECKSUMS:
542550
boost: a7c83b31436843459a1961bfd74b96033dc77234
543551
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
@@ -554,6 +562,7 @@ SPEC CHECKSUMS:
554562
Flipper-RSocket: d9d9ade67cbecf6ac10730304bf5607266dd2541
555563
FlipperKit: cbdee19bdd4e7f05472a66ce290f1b729ba3cb86
556564
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
565+
FullStory: ea209fcea08e975e755b794a770f975f23463f66
557566
glog: 04b94705f318337d7ead9e6d17c019bd9b1f6b1b
558567
hermes-engine: 2af7b7a59128f250adfd86f15aa1d5a2ecd39995
559568
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
@@ -592,6 +601,6 @@ SPEC CHECKSUMS:
592601
Yoga: 99caf8d5ab45e9d637ee6e0174ec16fbbb01bcfc
593602
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
594603

595-
PODFILE CHECKSUM: b59aa3ef6c888f707d3a62e0f2b8c8598e673565
604+
PODFILE CHECKSUM: bd5ca5ed66927727a31b89e28dbc9477dbe2812e
596605

597606
COCOAPODS: 1.11.3

example/ios/SegmentFullStoryPluginExample.xcodeproj/project.pbxproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@
184184
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
185185
00EEFC60759A1932668264C0 /* [CP] Embed Pods Frameworks */,
186186
E235C05ADACE081382539298 /* [CP] Copy Pods Resources */,
187+
86B3DDEF29675D9200C5BFCE /* FullStory Asset Uploader */,
187188
);
188189
buildRules = (
189190
);
@@ -283,6 +284,24 @@
283284
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-SegmentFullStoryPluginExample/Pods-SegmentFullStoryPluginExample-frameworks.sh\"\n";
284285
showEnvVarsInLog = 0;
285286
};
287+
86B3DDEF29675D9200C5BFCE /* FullStory Asset Uploader */ = {
288+
isa = PBXShellScriptBuildPhase;
289+
buildActionMask = 2147483647;
290+
files = (
291+
);
292+
inputFileListPaths = (
293+
);
294+
inputPaths = (
295+
);
296+
name = "FullStory Asset Uploader";
297+
outputFileListPaths = (
298+
);
299+
outputPaths = (
300+
);
301+
runOnlyForDeploymentPostprocessing = 0;
302+
shellPath = /bin/sh;
303+
shellScript = "\"${PODS_ROOT}/FullStory/tools/FullStoryCommandLine\" \"${CONFIGURATION_BUILD_DIR}/${WRAPPER_NAME}\"\n";
304+
};
286305
A55EABD7B0C7F3A422A6CC61 /* [CP] Check Pods Manifest.lock */ = {
287306
isa = PBXShellScriptBuildPhase;
288307
buildActionMask = 2147483647;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

example/ios/SegmentFullStoryPluginExample/Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5+
<key>FullStory</key>
6+
<dict>
7+
<key>OrgId</key>
8+
<string>your-org-id</string>
9+
</dict>
510
<key>CFBundleDevelopmentRegion</key>
611
<string>en</string>
712
<key>CFBundleDisplayName</key>

0 commit comments

Comments
 (0)