Skip to content

Commit d3b308e

Browse files
build: working iOS version
1 parent 0d100ca commit d3b308e

File tree

14 files changed

+10521
-36
lines changed

14 files changed

+10521
-36
lines changed

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ dependencies {
133133
//noinspection GradleDynamicVersion
134134
implementation "com.facebook.react:react-native:+"
135135
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
136+
implementation "com.sourcepoint.cmplibrary:cmplibrary:6.7.1"
136137
// From node_modules
137138
}
138139

example/index.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
1+
import * as React from 'react';
12
import { AppRegistry } from 'react-native';
23
import App from './src/App';
34

4-
AppRegistry.registerComponent('main', () => App);
5+
import { SPConsentManager } from 'react-native-sourcepoint-cmp';
6+
7+
const SPConfig = {
8+
accountId: 22,
9+
propertyId: 999,
10+
propertyName: "mobile.multicampaign.demo",
11+
gdprPMId: "488393",
12+
ccpaPMId: "509688"
13+
}
14+
15+
const manager = new SPConsentManager(
16+
SPConfig.accountId,
17+
SPConfig.propertyId,
18+
SPConfig.propertyName
19+
);
20+
21+
const PrivacyCompliantApp = () => <App consentManager={manager} config={SPConfig} />
22+
23+
AppRegistry.registerComponent('main', () => PrivacyCompliantApp);

0 commit comments

Comments
 (0)