@rownd/react-native 2.3.0 → 2.4.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
@@ -15,39 +15,50 @@ npm install @rownd/react-native
15
15
 
16
16
  ### Android
17
17
 
18
- ```sh
19
- cd android
18
+ 1. Ensure the Sdk versions match or are above provided versions. File: *android/build.gradle*
19
+ ```
20
+ ext {
21
+ ...
22
+ minSdkVersion = 26
23
+ compileSdkVersion = 32
24
+ targetSdkVersion = 31
25
+ ...
26
+ }
20
27
  ```
28
+ 2. Install the Rownd library and dependencies.
21
29
  ```sh
22
- ./gradlew build
30
+ cd android && ./gradlew build
23
31
  ```
24
32
 
25
33
  ### iOS
26
34
 
27
- Add the code below to ios/Podfile. Place inside target
35
+ 1. Ensure iOS version is at least 14. File: *ios/Podfile*
36
+
37
+ ```
38
+ platform :ios, '14.0'
39
+ ```
40
+
41
+ 2. Add the code below to install the Sodium pod dependency correctly. Place inside the target. File: *ios/Podfile*
28
42
  ```
29
43
  dynamic_frameworks = ['Sodium']
30
- pre_install do |installer|
31
- installer.pod_targets.each do |pod|
32
- if dynamic_frameworks.include?(pod.name)
33
- puts "Overriding the dynamic_framework? method for #{pod.name}"
34
- def pod.dynamic_framework?;
35
- true
36
- end
37
- def pod.build_type;
38
- Pod::BuildType.dynamic_framework
39
- end
44
+ pre_install do |installer|
45
+ installer.pod_targets.each do |pod|
46
+ if dynamic_frameworks.include?(pod.name)
47
+ puts "Overriding the dynamic_framework? method for #{pod.name}"
48
+ def pod.dynamic_framework?;
49
+ true
50
+ end
51
+ def pod.build_type;
52
+ Pod::BuildType.dynamic_framework
40
53
  end
41
54
  end
42
55
  end
56
+ end
43
57
  ```
44
- On command line run:
58
+ 3. Install the Rownd pod and it's dependencies
45
59
 
46
60
  ```sh
47
- cd ios
48
- ```
49
- ```sh
50
- pod install
61
+ cd ios && pod install
51
62
  ```
52
63
 
53
64
  ## Setup
@@ -143,13 +154,9 @@ Retrieves the active, valid access token for the current user. 
143
154
  ```javascript
144
155
  const { getAccessToken } = useRownd();
145
156
 
146
- let accessToken = await getAccessToken({
147
- waitForToken: false
148
- });
157
+ let accessToken = await getAccessToken(=);
149
158
  ```
150
159
 
151
- * `waitForToken: boolean` - when `true`, if no access token is present or if it's expired, the promise will not resolve until a valid token is available. While unlikely, this could result in waiting forever.
152
-
153
160
  #### is\_authenticated
154
161
 
155
162
  Indicates whether the current user is signed in or not.
@@ -1,7 +1,4 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <Workspace
3
3
  version = "1.0">
4
- <FileRef
5
- location = "self:">
6
- </FileRef>
7
4
  </Workspace>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rownd/react-native",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "test",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "Rownd", "~> 1.9.1"
20
+ s.dependency "Rownd", "~> 1.10.2"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>IDEDidComputeMac32BitWarning</key>
6
- <true/>
7
- </dict>
8
- </plist>
@@ -1,14 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>SchemeUserState</key>
6
- <dict>
7
- <key>ReactNative.xcscheme_^#shared#^_</key>
8
- <dict>
9
- <key>orderHint</key>
10
- <integer>0</integer>
11
- </dict>
12
- </dict>
13
- </dict>
14
- </plist>