mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-08-07 04:42:57 -04:00
Update react native to 0.76.9 (#2974)
* Changes according to the RN upgrade helper * Update .flowconfig * Update Gemfile.lock * Fix typo in minimunSDK version specified * Disable New Architecture * Prefer double-quotes * Update .flowconfig * Update vision camera patch version number * Update package-lock.json * Update Podfile.lock * Remove no longer needed mock
This commit is contained in:
1 parent
895bab8ffa
commit
1f0300db57
16 files changed
+1477
-1539
No files matched your search
+19
-1
@@ -35,6 +35,25 @@ node_modules/react-native/Libraries/polyfills/.*
|
||||
.*/node_modules/hermes-estree/dist/predicates.js.flow
|
||||
.*/node_modules/react-native/Libraries/Renderer/shims/ReactNativeTypes.js
|
||||
.*/node_modules/react-native/Libraries/Text/TextNativeComponent.js
|
||||
.*/node_modules/react-native/flow/jest.js
|
||||
.*/node_modules/@react-native/community-cli-plugin/dist/commands/start/middleware.js.flow
|
||||
.*/node_modules/@react-native/community-cli-plugin/dist/utils/errors.js.flow
|
||||
.*/node_modules/@react-native/community-cli-plugin/dist/utils/logger.js.flow
|
||||
.*/node_modules/@react-native/dev-middleware/dist/inspector-proxy/types.js.flow
|
||||
.*/node_modules/babel-plugin-syntax-hermes-parser/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
|
||||
.*/node_modules/metro-babel-transformer/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
|
||||
.*/node_modules/metro-file-map/src/lib/TreeFS.js.flow
|
||||
.*/node_modules/metro-resolver/src/PackageExportsResolve.js.flow
|
||||
.*/node_modules/metro-source-map/src/generateFunctionMap.js.flow
|
||||
.*/node_modules/metro-transform-worker/src/index.js.flow
|
||||
.*/node_modules/metro/node_modules/hermes-parser/dist/traverse/getVisitorKeys.js.flow
|
||||
.*/node_modules/metro/src/ModuleGraph/worker/collectDependencies.js.flow
|
||||
.*/node_modules/metro/src/Server.js.flow
|
||||
.*/node_modules/react-native/Libraries/Animated/components/AnimatedView.js
|
||||
.*/node_modules/react-native/Libraries/Animated/createAnimatedComponent.js
|
||||
.*/node_modules/react-native/Libraries/Animated/nodes/AnimatedObject.js
|
||||
.*/node_modules/react-native/Libraries/vendor/emitter/EventEmitter.js
|
||||
.*/node_modules/react-native/src/private/animated/NativeAnimatedHelper.js
|
||||
|
||||
[untyped]
|
||||
.*/node_modules/@react-native-community/cli/.*/.*
|
||||
@@ -43,7 +62,6 @@ node_modules/react-native/Libraries/polyfills/.*
|
||||
|
||||
[libs]
|
||||
node_modules/react-native/interface.js
|
||||
node_modules/react-native/flow/
|
||||
|
||||
[options]
|
||||
emoji=true
|
||||
|
||||
@@ -7,7 +7,7 @@ ruby ">= 2.6.10"
|
||||
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
|
||||
gem "activesupport", ">= 6.1.7.5", "!= 7.1.0"
|
||||
gem "cocoapods", ">= 1.13", "!= 1.15.0", "!= 1.15.1"
|
||||
gem "concurrent-ruby", "<= 1.3.4"
|
||||
gem "concurrent-ruby", "< 1.3.4"
|
||||
gem "xcodeproj", "< 1.26.0"
|
||||
|
||||
gem "fastlane"
|
||||
|
||||
+2
-2
@@ -97,7 +97,7 @@ GEM
|
||||
colored2 (3.1.2)
|
||||
commander (4.6.0)
|
||||
highline (~> 2.0.0)
|
||||
concurrent-ruby (1.3.4)
|
||||
concurrent-ruby (1.3.3)
|
||||
connection_pool (2.5.3)
|
||||
declarative (0.0.20)
|
||||
digest-crc (0.7.0)
|
||||
@@ -328,7 +328,7 @@ PLATFORMS
|
||||
DEPENDENCIES
|
||||
activesupport (>= 6.1.7.5, != 7.1.0)
|
||||
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
|
||||
concurrent-ruby (<= 1.3.4)
|
||||
concurrent-ruby (< 1.3.4)
|
||||
fastlane
|
||||
fastlane-sirp!
|
||||
nokogiri
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
|
||||
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
|
||||
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
|
||||
import com.facebook.react.defaults.DefaultReactNativeHost
|
||||
import com.facebook.react.soloader.OpenSourceMergedSoMapping
|
||||
import com.facebook.soloader.SoLoader
|
||||
|
||||
class MainApplication : Application(), ReactApplication {
|
||||
@@ -34,7 +35,7 @@ class MainApplication : Application(), ReactApplication {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
SoLoader.init(this, false)
|
||||
SoLoader.init(this, OpenSourceMergedSoMapping)
|
||||
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
|
||||
// If you opted-in for the New Architecture, we load the native entry point for this app.
|
||||
load()
|
||||
|
||||
@@ -4,9 +4,9 @@ import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
buildscript {
|
||||
ext {
|
||||
buildToolsVersion = "34.0.0"
|
||||
minSdkVersion = 23
|
||||
compileSdkVersion = 34
|
||||
buildToolsVersion = "35.0.0"
|
||||
minSdkVersion = 24
|
||||
compileSdkVersion = 35
|
||||
targetSdkVersion = 34
|
||||
ndkVersion = "26.1.10909125"
|
||||
kotlinVersion = "1.9.25"
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
Vendored
+4
-1
@@ -15,6 +15,8 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
@@ -84,7 +86,8 @@ done
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
|
||||
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||
' "$PWD" ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
||||
Vendored
+2
@@ -13,6 +13,8 @@
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
@rem SPDX-License-Identifier: Apache-2.0
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# Disable New Architecture
|
||||
ENV["RCT_NEW_ARCH_ENABLED"] = "0"
|
||||
|
||||
# setup instructions from https://www.npmjs.com/package/react-native-permissions
|
||||
def node_require( script )
|
||||
# Resolve script with node to allow for hoisting
|
||||
|
||||
+510
-441
File diff suppressed because it is too large.
Load diff
@@ -594,7 +594,7 @@
|
||||
"$(inherited)",
|
||||
);
|
||||
INFOPLIST_FILE = iNaturalistReactNativeTests/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
@@ -619,7 +619,7 @@
|
||||
DEVELOPMENT_TEAM = N5J7L4P93Z;
|
||||
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "i386 arm64";
|
||||
INFOPLIST_FILE = iNaturalistReactNativeTests/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
@@ -940,7 +940,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD = "";
|
||||
LDPLUSPLUS = "";
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
@@ -1020,7 +1020,7 @@
|
||||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
||||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD = "";
|
||||
LDPLUSPLUS = "";
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
@@ -1073,7 +1073,7 @@
|
||||
INFOPLIST_FILE = "iNaturalistReactNative-ShareExtension/Info.plist";
|
||||
INFOPLIST_KEY_CFBundleDisplayName = "iNaturalistReactNative-ShareExtension";
|
||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
@@ -1118,7 +1118,7 @@
|
||||
INFOPLIST_FILE = "iNaturalistReactNative-ShareExtension/Info.plist";
|
||||
INFOPLIST_KEY_CFBundleDisplayName = "iNaturalistReactNative-ShareExtension";
|
||||
INFOPLIST_KEY_NSHumanReadableCopyright = "";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 15.1;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
|
||||
Generated
+913
-1075
File diff suppressed because it is too large.
Load diff
+11
-6
@@ -86,7 +86,7 @@
|
||||
"react": "18.3.1",
|
||||
"react-dom": "18.3.1",
|
||||
"react-i18next": "^14.1.0",
|
||||
"react-native": "0.75.5",
|
||||
"react-native": "0.76.9",
|
||||
"react-native-animated-dots-carousel": "^2.0.0",
|
||||
"react-native-audio-recorder-player": "^3.6.7",
|
||||
"react-native-bouncy-checkbox": "^3.0.7",
|
||||
@@ -140,14 +140,19 @@
|
||||
"zustand": "^4.5.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.25.2",
|
||||
"@babel/preset-env": "^7.25.3",
|
||||
"@babel/preset-react": "^7.24.1",
|
||||
"@babel/runtime": "^7.24.4",
|
||||
"@babel/runtime": "^7.25.0",
|
||||
"@faker-js/faker": "^8.4.1",
|
||||
"@fluent/syntax": "^0.19.0",
|
||||
"@react-native/babel-preset": "0.75.5",
|
||||
"@react-native/eslint-config": "0.75.5",
|
||||
"@react-native/metro-config": "0.75.5",
|
||||
"@react-native/typescript-config": "0.75.5",
|
||||
"@react-native-community/cli": "15.0.1",
|
||||
"@react-native-community/cli-platform-android": "15.0.1",
|
||||
"@react-native-community/cli-platform-ios": "15.0.1",
|
||||
"@react-native/babel-preset": "0.76.9",
|
||||
"@react-native/eslint-config": "0.76.9",
|
||||
"@react-native/metro-config": "0.76.9",
|
||||
"@react-native/typescript-config": "0.76.9",
|
||||
"@tanstack/eslint-plugin-query": "^5.28.11",
|
||||
"@testing-library/jest-native": "^5.4.3",
|
||||
"@testing-library/react-native": "^12.4.5",
|
||||
|
||||
File renamed without changes.
@@ -10,7 +10,6 @@ beforeAll( ( ) => {
|
||||
|
||||
jest.mock( "react-native-circular-progress-indicator", () => "CircularProgress" );
|
||||
|
||||
jest.mock( "react-native/Libraries/Animated/NativeAnimatedHelper" );
|
||||
describe( "UploadStatus", () => {
|
||||
it( "displays start icon when upload is unsynced and not queued", async () => {
|
||||
render( <UploadStatus progress={0} queued={false} /> );
|
||||
|
||||
Reference in new issue
Block a user