Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,5 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"

implementation("com.google.code.gson:gson:2.13.1")
implementation "io.didomi.sdk:android:2.44.0"
implementation "io.didomi.sdk:android:2.45.0"
}
4 changes: 3 additions & 1 deletion android/src/main/java/io/didomi/reactnative/DidomiModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,9 @@ class DidomiModule(reactContext: ReactApplicationContext) : DidomiModuleSpec(rea
androidTvEnabled = (jsonObject.opt("androidTvEnabled") as? Boolean) ?: false,
countryCode = jsonObject.opt("countryCode")?.toString(),
regionCode = jsonObject.opt("regionCode")?.toString(),
isUnderage = (jsonObject.opt("isUnderage") as? Boolean) ?: false
isUnderage = (jsonObject.opt("isUnderage") as? Boolean) ?: false,
sdkPath = jsonObject.opt("sdkPath")?.toString(),
apiPath = jsonObject.opt("apiPath")?.toString()
)
}

Expand Down
6 changes: 4 additions & 2 deletions ios/RNDidomi.swift
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ extension RNDidomi {
didomiEventListener.onIntegrationError = { [weak self] event in
let result = [
"integrationName": event.integrationName,
"reson": event.reason
"reason": event.reason
]
self?.dispatchEvent(withName: "on_integration_error", body: result)
}
Expand Down Expand Up @@ -980,7 +980,9 @@ extension RNDidomi {
noticeID: json["noticeId"] as? String,
countryCode: json["countryCode"] as? String,
regionCode: json["regionCode"] as? String,
isUnderage: json["isUnderage"] as? Bool ?? false
isUnderage: json["isUnderage"] as? Bool ?? false,
sdkPath: json["sdkPath"] as? String,
apiPath: json["apiPath"] as? String
)
}

Expand Down
2 changes: 1 addition & 1 deletion react-native-didomi.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Pod::Spec.new do |s|

s.source_files = "ios/**/*.{h,m,mm,swift}"

s.dependency "Didomi-XCFramework", "2.44.0"
s.dependency "Didomi-XCFramework", "2.45.0"

install_modules_dependencies(s)
end
12 changes: 12 additions & 0 deletions src/DidomiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,18 @@ export interface DidomiInitializeParameters {
* @property
*/
isUnderage?: boolean;
/**
* Base URL used to load all static files (didomi_config.json, GVL, IAB vendor list).
* Defaults to the Didomi SDK CDN if not set. Must use HTTPS.
* @property
*/
sdkPath?: string;
/**
* Base URL used for all API requests (Consents API, cross-device sync, API Events).
* Defaults to the Didomi API if not set. Must use HTTPS.
* @property
*/
apiPath?: string;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import InitializeMethods from './InitializeMethods';
import ErrorBoundary from './ErrorBoundary';

function App() {
const MAX_EVENTS_DISPLAYED = 3;
const MAX_EVENTS_DISPLAYED = 6;

const [receivedEvents, setReceivedEvents] = useState<TestEvent[]>([]);

Expand Down