react-amwal-pay 0.1.6 → 0.1.8

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
@@ -20,6 +20,21 @@ After pod installation, you need to set "Build Libraries for Distribution" to NO
20
20
 
21
21
  ![Build Libraries Setting](https://github.com/amwal-pay/AnwalPaySDKReactNative/raw/master/docs/images/ios_install_note.png)
22
22
 
23
+ #### Configuring amwalsdk Subspec
24
+
25
+ The library uses amwalsdk as a dependency and supports both Release and Debug subspecs. By default, it uses the Debug subspec. To change this, you can set the `AMWAL_SUBSPEC` environment variable in your Podfile:
26
+
27
+ ```ruby
28
+ # In your Podfile
29
+ ENV['AMWAL_SUBSPEC'] = 'Release' # or 'Debug'
30
+ ```
31
+
32
+ Or you can set it when running pod install:
33
+
34
+ ```bash
35
+ AMWAL_SUBSPEC=Release pod install
36
+ ```
37
+
23
38
  ## Usage
24
39
 
25
40
  ```js
@@ -16,6 +16,8 @@ Pod::Spec.new do |s|
16
16
  s.source_files = "ios/**/*.{h,m,mm,swift}"
17
17
  s.private_header_files = "ios/**/*.h"
18
18
 
19
- s.dependency "amwalsdk"
19
+ # Default to Release subspec
20
+ amwal_subspec = ENV['AMWAL_SUBSPEC'] || 'Debug'
21
+ s.dependency "amwalsdk/#{amwal_subspec}"
20
22
  install_modules_dependencies(s)
21
23
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-amwal-pay",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "amwal pay",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",