瀏覽代碼

Merge branch 'master' into master

Travis Nuttall 5 年之前
父節點
當前提交
aee85fb3bb
No account linked to committer's email address

+ 6
- 4
android/build.gradle 查看文件

@@ -6,6 +6,8 @@ def safeExtGet(prop, fallback) {
6 6
 
7 7
 repositories {
8 8
     mavenCentral()
9
+    jcenter()
10
+    google()
9 11
 }
10 12
 
11 13
 buildscript {
@@ -14,16 +16,16 @@ buildscript {
14 16
         google()
15 17
     }
16 18
     dependencies {
17
-        classpath 'com.android.tools.build:gradle:3.1.4'
19
+        classpath 'com.android.tools.build:gradle:3.2.1'
18 20
     }
19 21
 }
20 22
 
21 23
 android {
22
-    compileSdkVersion safeExtGet('compileSdkVersion', 26)
23
-    buildToolsVersion safeExtGet('buildToolsVersion', '26.0.3')
24
+    compileSdkVersion safeExtGet('compileSdkVersion', 28)
25
+    buildToolsVersion safeExtGet('buildToolsVersion', '28.0.3')
24 26
     defaultConfig {
25 27
         minSdkVersion safeExtGet('minSdkVersion', 16)
26
-        targetSdkVersion safeExtGet('targetSdkVersion', 26)
28
+        targetSdkVersion safeExtGet('targetSdkVersion', 28)
27 29
         versionCode 1
28 30
         versionName "1.0"
29 31
     }

+ 2
- 0
android/gradle.properties 查看文件

@@ -0,0 +1,2 @@
1
+android.enableJetifier=true
2
+android.useAndroidX=true

+ 1
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlob.java 查看文件

@@ -6,7 +6,7 @@ import android.content.Intent;
6 6
 import android.content.pm.PackageManager;
7 7
 import android.net.Uri;
8 8
 import android.os.Build;
9
-import android.support.v4.content.FileProvider;
9
+import androidx.core.content.FileProvider;
10 10
 import android.util.SparseArray;
11 11
 
12 12
 import com.facebook.react.bridge.ActivityEventListener;
@@ -28,7 +28,6 @@ import okhttp3.OkHttpClient;
28 28
 import okhttp3.JavaNetCookieJar;
29 29
 
30 30
 import java.io.File;
31
-import java.util.HashMap;
32 31
 import java.util.Map;
33 32
 import java.util.concurrent.LinkedBlockingQueue;
34 33
 import java.util.concurrent.ThreadPoolExecutor;

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobBody.java 查看文件

@@ -1,6 +1,6 @@
1 1
 package com.RNFetchBlob;
2 2
 
3
-import android.support.annotation.NonNull;
3
+import androidx.annotation.NonNull;
4 4
 import android.util.Base64;
5 5
 
6 6
 import com.facebook.react.bridge.Arguments;

+ 1
- 2
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java 查看文件

@@ -8,7 +8,7 @@ import android.content.IntentFilter;
8 8
 import android.database.Cursor;
9 9
 import android.net.Uri;
10 10
 import android.os.Build;
11
-import android.support.annotation.NonNull;
11
+import androidx.annotation.NonNull;
12 12
 import android.util.Base64;
13 13
 
14 14
 import com.RNFetchBlob.Response.RNFetchBlobDefaultResp;
@@ -16,7 +16,6 @@ import com.RNFetchBlob.Response.RNFetchBlobFileResp;
16 16
 import com.facebook.common.logging.FLog;
17 17
 import com.facebook.react.bridge.Arguments;
18 18
 import com.facebook.react.bridge.Callback;
19
-import com.facebook.react.bridge.ReactApplicationContext;
20 19
 import com.facebook.react.bridge.ReadableArray;
21 20
 import com.facebook.react.bridge.ReadableMap;
22 21
 import com.facebook.react.bridge.ReadableMapKeySetIterator;

+ 1
- 2
android/src/main/java/com/RNFetchBlob/Response/RNFetchBlobFileResp.java 查看文件

@@ -1,7 +1,6 @@
1 1
 package com.RNFetchBlob.Response;
2 2
 
3
-import android.support.annotation.NonNull;
4
-import android.util.Log;
3
+import androidx.annotation.NonNull;
5 4
 
6 5
 import com.RNFetchBlob.RNFetchBlobConst;
7 6
 import com.RNFetchBlob.RNFetchBlobProgressConfig;

+ 0
- 1
index.js 查看文件

@@ -7,7 +7,6 @@ import {
7 7
   DeviceEventEmitter,
8 8
   NativeAppEventEmitter,
9 9
   Platform,
10
-  AsyncStorage,
11 10
   AppState,
12 11
 } from 'react-native'
13 12
 import type {

+ 1
- 1
rn-fetch-blob.podspec 查看文件

@@ -9,5 +9,5 @@ Pod::Spec.new do |s|
9 9
   s.author       = 'Joltup'
10 10
   s.source_files = 'ios/**/*.{h,m}'
11 11
   s.platform     = :ios, "8.0"
12
-  s.dependency 'React/Core'
12
+  s.dependency 'React-Core'
13 13
 end