mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Update to react-native 0.80.x (#3179)
* Update to latest 0.79 * Update package.json * Update .flowconfig * Update files with upgrade helper * Info.plist updates * Update package-lock.json * Update Podfile.lock
This commit is contained in:
14
.flowconfig
14
.flowconfig
@@ -117,6 +117,20 @@ node_modules/react-native/Libraries/polyfills/.*
|
||||
.*/node_modules/react-native/src/private/webapis/dom/nodes/internals/NodeInternals.js
|
||||
.*/node_modules/react-native/src/private/webapis/dom/nodes/internals/ReactNativeDocumentElementInstanceHandle.js
|
||||
.*/node_modules/react-native/src/private/webapis/dom/nodes/internals/ReactNativeDocumentInstanceHandle.js
|
||||
.*/node_modules/@react-native/community-cli-plugin/dist/commands/bundle/assetPathUtils.js.flow
|
||||
.*/node_modules/@react-native/dev-middleware/dist/inspector-proxy/Device.js.flow
|
||||
.*/node_modules/react-native/Libraries/Animated/components/AnimatedFlatList.js
|
||||
.*/node_modules/react-native/Libraries/Animated/components/AnimatedSectionList.js
|
||||
.*/node_modules/react-native/Libraries/Components/ToastAndroid/ToastAndroid.js.flow
|
||||
.*/node_modules/react-native/Libraries/StyleSheet/StyleSheet.js
|
||||
.*/node_modules/react-native/Libraries/StyleSheet/StyleSheet.js.flow
|
||||
.*/node_modules/react-native/Libraries/StyleSheet/StyleSheetExports.js.flow
|
||||
.*/node_modules/react-native/Libraries/StyleSheet/flattenStyle.js
|
||||
.*/node_modules/react-native/Libraries/StyleSheet/private/_TransformStyle.js
|
||||
.*/node_modules/react-native/Libraries/Utilities/PlatformTypes.js
|
||||
.*/node_modules/react-native/Libraries/vendor/core/ErrorUtils.js
|
||||
.*/node_modules/react-native/src/private/components/safeareaview/SafeAreaView_INTERNAL_DO_NOT_USE.js
|
||||
.*/node_modules/react-native/src/private/devsupport/rndevtools/ReactDevToolsSettingsManager.js.flow
|
||||
|
||||
[untyped]
|
||||
.*/node_modules/@react-native-community/cli/.*/.*
|
||||
|
||||
@@ -4,13 +4,11 @@ import android.app.Application
|
||||
import com.facebook.react.PackageList
|
||||
import com.facebook.react.ReactApplication
|
||||
import com.facebook.react.ReactHost
|
||||
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
|
||||
import com.facebook.react.ReactNativeHost
|
||||
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 {
|
||||
|
||||
@@ -35,10 +33,6 @@ class MainApplication : Application(), ReactApplication {
|
||||
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
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()
|
||||
}
|
||||
loadReactNative(this)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ buildscript {
|
||||
compileSdkVersion = 35
|
||||
targetSdkVersion = 35
|
||||
ndkVersion = "27.1.12297006"
|
||||
kotlinVersion = "2.0.21"
|
||||
kotlinVersion = "2.1.20"
|
||||
// This specifies which LiteRT version to use for our vision-plugin.
|
||||
litertVersion = "1.4.0"
|
||||
}
|
||||
|
||||
BIN
android/gradle/wrapper/gradle-wrapper.jar
vendored
BIN
android/gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.1-bin.zip
|
||||
networkTimeout=10000
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
|
||||
4
android/gradlew
vendored
4
android/gradlew
vendored
@@ -114,7 +114,7 @@ case "$( uname )" in #(
|
||||
NONSTOP* ) nonstop=true ;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
CLASSPATH="\\\"\\\""
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
@@ -213,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
set -- \
|
||||
"-Dorg.gradle.appname=$APP_BASE_NAME" \
|
||||
-classpath "$CLASSPATH" \
|
||||
org.gradle.wrapper.GradleWrapperMain \
|
||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
||||
"$@"
|
||||
|
||||
# Stop when "xargs" is not available.
|
||||
|
||||
9
android/gradlew.bat
vendored
9
android/gradlew.bat
vendored
@@ -1,3 +1,8 @@
|
||||
@REM Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
@REM
|
||||
@REM This source code is licensed under the MIT license found in the
|
||||
@REM LICENSE file in the root directory of this source tree.
|
||||
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@@ -70,11 +75,11 @@ goto fail
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
set CLASSPATH=
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
|
||||
2146
ios/Podfile.lock
2146
ios/Podfile.lock
File diff suppressed because it is too large
Load Diff
@@ -6,6 +6,19 @@
|
||||
<string>org.inaturalist.iNaturalistMobile</string>
|
||||
<key>HostAppURLScheme</key>
|
||||
<string>inaturalistmobile://</string>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<key>NSExceptionDomains</key>
|
||||
<dict>
|
||||
<key>localhost</key>
|
||||
<dict>
|
||||
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionAttributes</key>
|
||||
@@ -21,31 +34,20 @@
|
||||
<key>NSExtensionPointIdentifier</key>
|
||||
<string>com.apple.share-services</string>
|
||||
</dict>
|
||||
<key>RCTNewArchEnabled</key>
|
||||
<true/>
|
||||
<key>ReactShareViewBackgroundColor</key>
|
||||
<dict>
|
||||
<key>Red</key>
|
||||
<integer>1</integer>
|
||||
<key>Green</key>
|
||||
<key>Alpha</key>
|
||||
<integer>1</integer>
|
||||
<key>Blue</key>
|
||||
<integer>1</integer>
|
||||
<key>Alpha</key>
|
||||
<key>Green</key>
|
||||
<integer>1</integer>
|
||||
<key>Red</key>
|
||||
<integer>1</integer>
|
||||
<key>Transparent</key>
|
||||
<false/>
|
||||
</dict>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
<dict>
|
||||
<key>NSAllowsArbitraryLoads</key>
|
||||
<true/>
|
||||
<key>NSExceptionDomains</key>
|
||||
<dict>
|
||||
<key>localhost</key>
|
||||
<dict>
|
||||
<key>NSExceptionAllowsInsecureHTTPLoads</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -73,6 +73,8 @@
|
||||
<string>Export iNaturalist photos to your library.</string>
|
||||
<key>NSPhotoLibraryUsageDescription</key>
|
||||
<string>Export and import iNaturalist photos to and from your library.</string>
|
||||
<key>RCTNewArchEnabled</key>
|
||||
<true/>
|
||||
<key>UIAppFonts</key>
|
||||
<array>
|
||||
<string>Lato-Bold.ttf</string>
|
||||
|
||||
801
package-lock.json
generated
801
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
28
package.json
28
package.json
@@ -88,10 +88,10 @@
|
||||
"lodash": "^4.17.21",
|
||||
"markdown-it": "^14.1.0",
|
||||
"nativewind": "^2.0.11",
|
||||
"react": "19.0.0",
|
||||
"react-dom": "19.0.0",
|
||||
"react": "19.1.0",
|
||||
"react-dom": "19.1.0",
|
||||
"react-i18next": "^14.1.0",
|
||||
"react-native": "0.79.5",
|
||||
"react-native": "0.80.2",
|
||||
"react-native-animated-dots-carousel": "^2.0.0",
|
||||
"react-native-audio-recorder-player": "^3.6.7",
|
||||
"react-native-bouncy-checkbox": "^3.0.7",
|
||||
@@ -150,13 +150,13 @@
|
||||
"@babel/runtime": "^7.25.0",
|
||||
"@faker-js/faker": "^8.4.1",
|
||||
"@fluent/syntax": "^0.19.0",
|
||||
"@react-native-community/cli": "18.0.0",
|
||||
"@react-native-community/cli-platform-android": "18.0.0",
|
||||
"@react-native-community/cli-platform-ios": "18.0.0",
|
||||
"@react-native/babel-preset": "0.79.5",
|
||||
"@react-native/eslint-config": "0.79.5",
|
||||
"@react-native/metro-config": "0.79.5",
|
||||
"@react-native/typescript-config": "0.79.5",
|
||||
"@react-native-community/cli": "19.1.1",
|
||||
"@react-native-community/cli-platform-android": "19.1.1",
|
||||
"@react-native-community/cli-platform-ios": "19.1.1",
|
||||
"@react-native/babel-preset": "0.80.2",
|
||||
"@react-native/eslint-config": "0.80.2",
|
||||
"@react-native/metro-config": "0.80.2",
|
||||
"@react-native/typescript-config": "0.80.2",
|
||||
"@tanstack/eslint-plugin-query": "^5.28.11",
|
||||
"@testing-library/jest-native": "^5.4.3",
|
||||
"@testing-library/react-native": "^13.3.3",
|
||||
@@ -164,9 +164,9 @@
|
||||
"@types/jsrsasign": "^10.5.15",
|
||||
"@types/lodash": "^4.17.20",
|
||||
"@types/markdown-it": "^14.1.2",
|
||||
"@types/react": "^19.0.0",
|
||||
"@types/react-dom": "^19.0.0",
|
||||
"@types/react-test-renderer": "^19.0.0",
|
||||
"@types/react": "^19.1.0",
|
||||
"@types/react-dom": "^19.1.0",
|
||||
"@types/react-test-renderer": "^19.1.0",
|
||||
"@types/sanitize-html": "^2.13.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.32.1",
|
||||
"babel-plugin-module-resolver": "^5.0.0",
|
||||
@@ -203,7 +203,7 @@
|
||||
"patch-package": "^8.0.1",
|
||||
"react-native-clean-project": "^4.0.3",
|
||||
"react-native-config-node": "^0.0.3",
|
||||
"react-test-renderer": "19.0.0",
|
||||
"react-test-renderer": "19.1.0",
|
||||
"reassure": "^1.1.0",
|
||||
"tailwindcss": "^3.3.2",
|
||||
"ts-node": "^10.9.2",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"extends": "@react-native/typescript-config/tsconfig.json",
|
||||
"extends": "@react-native/typescript-config",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
|
||||
Reference in New Issue
Block a user