diff --git a/CHANGELOG.md b/CHANGELOG.md index cb1d8f19..1fa03403 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [Full documentation](https://docs.tealium.com/platforms/react-native/install/) +- 2.3.1 + - Android-Kotlin dependencies updated including severa fixes listed below. + - Core 1.5.3, Visitor Service 1.2.0 and Lifecycle 1.2.0 + - Fix: Some event sending delayed by Visitor Service updates + - Fix: Lifecycle negative values + - Fix: ModuleManager crashes caused by concurrent modification + - 2.3.0 - Visitor Switching support - Kotlin/Swift SDK dependencies updated diff --git a/example/App.js b/example/App.js index 3bf13f22..cf34c451 100644 --- a/example/App.js +++ b/example/App.js @@ -13,9 +13,13 @@ import { } from 'react-native'; import Tealium from 'tealium-react-native'; import TealiumLocation from 'tealium-react-native-location'; -import TealiumAdobeVisitor from 'tealium-react-native-adobe-visitor'; import { TealiumLocationConfig, Accuracy, DesiredAccuracy } from 'tealium-react-native-location/common'; -import { TealiumAdobeVisitorConfig } from 'tealium-react-native-adobevisitor/common'; + +// Note. NPM package will need to be added before uncommenting +// e.g. `yarn add ../modules/adobe-visitor` or `yarn add tealium-react-native-adobe-visitor` +// import TealiumAdobeVisitor from 'tealium-react-native-adobe-visitor'; +// import { TealiumAdobeVisitorConfig } from 'tealium-react-native-adobevisitor/common'; + import { TealiumConfig, TealiumView, TealiumEvent, ConsentCategories, Dispatchers, Collectors, ConsentPolicy, Expiry, ConsentExpiry, TimeUnit, ConsentStatus, TealiumEnvironment, RemoteCommand @@ -32,9 +36,9 @@ import { AuthState } from 'tealium-react-native-adobe-visitor/common'; export default class App extends Component<{}> { componentDidMount() { - let adobeVisitorConfig: TealiumAdobeVisitorConfig = { - adobeVisitorOrgId: "" - } + // let adobeVisitorConfig: TealiumAdobeVisitorConfig = { + // adobeVisitorOrgId: "" + // } let locationConfig: TealiumLocationConfig = { accuracy: Accuracy.high, @@ -48,7 +52,7 @@ export default class App extends Component<{}> { allowSuppressLogLevel: false } - TealiumAdobeVisitor.configure(adobeVisitorConfig) + // TealiumAdobeVisitor.configure(adobeVisitorConfig) TealiumLocation.configure(locationConfig); FirebaseRemoteCommand.initialize(); BrazeRemoteCommand.initialize(); diff --git a/example/package.json b/example/package.json index aac5053a..d86c8b81 100644 --- a/example/package.json +++ b/example/package.json @@ -18,7 +18,6 @@ "tealium-react-braze": "../remotecommands/tealium-react-braze/", "tealium-react-firebase": "../remotecommands/tealium-react-firebase/", "tealium-react-native": "../npm-package/", - "tealium-react-native-adobe-visitor": "../modules/adobe-visitor/", "tealium-react-native-location": "../modules/location/" }, "devDependencies": { diff --git a/npm-package/android/build.gradle b/npm-package/android/build.gradle index f7ee1fed..81aae531 100644 --- a/npm-package/android/build.gradle +++ b/npm-package/android/build.gradle @@ -43,7 +43,7 @@ buildscript { } } -version = "2.3.0" +version = "2.3.1" android { compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION) buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION) @@ -98,12 +98,12 @@ dependencies { implementation 'com.facebook.react:react-native:+' // From node_modules //Tealium - implementation 'com.tealium:kotlin-core:1.5.1' + implementation 'com.tealium:kotlin-core:1.5.3' implementation 'com.tealium:kotlin-collect-dispatcher:1.1.0' implementation 'com.tealium:kotlin-tagmanagement-dispatcher:1.2.0' implementation 'com.tealium:kotlin-remotecommand-dispatcher:1.2.1' - implementation 'com.tealium:kotlin-lifecycle:1.1.1' - implementation 'com.tealium:kotlin-visitor-service:1.1.1' + implementation 'com.tealium:kotlin-lifecycle:1.2.0' + implementation 'com.tealium:kotlin-visitor-service:1.2.0' implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${project.ext.kotlinVersion}" testImplementation 'com.facebook.react:react-native:+' diff --git a/npm-package/index.js b/npm-package/index.js index e8013518..6c5f9244 100644 --- a/npm-package/index.js +++ b/npm-package/index.js @@ -17,7 +17,7 @@ export default class Tealium { }); } TealiumWrapper.initialize(config, callback || (response => {})); - TealiumWrapper.addToDataLayer({'plugin_name': 'Tealium-ReactNative', 'plugin_version': '2.3.0'}, Expiry.forever); + TealiumWrapper.addToDataLayer({'plugin_name': 'Tealium-ReactNative', 'plugin_version': '2.3.1'}, Expiry.forever); if (config["dispatchers"].includes(Dispatchers.RemoteCommands)) { this.setRemoteCommandListener(); } diff --git a/npm-package/package.json b/npm-package/package.json index f2293689..9b99ce04 100644 --- a/npm-package/package.json +++ b/npm-package/package.json @@ -1,7 +1,7 @@ { "name": "tealium-react-native", "title": "Tealium React Native", - "version": "2.3.0", + "version": "2.3.1", "description": "A native module for using Tealium's Kotlin and Swift libraries.", "main": "index.js", "types": "*.ts",