Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript files and podspec #66

Merged
merged 7 commits into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ");
Expand Down
24 changes: 12 additions & 12 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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
7 changes: 4 additions & 3 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions npm-package/ios/TealiumReactNative.m
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

#import "React/RCTBridgeModule.h"
#import "React/RCTEventEmitter.h"

Expand Down
Binary file not shown.
4 changes: 2 additions & 2 deletions npm-package/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
32 changes: 16 additions & 16 deletions npm-package/tealium-react-native.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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