@braze/expo-plugin
Advanced tools
Comparing version 0.2.0 to 0.3.1
export declare type ConfigProps = { | ||
androidApiKey: string; | ||
iosApiKey: string; | ||
customEndpoint: string; | ||
baseUrl: string; | ||
fcmSenderID?: string; | ||
@@ -6,0 +6,0 @@ sessionTimeout?: number; |
@@ -10,3 +10,3 @@ "use strict"; | ||
const withBraze = (config, _props) => { | ||
const props = _props || { androidApiKey: "", iosApiKey: "", customEndpoint: "" }; | ||
const props = _props || { androidApiKey: "", iosApiKey: "", baseUrl: "" }; | ||
config = (0, withBrazeAndroid_1.withAndroidBrazeSdk)(config, props); | ||
@@ -13,0 +13,0 @@ config = (0, withBrazeiOS_1.withIOSBrazeSdk)(config, props); |
@@ -15,7 +15,7 @@ "use strict"; | ||
"androidApiKey": ["com_braze_api_key", BX_STR], | ||
"customEndpoint": ["com_braze_custom_endpoint", BX_STR], | ||
"baseUrl": ["com_braze_custom_endpoint", BX_STR], | ||
"fcmSenderID": ["com_braze_firebase_cloud_messaging_sender_id", BX_STR], | ||
"sessionTimeout": ["com_braze_session_timeout", BX_INT], | ||
"logLevel": ["com_braze_logger_initial_log_level", BX_INT], | ||
"minimumTriggerIntervalInSeconds": ["minimumTriggerIntervalInSeconds", BX_INT], | ||
"minimumTriggerIntervalInSeconds": ["com_braze_trigger_action_minimum_time_interval_seconds", BX_INT], | ||
"enableSdkAuthentication": ["com_braze_sdk_authentication_enabled", BX_BOOL], | ||
@@ -22,0 +22,0 @@ "enableGeofence": ["com_braze_geofences_enabled", BX_BOOL], |
@@ -15,7 +15,7 @@ "use strict"; | ||
delete config.modResults.Braze; | ||
const { iosApiKey, customEndpoint } = props; | ||
const { iosApiKey, baseUrl } = props; | ||
if (iosApiKey) { | ||
config.modResults.Braze = { | ||
ApiKey: iosApiKey, | ||
Endpoint: customEndpoint, | ||
Endpoint: baseUrl, | ||
}; | ||
@@ -22,0 +22,0 @@ if (props.sessionTimeout != null) { |
{ | ||
"name": "@braze/expo-plugin", | ||
"version": "0.2.0", | ||
"version": "0.3.1", | ||
"description": "Config plugin for react-native-appboy-sdk package", | ||
@@ -5,0 +5,0 @@ "main": "build/withBraze.js", |
export type ConfigProps = { | ||
androidApiKey: string; | ||
iosApiKey: string; | ||
customEndpoint: string; | ||
baseUrl: string; | ||
fcmSenderID?: string; | ||
@@ -6,0 +6,0 @@ sessionTimeout?: number; |
@@ -14,3 +14,3 @@ import { ConfigPlugin, createRunOncePlugin } from "@expo/config-plugins"; | ||
) => { | ||
const props = _props || { androidApiKey: "", iosApiKey: "", customEndpoint: "" }; | ||
const props = _props || { androidApiKey: "", iosApiKey: "", baseUrl: "" }; | ||
@@ -17,0 +17,0 @@ config = withAndroidBrazeSdk(config, props); |
@@ -25,3 +25,3 @@ import { writeFileSync } from 'fs'; | ||
"androidApiKey": ["com_braze_api_key", BX_STR], | ||
"customEndpoint": ["com_braze_custom_endpoint", BX_STR], | ||
"baseUrl": ["com_braze_custom_endpoint", BX_STR], | ||
"fcmSenderID": ["com_braze_firebase_cloud_messaging_sender_id", BX_STR], | ||
@@ -31,3 +31,3 @@ | ||
"logLevel": ["com_braze_logger_initial_log_level", BX_INT], | ||
"minimumTriggerIntervalInSeconds": ["minimumTriggerIntervalInSeconds", BX_INT], | ||
"minimumTriggerIntervalInSeconds": ["com_braze_trigger_action_minimum_time_interval_seconds", BX_INT], | ||
@@ -34,0 +34,0 @@ "enableSdkAuthentication": ["com_braze_sdk_authentication_enabled", BX_BOOL], |
@@ -15,7 +15,7 @@ import { ConfigPlugin, withInfoPlist, withPodfileProperties } from "@expo/config-plugins"; | ||
delete config.modResults.Braze; | ||
const { iosApiKey, customEndpoint } = props; | ||
const { iosApiKey, baseUrl } = props; | ||
if (iosApiKey) { | ||
config.modResults.Braze = { | ||
ApiKey: iosApiKey, | ||
Endpoint: customEndpoint, | ||
Endpoint: baseUrl, | ||
}; | ||
@@ -22,0 +22,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25980