diff options
Diffstat (limited to 'patches')
-rw-r--r-- | patches/@lingui+core+4.5.0.patch | 10 | ||||
-rw-r--r-- | patches/babel-preset-fbjs+3.4.0.patch | 12 | ||||
-rw-r--r-- | patches/expo-image-picker+14.7.1.patch | 64 | ||||
-rw-r--r-- | patches/expo-image-picker+14.7.1.patch.md | 3 | ||||
-rw-r--r-- | patches/metro+0.80.4.patch (renamed from patches/metro+0.80.1.patch) | 0 | ||||
-rw-r--r-- | patches/metro-runtime+0.80.4.patch (renamed from patches/metro-runtime+0.80.1.patch) | 0 | ||||
-rw-r--r-- | patches/metro-transform-worker+0.80.4.patch (renamed from patches/metro-transform-worker+0.80.1.patch) | 2 | ||||
-rw-r--r-- | patches/react-native+0.73.2.patch (renamed from patches/react-native+0.73.1.patch) | 0 |
8 files changed, 78 insertions, 13 deletions
diff --git a/patches/@lingui+core+4.5.0.patch b/patches/@lingui+core+4.5.0.patch new file mode 100644 index 000000000..8ace93a74 --- /dev/null +++ b/patches/@lingui+core+4.5.0.patch @@ -0,0 +1,10 @@ +diff --git a/node_modules/@lingui/core/dist/index.mjs b/node_modules/@lingui/core/dist/index.mjs +index 9759736..881f67b 100644 +--- a/node_modules/@lingui/core/dist/index.mjs ++++ b/node_modules/@lingui/core/dist/index.mjs +@@ -1,4 +1,4 @@ +-import unraw from 'unraw'; ++import { unraw } from 'unraw'; + import { compileMessage } from '@lingui/message-utils/compileMessage'; + + const isString = (s) => typeof s === "string"; diff --git a/patches/babel-preset-fbjs+3.4.0.patch b/patches/babel-preset-fbjs+3.4.0.patch deleted file mode 100644 index a66f7c7d8..000000000 --- a/patches/babel-preset-fbjs+3.4.0.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/node_modules/babel-preset-fbjs/plugins/inline-requires.js b/node_modules/babel-preset-fbjs/plugins/inline-requires.js -index b11fc83..e18661a 100644 ---- a/node_modules/babel-preset-fbjs/plugins/inline-requires.js -+++ b/node_modules/babel-preset-fbjs/plugins/inline-requires.js -@@ -256,6 +256,7 @@ function getInlineableModule(path, state) { - - return moduleName == null || - state.ignoredRequires.has(moduleName) || -+ moduleName.startsWith('@babel/runtime/') || - isRequireInScope - ? null - : { moduleName, requireFnName: fnName }; diff --git a/patches/expo-image-picker+14.7.1.patch b/patches/expo-image-picker+14.7.1.patch new file mode 100644 index 000000000..2d37a182a --- /dev/null +++ b/patches/expo-image-picker+14.7.1.patch @@ -0,0 +1,64 @@ +diff --git a/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/contracts/ImageLibraryContract.kt b/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/contracts/ImageLibraryContract.kt +index ff15c91..41aaf12 100644 +--- a/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/contracts/ImageLibraryContract.kt ++++ b/node_modules/expo-image-picker/android/src/main/java/expo/modules/imagepicker/contracts/ImageLibraryContract.kt +@@ -26,51 +26,26 @@ import java.io.Serializable + * @see [androidx.activity.result.contract.ActivityResultContracts.GetMultipleContents] + */ + internal class ImageLibraryContract( +- private val appContextProvider: AppContextProvider ++ private val appContextProvider: AppContextProvider, + ) : AppContextActivityResultContract<ImageLibraryContractOptions, ImagePickerContractResult> { + private val contentResolver: ContentResolver + get() = appContextProvider.appContext.reactContext?.contentResolver + ?: throw Exceptions.ReactContextLost() + + override fun createIntent(context: Context, input: ImageLibraryContractOptions): Intent { +- val request = PickVisualMediaRequest.Builder() +- .setMediaType( +- when (input.options.mediaTypes) { +- MediaTypes.VIDEOS -> { +- PickVisualMedia.VideoOnly +- } +- +- MediaTypes.IMAGES -> { +- PickVisualMedia.ImageOnly +- } +- +- else -> { +- PickVisualMedia.ImageAndVideo +- } +- } +- ) +- .build() ++ val intent = Intent(Intent.ACTION_GET_CONTENT) ++ .addCategory(Intent.CATEGORY_OPENABLE) ++ .setType("image/*") + + if (input.options.allowsMultipleSelection) { +- val selectionLimit = input.options.selectionLimit +- +- if (selectionLimit == 1) { +- // If multiple selection is allowed but the limit is 1, we should ignore +- // the multiple selection flag and just treat it as a single selection. +- return PickVisualMedia().createIntent(context, request) ++ if(input.options.selectionLimit == 1) { ++ return intent + } + +- if (selectionLimit > 1) { +- return PickMultipleVisualMedia(selectionLimit).createIntent(context, request) +- } +- +- // If the selection limit is 0, it is the same as unlimited selection. +- if (selectionLimit == UNLIMITED_SELECTION) { +- return PickMultipleVisualMedia().createIntent(context, request) +- } ++ intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true) + } + +- return PickVisualMedia().createIntent(context, request) ++ return intent + } + + override fun parseResult(input: ImageLibraryContractOptions, resultCode: Int, intent: Intent?) = diff --git a/patches/expo-image-picker+14.7.1.patch.md b/patches/expo-image-picker+14.7.1.patch.md new file mode 100644 index 000000000..47c0daed5 --- /dev/null +++ b/patches/expo-image-picker+14.7.1.patch.md @@ -0,0 +1,3 @@ +added by https://github.com/bluesky-social/social-app/pull/2384#pullrequestreview-1800985521 + +hackfixes the image picker on android so that the user can select from their typical image sources \ No newline at end of file diff --git a/patches/metro+0.80.1.patch b/patches/metro+0.80.4.patch index f8ef67c84..f8ef67c84 100644 --- a/patches/metro+0.80.1.patch +++ b/patches/metro+0.80.4.patch diff --git a/patches/metro-runtime+0.80.1.patch b/patches/metro-runtime+0.80.4.patch index 65303775d..65303775d 100644 --- a/patches/metro-runtime+0.80.1.patch +++ b/patches/metro-runtime+0.80.4.patch diff --git a/patches/metro-transform-worker+0.80.1.patch b/patches/metro-transform-worker+0.80.4.patch index 65f44e578..717b7c2d9 100644 --- a/patches/metro-transform-worker+0.80.1.patch +++ b/patches/metro-transform-worker+0.80.4.patch @@ -1,5 +1,5 @@ diff --git a/node_modules/metro-transform-worker/src/index.js b/node_modules/metro-transform-worker/src/index.js -index cae11e7..42f251b 100644 +index 9f2e3d2..5222c8e 100644 --- a/node_modules/metro-transform-worker/src/index.js +++ b/node_modules/metro-transform-worker/src/index.js @@ -189,6 +189,10 @@ async function transformJS(file, { config, options, projectRoot }) { diff --git a/patches/react-native+0.73.1.patch b/patches/react-native+0.73.2.patch index 66f7f7647..66f7f7647 100644 --- a/patches/react-native+0.73.1.patch +++ b/patches/react-native+0.73.2.patch |