Skip to content

Commit

Permalink
used absolute path
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Nov 14, 2023
1 parent 32b09c8 commit 9f7a13a
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 61 deletions.
101 changes: 51 additions & 50 deletions Apps/APN/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
PODS:
- boost (1.76.0)
- customerio-reactnative (3.2.0):
- customerio-reactnative/nopush (= 3.2.0)
- CustomerIO/MessagingInApp (= 2.8.4)
- CustomerIO/Tracking (= 2.8.4)
- customerio-reactnative (3.3.1):
- customerio-reactnative/nopush (= 3.3.1)
- CustomerIO/MessagingInApp (= 2.9.2)
- CustomerIO/Tracking (= 2.9.2)
- React-Core
- customerio-reactnative-richpush/apn (3.2.0):
- CustomerIO/MessagingPushAPN (= 2.8.4)
- customerio-reactnative/apn (3.2.0):
- CustomerIO/MessagingInApp (= 2.8.4)
- CustomerIO/MessagingPushAPN (= 2.8.4)
- CustomerIO/Tracking (= 2.8.4)
- customerio-reactnative-richpush/apn (3.3.1):
- CustomerIO/MessagingPushAPN (= 2.9.2)
- customerio-reactnative/apn (3.3.1):
- CustomerIO/MessagingInApp (= 2.9.2)
- CustomerIO/MessagingPushAPN (= 2.9.2)
- CustomerIO/Tracking (= 2.9.2)
- React-Core
- customerio-reactnative/nopush (3.2.0):
- CustomerIO/MessagingInApp (= 2.8.4)
- CustomerIO/MessagingPush (= 2.8.4)
- CustomerIO/Tracking (= 2.8.4)
- customerio-reactnative/nopush (3.3.1):
- CustomerIO/MessagingInApp (= 2.9.2)
- CustomerIO/MessagingPush (= 2.9.2)
- CustomerIO/Tracking (= 2.9.2)
- React-Core
- CustomerIO/MessagingInApp (2.8.4):
- CustomerIOMessagingInApp (= 2.8.4)
- CustomerIO/MessagingPush (2.8.4):
- CustomerIOMessagingPush (= 2.8.4)
- CustomerIO/MessagingPushAPN (2.8.4):
- CustomerIOMessagingPushAPN (= 2.8.4)
- CustomerIO/Tracking (2.8.4):
- CustomerIOTracking (= 2.8.4)
- CustomerIOCommon (2.8.4)
- CustomerIOMessagingInApp (2.8.4):
- CustomerIOTracking (= 2.8.4)
- CustomerIOMessagingPush (2.8.4):
- CustomerIOTracking (= 2.8.4)
- CustomerIOMessagingPushAPN (2.8.4):
- CustomerIOMessagingPush (= 2.8.4)
- CustomerIOTracking (2.8.4):
- CustomerIOCommon (= 2.8.4)
- CustomerIO/MessagingInApp (2.9.2):
- CustomerIOMessagingInApp (= 2.9.2)
- CustomerIO/MessagingPush (2.9.2):
- CustomerIOMessagingPush (= 2.9.2)
- CustomerIO/MessagingPushAPN (2.9.2):
- CustomerIOMessagingPushAPN (= 2.9.2)
- CustomerIO/Tracking (2.9.2):
- CustomerIOTracking (= 2.9.2)
- CustomerIOCommon (2.9.2)
- CustomerIOMessagingInApp (2.9.2):
- CustomerIOTracking (= 2.9.2)
- CustomerIOMessagingPush (2.9.2):
- CustomerIOTracking (= 2.9.2)
- CustomerIOMessagingPushAPN (2.9.2):
- CustomerIOMessagingPush (= 2.9.2)
- CustomerIOTracking (2.9.2):
- CustomerIOCommon (= 2.9.2)
- DoubleConversion (1.1.6)
- FBLazyVector (0.72.4)
- FBReactNativeSpec (0.72.4):
Expand Down Expand Up @@ -349,7 +349,7 @@ PODS:
- React-jsinspector (0.72.4)
- React-logger (0.72.4):
- glog
- react-native-safe-area-context (4.7.1):
- react-native-safe-area-context (4.7.4):
- React-Core
- React-NativeModulesApple (0.72.4):
- hermes-engine
Expand Down Expand Up @@ -461,15 +461,16 @@ PODS:
- React-jsi (= 0.72.4)
- React-logger (= 0.72.4)
- React-perflogger (= 0.72.4)
- RNCAsyncStorage (1.19.3):
- RNCAsyncStorage (1.19.5):
- React-Core
- RNCClipboard (1.11.2):
- RNCClipboard (1.12.1):
- React-Core
- RNCPushNotificationIOS (1.11.0):
- React-Core
- RNDeviceInfo (10.8.0):
- RNDeviceInfo (10.11.0):
- React-Core
- RNGestureHandler (2.12.1):
- RNGestureHandler (2.13.4):
- RCT-Folly (= 2021.07.22.00)
- React-Core
- RNReanimated (3.2.0):
- DoubleConversion
Expand Down Expand Up @@ -677,14 +678,14 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
boost: 57d2868c099736d80fcd648bf211b4431e51a558
CustomerIO: 4a04f63c9951bced3f2160397e811451cba0de36
customerio-reactnative: 57a15506e537c89802847b819442ab4426de68eb
customerio-reactnative-richpush: 3866204a12a94ce8eaa6630ab39f069dea970b36
CustomerIOCommon: 65752b4280cd24edf8091eba59cae04347999fe1
CustomerIOMessagingInApp: ce4944ec4c9d1dd0d30ea7a0c6aee7137609d7e3
CustomerIOMessagingPush: 6a21e2bd5bb4a6b483671e7703dc011a4deb8178
CustomerIOMessagingPushAPN: 93e371ee9e5208497320bec6325e715db0a8b3ab
CustomerIOTracking: 5eab210defdf8950e0708713f7d95b35b779e056
CustomerIO: fa652a140176039948669866b257098003324a56
customerio-reactnative: c52356de136d4afd75c9ee5dd4bf18e73b6ffd08
customerio-reactnative-richpush: ce9f7a00ba3ce3aa605a5c2619077d504f36d019
CustomerIOCommon: f169b2afa45dbba440c804edb6877e77ae1ade78
CustomerIOMessagingInApp: 84901d1385b548ca06b9ab59c6d0cfc1cc027f6e
CustomerIOMessagingPush: d8b0cb865db5911a3f27a6990500e4817fc19c1b
CustomerIOMessagingPushAPN: 12a9d33f345b08eb501e459d289985e5c7af76e8
CustomerIOTracking: 4e7b6af50347036aa1670e11d8c79f4973d44f22
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 5d4a3b7f411219a45a6d952f77d2c0a6c9989da5
FBReactNativeSpec: 3fc2d478e1c4b08276f9dd9128f80ec6d5d85c1f
Expand All @@ -707,7 +708,7 @@ SPEC CHECKSUMS:
React-jsiexecutor: c7f826e40fa9cab5d37cab6130b1af237332b594
React-jsinspector: aaed4cf551c4a1c98092436518c2d267b13a673f
React-logger: da1ebe05ae06eb6db4b162202faeafac4b435e77
react-native-safe-area-context: 9697629f7b2cda43cf52169bb7e0767d330648c2
react-native-safe-area-context: 2cd91d532de12acdb0a9cbc8d43ac72a8e4c897c
React-NativeModulesApple: edb5ace14f73f4969df6e7b1f3e41bef0012740f
React-perflogger: 496a1a3dc6737f964107cb3ddae7f9e265ddda58
React-RCTActionSheet: 02904b932b50e680f4e26e7a686b33ebf7ef3c00
Expand All @@ -725,11 +726,11 @@ SPEC CHECKSUMS:
React-runtimescheduler: 4941cc1b3cf08b792fbf666342c9fc95f1969035
React-utils: b79f2411931f9d3ea5781404dcbb2fa8a837e13a
ReactCommon: 4b2bdcb50a3543e1c2b2849ad44533686610826d
RNCAsyncStorage: c913ede1fa163a71cea118ed4670bbaaa4b511bb
RNCClipboard: 3f0451a8100393908bea5c5c5b16f96d45f30bfc
RNCAsyncStorage: f2974eca860c16a3e56eea5771fda8d12e2d2057
RNCClipboard: d77213bfa269013bf4b857b7a9ca37ee062d8ef1
RNCPushNotificationIOS: 64218f3c776c03d7408284a819b2abfda1834bc8
RNDeviceInfo: 5795b418ed3451ebcaf39384e6cf51f60cb931c9
RNGestureHandler: c0d04458598fcb26052494ae23dda8f8f5162b13
RNDeviceInfo: bf8a32acbcb875f568217285d1793b0e8588c974
RNGestureHandler: 6e46dde1f87e5f018a54fe5d40cd0e0b942b49ee
RNReanimated: ede9ef73159ec1d4db04290f4ffc4a36c5fc1156
RNScreens: b21dc57dfa2b710c30ec600786a3fc223b1b92e7
RNSnackbar: 3727b42bf6c4314a53c18185b5203e915a4ab020
Expand All @@ -738,4 +739,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: dd15e298a538ff617275f2a8acfe9f2e3d78fbbf

