Skip to content

Commit 9332e77

Browse files
ajaysubraab1470dan-pelusoevan-masseau
authored
React native 1.0.0 release branch (#178)
* updated to using swift 4.0.0 and updated readme * minor nit * [CHNL-12052] Update to include SDK name and version for Android devices (#180) * adding version and sdk name to android manifest * generic name for strings.xml * update android version 3.0.0 * Update README.md Co-authored-by: Evan C Masseau <[email protected]> * update gemfile --------- Co-authored-by: Andrew Balmer <[email protected]> Co-authored-by: dan-peluso <[email protected]> Co-authored-by: Evan C Masseau <[email protected]> Co-authored-by: Andrew Balmer <[email protected]>
1 parent 6cc4ae4 commit 9332e77

File tree

8 files changed

+33
-38
lines changed

8 files changed

+33
-38
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
[![Android](https://github.com/klaviyo/klaviyo-react-native-sdk/actions/workflows/android-ci.yml/badge.svg?branch=master&event=push)](https://github.com/klaviyo/klaviyo-react-native-sdk/actions/workflows/android-ci.yml)
44
[![iOS](https://github.com/klaviyo/klaviyo-react-native-sdk/actions/workflows/ios-ci.yml/badge.svg?branch=master&event=push)](https://github.com/klaviyo/klaviyo-react-native-sdk/actions/workflows/ios-ci.yml)
55

6-
> ⚠️ This repository is in beta development ⚠️
7-
86
## Contents
97

108
- [klaviyo-react-native-sdk](#klaviyo-react-native-sdk)
@@ -40,6 +38,8 @@
4038

4139
## Introduction
4240

41+
> We currently don't have support for expo. This is something we are looking into and should be available in the future.
42+
4343
The Klaviyo React Native SDK allows developers to incorporate Klaviyo analytics and push notification functionality in
4444
their React Native applications for Android and iOS. It is a Typescript wrapper (native module bridge) around the native
4545
Klaviyo iOS and Android SDKs. For more information on the native SDKs, please see the
@@ -55,7 +55,7 @@ push notifications via FCM (Firebase Cloud Messaging) and APNs (Apple Push Notif
5555

5656
## Requirements
5757

58-
For initial beta release, the SDK was developed and tested against the latest minor release of React Native (0.73+).
58+
This SDK was developed and tested against React Native 0.73.
5959
We are actively testing and expanding support to the latest patch releases of recent minor versions of React Native.
6060

6161
### React Native

android/gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryErro
1111
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1212
# org.gradle.parallel=true
1313
#Tue Dec 19 15:08:27 EST 2023
14-
KlaviyoReactNativeSdk_klaviyoAndroidSdkVersion=2.4.0
14+
KlaviyoReactNativeSdk_klaviyoAndroidSdkVersion=3.0.0
1515
KlaviyoReactNativeSdk_compileSdkVersion=31
1616
KlaviyoReactNativeSdk_kotlinVersion=1.8.0
1717
KlaviyoReactNativeSdk_minSdkVersion=23
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<resources>
2+
<string name="klaviyo_sdk_version_override">1.0.0</string>
3+
<string name="klaviyo_sdk_name_override">react_native</string>
4+
</resources>

example/Gemfile.lock

+13-17
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ GEM
55
base64
66
nkf
77
rexml
8-
activesupport (6.1.7.6)
8+
activesupport (7.0.8.6)
99
concurrent-ruby (~> 1.0, >= 1.0.2)
1010
i18n (>= 1.6, < 2)
1111
minitest (>= 5.1)
1212
tzinfo (~> 2.0)
13-
zeitwerk (~> 2.3)
14-
addressable (2.8.6)
15-
public_suffix (>= 2.0.2, < 6.0)
13+
addressable (2.8.7)
14+
public_suffix (>= 2.0.2, < 7.0)
1615
algoliasearch (1.27.5)
1716
httpclient (~> 2.8, >= 2.8.3)
1817
json (>= 1.5.1)
@@ -57,41 +56,38 @@ GEM
5756
netrc (~> 0.11)
5857
cocoapods-try (1.2.0)
5958
colored2 (3.1.2)
60-
concurrent-ruby (1.2.3)
59+
concurrent-ruby (1.3.4)
6160
escape (0.0.4)
6261
ethon (0.16.0)
6362
ffi (>= 1.15.0)
64-
ffi (1.16.3)
63+
ffi (1.17.0)
6564
fourflusher (2.3.1)
6665
fuzzy_match (2.0.4)
6766
gh_inspector (1.1.3)
6867
httpclient (2.8.3)
69-
i18n (1.14.1)
68+
i18n (1.14.6)
7069
concurrent-ruby (~> 1.0)
71-
json (2.7.1)
72-
minitest (5.22.2)
70+
json (2.7.4)
71+
minitest (5.25.1)
7372
molinillo (0.8.0)
7473
nanaimo (0.3.0)
7574
nap (1.1.0)
7675
netrc (0.11.0)
7776
nkf (0.2.0)
7877
public_suffix (4.0.7)
79-
rexml (3.2.8)
80-
strscan (>= 3.0.9)
78+
rexml (3.3.9)
8179
ruby-macho (2.5.1)
82-
strscan (3.1.0)
8380
typhoeus (1.4.1)
8481
ethon (>= 0.9.0)
8582
tzinfo (2.0.6)
8683
concurrent-ruby (~> 1.0)
87-
xcodeproj (1.24.0)
84+
xcodeproj (1.25.1)
8885
CFPropertyList (>= 2.3.3, < 4.0)
8986
atomos (~> 0.1.3)
9087
claide (>= 1.0.2, < 2.0)
9188
colored2 (~> 3.1)
9289
nanaimo (~> 0.3.0)
93-
rexml (~> 3.2.4)
94-
zeitwerk (2.6.13)
90+
rexml (>= 3.3.6, < 4.0)
9591

9692
PLATFORMS
9793
ruby
@@ -101,7 +97,7 @@ DEPENDENCIES
10197
cocoapods (= 1.15.2)
10298

10399
RUBY VERSION
104-
ruby 2.6.10p210
100+
ruby 3.3.5p100
105101

106102
BUNDLED WITH
107-
1.17.2
103+
2.5.22

example/ios/Podfile

-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ target 'KlaviyoReactNativeSdkExample' do
2424
:path => config[:reactNativePath],
2525
:app_path => "#{Pod::Config.instance.installation_root}/.."
2626
)
27-
28-
#TODO: remove this once iOS modularization release is made and the podspec is updated
29-
pod 'KlaviyoSwift', :path => '../../../klaviyo-swift-sdk/'
3027

3128
target 'KlaviyoReactNativeSdkExampleTests' do
3229
inherit! :complete

example/ios/Podfile.lock

+10-12
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ PODS:
1515
- hermes-engine (0.73.1):
1616
- hermes-engine/Pre-built (= 0.73.1)
1717
- hermes-engine/Pre-built (0.73.1)
18-
- klaviyo-react-native-sdk (0.4.2):
19-
- KlaviyoSwift (= 3.2.0)
18+
- klaviyo-react-native-sdk (1.0.0):
19+
- KlaviyoSwift (= 4.0.0)
2020
- React-Core
21-
- KlaviyoCore (0.1.0):
21+
- KlaviyoCore (4.0.0):
2222
- AnyCodable-FlightSchool
23-
- KlaviyoSwift (3.2.0):
23+
- KlaviyoSwift (4.0.0):
2424
- AnyCodable-FlightSchool
25-
- KlaviyoCore (~> 0.1.0)
25+
- KlaviyoCore (~> 4.0.0)
2626
- KlaviyoSwiftExtension (3.3.0)
2727
- libevent (2.1.12)
2828
- RCT-Folly (2022.05.16.00):
@@ -1074,7 +1074,6 @@ DEPENDENCIES:
10741074
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
10751075
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
10761076
- klaviyo-react-native-sdk (from `../..`)
1077-
- KlaviyoSwift (from `../../../klaviyo-swift-sdk/`)
10781077
- KlaviyoSwiftExtension
10791078
- libevent (~> 2.1.12)
10801079
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
@@ -1127,6 +1126,7 @@ SPEC REPOS:
11271126
- AnyCodable-FlightSchool
11281127
- fmt
11291128
- KlaviyoCore
1129+
- KlaviyoSwift
11301130
- KlaviyoSwiftExtension
11311131
- libevent
11321132
- SocketRocket
@@ -1147,8 +1147,6 @@ EXTERNAL SOURCES:
11471147
:tag: hermes-2023-11-17-RNv0.73.0-21043a3fc062be445e56a2c10ecd8be028dd9cc5
11481148
klaviyo-react-native-sdk:
11491149
:path: "../.."
1150-
KlaviyoSwift:
1151-
:path: "../../../klaviyo-swift-sdk/"
11521150
RCT-Folly:
11531151
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
11541152
RCTRequired:
@@ -1243,9 +1241,9 @@ SPEC CHECKSUMS:
12431241
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
12441242
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
12451243
hermes-engine: 34df9d5034e90bd9bf1505e1ca198760373935af
1246-
klaviyo-react-native-sdk: edf2b7ad63175da7c9819811649018e2b10dd2be
1247-
KlaviyoCore: a1c8bce61e3bf059e2122c68de67c0848ab18691
1248-
KlaviyoSwift: ae14ca3ab291d212e62ce6a7f75b7f98c117476a
1244+
klaviyo-react-native-sdk: 3fdd795c641df4e49f18d4805ce559c92d8adbd2
1245+
KlaviyoCore: 64cf0767bd46055245b778702a55ccc1f18d4eb1
1246+
KlaviyoSwift: f7ee04bdd50b42dcc6ede4efdeb6f05d1cc4549f
12491247
KlaviyoSwiftExtension: 3094f964d2d1f9ad6815d6543c2d2ffa9297243a
12501248
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
12511249
RCT-Folly: 7169b2b1c44399c76a47b5deaaba715eeeb476c0
@@ -1292,6 +1290,6 @@ SPEC CHECKSUMS:
12921290
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
12931291
Yoga: 4f53dc50008d626fa679c7a1cb4bed898f8c0bde
12941292

1295-
PODFILE CHECKSUM: 9733c70a40fa45d4d6e22abd7d360e3c94c8e69c
1293+
PODFILE CHECKSUM: fb4c6f946002a62b798ca073d975abf271898252
12961294

12971295
COCOAPODS: 1.15.2

klaviyo-react-native-sdk.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Pod::Spec.new do |s|
1818
s.pod_target_xcconfig = { "DEFINES_MODULE" => "YES" }
1919

2020
s.dependency "React-Core"
21-
s.dependency "KlaviyoSwift", "3.2.0"
21+
s.dependency "KlaviyoSwift", "4.0.0"
2222
end

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "klaviyo-react-native-sdk",
3-
"version": "0.4.2",
3+
"version": "1.0.0",
44
"description": "Official Klaviyo React Native SDK",
55
"main": "lib/commonjs/index",
66
"module": "lib/module/index",

0 commit comments

Comments
 (0)