From 9b4512c979771b6c3052d98c886b7e1fb17f2b38 Mon Sep 17 00:00:00 2001 From: hupeng Date: Mon, 5 Aug 2019 15:04:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=BD=91=E7=BB=9C][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=9B=BE=E7=89=87=E7=BC=93=E5=AD=98=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.js | 6 ++---- android/app/build.gradle | 1 - android/app/src/main/java/com/screenad/MainApplication.java | 2 -- android/settings.gradle | 2 -- package.json | 2 -- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/App.js b/App.js index 4c9c941..d9c9f2e 100644 --- a/App.js +++ b/App.js @@ -17,9 +17,7 @@ import Package from './package.json' import HttpUtils from './HttpUtils.js'; import CodePush from "react-native-code-push"; import DeviceInfo from "react-native-device-info"; -import RNFetchBlob from 'react-native-fetch-blob'; import * as Animatable from 'react-native-animatable'; -import {CachedImage,ImageCache} from "react-native-img-cache"; var testMac = 'FF:FF:FF:FF:FF:FF' var curAdIndex = 0; @@ -404,7 +402,7 @@ getContentViewItem(contentItem, annomation) { {/* 列表 */} - + {/* 券的title */} {contentItem.target.title} @@ -421,7 +419,7 @@ getContentViewItem(contentItem, annomation) { {/* */} - + {/* 优惠券底部商户名称 */} diff --git a/android/app/build.gradle b/android/app/build.gradle index c68f647..afcacdd 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -181,7 +181,6 @@ android { } dependencies { - implementation project(':react-native-fetch-blob') implementation project(':react-native-camera') implementation project(':react-native-device-info') implementation project(':react-native-code-push') diff --git a/android/app/src/main/java/com/screenad/MainApplication.java b/android/app/src/main/java/com/screenad/MainApplication.java index 6ab9b0c..2664dc1 100644 --- a/android/app/src/main/java/com/screenad/MainApplication.java +++ b/android/app/src/main/java/com/screenad/MainApplication.java @@ -3,7 +3,6 @@ package com.screenad; import android.app.Application; import com.facebook.react.ReactApplication; -import com.RNFetchBlob.RNFetchBlobPackage; import org.reactnative.camera.RNCameraPackage; import com.facebook.react.bridge.ReactApplicationContext; @@ -38,7 +37,6 @@ public class MainApplication extends Application implements ReactApplication { protected List getPackages() { return Arrays.asList( new MainReactPackage(), - new RNFetchBlobPackage(), new RNCameraPackage(), new RNBuildConfigPackage(), new RNDeviceInfo(), diff --git a/android/settings.gradle b/android/settings.gradle index c7cbd7f..399f0dc 100644 --- a/android/settings.gradle +++ b/android/settings.gradle @@ -1,6 +1,4 @@ rootProject.name = 'screenAd' -include ':react-native-fetch-blob' -project(':react-native-fetch-blob').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fetch-blob/android') include ':react-native-camera' project(':react-native-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-camera/android') include ':react-native-device-info' diff --git a/package.json b/package.json index 39871b6..f98efa9 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,6 @@ "react-native-camera": "^1.12.0", "react-native-code-push": "^5.6.0", "react-native-device-info": "^2.1.2", - "react-native-fetch-blob": "^0.10.8", - "react-native-img-cache": "^1.6.0", "react-native-swiper": "^1.5.14", "rn-fetch-blob": "^0.10.15" },