COCOAPODS: 1.12.1
COCOAPODS: 1.14.2
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
"typescript": "^4.1.3"
},
"dependencies": {
"@customerio/analytics-react-native": "https://github.com/customerio/analytics-react-native#aman/fork-integrate-11653",
"@segment/sovran-react-native": "^1.0.0",
"@segment/analytics-react-native": "file:/Users/mrehan/code/analytics-react-native/packages/core",
"@segment/sovran-react-native": "file:/Users/mrehan/code/analytics-react-native/packages/sovran",
"react-native-get-random-values": "^1.9.0"
},
"peerDependencies": {
Expand Down
18 changes: 10 additions & 8 deletions src/CustomerioTracking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Region } from './CustomerioEnum';
import { CustomerIOInAppMessaging } from './CustomerIOInAppMessaging';
import { CustomerIOPushMessaging } from './CustomerIOPushMessaging';
import type { PushPermissionStatus, PushPermissionOptions } from './types';
import { createClient } from '@customerio/analytics-react-native';
import { createClient } from '@segment/analytics-react-native';

var pjson = require('customerio-reactnative/package.json');

Expand Down Expand Up @@ -67,17 +67,19 @@ class CustomerIO {
);
}
}
console.log("Initialising using Segment")
const writeKey = "c5f95d813d7a1fc460db"//`${env.apiKey}:${env.apiKey}`;
console.log(writeKey)
console.log('Initialising using Segment');
const writeKey = 'c5f95d813d7a1fc460db'; //`${env.apiKey}:${env.apiKey}`;
console.log(writeKey);
const segmentClient = createClient({
writeKey: writeKey,
debug: true,
proxy: "https://cdp.customer.io/v1/b",
cdnProxy: "https://cdp.customer.io/v1/projects",
trackAppLifecycleEvents: true
proxy: 'https://cdp.customer.io/v1/b',
cdnProxy: 'https://cdp.customer.io/v1/projects',
trackAppLifecycleEvents: true,
});
segmentClient.identify('[email protected]', {
firstName: 'cdp tester on react native',
});
segmentClient.identify("[email protected]", {"firstName": "cdp tester on react native"});
segmentClient.track('Awesome event');
// CustomerioReactnative.initialize(env, config, packageConfig);
}
Expand Down
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
"compilerOptions": {
"baseUrl": "./",
"paths": {
"customerio-reactnative": ["./src/index"]
"customerio-reactnative": ["./src/index"],
"@segment/analytics-react-native": [
"/Users/mrehan/code/analytics-react-native/packages/core/src/index"
],
"@segment/sovran-react-native": ["/Users/mrehan/code/analytics-react-native/packages/sovran/src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down

0 comments on commit 9f7a13a

Please sign in to comment.