You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+95-20Lines changed: 95 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,13 @@ To integrate this module, you'll need to configure an application.
40
40
npm install react-native-ts-authentication
41
41
```
42
42
43
-
####iOS Setup
43
+
### iOS Setup
44
44
You might need to execute `pod install` in your project's `/ios` folder and set your minimum iOS target to 15.0 in your Podfile (e.g `platform :ios, 15.0`).
45
45
46
46
* Add project Capabilities as described [iOS quick start](https://developer.transmitsecurity.com/guides/webauthn/quick_start_sdk_ios/)
47
47
* Update YOUR Bundle ID and setup associated domains as described in the [iOS quick start](https://developer.transmitsecurity.com/guides/webauthn/quick_start_sdk_ios/)
48
48
49
-
####Android Setup
49
+
### Android Setup
50
50
51
51
Add to `app/build.gradle` under repositories
52
52
@@ -58,16 +58,48 @@ repositories {
58
58
}
59
59
}
60
60
```
61
-
Note:
62
-
As for projects on Gradle 8+ and Kotlin 1.8+ build will fail if the JDK version between
63
-
compileKotlin and compileJava and jvmTarget are not aligned.
64
-
65
-
This won't be necessary anymore from React Native 0.73. More on this:
As for projects on Gradle 8+ and Kotlin 1.8+ build will fail if the JDK version between compileKotlin and compileJava and jvmTarget are not aligned.
63
+
<br>
64
+
This won't be necessary anymore from React Native 0.73. More on this: https://kotlinlang.org/docs/whatsnew18.html#obligatory-check-for-jvm-targets-of-related-kotlin-and-java-compile-tasks
67
65
68
66
## Usage
69
67
70
-
#### Module Setup
68
+
### Module Setup
69
+
70
+
#### iOS
71
+
1. Open your project's `.xcworkspace` found under `YOUR_PROJECT_PATH/iOS` in Xcode.
72
+
2. Create a plist file named TransmitSecurity.plist in your Application with the following content. CLIENT_ID is configured in your Transmit server. Make sure the file is linked to your target.
73
+
74
+
```xml
75
+
<?xml version="1.0" encoding="UTF-8"?>
76
+
<!DOCTYPEplist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
77
+
<plistversion="1.0">
78
+
<dict>
79
+
<key>credentials</key>
80
+
<dict>
81
+
<!-- Use api.eu.transmitsecurity.io for EU, api.ca.transmitsecurity.io for CA -->
82
+
<key>baseUrl</key>
83
+
<string>https://api.transmitsecurity.io</string>
84
+
<key>clientId</key>
85
+
<string>CLIENT_ID</string>
86
+
</dict>
87
+
</dict>
88
+
</plist>
89
+
```
90
+
#### Android
91
+
1. Open your Android manifest XML file, usually located at `android/app/src/main`.
92
+
2. Update the strings.xml file in your Application with the following content. The CLIENT_ID should be replaced with your client ID
0 commit comments