Skip to content

Commit 4286010

Browse files
sumchatteringclaude
andcommitted
#793 Fix Android unresolved IterableApi reference
Move RNIterableAPIModule.java to correct package directory (com/iterable/reactnative/) matching the declared package name. Add IterableApi.setContext(this) to example app MainApplication. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e69c305 commit 4286010

3 files changed

Lines changed: 2 additions & 0 deletions

File tree

android/src/newarch/java/com/RNIterableAPIModule.java renamed to android/src/newarch/java/com/iterable/reactnative/RNIterableAPIModule.java

File renamed without changes.

android/src/oldarch/java/com/RNIterableAPIModule.java renamed to android/src/oldarch/java/com/iterable/reactnative/RNIterableAPIModule.java

File renamed without changes.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
1212
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1313
import com.facebook.soloader.SoLoader
14+
import com.iterable.iterableapi.IterableApi
1415

1516
class MainApplication : Application(), ReactApplication {
1617

@@ -41,5 +42,6 @@ class MainApplication : Application(), ReactApplication {
4142
// If you opted-in for the New Architecture, we load the native entry point for this app.
4243
load()
4344
}
45+
IterableApi.setContext(this)
4446
}
4547
}

0 commit comments

Comments
 (0)