feat: Added download and loading

This commit is contained in:
Fándly Gergő
2022-07-04 10:05:36 +03:00
parent ed47ff673f
commit 4250284f1b
10 changed files with 131 additions and 61 deletions

View File

@ -285,6 +285,8 @@ dependencies {
} else {
implementation jscFlavor
}
implementation project(':react-native-fs')
}
if (isNewArchitectureEnabled()) {

View File

@ -2,6 +2,8 @@
package="com.browses3">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".MainApplication"
@ -9,7 +11,8 @@
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:requestLegacyExternalStorage="true">
<activity
android:name=".MainActivity"
android:label="@string/app_name"

View File

@ -2,6 +2,8 @@ rootProject.name = 'BrowseS3'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/react-native-gradle-plugin')
include ':react-native-fs'
project(':react-native-fs').projectDir = new File(settingsDir, '../node_modules/react-native-fs/android')
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
include(":ReactAndroid")