Skip to content

Commit

Permalink
[GH-587] Add missing files for old arch on Android (#588)
Browse files Browse the repository at this point in the history
* [GH-587] Add missing files for old arch on Android

* Release 19.3.1
  • Loading branch information
rlepinski authored Sep 5, 2024
1 parent 84bc7c5 commit 5d4737f
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
Original file line number Diff line number Diff line change
@@ -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<T extends View, U extends BaseViewManagerInterface<T> & RTNAirshipEmbeddedViewManagerInterface<T>> extends BaseViewManagerDelegate<T, U> {
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);
}
}
}
Original file line number Diff line number Diff line change
@@ -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<T extends View> {
void setEmbeddedId(T view, @Nullable String value);
}
2 changes: 1 addition & 1 deletion ios/AirshipReactNative.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 5d4737f

Please sign in to comment.