@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 +31 -24
- package/ios/Rownd.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -3
- package/package.json +1 -1
- package/rownd-react-native.podspec +1 -1
- package/ios/Rownd.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/ios/Rownd.xcodeproj/project.xcworkspace/xcuserdata/mhamann.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/Rownd.xcodeproj/xcuserdata/mhamann.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
package/README.md
CHANGED
|
@@ -15,39 +15,50 @@ npm install @rownd/react-native
|
|
|
15
15
|
|
|
16
16
|
### Android
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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.
|
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
|
Binary file
|
package/ios/Rownd.xcodeproj/xcuserdata/mhamann.xcuserdatad/xcschemes/xcschememanagement.plist
DELETED
|
@@ -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>
|