diff --git a/CHANGELOG.md b/CHANGELOG.md index ce41a4e9..5d22f665 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # React Native Module Changelog +## Version 19.3.1 - September 5, 2024 +Patch release to fix compile issue with 19.3.0 when using the old architecture on Android. + +### Changes +- Fix compile issue when using old architecture on Android + ## Version 19.3.0 - August 30, 2024 Minor release that adds early access support for Embedded Content. diff --git a/android/src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerDelegate.java b/android/src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerDelegate.java new file mode 100644 index 00000000..dafdb386 --- /dev/null +++ b/android/src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerDelegate.java @@ -0,0 +1,31 @@ +/** +* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). +* +* Do not edit this file as changes may cause incorrect behavior and will be lost +* once the code is regenerated. +* +* @generated by codegen project: GeneratePropsJavaDelegate.js +*/ + +package com.facebook.react.viewmanagers; + +import android.view.View; +import androidx.annotation.Nullable; +import com.facebook.react.uimanager.BaseViewManagerDelegate; +import com.facebook.react.uimanager.BaseViewManagerInterface; + +public class RTNAirshipEmbeddedViewManagerDelegate & RTNAirshipEmbeddedViewManagerInterface> extends BaseViewManagerDelegate { + public RTNAirshipEmbeddedViewManagerDelegate(U viewManager) { + super(viewManager); + } + @Override + public void setProperty(T view, String propName, @Nullable Object value) { + switch (propName) { + case "embeddedId": + mViewManager.setEmbeddedId(view, value == null ? null : (String) value); + break; + default: + super.setProperty(view, propName, value); + } + } +} diff --git a/android/src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerInterface.java b/android/src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerInterface.java new file mode 100644 index 00000000..dbed3d7b --- /dev/null +++ b/android/src/oldarch/java/com/facebook/react/viewmanagers/RTNAirshipEmbeddedViewManagerInterface.java @@ -0,0 +1,17 @@ +/** +* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). +* +* Do not edit this file as changes may cause incorrect behavior and will be lost +* once the code is regenerated. +* +* @generated by codegen project: GeneratePropsJavaInterface.js +*/ + +package com.facebook.react.viewmanagers; + +import android.view.View; +import androidx.annotation.Nullable; + +public interface RTNAirshipEmbeddedViewManagerInterface { + void setEmbeddedId(T view, @Nullable String value); +} diff --git a/ios/AirshipReactNative.swift b/ios/AirshipReactNative.swift index e67ae90b..61c79ca9 100644 --- a/ios/AirshipReactNative.swift +++ b/ios/AirshipReactNative.swift @@ -38,7 +38,7 @@ public class AirshipReactNative: NSObject { AirshipProxy.shared } - public static let version: String = "19.3.0" + public static let version: String = "19.3.1" private let eventNotifier = EventNotifier() diff --git a/package.json b/package.json index 50d0a853..e6635025 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ua/react-native-airship", - "version": "19.3.0", + "version": "19.3.1", "description": "Airship plugin for React Native apps.", "main": "lib/commonjs/index", "module": "lib/module/index",