/**
* Copyright (c) Meta Platforms, Inc. and 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.videomusic;
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.sharedpreferences.SharedPreferencesFlipperPlugin;
import com.facebook.react.ReactInstanceEventListener;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.modules.network.NetworkingModule;
import okhttp3.OkHttpClient;
/**
* Class responsible of loading Flipper inside your React Native application. This is the debug
* flavor of it. Here you can add your own plugins and customize the Flipper setup.
*/
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 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 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());
}
}
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
1024程序员节的比赛项目.zip
共127个文件
webp:25个
tsx:21个
png:11个
需积分: 2 0 下载量 70 浏览量
2023-10-25
21:41:26
上传
评论
收藏 29.44MB ZIP 举报
温馨提示
1024程序员节1024程序员节的比赛项目.zip1024程序员节的比赛项目.zip1024程序员节的比赛项目.zip1024程序员节的比赛项目.zip1024程序员节的比赛项目.zip
资源推荐
资源详情
资源评论
收起资源包目录
1024程序员节的比赛项目.zip (127个子文件)
gradlew.bat 3KB
config 59B
.xcode.env 482B
Gemfile 159B
build.gradle 5KB
build.gradle 601B
settings.gradle 254B
gradlew 8KB
RNAudio.h 532B
StatusBarStyle.h 407B
RNAudioQueue.h 305B
AudioDefine.h 252B
AppDelegate.h 98B
gradle-wrapper.jar 60KB
ReactNativeFlipper.java 3KB
MainApplication.java 2KB
MainActivity.java 2KB
ReactNativeFlipper.java 680B
.eslintrc.js 597B
babel.config.js 595B
metro.config.js 376B
index.js 190B
.prettierrc.js 141B
jest.config.js 48B
package.json 2KB
Contents.json 849B
tsconfig.json 406B
Contents.json 63B
app.json 58B
debug.keystore 2KB
yarn.lock 337KB
Podfile.lock 28KB
RNAudio.m 14KB
VideoMusicTests.m 2KB
StatusBarStyle.m 1KB
RNAudioQueue.m 299B
main.m 199B
AppDelegate.mm 976B
you_sunday.mp3 7.75MB
escape_ground.mp3 5.18MB
walk_grass.mp3 545KB
app2.mp4 10.77MB
app.mp4 3.74MB
app1.mp4 1.45MB
project.pbxproj 33KB
Info.plist 2KB
Info.plist 733B
IDEWorkspaceChecks.plist 238B
ic_launcher_round.png 15KB
ic_launcher_round.png 10KB
ic_launcher.png 9KB
ic_launcher_round.png 7KB
ic_launcher.png 6KB
ic_launcher_round.png 5KB
ic_launcher.png 4KB
ic_launcher.png 3KB
ic_launcher_round.png 3KB
ic_launcher.png 2KB
bilibili-icon.png 438B
Podfile 2KB
proguard-rules.pro 435B
gradle.properties 2KB
gradle-wrapper.properties 223B
LaunchScreen.storyboard 4KB
useAudio.ts 7KB
color.ts 2KB
image.ts 2KB
factory.ts 926B
story.ts 701B
device.ts 552B
shareTransition.ts 390B
style.ts 246B
module.d.ts 120B
VideoView.tsx 13KB
VideoViewFullScreen.tsx 9KB
MusicView.tsx 5KB
MusicCard.tsx 4KB
App.router.tsx 2KB
SliderBarFullScreenForMusic.tsx 2KB
MusicBottom.tsx 2KB
SliderBarFullScreen.tsx 2KB
SliderBar.tsx 2KB
VideoDetail.tsx 2KB
StatusBarBackground.tsx 1KB
VideoFullScreen.tsx 915B
MessageSwitch.tsx 613B
Pause.tsx 607B
Voice.tsx 587B
Back.tsx 519B
FullScreenHorizon.tsx 484B
Share.tsx 473B
FullScreenVertical.tsx 463B
App.test.tsx 370B
VideoAnimatedComponent.tsx 260B
.watchmanconfig 3B
musicPoster.webp 56KB
pvz.webp 26KB
you_sunday.webp 21KB
musicBar.webp 12KB
share.webp 4KB
共 127 条
- 1
- 2
资源评论
唐先生的博客
- 粉丝: 3235
- 资源: 631
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- fdsfdsfdsfdsfdsfdsfdsfds
- 目标检测-零售食品LOGO检测数据集-5000张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 目标检测-零售食品LOGO检测数据集-1000张图-+对应VOC-COCO-YOLO三种格式标签+数据集划分脚本
- 计算机科学选修课:人工智能导论 第四节 PPT
- 计算机科学选修课:人工智能导论 第三节 PPT
- Delphi 12 控件之LMD.VCL.Full.Version.zip
- 常用阀门定位器的调试步骤及说明
- 计算机科学选修课:人工智能导论 第二节 PPT
- 计算机科学选修课:人工智能导论 第一章 PPT
- Delphi 12 控件Indy-Indy-10.6.3.3.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功