react-native-rate-app 1.5.2 → 2.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
@@ -16,12 +16,14 @@
16
16
  </a>
17
17
  </p>
18
18
 
19
+ > **v2 is here:** Version 2 supports **only the New Architecture**. Versions older than v2 are **no longer maintained**.
20
+
19
21
  ## Features
20
22
 
21
23
  - 🚀 Easy integration with React Native projects
22
24
  - 🔄 Cross-platform support (iOS and Android)
23
25
  - 📱 Supports Android 5+ (API level 21+) and iOS 14+
24
- - 🏗️ Supports the new architecture for React Native
26
+ - 🏗️ New Architecture only
25
27
  - 🛒 Supports multiple app stores:
26
28
  - Google Play Store
27
29
  - Samsung Galaxy Store
@@ -40,8 +42,8 @@ npm install react-native-rate-app
40
42
 
41
43
  ## Compatibility
42
44
 
43
- - React Native <0.76, use version 1.2.2 or below
44
- - React Native >=0.76, use version 1.2.3 or later
45
+ - **v2:** New Architecture only. No legacy architecture support.
46
+ - **v1.x and below:** **No longer maintained.** Most v1 versions are not compatible with recent React Native versions.
45
47
 
46
48
  ## Expo
47
49
 
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
 
3
- import { withInfoPlist, withXcodeProject } from '@expo/config-plugins';
3
+ import configPlugins from '@expo/config-plugins';
4
+ const {
5
+ withInfoPlist,
6
+ withXcodeProject
7
+ } = configPlugins;
4
8
 
5
9
  /**
6
10
  * Modifies the `Info.plist` file to add `LSApplicationQueriesSchemes`,
@@ -1 +1 @@
1
- {"version":3,"names":["withInfoPlist","withXcodeProject","withCustomInfoPlist","config","modResults","LSApplicationQueriesSchemes","includes","push","withStoreKitFramework","addFramework","required","withReactNativeRateApp","configWithInfoPlist","configWithStoreKit"],"sourceRoot":"../../../src","sources":["plugin/withReactNativeRateApp.ts"],"mappings":";;AAAA,SAEEA,aAAa,EACbC,gBAAgB,QACX,sBAAsB;;AAE7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,mBAAiC,GAAIC,MAAM,IAAK;EACpD,OAAOH,aAAa,CAACG,MAAM,EAAGA,MAAM,IAAK;IACvC,IAAI,CAACA,MAAM,CAACC,UAAU,CAACC,2BAA2B,EAAE;MAClDF,MAAM,CAACC,UAAU,CAACC,2BAA2B,GAAG,EAAE;IACpD;IACA,IAAI,CAACF,MAAM,CAACC,UAAU,CAACC,2BAA2B,CAACC,QAAQ,CAAC,WAAW,CAAC,EAAE;MACxEH,MAAM,CAACC,UAAU,CAACC,2BAA2B,CAACE,IAAI,CAAC,WAAW,CAAC;IACjE;IACA,OAAOJ,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMK,qBAAmC,GAAIL,MAAM,IAAK;EACtD,OAAOF,gBAAgB,CAACE,MAAM,EAAGA,MAAM,IAAK;IAC1CA,MAAM,CAACC,UAAU,CAACK,YAAY,CAAC,oBAAoB,EAAE;MAAEC,QAAQ,EAAE;IAAK,CAAC,CAAC;IACxE,OAAOP,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMQ,sBAAoC,GAAIR,MAAM,IAAK;EACvD,MAAMS,mBAAmB,GAAGV,mBAAmB,CAACC,MAAM,CAAC;EACvD,MAAMU,kBAAkB,GAAGL,qBAAqB,CAACI,mBAAmB,CAAC;EACrE,OAAOC,kBAAkB;AAC3B,CAAC;AAED,eAAeF,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["configPlugins","withInfoPlist","withXcodeProject","withCustomInfoPlist","config","modResults","LSApplicationQueriesSchemes","includes","push","withStoreKitFramework","addFramework","required","withReactNativeRateApp","configWithInfoPlist","configWithStoreKit"],"sourceRoot":"../../../src","sources":["plugin/withReactNativeRateApp.ts"],"mappings":";;AAAA,OAAOA,aAAa,MAA6B,sBAAsB;AAEvE,MAAM;EAAEC,aAAa;EAAEC;AAAiB,CAAC,GAAGF,aAAa;;AAEzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMG,mBAAiC,GAAIC,MAAM,IAAK;EACpD,OAAOH,aAAa,CAACG,MAAM,EAAGA,MAAM,IAAK;IACvC,IAAI,CAACA,MAAM,CAACC,UAAU,CAACC,2BAA2B,EAAE;MAClDF,MAAM,CAACC,UAAU,CAACC,2BAA2B,GAAG,EAAE;IACpD;IACA,IAAI,CAACF,MAAM,CAACC,UAAU,CAACC,2BAA2B,CAACC,QAAQ,CAAC,WAAW,CAAC,EAAE;MACxEH,MAAM,CAACC,UAAU,CAACC,2BAA2B,CAACE,IAAI,CAAC,WAAW,CAAC;IACjE;IACA,OAAOJ,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMK,qBAAmC,GAAIL,MAAM,IAAK;EACtD,OAAOF,gBAAgB,CAACE,MAAM,EAAGA,MAAM,IAAK;IAC1CA,MAAM,CAACC,UAAU,CAACK,YAAY,CAAC,oBAAoB,EAAE;MAAEC,QAAQ,EAAE;IAAK,CAAC,CAAC;IACxE,OAAOP,MAAM;EACf,CAAC,CAAC;AACJ,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMQ,sBAAoC,GAAIR,MAAM,IAAK;EACvD,MAAMS,mBAAmB,GAAGV,mBAAmB,CAACC,MAAM,CAAC;EACvD,MAAMU,kBAAkB,GAAGL,qBAAqB,CAACI,mBAAmB,CAAC;EACrE,OAAOC,kBAAkB;AAC3B,CAAC;AAED,eAAeF,sBAAsB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"withReactNativeRateApp.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withReactNativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EAGlB,MAAM,sBAAsB,CAAC;AAmC9B;;;;;;GAMG;AACH,QAAA,MAAM,sBAAsB,EAAE,YAI7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"withReactNativeRateApp.d.ts","sourceRoot":"","sources":["../../../../src/plugin/withReactNativeRateApp.ts"],"names":[],"mappings":"AAAA,OAAsB,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAqCxE;;;;;;GAMG;AACH,QAAA,MAAM,sBAAsB,EAAE,YAI7B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rate-app",
3
- "version": "1.5.2",
3
+ "version": "2.0.0",
4
4
  "description": "React Native module for In App Rating on Android and iOS",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -1,8 +1,6 @@
1
- import {
2
- type ConfigPlugin,
3
- withInfoPlist,
4
- withXcodeProject,
5
- } from '@expo/config-plugins';
1
+ import configPlugins, { type ConfigPlugin } from '@expo/config-plugins';
2
+
3
+ const { withInfoPlist, withXcodeProject } = configPlugins;
6
4
 
7
5
  /**
8
6
  * Modifies the `Info.plist` file to add `LSApplicationQueriesSchemes`,