From b6d0ce073c64e1486bb23003eef06906dee42ca6 Mon Sep 17 00:00:00 2001 From: Nazli Yurdakul Date: Wed, 22 Nov 2023 01:53:13 -0500 Subject: [PATCH] fix dev app packaging --- dev-app/android/app/build.gradle | 2 ++ .../com/dev/app/stripeterminalreactnative/MainApplication.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dev-app/android/app/build.gradle b/dev-app/android/app/build.gradle index c662af29..41aac2f9 100644 --- a/dev-app/android/app/build.gradle +++ b/dev-app/android/app/build.gradle @@ -130,6 +130,8 @@ dependencies { } else { implementation jscFlavor } + + implementation project(':stripeterminalreactnative') } apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) diff --git a/dev-app/android/app/src/main/java/com/dev/app/stripeterminalreactnative/MainApplication.java b/dev-app/android/app/src/main/java/com/dev/app/stripeterminalreactnative/MainApplication.java index 22aa39ae..2f694c4d 100644 --- a/dev-app/android/app/src/main/java/com/dev/app/stripeterminalreactnative/MainApplication.java +++ b/dev-app/android/app/src/main/java/com/dev/app/stripeterminalreactnative/MainApplication.java @@ -9,6 +9,7 @@ import com.facebook.react.defaults.DefaultReactNativeHost; import com.facebook.soloader.SoLoader; import java.util.List; +import com.stripeterminalreactnative.StripeTerminalReactNativePackage; public class MainApplication extends Application implements ReactApplication { @@ -25,6 +26,7 @@ protected List getPackages() { List packages = new PackageList(this).getPackages(); // Packages that cannot be autolinked yet can be added manually here, for example: // packages.add(new MyReactNativePackage()); + packages.add(new StripeTerminalReactNativePackage()); return packages; }