Skip to content

Commit

Permalink
Release 2.0.1 (#55)
Browse files Browse the repository at this point in the history
* Release 2.0.1

* plugin_version

Co-authored-by: Karen Tamayo <[email protected]>
Co-authored-by: James Keith <[email protected]>
  • Loading branch information
3 people authored Sep 7, 2021
1 parent 770f8b5 commit 1ee11fb
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Tealium/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tealium-cordova-plugin",
"version": "2.0.0",
"version": "2.0.1",
"description": "Tealium Customer Data Hub",
"cordova": {
"id": "tealium-cordova-plugin",
Expand Down
2 changes: 1 addition & 1 deletion Tealium/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="tealium-cordova-plugin" version="2.0.0" name="tealium-cordova-plugin">
id="tealium-cordova-plugin" version="2.0.1" name="tealium-cordova-plugin">

<name>TealiumCordova</name>
<description>Tealium Tag Management and UDH</description>
Expand Down
4 changes: 1 addition & 3 deletions Tealium/src/android/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import com.tealium.core.persistence.Expiry
import com.tealium.dispatcher.Dispatch
import com.tealium.dispatcher.TealiumEvent
import com.tealium.dispatcher.TealiumView
import com.tealium.example.BuildConfig
import com.tealium.lifecycle.Lifecycle
import com.tealium.lifecycle.isAutoTrackingEnabled
import com.tealium.remotecommanddispatcher.RemoteCommandDispatcher
Expand All @@ -27,13 +26,12 @@ import com.tealium.tagmanagementdispatcher.overrideTagManagementUrl
import com.tealium.visitorservice.VisitorProfile
import com.tealium.visitorservice.VisitorService
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import java.util.*
import java.util.concurrent.TimeUnit

private fun missingRequiredProperty(name: String) {
Log.d(BuildConfig.TEALIUM_TAG, "Missing required property: $name")
Log.d(TealiumCordova.TEALIUM_TAG, "Missing required property: $name")
}

fun JSONObject.toTealiumConfig(application: Application): TealiumConfig? {
Expand Down
5 changes: 2 additions & 3 deletions Tealium/src/android/Listeners.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import com.tealium.core.consent.ConsentManagementPolicy
import com.tealium.core.consent.ConsentStatus
import com.tealium.core.consent.UserConsentPreferences
import com.tealium.core.messaging.UserConsentPreferencesUpdatedListener
import com.tealium.example.BuildConfig
import com.tealium.remotecommands.RemoteCommand
import com.tealium.visitorservice.VisitorProfile
import com.tealium.visitorservice.VisitorUpdatedListener
Expand All @@ -20,7 +19,7 @@ class VisitorListener(private val callbackContext: CallbackContext) : VisitorUpd
callbackContext.sendPluginResult(PluginResult(PluginResult.Status.OK, it).apply { keepCallback = true })
}
} catch (jex: JSONException) {
Logger.qa(BuildConfig.TEALIUM_TAG, "${jex.message}")
Logger.qa(TealiumCordova.TEALIUM_TAG, "${jex.message}")
}
}
}
Expand All @@ -46,7 +45,7 @@ class RemoteCommandListener(val callbackContext: CallbackContext, id: String, de
callbackContext.sendPluginResult(result)
}
} catch (jex: JSONException) {
Logger.qa(BuildConfig.TEALIUM_TAG, "${jex.message}")
Logger.qa(TealiumCordova.TEALIUM_TAG, "${jex.message}")
}
response.send()
}
Expand Down
4 changes: 4 additions & 0 deletions Tealium/src/android/TealiumCordova.kt
Original file line number Diff line number Diff line change
Expand Up @@ -329,4 +329,8 @@ class TealiumCordova @JvmOverloads constructor(private var tealium: Tealium? = n
visitorServiceCallbacks.clear()
}
}

companion object {
const val TEALIUM_TAG = "Tealium-Cordova"
}
}
9 changes: 4 additions & 5 deletions Tealium/src/android/tealium.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ repositories{
}

dependencies {
implementation 'com.tealium:kotlin-core:1.2.6'
implementation 'com.tealium:kotlin-collect-dispatcher:1.0.4'
implementation 'com.tealium:kotlin-tagmanagement-dispatcher:1.0.5'
implementation 'com.tealium:kotlin-core:1.2.7'
implementation 'com.tealium:kotlin-collect-dispatcher:1.0.5'
implementation 'com.tealium:kotlin-tagmanagement-dispatcher:1.0.6'
implementation 'com.tealium:kotlin-remotecommand-dispatcher:1.0.4'
implementation 'com.tealium:kotlin-lifecycle:1.0.5'
implementation 'com.tealium:kotlin-visitor-service:1.0.4'
implementation 'com.tealium:kotlin-visitor-service:1.0.5'
}

android {
defaultConfig {
buildConfigField 'String', 'TEALIUM_TAG', "\"Tealium-Cordova\""
}

packagingOptions {
Expand Down
2 changes: 1 addition & 1 deletion Tealium/www/tealium.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ let TealiumPlugin = {
initialize(config, callback) {
let self = this;
cordova.exec(function(e) {
self.addData({'plugin_name': 'Tealium-Cordova', 'plugin_version': '2.0.0'}, Expiry.forever);
self.addData({'plugin_name': 'Tealium-Cordova', 'plugin_version': '2.0.1'}, Expiry.forever);
if (config.remoteCommands) {
config.remoteCommands.forEach((remoteCommand) => {
if (remoteCommand.callback) {
Expand Down

0 comments on commit 1ee11fb

Please sign in to comment.