react-native-notify-kit 10.4.2 → 10.4.4

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
@@ -48,8 +48,8 @@ This fork fills the gap: it preserves all of Notifee's advanced features, migrat
48
48
  - iOS FCM Mode Notification Service Extension automation via config plugin.
49
49
  - Android foreground service manifest configuration via config plugin, with explicit opt-in for foreground service types.
50
50
  - Android Expo FCM smoke validation using RNFirebase data-only messages and `notifee.handleFcmMessage`.
51
- - Minimum supported React Native: `0.73`
52
- - Development target: React Native `0.84`
51
+ - Minimum supported React Native: `>=0.73`
52
+ - Development target: React Native `0.85.3`
53
53
  - License: `Apache-2.0`
54
54
  - Full changelog: [CHANGELOG.md](CHANGELOG.md)
55
55
 
@@ -432,8 +432,9 @@ This fork is a complete migration to React Native's **New Architecture**:
432
432
  - **TurboModules only** — no legacy Bridge support (`NativeModules` replaced with `TurboModuleRegistry`)
433
433
  - **Android bridge rewritten in Kotlin** (original was Java)
434
434
  - **iOS bridge uses Objective-C++** with `NativeNotifeeModuleSpecJSI` TurboModule conformance
435
- - **Minimum React Native 0.73**, development target **0.84**
436
- - **Toolchain**: Yarn 4, Node 22+, Java 17, compileSdk/targetSdk 35
435
+ - **Minimum React Native >=0.73**, development target **0.85.3**
436
+ - **Toolchain**: Yarn 4, Node 22+, JDK 17+ for Android builds, library Android module compileSdk/targetSdk 35
437
+ - **Android JDK baseline**: JDK 17 and JDK 21 are the validated Android build baselines; newer JDKs are not blocked by NotifyKit but depend on the consumer Android toolchain
437
438
  - **Single Android module** — the original Notifee shipped a pre-compiled AAR bundled inside the npm tarball under a frozen Maven coordinate; this fork compiles the core from source as part of the React Native bridge module on every consumer build. Eliminates the `FAIL_ON_PROJECT_REPOS` issue on RN 0.74+ and the Gradle cache staleness bug that could serve outdated bytecode after `yarn upgrade`.
438
439
  - **Expo CNG development builds** — iOS FCM Mode NSE automation and Android foreground service manifest configuration are available through the config plugin. Android Expo FCM smoke validation uses RNFirebase data-only messages plus `notifee.handleFcmMessage`.
439
440
  - **Core notification logic (NotifeeCore) is unchanged** — the public API is fully compatible with the original Notifee
@@ -25,16 +25,30 @@ plugins {
25
25
 
26
26
  ext {
27
27
  jvmVersion = Jvm.current().javaVersion.majorVersion
28
- if (jvmVersion != "8" && jvmVersion != "11" && jvmVersion != "17" && jvmVersion != "21") {
28
+ jvmMajorVersion = jvmVersion.toInteger()
29
+ if (jvmMajorVersion < 17) {
29
30
  println "\n\n\n"
30
31
  println "**************************************************************************************************************"
31
32
  println "\n\n\n"
32
- println "ERROR: Notifee builds with JVM LTS and current releases (currently major version 11, 17, or 21)."
33
+ println "ERROR: Notifee requires JDK 17 or newer to build on Android."
34
+ println " Obsolete Java versions such as 8 and 11 are not supported."
33
35
  println " Incompatible major version detected: '" + jvmVersion + "'"
34
36
  println "\n\n\n"
35
37
  println "**************************************************************************************************************"
36
38
  println "\n\n\n"
37
- System.exit(1)
39
+ throw new GradleException("Notifee requires JDK 17 or newer to build on Android. Detected Java major version '" + jvmVersion + "'.")
40
+ }
41
+ if (jvmMajorVersion != 17 && jvmMajorVersion != 21) {
42
+ println "\n\n\n"
43
+ println "**************************************************************************************************************"
44
+ println "\n\n\n"
45
+ println "WARNING: Notifee Android builds are validated with JDK 17 and JDK 21."
46
+ println " Detected Java major version: '" + jvmVersion + "'."
47
+ println " The build will continue, but compatibility depends on the consumer Gradle, AGP, Kotlin, and React Native toolchain."
48
+ println " Use JDK 17 or JDK 21 for a stable build baseline."
49
+ println "\n\n\n"
50
+ println "**************************************************************************************************************"
51
+ println "\n\n\n"
38
52
  }
39
53
  }
40
54
 
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "10.4.2";
1
+ export declare const version = "10.4.4";
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '10.4.2';
2
+ export const version = '10.4.4';
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-notify-kit",
3
- "version": "10.4.2",
3
+ "version": "10.4.4",
4
4
  "author": "Marco Crupi",
5
5
  "description": "Maintained Notifee-compatible React Native notifications library for Android, iOS, FCM Mode, rich notifications, foreground services, and Expo CNG development builds.",
6
6
  "main": "dist/index.js",
@@ -43,13 +43,14 @@
43
43
  "devDependencies": {
44
44
  "@babel/preset-env": "^7.25.3",
45
45
  "@babel/runtime": "^7.25.0",
46
- "@react-native/babel-preset": "0.84.1",
46
+ "@react-native/babel-preset": "0.85.3",
47
+ "@react-native/jest-preset": "0.85.3",
47
48
  "@types/jest": "^29.5.13",
48
49
  "babel-jest": "^29.7.0",
49
50
  "genversion": "^3.0.2",
50
51
  "jest": "^29.7.0",
51
52
  "prettier": "^3.8.1",
52
- "react-native": "0.84.1",
53
+ "react-native": "0.85.3",
53
54
  "rimraf": "^3.0.2",
54
55
  "ts-jest": "^29.2.5",
55
56
  "typescript": "^5.9.3"
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '10.4.2';
2
+ export const version = '10.4.4';