@sellwild/react-native-sdk 1.0.1 → 1.1.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/package.json +2 -2
- package/src/htmlBuilder.ts +6 -0
- package/src/index.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellwild/react-native-sdk",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Sellwild mobile advertising SDK for React Native",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"react-native-webview": ">=11.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@sellwild/sdk-core": "^1.
|
|
26
|
+
"@sellwild/sdk-core": "^1.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/react": "^18.0.0",
|
package/src/htmlBuilder.ts
CHANGED
|
@@ -205,6 +205,12 @@ function configToAttributes(config: SellwildConfig): string {
|
|
|
205
205
|
add('growthcode', config.growthcode)
|
|
206
206
|
add('bh-tag', config.bhTag)
|
|
207
207
|
|
|
208
|
+
// Mobile ad controls
|
|
209
|
+
add('enable-interstitial', config.enableInterstitial || undefined)
|
|
210
|
+
add('enable-fullscreen-video', config.enableFullscreenVideo || undefined)
|
|
211
|
+
add('interstitials-per-session', config.interstitialsPerSession)
|
|
212
|
+
add('video-takeovers-per-session', config.videoTakeoversPerSession)
|
|
213
|
+
|
|
208
214
|
// Debug
|
|
209
215
|
add('debug', config.debug || undefined)
|
|
210
216
|
add('membership-type', config.membershipType)
|
package/src/index.ts
CHANGED
|
@@ -21,4 +21,10 @@ export type {
|
|
|
21
21
|
AdPlacementType,
|
|
22
22
|
} from '@sellwild/sdk-core'
|
|
23
23
|
|
|
24
|
-
export {
|
|
24
|
+
export {
|
|
25
|
+
buildConfig,
|
|
26
|
+
buildConfigWithRemote,
|
|
27
|
+
currencyToSymbol,
|
|
28
|
+
fetchRemoteConfig,
|
|
29
|
+
clearRemoteConfigCache,
|
|
30
|
+
} from '@sellwild/sdk-core'
|