Skip to content

Commit 2051c49

Browse files
Ron RadtkeRon Radtke
Ron Radtke
authored and
Ron Radtke
committed
remove restrictions for legacy dir and android version
fixes joltup#240
1 parent 69007ae commit 2051c49

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

android/src/main/java/com/ReactNativeBlobUtil/ReactNativeBlobUtilFS.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -379,21 +379,6 @@ static Map<String, Object> getSystemfolders(ReactApplicationContext ctx) {
379379
static Map<String, Object> getLegacySystemfolders(ReactApplicationContext ctx) {
380380
Map<String, Object> res = new HashMap<>();
381381

382-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
383-
res = ReactNativeBlobUtilFS.getSystemfolders(ctx);
384-
385-
// Include legacy folders anyway, since on the new arch compatibility between the spec and the turbomodule is enforced
386-
res.put("LegacyDCIMDir", "");
387-
res.put("LegacyPictureDir", "");
388-
res.put("LegacyMusicDir", "");
389-
res.put("LegacyDownloadDir", "");
390-
res.put("LegacyMovieDir", "");
391-
res.put("LegacyRingtoneDir", "");
392-
res.put("LegacySDCardDir", "");
393-
394-
return res;
395-
}
396-
397382
res.put("LegacyDCIMDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM).getAbsolutePath());
398383
res.put("LegacyPictureDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES).getAbsolutePath());
399384
res.put("LegacyMusicDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MUSIC).getAbsolutePath());

0 commit comments

Comments
 (0)