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 +15 -0
- package/ReactAmwalPay.podspec +3 -1
- package/package.json +1 -1
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
|

|
|
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
|
package/ReactAmwalPay.podspec
CHANGED
|
@@ -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
|
-
|
|
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
|