forked from Ivasoft/mattermost-mobile
Upgrade unimodules with expo to use expo-file-system
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
apply plugin: "com.android.application"
|
||||
apply from: '../../node_modules/react-native-unimodules/gradle.groovy'
|
||||
apply plugin: 'kotlin-android'
|
||||
import com.android.build.OutputFile
|
||||
|
||||
@@ -246,13 +245,6 @@ dependencies {
|
||||
|
||||
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
|
||||
|
||||
addUnimodulesDependencies([exclude: [
|
||||
'expo-image-loader',
|
||||
'expo-permissions',
|
||||
'expo-application',
|
||||
'expo-face-detector',
|
||||
]])
|
||||
|
||||
debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
|
||||
exclude group:'com.facebook.fbjni'
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package com.mattermost.rnbeta;
|
||||
|
||||
import com.facebook.react.bridge.JSIModuleSpec;
|
||||
import com.facebook.react.bridge.JavaScriptContextHolder;
|
||||
import com.mattermost.rnbeta.generated.BasePackageList;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
@@ -40,9 +39,6 @@ import com.facebook.react.module.model.ReactModuleInfoProvider;
|
||||
import com.facebook.react.modules.network.OkHttpClientProvider;
|
||||
import com.facebook.soloader.SoLoader;
|
||||
|
||||
import org.unimodules.adapters.react.ModuleRegistryAdapter;
|
||||
import org.unimodules.adapters.react.ReactModuleRegistryProvider;
|
||||
|
||||
import com.mattermost.networkclient.RCTOkHttpClientFactory;
|
||||
import com.swmansion.reanimated.ReanimatedJSIModulePackage;
|
||||
import com.nozbe.watermelondb.jsi.WatermelonDBJSIPackage;
|
||||
@@ -52,8 +48,6 @@ public class MainApplication extends NavigationApplication implements INotificat
|
||||
|
||||
public Boolean sharedExtensionIsOpened = false;
|
||||
|
||||
private final ReactModuleRegistryProvider mModuleRegistryProvider = new ReactModuleRegistryProvider(new BasePackageList().getPackageList(), null);
|
||||
|
||||
private final ReactNativeHost mReactNativeHost =
|
||||
new ReactNativeHost(this) {
|
||||
@Override
|
||||
@@ -68,11 +62,6 @@ public class MainApplication extends NavigationApplication implements INotificat
|
||||
// packages.add(new MyReactNativePackage());
|
||||
packages.add(new RNNotificationsPackage(MainApplication.this));
|
||||
|
||||
// Add unimodules
|
||||
List<ReactPackage> unimodules = Collections.singletonList(
|
||||
new ModuleRegistryAdapter(mModuleRegistryProvider)
|
||||
);
|
||||
packages.addAll(unimodules);
|
||||
|
||||
packages.add(
|
||||
new TurboReactPackage() {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
package com.mattermost.rnbeta.generated;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.unimodules.core.interfaces.Package;
|
||||
|
||||
public class BasePackageList {
|
||||
public List<Package> getPackageList() {
|
||||
return Arrays.<Package>asList(
|
||||
new expo.modules.constants.ConstantsPackage(),
|
||||
new expo.modules.filesystem.FileSystemPackage()
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
rootProject.name = 'Mattermost'
|
||||
include ':reactnativenotifications'
|
||||
project(':reactnativenotifications').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-notifications/lib/android/app')
|
||||
apply from: '../node_modules/react-native-unimodules/gradle.groovy'; includeUnimodulesProjects()
|
||||
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
||||
include ':app'
|
||||
include ':watermelondb-jsi'
|
||||
project(':watermelondb-jsi').projectDir =
|
||||
new File(rootProject.projectDir, '../node_modules/@nozbe/watermelondb/native/android-jsi')
|
||||
|
||||
apply from: new File(["node", "--print", "require.resolve('expo/package.json')"].execute().text.trim(), "../scripts/autolinking.gradle")
|
||||
useExpoModules()
|
||||
@@ -2,11 +2,11 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import {ClientResponse, ProgressPromise} from '@mattermost/react-native-network-client';
|
||||
import * as FileSystem from 'expo-file-system';
|
||||
import React, {forwardRef, useImperativeHandle, useRef, useState} from 'react';
|
||||
import {useIntl} from 'react-intl';
|
||||
import {Platform, StatusBar, StatusBarStyle, StyleSheet, View} from 'react-native';
|
||||
import FileViewer from 'react-native-file-viewer';
|
||||
import {FileSystem} from 'react-native-unimodules';
|
||||
import tinyColor from 'tinycolor2';
|
||||
|
||||
import ProgressBar from '@components/progress_bar';
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import * as FileSystem from 'expo-file-system';
|
||||
import DeviceInfo from 'react-native-device-info';
|
||||
import {FileSystem} from 'react-native-unimodules';
|
||||
|
||||
export default {
|
||||
DOCUMENTS_PATH: `${FileSystem.cacheDirectory}/Documents`,
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
import {Database, Q} from '@nozbe/watermelondb';
|
||||
import LokiJSAdapter from '@nozbe/watermelondb/adapters/lokijs';
|
||||
import logger from '@nozbe/watermelondb/utils/common/logger';
|
||||
import * as FileSystem from 'expo-file-system';
|
||||
import {DeviceEventEmitter, Platform} from 'react-native';
|
||||
import {FileSystem} from 'react-native-unimodules';
|
||||
|
||||
import {MIGRATION_EVENTS, MM_TABLES} from '@constants/database';
|
||||
import AppDatabaseMigrations from '@database/migration/app';
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
import {Database, Q} from '@nozbe/watermelondb';
|
||||
import SQLiteAdapter from '@nozbe/watermelondb/adapters/sqlite';
|
||||
import logger from '@nozbe/watermelondb/utils/common/logger';
|
||||
import * as FileSystem from 'expo-file-system';
|
||||
import {DeviceEventEmitter, Platform} from 'react-native';
|
||||
import DeviceInfo from 'react-native-device-info';
|
||||
import {FileSystem} from 'react-native-unimodules';
|
||||
|
||||
import {MIGRATION_EVENTS, MM_TABLES} from '@constants/database';
|
||||
import AppDatabaseMigrations from '@database/migration/app';
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import Model from '@nozbe/watermelondb/Model';
|
||||
import * as FileSystem from 'expo-file-system';
|
||||
import mimeDB from 'mime-db';
|
||||
import {Platform} from 'react-native';
|
||||
import {FileSystem} from 'react-native-unimodules';
|
||||
|
||||
import {Files} from '@constants';
|
||||
import {deleteEntititesFile, getIOSAppGroupDetails} from '@utils/mattermost_managed';
|
||||
|
||||
@@ -685,12 +685,6 @@ platform :android do
|
||||
)
|
||||
end
|
||||
|
||||
find_replace_string(
|
||||
path_to_file: "#{release_dir}MainApplication.java",
|
||||
old_string: 'import com.mattermost.rnbeta.generated.BasePackageList;',
|
||||
new_string: "import #{package_id}.generated.BasePackageList;"
|
||||
)
|
||||
|
||||
Dir.glob('../android/app/src/main/java/com/mattermost/share/*.java') do |item|
|
||||
find_replace_string(
|
||||
path_to_file: item[1..-1],
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
7FCEFB9326B7934F006DC1DE /* SDWebImageDownloaderOperation+Swizzle.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FCEFB9226B7934F006DC1DE /* SDWebImageDownloaderOperation+Swizzle.m */; };
|
||||
7FEB109D1F61019C0039A015 /* MattermostManaged.m in Sources */ = {isa = PBXBuildFile; fileRef = 7FEB109A1F61019C0039A015 /* MattermostManaged.m */; };
|
||||
84E3264B229834C30055068A /* Config.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84E325FF229834C30055068A /* Config.swift */; };
|
||||
88F091443F8214E333C1742C /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 491398A1DE9F082851AB1A77 /* ExpoModulesProvider.swift */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXContainerItemProxy section */
|
||||
@@ -140,6 +141,7 @@
|
||||
32AC3D4EA79E44738A6E9766 /* OpenSans-BoldItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-BoldItalic.ttf"; path = "../assets/fonts/OpenSans-BoldItalic.ttf"; sourceTree = "<group>"; };
|
||||
3647DF63D6764CF093375861 /* OpenSans-ExtraBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-ExtraBold.ttf"; path = "../assets/fonts/OpenSans-ExtraBold.ttf"; sourceTree = "<group>"; };
|
||||
41F3AFE83AAF4B74878AB78A /* OpenSans-Italic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "OpenSans-Italic.ttf"; path = "../assets/fonts/OpenSans-Italic.ttf"; sourceTree = "<group>"; };
|
||||
491398A1DE9F082851AB1A77 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-Mattermost/ExpoModulesProvider.swift"; sourceTree = "<group>"; };
|
||||
4953BF5F2368AE8600593328 /* SwimeProxy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = SwimeProxy.swift; path = Mattermost/SwimeProxy.swift; sourceTree = "<group>"; };
|
||||
495BC95F23565ABF00C40C83 /* libXCDYouTubeKit.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libXCDYouTubeKit.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
495BC96123565ADD00C40C83 /* libYoutubePlayer-in-WKWebView.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = "libYoutubePlayer-in-WKWebView.a"; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
@@ -278,6 +280,22 @@
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
02FBDA8752CE364ABE5D4340 /* Mattermost */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
491398A1DE9F082851AB1A77 /* ExpoModulesProvider.swift */,
|
||||
);
|
||||
name = Mattermost;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
11AC929CFF00961DF6A31412 /* ExpoModulesProviders */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
02FBDA8752CE364ABE5D4340 /* Mattermost */,
|
||||
);
|
||||
name = ExpoModulesProviders;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
13B07FAE1A68108700A75B9A /* Mattermost */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -418,6 +436,7 @@
|
||||
37DF8AC51F5F0D410079BF89 /* Recovered References */,
|
||||
4B992D7BAAEDF8759DB525B5 /* Frameworks */,
|
||||
33E107B4DC21A5C48B09F800 /* Pods */,
|
||||
11AC929CFF00961DF6A31412 /* ExpoModulesProviders */,
|
||||
);
|
||||
indentWidth = 2;
|
||||
sourceTree = "<group>";
|
||||
@@ -779,6 +798,7 @@
|
||||
13B07FC11A68108700A75B9A /* main.m in Sources */,
|
||||
7FEB109D1F61019C0039A015 /* MattermostManaged.m in Sources */,
|
||||
536CC6C323E79287002C478C /* RNNotificationEventHandler+HandleReplyAction.m in Sources */,
|
||||
88F091443F8214E333C1742C /* ExpoModulesProvider.swift in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#import <React/RCTBridgeDelegate.h>
|
||||
#import <UMCore/UMAppDelegateWrapper.h>
|
||||
#import <Expo/Expo.h>
|
||||
#import "RNNotifications.h"
|
||||
|
||||
@interface AppDelegate : UMAppDelegateWrapper <UIApplicationDelegate, RCTBridgeDelegate>
|
||||
@interface AppDelegate : EXAppDelegateWrapper <UIApplicationDelegate, RCTBridgeDelegate>
|
||||
|
||||
@property (nonatomic, strong) UIWindow *window;
|
||||
|
||||
|
||||
@@ -5,9 +5,6 @@
|
||||
#import <React/RCTLinkingManager.h>
|
||||
#import <RNKeychain/RNKeychainManager.h>
|
||||
|
||||
#import <UMCore/UMModuleRegistry.h>
|
||||
#import <UMReactNativeAdapter/UMNativeModulesProxy.h>
|
||||
#import <UMReactNativeAdapter/UMModuleRegistryAdapter.h>
|
||||
#import <ReactNativeNavigation/ReactNativeNavigation.h>
|
||||
#import <UploadAttachments/UploadAttachments-Swift.h>
|
||||
#import <UploadAttachments/MattermostBucket.h>
|
||||
@@ -21,8 +18,6 @@
|
||||
|
||||
@interface AppDelegate () <RCTBridgeDelegate>
|
||||
|
||||
@property (nonatomic, strong) UMModuleRegistryAdapter *moduleRegistryAdapter;
|
||||
|
||||
@end
|
||||
|
||||
@implementation AppDelegate
|
||||
@@ -49,8 +44,6 @@ MattermostBucket* bucket = nil;
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
self.moduleRegistryAdapter = [[UMModuleRegistryAdapter alloc] initWithModuleRegistryProvider:[[UMModuleRegistryProvider alloc] init]];
|
||||
|
||||
if (bucket == nil) {
|
||||
bucket = [[MattermostBucket alloc] init];
|
||||
}
|
||||
@@ -153,7 +146,6 @@ MattermostBucket* bucket = nil;
|
||||
{
|
||||
NSMutableArray<id<RCTBridgeModule>> *extraModules = [NSMutableArray new];
|
||||
[extraModules addObjectsFromArray:[ReactNativeNavigation extraModulesForBridge:bridge]];
|
||||
[extraModules addObjectsFromArray:[_moduleRegistryAdapter extraModulesForBridge:bridge]];
|
||||
|
||||
// You can inject any extra modules that you would like here, more information at:
|
||||
// https://facebook.github.io/react-native/docs/native-modules-ios.html#dependency-injection
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
|
||||
#import <Expo/Expo.h>
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
|
||||
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
||||
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
||||
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
|
||||
|
||||
platform :ios, '12.1'
|
||||
|
||||
target 'Mattermost' do
|
||||
use_expo_modules!
|
||||
# Pods for Mattermost
|
||||
use_unimodules!(exclude: [
|
||||
'expo-image-loader',
|
||||
'expo-permissions',
|
||||
'expo-application',
|
||||
'expo-face-detector',
|
||||
])
|
||||
config = use_native_modules!
|
||||
use_react_native!(
|
||||
:path => config[:reactNativePath],
|
||||
|
||||
@@ -4,21 +4,14 @@ PODS:
|
||||
- BVLinearGradient (2.5.6):
|
||||
- React
|
||||
- DoubleConversion (1.1.6)
|
||||
- EXConstants (11.0.2):
|
||||
- EXErrorRecovery (3.0.3):
|
||||
- ExpoModulesCore
|
||||
- UMCore
|
||||
- EXFileSystem (11.1.3):
|
||||
- EXFileSystem (13.0.3):
|
||||
- ExpoModulesCore
|
||||
- UMCore
|
||||
- ExpoModulesCore (0.2.0):
|
||||
- ExpoModulesCore/Core (= 0.2.0)
|
||||
- ExpoModulesCore/Interfaces (= 0.2.0)
|
||||
- UMCore
|
||||
- ExpoModulesCore/Core (0.2.0):
|
||||
- UMCore
|
||||
- ExpoModulesCore/Interfaces (0.2.0):
|
||||
- ExpoModulesCore/Core
|
||||
- UMCore
|
||||
- Expo (43.0.2):
|
||||
- ExpoModulesCore
|
||||
- ExpoModulesCore (0.4.7):
|
||||
- React-Core
|
||||
- FBLazyVector (0.66.2)
|
||||
- FBReactNativeSpec (0.66.2):
|
||||
- RCT-Folly (= 2021.06.28.00-v2)
|
||||
@@ -470,14 +463,6 @@ PODS:
|
||||
- Starscream (4.0.4)
|
||||
- SwiftyJSON (5.0.1)
|
||||
- Swime (3.0.6)
|
||||
- UMAppLoader (2.2.0)
|
||||
- UMCore (7.1.2)
|
||||
- UMReactNativeAdapter (6.3.9):
|
||||
- ExpoModulesCore
|
||||
- React-Core
|
||||
- UMCore
|
||||
- UMTaskManagerInterface (6.2.0):
|
||||
- UMCore
|
||||
- WatermelonDB (0.24.0):
|
||||
- React
|
||||
- React-jsi
|
||||
@@ -489,8 +474,9 @@ DEPENDENCIES:
|
||||
- boost (from `../node_modules/react-native/third-party-podspecs/boost.podspec`)
|
||||
- BVLinearGradient (from `../node_modules/react-native-linear-gradient`)
|
||||
- DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
|
||||
- EXConstants (from `../node_modules/expo-constants/ios`)
|
||||
- EXErrorRecovery (from `../node_modules/expo-error-recovery/ios`)
|
||||
- EXFileSystem (from `../node_modules/expo-file-system/ios`)
|
||||
- Expo (from `../node_modules/expo/ios`)
|
||||
- ExpoModulesCore (from `../node_modules/expo-modules-core/ios`)
|
||||
- FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
|
||||
- FBReactNativeSpec (from `../node_modules/react-native/React/FBReactNativeSpec`)
|
||||
@@ -569,10 +555,6 @@ DEPENDENCIES:
|
||||
- "simdjson (from `../node_modules/@nozbe/simdjson`)"
|
||||
- Starscream (from `https://github.com/mattermost/Starscream.git`, commit `cb83dd247339ff6c155f0e749d6fe2cc145f5283`)
|
||||
- Swime (= 3.0.6)
|
||||
- UMAppLoader (from `../node_modules/unimodules-app-loader/ios`)
|
||||
- "UMCore (from `../node_modules/@unimodules/core/ios`)"
|
||||
- "UMReactNativeAdapter (from `../node_modules/@unimodules/react-native-adapter/ios`)"
|
||||
- UMTaskManagerInterface (from `../node_modules/unimodules-task-manager-interface/ios`)
|
||||
- "WatermelonDB (from `../node_modules/@nozbe/watermelondb`)"
|
||||
- XCDYouTubeKit (= 2.8.2)
|
||||
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
|
||||
@@ -601,10 +583,12 @@ EXTERNAL SOURCES:
|
||||
:path: "../node_modules/react-native-linear-gradient"
|
||||
DoubleConversion:
|
||||
:podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
|
||||
EXConstants:
|
||||
:path: "../node_modules/expo-constants/ios"
|
||||
EXErrorRecovery:
|
||||
:path: "../node_modules/expo-error-recovery/ios"
|
||||
EXFileSystem:
|
||||
:path: "../node_modules/expo-file-system/ios"
|
||||
Expo:
|
||||
:path: "../node_modules/expo/ios"
|
||||
ExpoModulesCore:
|
||||
:path: "../node_modules/expo-modules-core/ios"
|
||||
FBLazyVector:
|
||||
@@ -752,14 +736,6 @@ EXTERNAL SOURCES:
|
||||
Starscream:
|
||||
:commit: cb83dd247339ff6c155f0e749d6fe2cc145f5283
|
||||
:git: https://github.com/mattermost/Starscream.git
|
||||
UMAppLoader:
|
||||
:path: "../node_modules/unimodules-app-loader/ios"
|
||||
UMCore:
|
||||
:path: "../node_modules/@unimodules/core/ios"
|
||||
UMReactNativeAdapter:
|
||||
:path: "../node_modules/@unimodules/react-native-adapter/ios"
|
||||
UMTaskManagerInterface:
|
||||
:path: "../node_modules/unimodules-task-manager-interface/ios"
|
||||
WatermelonDB:
|
||||
:path: "../node_modules/@nozbe/watermelondb"
|
||||
Yoga:
|
||||
@@ -775,9 +751,10 @@ SPEC CHECKSUMS:
|
||||
boost: a7c83b31436843459a1961bfd74b96033dc77234
|
||||
BVLinearGradient: e3aad03778a456d77928f594a649e96995f1c872
|
||||
DoubleConversion: 831926d9b8bf8166fd87886c4abab286c2422662
|
||||
EXConstants: 4cb52b6d8f636c767104a44bf7db3873e9c01a6f
|
||||
EXFileSystem: 0a04aba8da751b9ac954065911bcf166503f8267
|
||||
ExpoModulesCore: 2734852616127a6c1fc23012197890a6f3763dc7
|
||||
EXErrorRecovery: ac2622400a32be84604591f70d0efff416e4b9a2
|
||||
EXFileSystem: 99aac7962c11c680681819dd9cbca24e20e5b1e7
|
||||
Expo: b66c9661cf2514b4adf67b8367178e8ed3eb9801
|
||||
ExpoModulesCore: c353a3bed60c3b83dbe63f134aaa7bf4733ffa16
|
||||
FBLazyVector: 57a8b34460679fb69e1ce7d625b04dbd1596b1f1
|
||||
FBReactNativeSpec: 18438b1c04ce502ed681cd19db3f4508964c082a
|
||||
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
|
||||
@@ -861,15 +838,11 @@ SPEC CHECKSUMS:
|
||||
Starscream: 5178aed56b316f13fa3bc55694e583d35dd414d9
|
||||
SwiftyJSON: 2f33a42c6fbc52764d96f13368585094bfd8aa5e
|
||||
Swime: d7b2c277503b6cea317774aedc2dce05613f8b0b
|
||||
UMAppLoader: 21af63390e55c82e037fb9752d93114a80ecf16e
|
||||
UMCore: ce3a4faa010239063b8343895b29a6d97b01069d
|
||||
UMReactNativeAdapter: d03cefd0e4e4179ab8c490408589f1c8a6c8b785
|
||||
UMTaskManagerInterface: 2be431101b73604e64fbfffcf759336f9d8fccbb
|
||||
WatermelonDB: e043b1a32ddc63864eb539b562e86ef80f8224cd
|
||||
XCDYouTubeKit: 79baadb0560673a67c771eba45f83e353fd12c1f
|
||||
Yoga: 9a08effa851c1d8cc1647691895540bc168ea65f
|
||||
YoutubePlayer-in-WKWebView: 4fca3b4f6f09940077bfbae7bddb771f2b43aacd
|
||||
|
||||
PODFILE CHECKSUM: 7d223db07581157903686d5b376c1b697a056354
|
||||
PODFILE CHECKSUM: b69e74be8467386d2b72be99483af3956a8ed0e0
|
||||
|
||||
COCOAPODS: 1.10.2
|
||||
|
||||
@@ -20,6 +20,6 @@ module.exports = {
|
||||
'<rootDir>/dist/assets/images/video_player/$1@2x.png',
|
||||
},
|
||||
transformIgnorePatterns: [
|
||||
'node_modules/(?!(@react-native|react-native)|jail-monkey|@sentry/react-native|react-navigation|@react-native-community/cameraroll|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|@unimodules/.*|sentry-expo|native-base|unimodules-permissions-interface|validator)',
|
||||
'node_modules/(?!(@react-native|react-native)|jail-monkey|@sentry/react-native|react-navigation|@react-native-community/cameraroll|react-clone-referenced-element|@react-native-community|expo(nent)?|@expo(nent)?/.*|react-navigation|@react-navigation/.*|sentry-expo|native-base|validator)',
|
||||
],
|
||||
};
|
||||
|
||||
2311
package-lock.json
generated
2311
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -76,7 +76,6 @@
|
||||
"react-native-share": "7.2.1",
|
||||
"react-native-slider": "0.11.0",
|
||||
"react-native-svg": "12.1.1",
|
||||
"react-native-unimodules": "0.14.10",
|
||||
"react-native-vector-icons": "9.0.0",
|
||||
"react-native-video": "5.2.0",
|
||||
"react-native-webview": "11.14.2",
|
||||
@@ -87,7 +86,8 @@
|
||||
"serialize-error": "8.1.0",
|
||||
"shallow-equals": "1.0.0",
|
||||
"tinycolor2": "1.4.2",
|
||||
"url-parse": "1.5.3"
|
||||
"url-parse": "1.5.3",
|
||||
"expo": ">=43.0.0-* <44.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/cli": "7.16.0",
|
||||
@@ -191,5 +191,10 @@
|
||||
"pattern": "**/*.stories.@(js|jsx|ts|tsx)",
|
||||
"outputFile": "./storybook/storyLoader.js"
|
||||
}
|
||||
},
|
||||
"expo": {
|
||||
"autolinking": {
|
||||
"exclude": ["expo-keep-awake", "expo-font", "expo-constants", "expo-application", "expo-assets", "expo-error-recovery"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,15 +174,13 @@ jest.mock('react-native-vector-icons', () => {
|
||||
};
|
||||
});
|
||||
|
||||
jest.mock('react-native-unimodules', () => ({
|
||||
FileSystem: {
|
||||
cacheDirectory: 'root/cache',
|
||||
documentDirectory: 'root/documents',
|
||||
deleteAsync: jest.fn().mockResolvedValue(true),
|
||||
getInfoAsync: jest.fn().mockResolvedValue({exists: false}),
|
||||
makeDirectoryAsync: jest.fn().mockResolvedValue(true),
|
||||
readDirectoryAsync: jest.fn().mockResolvedValue([]),
|
||||
},
|
||||
jest.mock('expo-file-system', () => ({
|
||||
cacheDirectory: 'root/cache',
|
||||
documentDirectory: 'root/documents',
|
||||
deleteAsync: jest.fn().mockResolvedValue(true),
|
||||
getInfoAsync: jest.fn().mockResolvedValue({exists: false}),
|
||||
makeDirectoryAsync: jest.fn().mockResolvedValue(true),
|
||||
readDirectoryAsync: jest.fn().mockResolvedValue([]),
|
||||
}));
|
||||
|
||||
jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper');
|
||||
|
||||
Reference in New Issue
Block a user