@osano/osano-cmp-react-native 0.6.0 → 0.7.0
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.
- package/README.md +23 -7
- package/lib/commonjs/constants.js +6 -5
- package/lib/commonjs/constants.js.map +1 -1
- package/lib/module/constants.js +6 -5
- package/lib/module/constants.js.map +1 -1
- package/lib/typescript/src/constants.d.ts.map +1 -1
- package/lib/typescript/webdriverio-appium/common/commands.d.ts +23 -0
- package/lib/typescript/webdriverio-appium/common/commands.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/config/android-wdio.conf.d.cts +27 -0
- package/lib/typescript/webdriverio-appium/config/android-wdio.conf.d.cts.map +1 -0
- package/lib/typescript/webdriverio-appium/config/ios-wdio.conf.d.cts +27 -0
- package/lib/typescript/webdriverio-appium/config/ios-wdio.conf.d.cts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/one/one-acceptall.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/one/one-acceptall.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/one/one-managePreferences.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/one/one-managePreferences.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/six/six-acceptall-iabOn.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/six/six-acceptall-iabOn.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/six/six-rejectall-iabOn.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/six/six-rejectall-iabOn.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/six/six-save-FLC.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/six/six-save-FLC.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/three/three-acceptall.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/three/three-acceptall.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/three/three-denyall.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/three/three-denyall.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/three/three-manageP.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/three/three-manageP.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-FLC.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-FLC.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-acceptall.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-acceptall.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-managePreferences.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-managePreferences.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-rejectall.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-rejectall.d.ts.map +1 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-save.d.ts +2 -0
- package/lib/typescript/webdriverio-appium/test/ios/two/two-save.d.ts.map +1 -0
- package/package.json +8 -8
- package/src/constants.ts +7 -5
package/README.md
CHANGED
|
@@ -26,9 +26,24 @@ From the root folder, run the following:
|
|
|
26
26
|
corepack yarn install
|
|
27
27
|
corepack yarn prepare
|
|
28
28
|
cd example/ios && pod install && cd ../..
|
|
29
|
+
cd example/ios && echo export NODE_BINARY=$(command -v node) > .xcode.env && cd ../.. # do once
|
|
30
|
+
cp example/.env.example example/.env # do once
|
|
29
31
|
corepack yarn example android # or ios
|
|
32
|
+
|
|
33
|
+
# alternatively
|
|
34
|
+
cd example && corepack yarn start android # or ios
|
|
30
35
|
```
|
|
31
36
|
|
|
37
|
+
### Specifying run destination
|
|
38
|
+
|
|
39
|
+
**iOS**
|
|
40
|
+
|
|
41
|
+
`corepack yarn example ios --simulator "iPhone 15 Pro"`
|
|
42
|
+
|
|
43
|
+
**Android**
|
|
44
|
+
|
|
45
|
+
`// TODO`
|
|
46
|
+
|
|
32
47
|
## Running Tests
|
|
33
48
|
|
|
34
49
|
Testing should be done through both the example integration and the package itself.
|
|
@@ -51,7 +66,7 @@ npm test
|
|
|
51
66
|
|
|
52
67
|
#### Build the test applications from local builds
|
|
53
68
|
|
|
54
|
-
-
|
|
69
|
+
- iOS
|
|
55
70
|
|
|
56
71
|
1. Run the iOS application locally via `yarn example ios`
|
|
57
72
|
1. Open the Derived Data in your XCode folder `~/Library/Developer/XCode/DerivedData`
|
|
@@ -59,7 +74,7 @@ npm test
|
|
|
59
74
|
1. Open `Build/Products/<device-type>`
|
|
60
75
|
1. The .app file will be `OsanoCMPExample` with a file type `Application`
|
|
61
76
|
|
|
62
|
-
-
|
|
77
|
+
- Android
|
|
63
78
|
|
|
64
79
|
1. Run the android example application locally via `yarn example android`
|
|
65
80
|
1. In `Android Studio` under `Project` open `app/build/outputs/apk/<release-or-debug>/` to get the apk file
|
|
@@ -71,6 +86,7 @@ Both files can be sent to coworkers with an ios simulator or android emulator to
|
|
|
71
86
|
1. If the `run` command fails saying there is no development project, make sure to open the relevant simulator/emulator before running.
|
|
72
87
|
1. If there are significant errors citing duplicates, it is likely you ran `npm i` in the packages folder. These files should be removed via `rm -rf node_modules` in the `packages/osano-cmp-react-native` folder from the command line
|
|
73
88
|
1. For initial developing and testing make sure you have a relatively recent simulator on iOS and emulator on Android. Old devices running old OS can cause unnecessary issues
|
|
89
|
+
1. Building the iOS example from Xcode might result in a `Command PhaseScriptExecution failed with a nonzero exit code`. This is caused by a missing `.xcode.env` file that contains an entry for NODE_PATH. Resolve by running `echo export NODE_BINARY=$(command -v node) > .xcode.env` from the `example/ios` directory.
|
|
74
90
|
|
|
75
91
|
=======
|
|
76
92
|
|
|
@@ -99,11 +115,11 @@ NPM uses cocoapods to install the native iOS portion of modules[CocoaPods](https
|
|
|
99
115
|
|
|
100
116
|
## How do I use it?
|
|
101
117
|
|
|
102
|
-
-
|
|
103
|
-
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
-
|
|
118
|
+
- [ConsentManager](#consentmanager)
|
|
119
|
+
- [UI Builder](#ui-builder)
|
|
120
|
+
- [1. Dialog](#dialog)
|
|
121
|
+
- [2. Drawer](#drawer)
|
|
122
|
+
- [Using Custom UI](#using-custom-ui)
|
|
107
123
|
|
|
108
124
|
### ConsentManager
|
|
109
125
|
|
|
@@ -27,11 +27,12 @@ let ConsentCategory = exports.ConsentCategory = /*#__PURE__*/function (ConsentCa
|
|
|
27
27
|
ConsentCategory["STORAGE"] = "STORAGE";
|
|
28
28
|
return ConsentCategory;
|
|
29
29
|
}({});
|
|
30
|
+
const OSANO_DEV = process.env.OSANO_DEV;
|
|
30
31
|
const env = exports.env = {
|
|
31
|
-
OSANO_ORIGIN:
|
|
32
|
-
CONSENT_URI:
|
|
33
|
-
DISCLOSURE_URI:
|
|
34
|
-
LOCALE_URI:
|
|
35
|
-
LOOKUPS_URI:
|
|
32
|
+
OSANO_ORIGIN: OSANO_DEV === 'true' ? 'https://cmp-ci.osano.com' : 'https://cmp.osano.com',
|
|
33
|
+
CONSENT_URI: OSANO_DEV === 'true' ? 'https://consent-ci.api.osano.com' : 'https://consent.api.osano.com',
|
|
34
|
+
DISCLOSURE_URI: OSANO_DEV === 'true' ? 'https://disclosure-ci.api.osano.com' : 'https://disclosure.api.osano.com',
|
|
35
|
+
LOCALE_URI: OSANO_DEV === 'true' ? 'https://locale.cmp-ci.osano.com' : 'https://locale.cmp.osano.com',
|
|
36
|
+
LOOKUPS_URI: OSANO_DEV === 'true' ? 'https://lookups-ci.api.osano.com' : 'https://lookups.api.osano.com'
|
|
36
37
|
};
|
|
37
38
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["France","mappedJurisdictions","exports","re","gp","mq","gy","yt","mf","ConsentCategory","
|
|
1
|
+
{"version":3,"names":["France","mappedJurisdictions","exports","re","gp","mq","gy","yt","mf","ConsentCategory","OSANO_DEV","process","env","OSANO_ORIGIN","CONSENT_URI","DISCLOSURE_URI","LOCALE_URI","LOOKUPS_URI"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":";;;;;;AAAA,MAAMA,MAAM,GAAG,IAAI;AACZ,MAAMC,mBAA2C,GAAAC,OAAA,CAAAD,mBAAA,GAAG;EAC1DE,EAAE,EAAEH,MAAM;EAAE;EACZI,EAAE,EAAEJ,MAAM;EAAE;EACZK,EAAE,EAAEL,MAAM;EAAE;EACZM,EAAE,EAAEN,MAAM;EAAE;EACZO,EAAE,EAAEP,MAAM;EAAE;EACZQ,EAAE,EAAER,MAAM,CAAE;AACb,CAAC;AAAC,IAEUS,eAAe,GAAAP,OAAA,CAAAO,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAS3B,MAAMC,SAAS,GAAGC,OAAO,CAACC,GAAG,CAACF,SAAS;AAEhC,MAAME,GAAG,GAAAV,OAAA,CAAAU,GAAA,GAAG;EAClBC,YAAY,EAAEH,SAAS,KAAK,MAAM,GAAG,0BAA0B,GAAG,uBAAuB;EACzFI,WAAW,EAAEJ,SAAS,KAAK,MAAM,GAC9B,kCAAkC,GAClC,+BAA+B;EAClCK,cAAc,EAAEL,SAAS,KAAK,MAAM,GACjC,qCAAqC,GACrC,kCAAkC;EACrCM,UAAU,EAAEN,SAAS,KAAK,MAAM,GAC7B,iCAAiC,GACjC,8BAA8B;EACjCO,WAAW,EAAEP,SAAS,KAAK,MAAM,GAC9B,kCAAkC,GAClC;AACJ,CAAC","ignoreList":[]}
|
package/lib/module/constants.js
CHANGED
|
@@ -21,11 +21,12 @@ export let ConsentCategory = /*#__PURE__*/function (ConsentCategory) {
|
|
|
21
21
|
ConsentCategory["STORAGE"] = "STORAGE";
|
|
22
22
|
return ConsentCategory;
|
|
23
23
|
}({});
|
|
24
|
+
const OSANO_DEV = process.env.OSANO_DEV;
|
|
24
25
|
export const env = {
|
|
25
|
-
OSANO_ORIGIN:
|
|
26
|
-
CONSENT_URI:
|
|
27
|
-
DISCLOSURE_URI:
|
|
28
|
-
LOCALE_URI:
|
|
29
|
-
LOOKUPS_URI:
|
|
26
|
+
OSANO_ORIGIN: OSANO_DEV === 'true' ? 'https://cmp-ci.osano.com' : 'https://cmp.osano.com',
|
|
27
|
+
CONSENT_URI: OSANO_DEV === 'true' ? 'https://consent-ci.api.osano.com' : 'https://consent.api.osano.com',
|
|
28
|
+
DISCLOSURE_URI: OSANO_DEV === 'true' ? 'https://disclosure-ci.api.osano.com' : 'https://disclosure.api.osano.com',
|
|
29
|
+
LOCALE_URI: OSANO_DEV === 'true' ? 'https://locale.cmp-ci.osano.com' : 'https://locale.cmp.osano.com',
|
|
30
|
+
LOOKUPS_URI: OSANO_DEV === 'true' ? 'https://lookups-ci.api.osano.com' : 'https://lookups.api.osano.com'
|
|
30
31
|
};
|
|
31
32
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["France","mappedJurisdictions","re","gp","mq","gy","yt","mf","ConsentCategory","
|
|
1
|
+
{"version":3,"names":["France","mappedJurisdictions","re","gp","mq","gy","yt","mf","ConsentCategory","OSANO_DEV","process","env","OSANO_ORIGIN","CONSENT_URI","DISCLOSURE_URI","LOCALE_URI","LOOKUPS_URI"],"sourceRoot":"../../src","sources":["constants.ts"],"mappings":"AAAA,MAAMA,MAAM,GAAG,IAAI;AACnB,OAAO,MAAMC,mBAA2C,GAAG;EAC1DC,EAAE,EAAEF,MAAM;EAAE;EACZG,EAAE,EAAEH,MAAM;EAAE;EACZI,EAAE,EAAEJ,MAAM;EAAE;EACZK,EAAE,EAAEL,MAAM;EAAE;EACZM,EAAE,EAAEN,MAAM;EAAE;EACZO,EAAE,EAAEP,MAAM,CAAE;AACb,CAAC;AAED,WAAYQ,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAS3B,MAAMC,SAAS,GAAGC,OAAO,CAACC,GAAG,CAACF,SAAS;AAEvC,OAAO,MAAME,GAAG,GAAG;EAClBC,YAAY,EAAEH,SAAS,KAAK,MAAM,GAAG,0BAA0B,GAAG,uBAAuB;EACzFI,WAAW,EAAEJ,SAAS,KAAK,MAAM,GAC9B,kCAAkC,GAClC,+BAA+B;EAClCK,cAAc,EAAEL,SAAS,KAAK,MAAM,GACjC,qCAAqC,GACrC,kCAAkC;EACrCM,UAAU,EAAEN,SAAS,KAAK,MAAM,GAC7B,iCAAiC,GACjC,8BAA8B;EACjCO,WAAW,EAAEP,SAAS,KAAK,MAAM,GAC9B,kCAAkC,GAClC;AACJ,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOtD,CAAC;AAEF,oBAAY,eAAe;IAC1B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAOtD,CAAC;AAEF,oBAAY,eAAe;IAC1B,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,eAAe,oBAAoB;IACnC,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB;AAID,eAAO,MAAM,GAAG;;;;;;CAcf,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const acceptAllConsent: "ESSENTIAL, MARKETING, PERSONALIZATION, ANALYTICS";
|
|
2
|
+
export const rejectAllConsent: "ESSENTIAL, OPT_OUT";
|
|
3
|
+
export const oneBannerText: "This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising. To learn more, view the following link:";
|
|
4
|
+
export const twoBannerText: "This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising. You may change your settings at any time or accept the default settings. You may close this banner to continue with only essential cookies.";
|
|
5
|
+
export const threeBannerText: "This website utilizes technologies such as cookies to enable essential site functionality, as well as for analytics, personalization, and targeted advertising.";
|
|
6
|
+
export const sixIabBannerText1: "We and our 7 IAB TCF partners store and access information on your device for the following purposes: advertising and content measurement, audience research, and services development, personalised advertising, personalised content. \n\n\nPersonal data may be processed to do the following: use precise geolocation data and actively scan device characteristics for identification. \n\n\nOur third party IAB TCF partners may store and access information on your device such as IP address and device characteristics. Our IAB TCF Partners may process this personal data on the basis of legitimate interest, or with your consent. You may change or withdraw your preferences at any time by clicking on the cookie icon or link; however, as a consequence, you may not see relevant ads or personalized content.";
|
|
7
|
+
export const sixIabBannerText2: "• Measure the audience of the advertising on our website, without profiling • Display personalized ads based on your navigation and your profile • Personalize our editorial content based on your navigation • Allow you to share content on social networks or platforms present on our website • Send you advertising based on your location";
|
|
8
|
+
export const essential: "~Essential, Required to enable basic website functionality. You may not disable essential cookies.";
|
|
9
|
+
export const marketing: "~Targeted Advertising, Used to deliver advertising that is more relevant to you and your interests. May also be used to limit the number of times you see an advertisement and measure the effectiveness of advertising campaigns. Advertising networks usually place them with the website operator’s permission.";
|
|
10
|
+
export const personalization: "~Personalization, Allow the website to remember choices you make (such as your username, language, or the region you are in) and provide enhanced, more personal features. For example, a website may provide you with local weather reports or traffic news by storing data about your general location.";
|
|
11
|
+
export const analytics: "~Analytics, Help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues.";
|
|
12
|
+
export const dnss: "~Do Not Sell or Share My Personal Information, By switching the toggle to the right and clicking save, you are indicating that you do not want us to sell your personal information or share your personal information for online targeted advertising activities. Please note if you use different computers or browsers, you must indicate your choices again on each computer or browser used to access our services.";
|
|
13
|
+
export const storageIab: "~Storage, Allows the website to store data locally on your device. For example, this site may store data that will remember your previous selections, search filters, or other information that would provide a seamless user experience as you navigate throughout the website., Legal basis is consent.";
|
|
14
|
+
export const marketingIab: "~Targeted Advertising, Used to deliver advertising that is more relevant to you and your interests. May also be used to limit the number of times you see an advertisement and measure the effectiveness of advertising campaigns. Advertising networks usually place them with the website operator’s permission., Legal basis is consent.";
|
|
15
|
+
export const personalizationIab: "~Personalization, Allow the website to remember choices you make (such as your username, language, or the region you are in) and provide enhanced, more personal features. For example, a website may provide you with local weather reports or traffic news by storing data about your general location., Legal basis is consent.";
|
|
16
|
+
export const analyticsIab: "~Analytics, Help the website operator understand how its website performs, how visitors interact with the site, and whether there may be technical issues., Legal basis is consent.";
|
|
17
|
+
export const acceptAllConsentIab: "ESSENTIAL, STORAGE, MARKETING, PERSONALIZATION, ANALYTICS";
|
|
18
|
+
export function updateConfig(settings: any): Promise<void>;
|
|
19
|
+
export function updateFlavor(flavor: any): Promise<void>;
|
|
20
|
+
export function consentProvided(didUserConsent: any, consentExpected: any): Promise<void>;
|
|
21
|
+
export function consent(consent: any, bannerText: any, bannerText2: any): Promise<void>;
|
|
22
|
+
export function firstLayerCategories(flavor: any): Promise<void>;
|
|
23
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../webdriverio-appium/common/commands.js"],"names":[],"mappings":"AAAA,kFAA4E;AAE5E,oDAA8C;AAC9C,sOAAgO;AAChO,0UAAoU;AACpU,gMAA0L;AAC1L,o0BAA6zB;AAC7zB,kXAA4W;AAC5W,6HAAuH;AACvH,8UAAwU;AACxU,0UAAoU;AACpU,qLAA+K;AAC/K,8aAAwa;AACxa,qUAA8T;AAC9T,0WAA6D;AAC7D,sWAAyE;AACzE,iNAA6D;AAf7D,8FAAwF;AAiBxF,2DAQC;AAED,yDAEC;AAED,0FAQC;AAED,wFAOC;AAED,iEAuBC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export namespace config {
|
|
2
|
+
let runner: string;
|
|
3
|
+
let port: number;
|
|
4
|
+
let specs: string[];
|
|
5
|
+
let exclude: never[];
|
|
6
|
+
let maxInstances: number;
|
|
7
|
+
let capabilities: {
|
|
8
|
+
platformName: string;
|
|
9
|
+
"appium:platformVersion": string;
|
|
10
|
+
"appium:deviceName": string;
|
|
11
|
+
"appium:app": string;
|
|
12
|
+
"appium:automationName": string;
|
|
13
|
+
}[];
|
|
14
|
+
let logLevel: string;
|
|
15
|
+
let bail: number;
|
|
16
|
+
let waitforTimeout: number;
|
|
17
|
+
let connectionRetryTimeout: number;
|
|
18
|
+
let connectionRetryCount: number;
|
|
19
|
+
let services: string[];
|
|
20
|
+
let framework: string;
|
|
21
|
+
let reporters: string[];
|
|
22
|
+
namespace mochaOpts {
|
|
23
|
+
let ui: string;
|
|
24
|
+
let timeout: number;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=android-wdio.conf.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"android-wdio.conf.d.cts","sourceRoot":"","sources":["../../../../webdriverio-appium/config/android-wdio.conf.cjs"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export namespace config {
|
|
2
|
+
let runner: string;
|
|
3
|
+
let port: number;
|
|
4
|
+
let specs: string[];
|
|
5
|
+
let exclude: never[];
|
|
6
|
+
let maxInstances: number;
|
|
7
|
+
let capabilities: {
|
|
8
|
+
platformName: string;
|
|
9
|
+
"appium:platformVersion": string;
|
|
10
|
+
"appium:deviceName": string;
|
|
11
|
+
"appium:app": string;
|
|
12
|
+
"appium:automationName": string;
|
|
13
|
+
}[];
|
|
14
|
+
let logLevel: string;
|
|
15
|
+
let bail: number;
|
|
16
|
+
let waitforTimeout: number;
|
|
17
|
+
let connectionRetryTimeout: number;
|
|
18
|
+
let connectionRetryCount: number;
|
|
19
|
+
let services: string[];
|
|
20
|
+
let framework: string;
|
|
21
|
+
let reporters: string[];
|
|
22
|
+
namespace mochaOpts {
|
|
23
|
+
let ui: string;
|
|
24
|
+
let timeout: number;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ios-wdio.conf.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ios-wdio.conf.d.cts","sourceRoot":"","sources":["../../../../webdriverio-appium/config/ios-wdio.conf.cjs"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-acceptall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/one/one-acceptall.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-managePreferences.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/one/one-managePreferences.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"six-acceptall-iabOn.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/six/six-acceptall-iabOn.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"six-rejectall-iabOn.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/six/six-rejectall-iabOn.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"six-save-FLC.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/six/six-save-FLC.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-acceptall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/three/three-acceptall.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-denyall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/three/three-denyall.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"three-manageP.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/three/three-manageP.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-FLC.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-FLC.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-acceptall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-acceptall.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-managePreferences.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-managePreferences.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-rejectall.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-rejectall.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"two-save.d.ts","sourceRoot":"","sources":["../../../../../../webdriverio-appium/test/ios/two/two-save.js"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@osano/osano-cmp-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Package and example for the react-native Osano CMP SDK",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -61,13 +61,19 @@
|
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@commitlint/config-conventional": "^17.0.2",
|
|
64
|
+
"@docusaurus/core": "3.5.2",
|
|
65
|
+
"@docusaurus/module-type-aliases": "3.5.2",
|
|
66
|
+
"@docusaurus/preset-classic": "3.5.2",
|
|
67
|
+
"@mdx-js/react": "^3.0.1",
|
|
64
68
|
"@types/jest": "^29.5.5",
|
|
65
69
|
"@types/react": "^18.2.44",
|
|
66
70
|
"commitlint": "^17.0.2",
|
|
67
71
|
"del-cli": "^5.1.0",
|
|
68
72
|
"jest": "^29.7.0",
|
|
69
73
|
"prettier": "^3.0.3",
|
|
70
|
-
"react": "
|
|
74
|
+
"prism-react-renderer": "^2.4.0",
|
|
75
|
+
"react": "18.3.1",
|
|
76
|
+
"react-dom": "18.3.1",
|
|
71
77
|
"react-native": "0.74.4",
|
|
72
78
|
"react-native-builder-bob": "^0.23.2",
|
|
73
79
|
"release-it": "^17.6.0",
|
|
@@ -125,14 +131,8 @@
|
|
|
125
131
|
]
|
|
126
132
|
},
|
|
127
133
|
"dependencies": {
|
|
128
|
-
"@docusaurus/core": "^3.4.0",
|
|
129
|
-
"@docusaurus/module-type-aliases": "3.4.0",
|
|
130
|
-
"@docusaurus/preset-classic": "^3.4.0",
|
|
131
|
-
"@mdx-js/react": "^3.0.0",
|
|
132
134
|
"@testing-library/react-native": "^12.5.0",
|
|
133
135
|
"@types/react-test-renderer": "^18.3.0",
|
|
134
|
-
"clsx": "^1.2.1",
|
|
135
|
-
"prism-react-renderer": "^2.1.0",
|
|
136
136
|
"react": "*",
|
|
137
137
|
"react-dom": "^17.0.2",
|
|
138
138
|
"react-native-picker-modal-view": "^1.3.2",
|
package/src/constants.ts
CHANGED
|
@@ -17,18 +17,20 @@ export enum ConsentCategory {
|
|
|
17
17
|
STORAGE = 'STORAGE',
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
const OSANO_DEV = process.env.OSANO_DEV
|
|
21
|
+
|
|
20
22
|
export const env = {
|
|
21
|
-
OSANO_ORIGIN:
|
|
22
|
-
CONSENT_URI:
|
|
23
|
+
OSANO_ORIGIN: OSANO_DEV === 'true' ? 'https://cmp-ci.osano.com' : 'https://cmp.osano.com',
|
|
24
|
+
CONSENT_URI: OSANO_DEV === 'true'
|
|
23
25
|
? 'https://consent-ci.api.osano.com'
|
|
24
26
|
: 'https://consent.api.osano.com',
|
|
25
|
-
DISCLOSURE_URI:
|
|
27
|
+
DISCLOSURE_URI: OSANO_DEV === 'true'
|
|
26
28
|
? 'https://disclosure-ci.api.osano.com'
|
|
27
29
|
: 'https://disclosure.api.osano.com',
|
|
28
|
-
LOCALE_URI:
|
|
30
|
+
LOCALE_URI: OSANO_DEV === 'true'
|
|
29
31
|
? 'https://locale.cmp-ci.osano.com'
|
|
30
32
|
: 'https://locale.cmp.osano.com',
|
|
31
|
-
LOOKUPS_URI:
|
|
33
|
+
LOOKUPS_URI: OSANO_DEV === 'true'
|
|
32
34
|
? 'https://lookups-ci.api.osano.com'
|
|
33
35
|
: 'https://lookups.api.osano.com',
|
|
34
36
|
};
|