/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* <p>This source code is licensed under the MIT license found in the LICENSE file in the root
* directory of this source tree.
*/
package com.shop;
import android.content.Context;
import com.facebook.flipper.android.AndroidFlipperClient;
import com.facebook.flipper.android.utils.FlipperUtils;
import com.facebook.flipper.core.FlipperClient;
import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
import com.facebook.flipper.plugins.inspector.DescriptorMapping;
import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
import okhttp3.OkHttpClient;
public class ReactNativeFlipper {
public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
if (FlipperUtils.shouldEnableFlipper(context)) {
final FlipperClient client = AndroidFlipperClient.getInstance(context);
client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
client.addPlugin(new ReactFlipperPlugin());
client.addPlugin(new DatabasesFlipperPlugin(context));
client.addPlugin(new SharedPreferencesFlipperPlugin(context));
client.addPlugin(CrashReporterPlugin.getInstance());
NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
NetworkingModule.setCustomClientBuilder(
new NetworkingModule.CustomClientBuilder() {
@Override
public void apply(OkHttpClient.Builder builder) {
builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
}
});
client.addPlugin(networkFlipperPlugin);
client.start();
// Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
// Hence we run if after all native modules have been initialized
ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
if (reactContext == null) {
reactInstanceManager.addReactInstanceEventListener(
new ReactInstanceManager.ReactInstanceEventListener() {
@Override
public void onReactContextInitialized(ReactContext reactContext) {
reactInstanceManager.removeReactInstanceEventListener(this);
reactContext.runOnNativeModulesQueueThread(
new Runnable() {
@Override
public void run() {
client.addPlugin(new FrescoFlipperPlugin());
}
});
}
});
} else {
client.addPlugin(new FrescoFlipperPlugin());
}
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
2021本科毕业设计.zip
共249个文件
png:143个
js:36个
ttf:16个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 20 浏览量
2023-10-05
00:50:44
上传
评论
收藏 16MB ZIP 举报
温馨提示
本科毕业设计
资源推荐
资源详情
资源评论
收起资源包目录
2021本科毕业设计.zip (249个子文件)
_BUCK 1KB
gradlew.bat 3KB
.buckconfig 114B
build_defs.bzl 602B
.flowconfig 2KB
.gitattributes 16B
.gitignore 813B
.gitkeep 0B
build.gradle 8KB
build.gradle 1003B
settings.gradle 521B
gradlew 6KB
AppDelegate.h 196B
gradle-wrapper.jar 57KB
ReactNativeFlipper.java 3KB
MainApplication.java 3KB
MainActivity.java 335B
detail3.jpg 420KB
p1.jpg 199KB
detail2.jpg 185KB
richCar.jpg 144KB
detail1.jpg 136KB
car.jpg 92KB
1.jpg 52KB
4.jpg 51KB
3.jpg 29KB
2.jpg 26KB
Helppage.js 66KB
indexpage.js 41KB
purchasepage.js 11KB
Minepage.js 9KB
NewProducts.js 8KB
UserInformation.js 8KB
searchpage.js 7KB
Productpage.js 7KB
loginpage.js 7KB
MyOrderpage.js 5KB
MyFocusPropage.js 5KB
App.js 5KB
MyAdvicepage.js 5KB
registerpage.js 4KB
FeedBackpage.js 4KB
indexiconbox.js 4KB
sidemenucomponent.js 3KB
UnderStanding.js 3KB
MySetting.js 3KB
detailswipercompoment.js 3KB
swipercomponent.js 3KB
indexlabel.js 2KB
forgetpasswordpage.js 2KB
Aboutpage.js 2KB
MyFocuspage.js 2KB
indexheader.js 1016B
ModifyInformationpage.js 955B
Global.js 906B
minepageheader.js 673B
.prettierrc.js 537B
.eslintrc.js 443B
metro.config.js 300B
App-test.js 266B
MyFocusStorepage.js 245B
index.js 183B
babel.config.js 77B
package.json 1KB
Contents.json 585B
Contents.json 63B
app.json 45B
debug.keystore 2KB
LICENSE 1KB
yarn.lock 330KB
AppDelegate.m 2KB
shopTests.m 2KB
main.m 200B
project.pbxproj 39KB
Info.plist 2KB
Info.plist 1KB
Info.plist 733B
Info.plist 733B
儿童座椅接口图片.png 544KB
4@1,5x.png 535KB
background.png 490KB
真皮座椅.png 480KB
车窗防夹手图片.png 430KB
多功能方向盘图片.png 412KB
1@1,5x.png 403KB
车道偏离系统.png 395KB
自动空调图片.png 385KB
9@1,5x.png 380KB
无钥匙进入系统.png 373KB
日间行车灯.png 365KB
大灯高度可调.png 364KB
汽车大灯.png 352KB
GPS导航系统.png 352KB
倒车视频影像.png 343KB
无钥匙启动系统图片.png 334KB
发动机启停技术.png 329KB
电动天窗.png 327KB
自动头灯.png 316KB
全景天窗.png 314KB
3@1,5x.png 313KB
共 249 条
- 1
- 2
- 3
资源评论
学术菜鸟小晨
- 粉丝: 1w+
- 资源: 5021
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功