Commit d687167572f98780878c5a2dd5ad7b4eb5a2c82f
1 parent
331a768f
Exists in
master
Update example to use version 1.2.0
Showing
4 changed files
with
18 additions
and
2 deletions
Show diff stats
examples/custom-webview-android/android/app/build.gradle
examples/custom-webview-android/android/app/src/main/AndroidManifest.xml
... | ... | @@ -3,6 +3,8 @@ |
3 | 3 | |
4 | 4 | <uses-permission android:name="android.permission.INTERNET" /> |
5 | 5 | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
6 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
7 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
6 | 8 | |
7 | 9 | <application |
8 | 10 | android:name=".MainApplication" |
... | ... | @@ -21,6 +23,16 @@ |
21 | 23 | </intent-filter> |
22 | 24 | </activity> |
23 | 25 | <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" /> |
26 | + | |
27 | + <provider | |
28 | + android:name="android.support.v4.content.FileProvider" | |
29 | + android:authorities="${applicationId}.fileprovider" | |
30 | + android:exported="false" | |
31 | + android:grantUriPermissions="true"> | |
32 | + <meta-data | |
33 | + android:name="android.support.FILE_PROVIDER_PATHS" | |
34 | + android:resource="@xml/file_provider_paths" /> | |
35 | + </provider> | |
24 | 36 | </application> |
25 | 37 | |
26 | 38 | </manifest> | ... | ... |
examples/custom-webview-android/android/app/src/main/res/xml/file_provider_paths.xml
0 → 100644
examples/custom-webview-android/package.json
... | ... | @@ -9,7 +9,7 @@ |
9 | 9 | "dependencies": { |
10 | 10 | "react": "16.3.1", |
11 | 11 | "react-native": "0.55.3", |
12 | - "react-native-webview-android-file-upload": "git+ssh://git@github.com/andreipfeiffer/react-native-webview-android-file-upload.git" | |
12 | + "react-native-webview-android-file-upload": "git+ssh://git@github.com/andreipfeiffer/react-native-webview-android-file-upload.git#1.2.0" | |
13 | 13 | }, |
14 | 14 | "devDependencies": { |
15 | 15 | "babel-jest": "22.4.3", | ... | ... |