Skip to content

Commit 0fffa6b

Browse files
authored
Promote expo-file-system/next to expo-file-system (expo#38404)
1 parent 65f5680 commit 0fffa6b

File tree

168 files changed

+5070
-4958
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+5070
-4958
lines changed

apps/bare-expo/e2e/TestSuite-test.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const TESTS = [
2323
'KeepAwake',
2424
// 'Audio',
2525
'HTML',
26-
'FileSystem@next',
26+
'FileSystem',
2727
'Fetch',
2828
];
2929

apps/expo-go/android/expoview/src/main/java/host/exp/exponent/experience/HomeActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ import expo.modules.core.interfaces.Package
2727
import expo.modules.device.DeviceModule
2828
import expo.modules.easclient.EASClientModule
2929
import expo.modules.filesystem.FileSystemModule
30-
import expo.modules.filesystem.FileSystemPackage
30+
import expo.modules.filesystem.legacy.FileSystemLegacyModule
31+
import expo.modules.filesystem.legacy.FileSystemPackage
3132
import expo.modules.font.FontLoaderModule
3233
import expo.modules.font.FontUtilsModule
3334
import expo.modules.haptics.HapticsModule
@@ -185,6 +186,7 @@ open class HomeActivity : BaseExperienceActivity() {
185186
DeviceModule::class.java,
186187
EASClientModule::class.java,
187188
FileSystemModule::class.java,
189+
FileSystemLegacyModule::class.java,
188190
FontLoaderModule::class.java,
189191
FontUtilsModule::class.java,
190192
HapticsModule::class.java,

apps/expo-go/android/expoview/src/main/java/versioned/host/exp/exponent/ExperiencePackagePicker.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ import expo.modules.documentpicker.DocumentPickerModule
2626
import expo.modules.easclient.EASClientModule
2727
import expo.modules.fetch.ExpoFetchModule
2828
import expo.modules.filesystem.FileSystemModule
29-
import expo.modules.filesystem.FileSystemPackage
29+
import expo.modules.filesystem.legacy.FileSystemLegacyModule
30+
import expo.modules.filesystem.legacy.FileSystemPackage
3031
import expo.modules.font.FontLoaderModule
3132
import expo.modules.font.FontUtilsModule
3233
import expo.modules.gl.GLObjectManagerModule
@@ -161,6 +162,7 @@ object ExperiencePackagePicker : ModulesProvider {
161162
FontUtilsModule::class.java,
162163
ExpoLinkingModule::class.java,
163164
FileSystemModule::class.java,
165+
FileSystemLegacyModule::class.java,
164166
FontLoaderModule::class.java,
165167
PrintModule::class.java,
166168
GLViewModule::class.java,

apps/expo-go/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/ScopedFilePermissionModule.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package versioned.host.exp.exponent.modules.universal
22

33
import expo.modules.core.ModuleRegistry
4-
import expo.modules.filesystem.FilePermissionModule
4+
import expo.modules.filesystem.legacy.FilePermissionModule
55
import expo.modules.interfaces.filesystem.Permission
66
import host.exp.exponent.utils.ScopedContext
77
import java.io.File

apps/jest-expo-mock-generator/App.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@ import React, { useEffect, useState } from 'react';
44
import { Button, StyleSheet, Text, View } from 'react-native';
55

66
// const whitelist = /^(Expo(?:nent)?|AIR|CTK|Lottie|Reanimated|RN|NativeUnimoduleProxy)(?![a-z])/;
7-
const blacklist = ['ExpoCrypto', 'ExpoClipboard', 'ExpoLocalization', 'ExpoLinking', 'ExpoFont'];
7+
const blacklist = [
8+
'ExpoCrypto',
9+
'ExpoClipboard',
10+
'ExpoLocalization',
11+
'ExpoLinking',
12+
'ExpoFont',
13+
'ExpoFileSystem',
14+
];
815

916
type ModuleRegistrySchema = [
1017
{

apps/native-component-list/src/screens/Camera/CameraScreenFull.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
Camera,
1515
FocusMode,
1616
} from 'expo-camera';
17-
import * as FileSystem from 'expo-file-system';
17+
import * as FileSystem from 'expo-file-system/legacy';
1818
import React, { useEffect, useMemo, useRef, useState } from 'react';
1919
import { Dimensions, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
2020
import { Gesture, GestureDetector } from 'react-native-gesture-handler';

apps/native-component-list/src/screens/Camera/GalleryScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import MaterialIcons from '@expo/vector-icons/MaterialIcons';
22
import { CameraCapturedPicture } from 'expo-camera';
3-
import * as FileSystem from 'expo-file-system';
3+
import * as FileSystem from 'expo-file-system/legacy';
44
import * as MediaLibrary from 'expo-media-library';
55
import React from 'react';
66
import {

apps/native-component-list/src/screens/FileSystemScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import AsyncStorage from '@react-native-async-storage/async-storage';
22
import { Asset } from 'expo-asset';
3-
import * as FileSystem from 'expo-file-system';
3+
import * as FileSystem from 'expo-file-system/legacy';
44
// import * as Progress from 'expo-progress';
55
import type {
66
DownloadProgressData,
77
DownloadResumable,
88
FileSystemNetworkTaskProgressCallback,
99
UploadProgressData,
1010
UploadTask,
11-
} from 'expo-file-system';
11+
} from 'expo-file-system/legacy';
1212
import React from 'react';
1313
import { Alert, ScrollView, Text, Platform } from 'react-native';
1414

apps/native-component-list/src/screens/GL/GLHeadlessRenderingScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Slider from '@react-native-community/slider';
22
import { Asset } from 'expo-asset';
3-
import * as FileSystem from 'expo-file-system';
3+
import * as FileSystem from 'expo-file-system/legacy';
44
import * as GL from 'expo-gl';
55
import { GLView } from 'expo-gl';
66
import React from 'react';

apps/native-component-list/src/screens/MediaLibrary/MediaLibraryScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useFocusEffect } from '@react-navigation/native';
22
import { StackScreenProps } from '@react-navigation/stack';
3-
import * as FileSystem from 'expo-file-system';
3+
import * as FileSystem from 'expo-file-system/legacy';
44
import * as MediaLibrary from 'expo-media-library';
55
import React from 'react';
66
import {

0 commit comments

Comments
 (0)