diff --git a/example/App.js b/example/App.js index 3b6a2559..17896c58 100644 --- a/example/App.js +++ b/example/App.js @@ -6,7 +6,7 @@ import { TealiumConfig, TealiumView, TealiumEvent, ConsentCategories, Dispatcher export default class App extends Component < {} > { componentDidMount() { - let config: TealiumConfig = { account: 'tealiummobile', profile: 'demo', environment: TealiumEnvironment.dev, dispatchers: [Dispatchers.Collect, Dispatchers.TagManagement, Dispatchers.RemoteCommands], collectors: [Collectors.AppData, Collectors.DeviceData, Collectors.Lifecycle, Collectors.Connectivity], consentLoggingEnabled: true, consentExpiry: {'time': 1, 'unit': 'minutes' }, consentPolicy: ConsentPolicy.gdpr, batchingEnabled: false, visitorServiceEnabled: true, useRemoteLibrarySettings: false }; + let config: TealiumConfig = { account: 'tealiummobile', profile: 'demo', environment: TealiumEnvironment.dev, dispatchers: [Dispatchers.Collect, Dispatchers.TagManagement, Dispatchers.RemoteCommands], collectors: [Collectors.AppData, Collectors.DeviceData, Collectors.Lifecycle, Collectors.Connectivity], consentLoggingEnabled: true, consentExpiry: {'time': 5, 'unit': 'minutes' }, consentPolicy: ConsentPolicy.gdpr, batchingEnabled: false, visitorServiceEnabled: true, useRemoteLibrarySettings: false }; Tealium.initialize(config); Tealium.setVisitorServiceListener(profile => { console.log("audiences: "); diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 7bdf9cd4..d8d3faab 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -296,6 +296,14 @@ PODS: - React-Core (= 0.63.4) - React-cxxreact (= 0.63.4) - React-jsi (= 0.63.4) + - tealium-react-native (2.0.0): + - React + - tealium-swift/Collect + - tealium-swift/Core + - tealium-swift/Lifecycle + - tealium-swift/RemoteCommands + - tealium-swift/TagManagement + - tealium-swift/VisitorService - tealium-swift/Collect (2.2.2): - tealium-swift/Core - tealium-swift/Core (2.2.2) @@ -307,14 +315,6 @@ PODS: - tealium-swift/Core - tealium-swift/VisitorService (2.2.2): - tealium-swift/Core - - TealiumReactNative (2.0.0): - - React - - tealium-swift/Collect - - tealium-swift/Core - - tealium-swift/Lifecycle - - tealium-swift/RemoteCommands - - tealium-swift/TagManagement - - tealium-swift/VisitorService - Yoga (1.14.0) - YogaKit (1.18.1): - Yoga (~> 1.14) @@ -366,7 +366,7 @@ DEPENDENCIES: - React-RCTText (from `../node_modules/react-native/Libraries/Text`) - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - - TealiumReactNative (from `../node_modules/tealium-react-native`) + - tealium-react-native (from `../node_modules/tealium-react-native`) - Yoga (from `../node_modules/react-native/ReactCommon/yoga`) SPEC REPOS: @@ -436,7 +436,7 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/Libraries/Vibration" ReactCommon: :path: "../node_modules/react-native/ReactCommon" - TealiumReactNative: + tealium-react-native: :path: "../node_modules/tealium-react-native" Yoga: :path: "../node_modules/react-native/ReactCommon/yoga" @@ -478,11 +478,11 @@ SPEC CHECKSUMS: React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b + tealium-react-native: 8b7ba4b3ed5bb05ac6ef2a30920bb483357d3d1a tealium-swift: 3fed069f2066953da4b02491f5e9aadd87cc3845 - TealiumReactNative: 641edf0f55baf083a6673f071ae231ab748bbbdc Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a PODFILE CHECKSUM: 06ca387ef554c7e71ded14b29349a94c99360845 -COCOAPODS: 1.10.0 +COCOAPODS: 1.10.1 diff --git a/example/yarn.lock b/example/yarn.lock index fd9dec59..a315d006 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -6507,9 +6507,10 @@ table@^5.2.3: tealium-react-native@../npm-package: version "2.0.0" -"tealium-react-native@link:../npm-package": - version "0.0.0" - uid "" +tealium-react-native@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/tealium-react-native/-/tealium-react-native-2.0.0.tgz#3231e67c7b84115919a619ce6e806a3d18d2fa25" + integrity sha512-bNKmD2leFD/aJOcnNStlfZEy33dxpIW31OI+YiKGtLKh7P0hW3zY4dS0LBhRPtyrDWuZVfjvxlrwlw8KbUgC5Q== temp@0.8.3: version "0.8.3" diff --git a/npm-package/ios/TealiumReactNative.m b/npm-package/ios/TealiumReactNative.m index f2895af6..4a156dd9 100644 --- a/npm-package/ios/TealiumReactNative.m +++ b/npm-package/ios/TealiumReactNative.m @@ -1,3 +1,4 @@ + #import "React/RCTBridgeModule.h" #import "React/RCTEventEmitter.h" diff --git a/npm-package/ios/TealiumReactNative.xcworkspace/xcuserdata/christina.xcuserdatad/UserInterfaceState.xcuserstate b/npm-package/ios/TealiumReactNative.xcworkspace/xcuserdata/christina.xcuserdatad/UserInterfaceState.xcuserstate index d1143ee0..e796c1da 100644 Binary files a/npm-package/ios/TealiumReactNative.xcworkspace/xcuserdata/christina.xcuserdatad/UserInterfaceState.xcuserstate and b/npm-package/ios/TealiumReactNative.xcworkspace/xcuserdata/christina.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/npm-package/package.json b/npm-package/package.json index 1cb1264f..b004dc3f 100644 --- a/npm-package/package.json +++ b/npm-package/package.json @@ -1,10 +1,10 @@ { "name": "tealium-react-native", "title": "Tealium React Native", - "version": "2.0.0", + "version": "2.0.1", "description": "A native module for using Tealium's Kotlin and Swift libraries.", "main": "index.js", - "types": "index.d.ts", + "types": "*.ts", "homepage": "https://github.com/Tealium/tealium-react-native", "bugs": "https://github.com/Tealium/tealium-react-native/issues", "files": [ diff --git a/npm-package/tealium-react-native.podspec b/npm-package/tealium-react-native.podspec index 9284f53a..54418653 100644 --- a/npm-package/tealium-react-native.podspec +++ b/npm-package/tealium-react-native.podspec @@ -3,28 +3,28 @@ require "json" package = JSON.parse(File.read(File.join(__dir__, "package.json"))) Pod::Spec.new do |s| - s.name = "tealium-react-native" - s.version = package["version"] - s.summary = package["description"] - s.description = <<-DESC + s.name = "tealium-react-native" + s.version = package["version"] + s.summary = package["description"] + s.description = <<-DESC Tealium React Native Plugin DESC - s.homepage = "https://github.com/tealium/tealium-react-native" - s.license = { :type => "Commercial", :file => "LICENSE.txt" } - s.authors = { "Christina Sund" => "christina.sund@tealium.com", "James Keith" => "james.keith@tealium.com" } - s.platforms = { :ios => "9.0" } - s.source = { :git => "https://github.com/tealium/tealium-react-native.git", :tag => "#{s.version}" } - + s.homepage = "https://github.com/tealium/tealium-react-native" + s.license = { :type => "Commercial", :file => "LICENSE.txt" } + s.authors = { "Christina Sund" => "christina.sund@tealium.com", "James Keith" => "james.keith@tealium.com" } + s.platforms = { :ios => "9.0" } + s.source = { :git => "https://github.com/tealium/tealium-react-native.git", :tag => "#{s.version}" } s.source_files = "ios/**/*.{h,c,m,swift}" s.requires_arc = true + s.swift_version = "5.0" s.dependency "React" - s.dependency "tealium-swift/Core", ~> "2.2.2" - s.dependency "tealium-swift/TagManagement", ~> "2.2.2" - s.dependency "tealium-swift/Collect", ~> "2.2.2" - s.dependency "tealium-swift/Lifecycle", ~> "2.2.2" - s.dependency "tealium-swift/RemoteCommands", ~> "2.2.2" - s.dependency "tealium-swift/VisitorService", ~> "2.2.2" + s.dependency "tealium-swift/Core", "~> 2.2.2" + s.dependency "tealium-swift/TagManagement", "~> 2.2.2" + s.dependency "tealium-swift/Collect", "~> 2.2.2" + s.dependency "tealium-swift/Lifecycle", "~> 2.2.2" + s.dependency "tealium-swift/RemoteCommands", "~> 2.2.2" + s.dependency "tealium-swift/VisitorService", "~> 2.2.2" end