Skip to content

Commit 44b9de2

Browse files
authored
Merge pull request #152 from appodeal/release/3.10.1
Release/3.10.1
2 parents 6b93d72 + 5c08510 commit 44b9de2

8 files changed

Lines changed: 28 additions & 17 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 3.10.1
4+
5+
### Features
6+
7+
- **React Native 0.81.4 Support**: Added compatibility with React Native 0.81.4 by updating dependencies and resolving naming conflicts
8+
9+
### Fixes
10+
11+
- **Android Kotlin Naming Conflicts**: Fixed parameter naming conflicts in `RCTAppodealBannerView` and `RCTAppodealMrecView` by renaming `eventName` parameter to `eventNameParam` to avoid collision with `getEventName()` method ([#151](https://github.com/appodeal/react-native-appodeal/issues/151))
12+
13+
314
## 3.10.0
415

516
### Fixes

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Official Appodeal React Native Plugin for your React Native application.
44

5-
## Appodeal SDK 3.10.0
5+
## Appodeal SDK 3.10.1
66

77
- **Google CMP and TCF v2 Support**
88
- To enhance the relevance of ads for your users and comply with regulations like GDPR and CCPA,
@@ -37,10 +37,10 @@ Official Appodeal React Native Plugin for your React Native application.
3737
## Migration Guide
3838

3939
> [!IMPORTANT]
40-
> **Migrating from version 3.5.0 to 3.10.0** This is a major update with breaking changes.
40+
> **Migrating from version 3.5.0 to 3.10.1** This is a major update with breaking changes.
4141
> Please read our [Migration Guide](MIGRATION_GUIDE.md) carefully before updating.
4242
43-
**Key Changes in 3.10.0:**
43+
**Key Changes in 3.10.1:**
4444
- Updated to Appodeal SDK 3.10.0
4545
- Migrated to React Native Turbo Modules
4646
- New Architecture support (Fabric + TurboModules)

android/src/main/java/com/appodeal/rnappodeal/RCTAppodealBannerView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ class RCTAppodealBannerView(context: Context) : ReactViewGroup(context), RNAppod
125125
private class OnViewEvent(
126126
surfaceId: Int,
127127
viewId: Int,
128-
private val eventName: String,
128+
private val eventNameParam: String,
129129
private val payload: WritableMap?
130130
) : Event<OnViewEvent>(surfaceId, viewId) {
131-
override fun getEventName(): String = eventName
131+
override fun getEventName(): String = eventNameParam
132132
override fun getEventData(): WritableMap? {
133133
// Create a copy to avoid ObjectAlreadyConsumedException
134134
if (payload == null) return null

android/src/main/java/com/appodeal/rnappodeal/RCTAppodealMrecView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ class RCTAppodealMrecView(context: Context) : ReactViewGroup(context), RNAppodea
116116
private class OnViewEvent(
117117
surfaceId: Int,
118118
viewId: Int,
119-
private val eventName: String,
119+
private val eventNameParam: String,
120120
private val payload: WritableMap?
121121
) : Event<OnViewEvent>(surfaceId, viewId) {
122-
override fun getEventName(): String = eventName
122+
override fun getEventName(): String = eventNameParam
123123
override fun getEventData(): WritableMap? {
124124
// Create a copy to avoid ObjectAlreadyConsumedException
125125
if (payload == null) return null

example/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"dependencies": {
1313
"react": "19.0.0",
14-
"react-native": "0.79.2"
14+
"react-native": "0.81.4"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.25.2",
@@ -20,9 +20,9 @@
2020
"@react-native-community/cli": "18.0.0",
2121
"@react-native-community/cli-platform-android": "18.0.0",
2222
"@react-native-community/cli-platform-ios": "18.0.0",
23-
"@react-native/babel-preset": "0.79.2",
24-
"@react-native/metro-config": "0.79.2",
25-
"@react-native/typescript-config": "0.79.2",
23+
"@react-native/babel-preset": "0.81.4",
24+
"@react-native/metro-config": "0.81.4",
25+
"@react-native/typescript-config": "0.81.4",
2626
"@types/react": "^19.0.0",
2727
"react-native-builder-bob": "^0.40.12",
2828
"react-native-monorepo-config": "^0.1.9"

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-appodeal",
3-
"version": "3.10.0",
3+
"version": "3.10.1",
44
"description": "React Native Module created to support Appodeal SDK for iOS and Android platforms",
55
"main": "./lib/module/index.js",
66
"types": "./lib/typescript/src/index.d.ts",
@@ -82,7 +82,7 @@
8282
"@eslint/js": "^9.22.0",
8383
"@evilmartians/lefthook": "^1.5.0",
8484
"@react-native-community/cli": "15.0.0-alpha.2",
85-
"@react-native/babel-preset": "0.79.2",
85+
"@react-native/babel-preset": "0.81.4",
8686
"@react-native/eslint-config": "^0.78.0",
8787
"@release-it/conventional-changelog": "^9.0.2",
8888
"@types/jest": "^29.5.5",
@@ -95,7 +95,7 @@
9595
"jest": "^29.7.0",
9696
"prettier": "^3.0.3",
9797
"react": "19.0.0",
98-
"react-native": "0.79.2",
98+
"react-native": "0.81.4",
9999
"react-native-builder-bob": "^0.40.12",
100100
"release-it": "^17.10.0",
101101
"turbo": "^1.10.7",

src/RNAppodeal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export interface Appodeal {
240240
/**
241241
* Plugin version constant
242242
*/
243-
const PLUGIN_VERSION = '3.10.0';
243+
const PLUGIN_VERSION = '3.10.1';
244244

245245
/**
246246
* Appodeal SDK implementation

src/__tests__/appodeal.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ describe('Appodeal SDK', () => {
240240
});
241241

242242
it('should return correct plugin version', () => {
243-
expect(Appodeal.getVersion()).toBe('3.10.0');
243+
expect(Appodeal.getVersion()).toBe('3.10.1');
244244
});
245245

246246
it('should handle consent methods correctly', async () => {
@@ -626,7 +626,7 @@ describe('Appodeal SDK', () => {
626626
expect(mockNativeAppodeal.initialize).toHaveBeenCalledWith(
627627
'test-key',
628628
combinedTypes,
629-
'3.10.0'
629+
'3.10.1'
630630
);
631631
expect(mockNativeAppodeal.cache).toHaveBeenCalledWith(combinedTypes);
632632
expect(mockNativeAppodeal.setAutoCache).toHaveBeenCalledWith(

0 commit comments

Comments
 (0)