From 281df386d8ccffd7e797c426cd7d42533ebc207b Mon Sep 17 00:00:00 2001 From: Ian Lin <128665735+ianlin-bbpos@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:38:36 +0800 Subject: [PATCH] add aod support to example-app (#792) --- .../com/example/stripeterminalreactnative/MainApplication.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example-app/android/app/src/main/java/com/example/stripeterminalreactnative/MainApplication.kt b/example-app/android/app/src/main/java/com/example/stripeterminalreactnative/MainApplication.kt index cf87b9e5..8abdfd49 100644 --- a/example-app/android/app/src/main/java/com/example/stripeterminalreactnative/MainApplication.kt +++ b/example-app/android/app/src/main/java/com/example/stripeterminalreactnative/MainApplication.kt @@ -11,6 +11,7 @@ import com.facebook.react.ReactHost import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load import com.facebook.react.defaults.DefaultReactNativeHost import com.facebook.soloader.SoLoader +import com.stripeterminalreactnative.TerminalApplicationDelegate; import expo.modules.ApplicationLifecycleDispatcher import expo.modules.ReactNativeHostWrapper @@ -40,6 +41,7 @@ class MainApplication : Application(), ReactApplication { override fun onCreate() { super.onCreate() + TerminalApplicationDelegate.onCreate(this); SoLoader.init(this, false) if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { // If you opted-in for the New Architecture, we load the native entry point for this app.