Commit d687167572f98780878c5a2dd5ad7b4eb5a2c82f

Authored by Andrei Pfeiffer
1 parent 331a768f
Exists in master

Update example to use version 1.2.0

examples/custom-webview-android/android/app/build.gradle
... ... @@ -100,7 +100,7 @@ android {
100 100 defaultConfig {
101 101 applicationId "com.customwebviewandroid"
102 102 minSdkVersion 16
103   - targetSdkVersion 22
  103 + targetSdkVersion 26
104 104 versionCode 1
105 105 versionName "1.0"
106 106 ndk {
... ...
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
... ... @@ -0,0 +1,4 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<paths xmlns:android="http://schemas.android.com/apk/res/android">
  3 + <external-path name="shared" path="."/>
  4 +</paths>
... ...
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",
... ...