Skip to content

Commit

Permalink
CMP-5370 + CMP-4759 - Implement setUser function with `DidomiUserPa…
Browse files Browse the repository at this point in the history
…rameters` and `initialize` function with `DidomiInitializeParameters` (#133)

* rename sample application

* update native SDKs

* update appDelegate

* updates suggested by `pod install`

* implement `setUser` function with `DidomiUserParameters`

* add / update tests for setUser function

* remove unused variable

* rename functions + refactor DidomiUserParameters / DidomiMultiUserParameters constructors

* reset sync values before test

* implement `initialize` function with `DidomiInitilalizeParameters`

* fix doc

* fix bulk tests by reseting the user before setting invalid user params

* rename notice ID parameter for AndroidTV

* deprecate `disableDidomiRemoteConfig`

* update bridge version and changelog

* fix typo

* add missing change log item for version 2.9.0
  • Loading branch information
nicolas-chaix-didomi authored Feb 7, 2025
1 parent d61a767 commit 20f9959
Show file tree
Hide file tree
Showing 24 changed files with 3,421 additions and 646 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Release Note

## 2.10.0
- Update latest versions of native Android (2.19.0) and iOS (2.19.0) sdks
- Implement new public function `initializeWithParameters()`.
- Implement new public functions `setUserWithParameters()` and `setUserWithParametersAndSetupUI()`.

## 2.9.0
- Update latest versions of native Android (2.18.0) and iOS (2.18.0) sdks
- Deprecate methods and parameters related to SPI purposes
- Implement new public computed property `applicableRegulation`.

## 2.8.0
- Update latest versions of native Android (2.17.0) and iOS (2.17.0) sdks
Expand Down
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//noinspection GrPackage

group = "io.didomi.fluttersdk"
version = "2.9.0"
version = "2.10.0"

buildscript {
ext.kotlin_version = "1.9.20"
Expand Down Expand Up @@ -64,6 +64,6 @@ android {

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
implementation("io.didomi.sdk:android:2.18.0")
implementation("io.didomi.sdk:android:2.19.0")
implementation("androidx.multidex:multidex:2.0.1")
}
292 changes: 232 additions & 60 deletions android/src/main/kotlin/io/didomi/fluttersdk/DidomiPlugin.kt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:label="didomi_sample"
android:label="Didomi Sample"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
Expand Down
14 changes: 4 additions & 10 deletions example/integration_test/initialize_with_error_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,14 @@ void main() {

assertNativeMessage("isReady", resultFalseMessage);

// TODO('Check this difference')
if (Platform.isAndroid) {
/// Android falls back to local configuration
assert(errorMessage == "");

assert(isError == false);
assert(isReady == false);
assert(errorMessage == "Invalid Didomi API key");
} else if (Platform.isIOS) {
/// iOS doesn't
assert(errorMessage == "The initialization parameter API Key () is invalid.");

assert(isError == true);
assert(isReady == false);
}

assert(isError == true);
assert(isReady == false);
});
});
}
Loading

0 comments on commit 20f9959

Please sign in to comment.