From 275dab3551072cb7c317b989e63b3c79af2580b5 Mon Sep 17 00:00:00 2001 From: Thomas Mengelatte Date: Fri, 23 May 2025 14:40:27 +0200 Subject: [PATCH 1/2] fix: iOS objective-c app delegate detection --- plugin/src/ios/withReactNativeBatchAppDelegate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/ios/withReactNativeBatchAppDelegate.ts b/plugin/src/ios/withReactNativeBatchAppDelegate.ts index eb4cc0e..dce118b 100644 --- a/plugin/src/ios/withReactNativeBatchAppDelegate.ts +++ b/plugin/src/ios/withReactNativeBatchAppDelegate.ts @@ -51,5 +51,5 @@ export const modifyAppDelegate = (content: string): string => { }; const isObjCDelegate = (content: string): boolean => { - return content.includes('@interface AppDelegate () '); + return content.includes('@implementation AppDelegate'); }; From 9f3ade732fffe097a16d9482022809883aefbcf2 Mon Sep 17 00:00:00 2001 From: Thomas Mengelatte Date: Fri, 23 May 2025 15:03:04 +0200 Subject: [PATCH 2/2] all: bump version to 10.1.1 --- CHANGELOG.md | 7 +++++++ .../main/java/com/batch/batch_rn/RNBatchModuleImpl.java | 2 +- ios/RNBatch.h | 2 +- package.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 272dfe9..dd57ade 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +10.1.1 +---- + +**Expo** +- Fixed an issue preventing Expo from pre-building on iOS + + 10.1.0 ---- diff --git a/android/src/main/java/com/batch/batch_rn/RNBatchModuleImpl.java b/android/src/main/java/com/batch/batch_rn/RNBatchModuleImpl.java index 7483be9..d840478 100644 --- a/android/src/main/java/com/batch/batch_rn/RNBatchModuleImpl.java +++ b/android/src/main/java/com/batch/batch_rn/RNBatchModuleImpl.java @@ -54,7 +54,7 @@ public class RNBatchModuleImpl { private static final String PLUGIN_VERSION_ENVIRONMENT_VARIABLE = "batch.plugin.version"; - public static final String PLUGIN_VERSION = "ReactNative/10.0.1"; + public static final String PLUGIN_VERSION = "ReactNative/10.1.1"; public static final String LOGGER_TAG = "RNBatchBridge"; diff --git a/ios/RNBatch.h b/ios/RNBatch.h index 8122a46..221bba2 100644 --- a/ios/RNBatch.h +++ b/ios/RNBatch.h @@ -1,7 +1,7 @@ #import #import -#define PluginVersion "ReactNative/10.1.0" +#define PluginVersion "ReactNative/10.1.1" #ifdef RCT_NEW_ARCH_ENABLED #import diff --git a/package.json b/package.json index cef600c..78d413e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@batch.com/react-native-plugin", - "version": "10.1.0", + "version": "10.1.1", "description": "Batch.com React-Native Plugin", "homepage": "https://github.com/BatchLabs/Batch-React-Native-Plugin", "main": "dist/Batch.js",