Skip to content

Commit bf090a3

Browse files
alanjcharlesAlan Charles
and
Alan Charles
authored
refactor: move consentManager plugin to example, delete package (#444)
* refactor: move consentManager plugin to example, delete package * refactor: fix typo Co-authored-by: Alan Charles <[email protected]>
1 parent 136e6bb commit bf090a3

File tree

12 files changed

+1430
-1871
lines changed

12 files changed

+1430
-1871
lines changed

example/ios/Podfile.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ PODS:
209209
- React-jsinspector (0.67.0)
210210
- React-logger (0.67.0):
211211
- glog
212-
- react-native-safe-area-context (3.3.0):
212+
- react-native-safe-area-context (3.4.0):
213213
- React-Core
214214
- react-native-tracking-transparency (0.1.1):
215215
- React
@@ -278,15 +278,15 @@ PODS:
278278
- React-jsi (= 0.67.0)
279279
- React-logger (= 0.67.0)
280280
- React-perflogger (= 0.67.0)
281-
- RNBootSplash (3.2.4):
281+
- RNBootSplash (3.2.7):
282282
- React-Core
283-
- RNCAsyncStorage (1.15.7):
283+
- RNCAsyncStorage (1.16.1):
284284
- React-Core
285285
- RNCMaskedView (0.1.11):
286286
- React
287287
- RNGestureHandler (2.2.0):
288288
- React-Core
289-
- segment-analytics-react-native (2.1.0-beta):
289+
- segment-analytics-react-native (2.1.2-beta):
290290
- React-Core
291291
- segment-analytics-react-native-plugin-idfa (0.2.0-beta):
292292
- React-Core
@@ -440,7 +440,7 @@ SPEC CHECKSUMS:
440440
React-jsiexecutor: 3001f865cfd2c66c1298f427be47b8797ae5843b
441441
React-jsinspector: c9d1ddf4b1efbcf90323e3581ccff200cf4de346
442442
React-logger: 5d42caeaf0c31a9b29efb33e10e7f7031f958bfd
443-
react-native-safe-area-context: 61c8c484a3a9e7d1fda19f7b1794b35bbfd2262a
443+
react-native-safe-area-context: f4f7cc09d81ae2d39dfd13e764d718969af07080
444444
react-native-tracking-transparency: b2029ff756f1128b1f2c7c7c7f3003bc3c950f9f
445445
React-perflogger: 9454d63e7027e0830fa3e527628558160684f5dd
446446
React-RCTActionSheet: 240d798e2f5bd1ba2e85503a00fd390f560e6827
@@ -454,11 +454,11 @@ SPEC CHECKSUMS:
454454
React-RCTVibration: 7d7eb0db1f7f914945a606e0e91bb535099a07db
455455
React-runtimeexecutor: 4512c9287cc72ba30bb1d5e01e6bde7a69f2d22b
456456
ReactCommon: af6dd2c8c0de935841fa809caf41b2093bb9075c
457-
RNBootSplash: 4844706cbb56a3270556c9b94e59dedadccd47e4
458-
RNCAsyncStorage: 7102fe8985f889579a3ae148d957bbb3f308122b
457+
RNBootSplash: f31eba8f6d496e2029859e06e5582cac4607256d
458+
RNCAsyncStorage: b49b4e38a1548d03b74b30e558a1d18465b94be7
459459
RNCMaskedView: 0e1bc4bfa8365eba5fbbb71e07fbdc0555249489
460460
RNGestureHandler: bf572f552ea324acd5b5464b8d30755b2d8c1de6
461-
segment-analytics-react-native: cdb28934216c4840474587d47120ae594af6a17d
461+
segment-analytics-react-native: 76fa77e887ea38d063e01ec8877eaaf39745790d
462462
segment-analytics-react-native-plugin-idfa: 2dc6e38506a5b034db4a4cf16db48643b2f356a2
463463
sovran-react-native: 814ebda5c04a60a4f9eea1b203b95f2f64bca291
464464
Yoga: 3f5bfc54ce164fcd5b5d7f9f4232182d6298dd56

example/src/App.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ import SecondPage from './SecondPage';
1616
import Modal from './Modal';
1717
import { useState } from 'react';
1818
import { Logger } from './plugins/Logger';
19+
20+
//To see an example Consent Manager uncomment the following
21+
//@ts-ignore
22+
// import { ConsentManager } from './plugins/ConsentManager';
23+
1924
// @ts-ignore
2025
// import { FirebasePlugin } from '@segment/analytics-react-native-plugin-firebase';
2126

@@ -37,6 +42,10 @@ const segmentClient = createClient({
3742
const LoggerPlugin = new Logger();
3843
segmentClient.add({ plugin: LoggerPlugin });
3944

45+
// To see an example Consent Manager uncomment the following
46+
// const ConsentManagerPlugin = new ConsentManager();
47+
// segmentClient.add({ plugin: ConsentManagerPlugin });
48+
4049
// To test the Firebase plugin make sure to add your own API_KEY in example/ios/GoogleService-Info.plist
4150
// segmentClient.add({ plugin: new FirebasePlugin() });
4251

packages/plugins/plugin-consentManager/src/ConsentManagerPlugin.tsx renamed to example/src/plugins/ConsentManager.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { SegmentClient } from '@segment/analytics-react-native/src/analytic
88

99
import { Alert } from 'react-native';
1010

11-
export class ConsentManagerPlugin extends Plugin {
11+
export class ConsentManager extends Plugin {
1212
type = PluginType.before;
1313
key = 'Consent Manager';
1414

example/yarn.lock

Lines changed: 1412 additions & 1741 deletions
Large diffs are not rendered by default.

packages/plugins/plugin-consentManager/CHANGELOG.md

Whitespace-only changes.

packages/plugins/plugin-consentManager/LICENSE

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/plugins/plugin-consentManager/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/plugins/plugin-consentManager/babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/plugins/plugin-consentManager/jest.config.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/plugins/plugin-consentManager/package.json

Lines changed: 0 additions & 66 deletions
This file was deleted.

packages/plugins/plugin-consentManager/src/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/plugins/plugin-consentManager/tsconfig.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)