-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement ssl client certificate on expo-file-system
- Loading branch information
1 parent
506a719
commit b91cba0
Showing
4 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
diff --git a/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt b/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt | ||
index 59c4ce3..1f9186d 100644 | ||
--- a/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt | ||
+++ b/node_modules/expo-file-system/android/src/main/java/expo/modules/filesystem/FileSystemModule.kt | ||
@@ -82,11 +82,20 @@ private fun slashifyFilePath(path: String?): String? { | ||
open class FileSystemModule : Module() { | ||
private val context: Context | ||
get() = appContext.reactContext ?: throw Exceptions.AppContextLost() | ||
- private var client: OkHttpClient? = null | ||
private var dirPermissionsRequest: Promise? = null | ||
private val taskHandlers: MutableMap<String, TaskHandler> = HashMap() | ||
private val moduleCoroutineScope = CoroutineScope(Dispatchers.Default) | ||
|
||
+ companion object { | ||
+ @JvmStatic | ||
+ var client: OkHttpClient? = null | ||
+ | ||
+ @JvmStatic | ||
+ fun setOkHttpClient(okHttpClient: OkHttpClient) { | ||
+ client = okHttpClient | ||
+ } | ||
+ } | ||
+ | ||
@SuppressLint("WrongConstant", "DiscouragedApi") | ||
override fun definition() = ModuleDefinition { | ||
Name("ExponentFileSystem") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7693,7 +7693,7 @@ [email protected]: | |
resolved "https://registry.yarnpkg.com/expo-document-picker/-/expo-document-picker-11.10.1.tgz#03394d77842a2fd7cb0a784a60098ee1ddd1012e" | ||
integrity sha512-A1MiLfyXQ+KxanRO5lYxYQy3ryV+25JHe5Ai/BLV+FJU0QXByUF+Y/dn35WVPx5gpdZXC8UJ4ejg5SKSoeconw== | ||
|
||
expo-file-system@^16.0.8, expo-file-system@~16.0.0, expo-file-system@~16.0.8: | ||
[email protected], expo-file-system@~16.0.0, expo-file-system@~16.0.8: | ||
version "16.0.8" | ||
resolved "https://registry.yarnpkg.com/expo-file-system/-/expo-file-system-16.0.8.tgz#13c79a8e06e42a8e76e9297df6920597a011d989" | ||
integrity sha512-yDbVT0TUKd7ewQjaY5THum2VRFx2n/biskGhkUmLh3ai21xjIVtaeIzHXyv9ir537eVgt4ReqDNWi7jcXjdUcA== | ||
|