This repository was archived by the owner on Mar 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ React Native SDK for Cryptr Authentication through SSO
7
7
- [ @cryptr/cryptr-react-native ] ( #cryptrcryptr-react-native )
8
8
- [ Summary] ( #summary )
9
9
- [ Expo integration] ( #expo-integration )
10
+ - [ Cryptr Expo plugin for Android] ( #cryptr-expo-plugin-for-android )
10
11
- [ Prerequisites] ( #prerequisites )
11
12
- [ Android] ( #android )
12
13
- [ iOS] ( #ios )
@@ -32,7 +33,26 @@ React Native SDK for Cryptr Authentication through SSO
32
33
33
34
## Expo integration
34
35
35
- :warning : this is not compatible with Expo Go (neither ` link ` ) and requires a run (` expo run ` )
36
+ :warning : this is straightforward compatible with Expo
37
+
38
+ Here is an example of a plugin to be compatible with Expo for Android manifest configuration
39
+
40
+ ### Cryptr Expo plugin for Android
41
+
42
+ ``` js
43
+ const { withAppBuildGradle } = require (" @expo/config-plugins" );
44
+
45
+ module .exports = function withAndroidStrategiesPlugin (config ) {
46
+ return withAppBuildGradle (config, (config ) => {
47
+ config .modResults .contents = config .modResults .contents .replace (
48
+ " targetSdkVersion rootProject.ext.targetSdkVersion" ,
49
+ ' targetSdkVersion rootProject.ext.targetSdkVersion\n manifestPlaceholders = [cryptrDomain: YOUR-DOMAIN, cryptrScheme: "cryptr"]'
50
+ );
51
+
52
+ return config;
53
+ });
54
+ };
55
+ ```
36
56
37
57
## Prerequisites
38
58
You can’t perform that action at this time.
0 commit comments