Skip to content

Commit

Permalink
Release/2.3.1 (#156)
Browse files Browse the repository at this point in the history
* [MT-1280] - (Android) Visitor Service dependency updated (#152)

* (Android) Visitor Service dependency updated

* pr updates - note to add package

* (Android) Lifecycle dependency updated (#153)

* Kotlin Core 1.5.3 dependency + 2.3.1 Changelog (#154)
  • Loading branch information
jameskeith authored Jun 15, 2023
1 parent fc386fe commit fd23009
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 13 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 10 additions & 6 deletions example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,9 +36,9 @@ import { AuthState } from 'tealium-react-native-adobe-visitor/common';
export default class App extends Component<{}> {

componentDidMount() {
let adobeVisitorConfig: TealiumAdobeVisitorConfig = {
adobeVisitorOrgId: "<YOUR-ADOBE-ORG-ID>"
}
// let adobeVisitorConfig: TealiumAdobeVisitorConfig = {
// adobeVisitorOrgId: "<YOUR-ADOBE-ORG-ID>"
// }

let locationConfig: TealiumLocationConfig = {
accuracy: Accuracy.high,
Expand All @@ -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();
Expand Down
1 change: 0 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
8 changes: 4 additions & 4 deletions npm-package/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:+'
Expand Down
2 changes: 1 addition & 1 deletion npm-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion npm-package/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit fd23009

Please sign in to comment.