Skip to content

Commit

Permalink
fix: Added support for identify with JWT, WebView default background …
Browse files Browse the repository at this point in the history
…is transparent
  • Loading branch information
github-actions committed Feb 29, 2024
1 parent c65127f commit fc3ccb7
Show file tree
Hide file tree
Showing 17 changed files with 1,124 additions and 540 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ dependencies {
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'com.extole.mobile:android-sdk:1.0.49'
implementation 'com.extole.mobile:android-sdk:1.0.50'
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
// From node_modules
}
Expand Down
4 changes: 3 additions & 1 deletion android/src/main/java/com/extole/android/sdk/RNExtole.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class RNExtole(reactContext: ReactApplicationContext?) :
val sandbox: String = parameters.getString("sandobx") ?: "production-production"
val appName: String = parameters.getString("appName") ?: "Extole $programDomain"
val email: String? = parameters.getString("email")
val jwt: String? = parameters.getString("jwt")
val listenToEvents: Boolean =
if (parameters.hasKey("listenToEvents")) parameters.getBoolean("listenToEvents") else true
if (extole == null) {
Expand All @@ -71,7 +72,8 @@ class RNExtole(reactContext: ReactApplicationContext?) :
disabledActions = setOf(
Action.ActionType.VIEW_FULLSCREEN,
Action.ActionType.PROMPT
)
),
jwt
)
} catch (exception: Exception) {
Log.e("Extole", "Unable to initialize Extole", exception)
Expand Down
5 changes: 5 additions & 0 deletions example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ target 'ExtoleMobileSdkExample' do
use_flipper!()

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
end
end
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
Expand Down
16 changes: 8 additions & 8 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ PODS:
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- extole-mobile-sdk (0.0.2):
- ExtoleMobileSDK (~> 0.0.45)
- ExtoleMobileSDK (~> 0.0.48)
- React-Core
- ExtoleConsumerAPI (0.0.17):
- Alamofire (~> 5.1.0)
- ExtoleMobileSDK (0.0.45):
- ExtoleMobileSDK (0.0.48):
- ExtoleConsumerAPI (~> 0.0.17)
- Logging (~> 1.4)
- ObjectMapper (~> 4.1.0)
Expand Down Expand Up @@ -386,7 +386,7 @@ PODS:
- React-jsi (= 0.68.2)
- React-logger (= 0.68.2)
- React-perflogger (= 0.68.2)
- RNGestureHandler (2.14.1):
- RNGestureHandler (2.15.0):
- React-Core
- RNScreens (3.18.2):
- React-Core
Expand Down Expand Up @@ -568,9 +568,9 @@ SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
extole-mobile-sdk: 895541d50ae06f513a5737dbfc954880cfe97eba
extole-mobile-sdk: e17dd43e74badc85784620f5dcce1de7d7c50379
ExtoleConsumerAPI: 4e512cfee398d5fba446ca04076ee382cbf0979b
ExtoleMobileSDK: 3531494fe1a494ceb6cfcd40979200145bdb48b6
ExtoleMobileSDK: f68bb371a53c44bf5430b9e0b41e1d33c04199e0
FBLazyVector: a7a655862f6b09625d11c772296b01cd5164b648
FBReactNativeSpec: 81ce99032d5b586fddd6a38d450f8595f7e04be4
Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0
Expand Down Expand Up @@ -617,13 +617,13 @@ SPEC CHECKSUMS:
React-RCTVibration: 79040b92bfa9c3c2d2cb4f57e981164ec7ab9374
React-runtimeexecutor: b960b687d2dfef0d3761fbb187e01812ebab8b23
ReactCommon: 095366164a276d91ea704ce53cb03825c487a3f2
RNGestureHandler: e98441928705d9d1184b599d7c1c6df2dd4f7724
RNGestureHandler: 0cba6c7c51a90cd793cf2475cf7fdca613ede300
RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
SwiftEventBus: b30f617a6aca5a9336464b4d3f5931034762f2d5
Yoga: 99652481fcd320aefa4a7ef90095b95acd181952
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 86ca3b8e1feab2ffdb9274af4d7d59a954234d83
PODFILE CHECKSUM: d11f29f8eb64a969e0b4162fe8a200fec1d466ad

COCOAPODS: 1.14.2
COCOAPODS: 1.15.2
Loading

0 comments on commit fc3ccb7

Please sign in to comment.