You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Utils | Added configure-sdk and bump-version scripts (#219)
* Enabled development against local copy of klaviyo-android-sdk via composite builds.
* Added configure-sdk.sh script to manage switching between local and remote SDK targets for android.
* Added iOS config to the script
* Aaaand a bump-version script to walk you through a version update
---------
Co-authored-by: Evan Masseau <>
sed -i ''"s/<string name=\"klaviyo_sdk_version_override\">.*<\/string>/<string name=\"klaviyo_sdk_version_override\">$new_version<\/string>/""$android_strings"
29
+
echo"Updated klaviyo_sdk_version_override in $android_strings."
30
+
else
31
+
echo"Error: $android_strings not found."
32
+
exit 1
33
+
fi
34
+
35
+
# Prompt for the Android SDK version
36
+
read -rp "Enter the Android SDK version: " android_version
37
+
38
+
# Update Android SDK version in gradle.properties
39
+
gradle_properties="./android/gradle.properties"
40
+
if [[ -f"$gradle_properties" ]];then
41
+
sed -i ''"s/KlaviyoReactNativeSdk_klaviyoAndroidSdkVersion=.*/KlaviyoReactNativeSdk_klaviyoAndroidSdkVersion=$android_version/""$gradle_properties"
42
+
echo"Updated Android SDK version in $gradle_properties."
43
+
else
44
+
echo"Error: $gradle_properties not found."
45
+
exit 1
46
+
fi
47
+
48
+
# Prompt for the Swift SDK version
49
+
read -rp "Enter the Swift SDK version: " swift_version
50
+
51
+
# Update Swift SDK version in the podspec
52
+
podspec_file="klaviyo-react-native-sdk.podspec"
53
+
if [[ -f"$podspec_file" ]];then
54
+
sed -i ''"s/\"KlaviyoSwift\", \".*\"/\"KlaviyoSwift\", \"$swift_version\"/""$podspec_file"
55
+
echo"Updated KlaviyoSwift version in $podspec_file."
56
+
else
57
+
echo"Error: $podspec_file not found."
58
+
exit 1
59
+
fi
60
+
61
+
# Run yarn install or npm install in the example app directory
0 commit comments