Skip to content

Commit

Permalink
CHNL-12052: Update to include SDK name and version in network requests (
Browse files Browse the repository at this point in the history
#175)

* updated ios bridge

* using android branch

* adding config file

* updated name for the plist file to reflect react native

* reverted build gradle

* reverted build gradle

* fixed the rn version
  • Loading branch information
ajaysubra committed Sep 25, 2024
1 parent 42e8933 commit 61d6449
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions ios/KlaviyoBridge.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import KlaviyoSwift
@_spi(KlaviyoPrivate) import KlaviyoCore

@objc
public class KlaviyoBridge: NSObject {
Expand Down
19 changes: 19 additions & 0 deletions ios/klaviyo-react-native-sdk-configuration.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
config.plist
Pods
Created by Ajay Subramanya on 9/18/24.
Copyright (c) 2024 Klaviyo. All rights reserved.
DO NOT MODIFY THE KEYS IN THIS FILE. THEY ARE REFERENCED BY THE iOS SDK
-->
<plist version="1.0">
<dict>
<key>react_native_sdk_name</key>
<string>react_native</string>
<key>react_native_sdk_version</key>
<string>1.0.0</string>
</dict>
</plist>
1 change: 1 addition & 0 deletions klaviyo-react-native-sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Pod::Spec.new do |s|
s.platforms = { :ios => "13.0" }
s.source = { :git => "https://github.com/klaviyo/klaviyo-react-native-sdk.git", :tag => "#{s.version}" }
s.source_files = "ios/**/*.{h,m,mm,swift}"
s.resources = ["ios/klaviyo-react-native-sdk-configuration.plist"]

s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }

Expand Down

0 comments on commit 61d6449

Please sign in to comment.