@ua/react-native-airship 23.1.1 → 24.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,26 @@
2
2
 
3
3
  A React Native module for Airship's iOS and Android SDK.
4
4
 
5
+
6
+ ## Supported versions
7
+
8
+ | RN Version | Airship RN Version | Support level |
9
+ | --------------- | -------------------------- | ------------- |
10
+ | 0.79.x | 24.x | Active |
11
+ | 0.78.x | 23.x | Active |
12
+ | 0.78.x | 22.x | End of Cycle |
13
+ | 0.77.x | 21.x | End of Cycle |
14
+ | 0.70.x<=0.76.x | 21.x | Unsupported |
15
+
16
+ Airship adheres to the [React Native Support Policy](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md)
17
+ and will support at least two major React Native versions at any given time.
18
+
19
+ Not every React Native version update will require a new major release of Airship. In some cases, multiple major versions
20
+ of Airship may support the same React Native version. When a new major version of Airship is released for an already-supported
21
+ React Native version, the previous version will enter [End of Cycle](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md#what-level-of-support-can-be-expected)
22
+ status.
23
+
24
+
5
25
  ### Resources
6
26
 
7
27
  * [Getting started guide](http://docs.airship.com/platform/react-native/)
@@ -10,3 +30,4 @@ A React Native module for Airship's iOS and Android SDK.
10
30
  ### Issues
11
31
 
12
32
  Please visit https://support.airship.com/ for any issues integrating or using this module.
33
+
@@ -11,7 +11,7 @@ buildscript {
11
11
  }
12
12
 
13
13
  dependencies {
14
- classpath "com.android.tools.build:gradle:8.7.2"
14
+ classpath "com.android.tools.build:gradle:8.7.3"
15
15
  // noinspection DifferentKotlinGradleVersion
16
16
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${getExtOrDefault('kotlinVersion')}"
17
17
  }
@@ -11,7 +11,7 @@ import com.urbanairship.android.framework.proxy.ProxyLogger
11
11
 
12
12
  class AirshipHeadlessEventService : HeadlessJsTaskService() {
13
13
 
14
- override fun getTaskConfig(intent: Intent): HeadlessJsTaskConfig? {
14
+ override fun getTaskConfig(intent: Intent?): HeadlessJsTaskConfig? {
15
15
  return HeadlessJsTaskConfig(TASK_KEY, Arguments.createMap(), TASK_TIMEOUT, true)
16
16
  }
17
17
 
@@ -43,4 +43,4 @@ class AirshipHeadlessEventService : HeadlessJsTaskService() {
43
43
  return false
44
44
  }
45
45
  }
46
- }
46
+ }
@@ -13,14 +13,14 @@ class ReactEmbeddedViewManager : SimpleViewManager<ReactEmbeddedView>(),
13
13
 
14
14
  private val manualDelegate = object : ViewManagerDelegate<ReactEmbeddedView> {
15
15
 
16
- override fun setProperty(view: ReactEmbeddedView, propName: String?, value: Any?) {
16
+ override fun setProperty(view: ReactEmbeddedView, propName: String, value: Any?) {
17
17
  when (propName) {
18
18
  "embeddedId" -> setEmbeddedId(view, value as? String)
19
19
  else -> {}
20
20
  }
21
21
  }
22
22
 
23
- override fun receiveCommand(view: ReactEmbeddedView, commandName: String?, args: com.facebook.react.bridge.ReadableArray?) {
23
+ override fun receiveCommand(view: ReactEmbeddedView, commandName: String, args: com.facebook.react.bridge.ReadableArray?) {
24
24
  // No commands supported — add if you need any
25
25
  }
26
26
  }
@@ -15,14 +15,14 @@ class ReactMessageViewManager : SimpleViewManager<ReactMessageView>(),
15
15
 
16
16
  private val delegate = object : ViewManagerDelegate<ReactMessageView> {
17
17
 
18
- override fun setProperty(view: ReactMessageView, propName: String?, value: Any?) {
18
+ override fun setProperty(view: ReactMessageView, propName: String, value: Any?) {
19
19
  when (propName) {
20
20
  "messageId" -> setMessageId(view, value as? String)
21
21
  else -> {}
22
22
  }
23
23
  }
24
24
 
25
- override fun receiveCommand(view: ReactMessageView, commandName: String?, args: ReadableArray?) {
25
+ override fun receiveCommand(view: ReactMessageView, commandName: String, args: ReadableArray?) {
26
26
  // No commands implemented, add if Airship adds some in future
27
27
  }
28
28
  }
@@ -39,7 +39,7 @@ public class AirshipReactNative: NSObject {
39
39
  AirshipProxy.shared
40
40
  }
41
41
 
42
- public static let version: String = "23.1.1"
42
+ public static let version: String = "24.0.0"
43
43
 
44
44
  private let eventNotifier = EventNotifier()
45
45
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ua/react-native-airship",
3
- "version": "23.1.1",
3
+ "version": "24.0.0",
4
4
  "description": "Airship plugin for React Native apps.",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -63,8 +63,9 @@
63
63
  "@eslint/compat": "^1.2.7",
64
64
  "@eslint/eslintrc": "^3.3.0",
65
65
  "@eslint/js": "^9.22.0",
66
- "@react-native-community/cli": "15.0.1",
67
- "@react-native/eslint-config": "^0.78.0",
66
+ "@react-native-community/cli": "18.0.0",
67
+ "@react-native/eslint-config": "0.79.1",
68
+ "@react-native/babel-preset": "0.79.1",
68
69
  "@types/jest": "^29.5.5",
69
70
  "@types/react": "^19.0.0",
70
71
  "commitlint": "^19.6.1",
@@ -75,8 +76,8 @@
75
76
  "jest": "^29.7.0",
76
77
  "prettier": "^3.0.3",
77
78
  "react": "19.0.0",
78
- "react-native": "0.78.2",
79
- "react-native-builder-bob": "^0.40.3",
79
+ "react-native": "0.79.1",
80
+ "react-native-builder-bob": "^0.40.5",
80
81
  "turbo": "^1.10.7",
81
82
  "typedoc": "^0.27.9",
82
83
  "typescript": "^5.2.2"