@rownd/react-native 2.11.5 → 3.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,7 +16,7 @@ npm install @rownd/react-native
16
16
 
17
17
  ### Expo development
18
18
 
19
- 1. Add `@rownd/native` as a plugin to your `app.json` file.
19
+ 1. Add `@rownd/react-native` as a plugin to your `app.json` file.
20
20
 
21
21
  ```json
22
22
  {
@@ -54,9 +54,7 @@ npx expo install expo-build-properties
54
54
  }
55
55
  ```
56
56
 
57
- 4. Install Sodium (iOS Framework). [Step 2 for iOS](#ios)
58
-
59
- 5. (optional) Enable Apple sign-in for iOS in your `app.json` file.
57
+ 4. (optional) Enable Apple sign-in for iOS in your `app.json` file.
60
58
 
61
59
  ```json
62
60
  {
@@ -66,7 +64,7 @@ npx expo install expo-build-properties
66
64
  }
67
65
  ```
68
66
 
69
- 6. (optional) Enable Google sign-in for iOS. Add your Google IOS Client ID client as a URL Scheme in your `app.json` file.
67
+ 5. (optional) Enable Google sign-in for iOS. Add your Google IOS Client ID client as a URL Scheme in your `app.json` file.
70
68
 
71
69
  ```json
72
70
  {
@@ -127,26 +125,7 @@ public class MainActivity extends ReactActivity {
127
125
  platform :ios, '14.0'
128
126
  ```
129
127
 
130
- 2. Add the code below to install the Sodium pod dependency correctly. Place inside the target. File: _ios/Podfile_
131
-
132
- ```
133
- dynamic_frameworks = ['Sodium']
134
- pre_install do |installer|
135
- installer.pod_targets.each do |pod|
136
- if dynamic_frameworks.include?(pod.name)
137
- puts "Overriding the dynamic_framework? method for #{pod.name}"
138
- def pod.dynamic_framework?;
139
- true
140
- end
141
- def pod.build_type;
142
- Pod::BuildType.dynamic_framework
143
- end
144
- end
145
- end
146
- end
147
- ```
148
-
149
- 3. Install the Rownd pod and it's dependencies
128
+ 2. Install the Rownd pod and it's dependencies
150
129
 
151
130
  ```sh
152
131
  cd ios && pod install
@@ -136,7 +136,7 @@ dependencies {
136
136
  //noinspection GradleDynamicVersion
137
137
  implementation "com.facebook.react:react-native:+"
138
138
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
139
- implementation 'io.rownd:android:2.6.1'
139
+ implementation 'io.rownd:android:2.6.3'
140
140
  implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2"
141
141
  implementation 'androidx.compose.ui:ui-unit:1.3.0'
142
142
  implementation 'androidx.compose.ui:ui-graphics:1.3.0'
package/expo/plugin.js CHANGED
@@ -1,4 +1,4 @@
1
- const { withMainActivity } = require('expo/config-plugins');
1
+ const { withMainActivity, withInfoPlist } = require('expo/config-plugins');
2
2
 
3
3
  const withRowndMainActivity = (config) => {
4
4
  return withMainActivity(config, async (config) => {
@@ -36,4 +36,26 @@ const withRowndMainActivity = (config) => {
36
36
  });
37
37
  };
38
38
 
39
- module.exports.withRowndSDK = (config) => withRowndMainActivity(config);
39
+ const withRowndPlist = (config) => {
40
+ return withInfoPlist(config, async (config) => {
41
+ const LSApplicationQueriesSchemes =
42
+ config.modResults?.LSApplicationQueriesSchemes || [];
43
+ const additionalSchemes = ['googlegmail', 'ms-outlook', 'ymail'];
44
+ additionalSchemes.forEach((scheme) => {
45
+ if (!LSApplicationQueriesSchemes.includes(scheme)) {
46
+ LSApplicationQueriesSchemes.push(scheme);
47
+ }
48
+ });
49
+
50
+ return {
51
+ ...config,
52
+ modResults: {
53
+ ...config?.modResults,
54
+ LSApplicationQueriesSchemes,
55
+ },
56
+ };
57
+ });
58
+ };
59
+
60
+ module.exports.withRowndSDK = (config) =>
61
+ withRowndMainActivity(withRowndPlist(config));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rownd/react-native",
3
- "version": "2.11.5",
3
+ "version": "3.0.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", "~> 2.8.2"
20
+ s.dependency "Rownd", "~> 3.0.0"
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