Skip to content

Commit b8a69dc

Browse files
authored
Merge branch 'master' into fix/SDK-478-bridge-resolve-immediately
2 parents 5db530b + af4a974 commit b8a69dc

54 files changed

Lines changed: 4259 additions & 590 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,27 @@
66
- Previously the promise could wait on the first in-app messages fetch (and any associated auth retry budget) before resolving, leading to multi-second to multi-minute hangs under certain configurations.
77
- The native iOS SDK is fully usable the moment `Iterable.initialize` is called; nothing about JS-side correctness requires waiting on the promise.
88

9+
## 3.0.0
10+
### Updates
11+
- Added embedded messaging functionality. This includes the ability to:
12+
- Manually sync messages with `Iterable.embeddedManager.syncMessages()`
13+
- Get messages with `Iterable.embeddedManager.getMessages([PLACEMENT_IDS])`
14+
- Start an embedded session with `Iterable.embeddedManager.startSession()`
15+
- End an embedded session with `Iterable.embeddedManager.endSession()`
16+
- Start an embedded impression with
17+
`Iterable.embeddedManager.startImpression(MESSAGE_ID, PLACEMENT_ID)`
18+
- Pause an embedded impression with
19+
`Iterable.embeddedManager.pauseImpression(MESSAGE_ID)`
20+
- Handle embedded clicks with
21+
`Iterable.embeddedManager.handleClick(message, buttonId, action)`
22+
- Added out-of-the-box (OOTB) embedded views (embedded components) for rendering
23+
embedded messages in your app:
24+
- `IterableEmbeddedView` — renders a message by `IterableEmbeddedViewType`
25+
(Banner, Card, or Notification)
26+
- `IterableEmbeddedBanner`, `IterableEmbeddedCard`, and
27+
`IterableEmbeddedNotification` — individual OOTB view components
28+
- `IterableEmbeddedViewConfig` — optional styling configuration for OOTB views
29+
930
## 2.2.2
1031
### Updates
1132
- Added `baseline-browser-mapping`

example/android/app/src/main/java/iterable/reactnativesdk/example/MainApplication.kt

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,21 @@ import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
77
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
8-
import com.facebook.react.ReactNativeHost
9-
import com.facebook.react.ReactPackage
108
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
11-
import com.facebook.react.defaults.DefaultReactNativeHost
129

1310
class MainApplication : Application(), ReactApplication {
1411

15-
override val reactNativeHost: ReactNativeHost =
16-
object : DefaultReactNativeHost(this) {
17-
override fun getPackages(): List<ReactPackage> =
18-
PackageList(this).packages.apply {
19-
// Packages that cannot be autolinked yet can be added manually here, for example:
20-
// add(MyReactNativePackage())
21-
add(JwtTokenPackage())
22-
}
23-
24-
override fun getJSMainModuleName(): String = "index"
25-
26-
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
27-
28-
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
29-
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
30-
}
31-
32-
override val reactHost: ReactHost
33-
get() = getDefaultReactHost(applicationContext, reactNativeHost)
12+
override val reactHost: ReactHost by lazy {
13+
getDefaultReactHost(
14+
context = applicationContext,
15+
packageList =
16+
PackageList(this).packages.apply {
17+
// Packages that cannot be autolinked yet can be added manually here, for example:
18+
// add(MyReactNativePackage())
19+
add(JwtTokenPackage())
20+
},
21+
)
22+
}
3423

3524
override fun onCreate() {
3625
super.onCreate()
1.71 KB
Binary file not shown.

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

example/android/gradlew

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/android/gradlew.bat

Lines changed: 2 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/ios/Podfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ target 'ReactNativeSdkExample' do
2626
)
2727

2828
post_install do |installer|
29-
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3029
react_native_post_install(
3130
installer,
3231
config[:reactNativePath],

0 commit comments

Comments
 (0)