Skip to content

Commit

Permalink
feat: Upgrade to RN 0.75.4 (#3243)
Browse files Browse the repository at this point in the history
* chore(example): upgrade to RN 0.75.4

* fixed prettier setup
  • Loading branch information
hannojg authored Oct 16, 2024
1 parent dc43cdb commit 5037e79
Show file tree
Hide file tree
Showing 14 changed files with 2,450 additions and 480 deletions.
2 changes: 1 addition & 1 deletion package/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
},
ignorePatterns: ['scripts', 'lib', 'docs', 'example', 'app.plugin.js'],
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended', '@react-native'],
extends: ['plugin:@typescript-eslint/recommended', '@react-native', 'plugin:prettier/recommended'],
rules: {
// eslint
semi: 'off',
Expand Down
5 changes: 3 additions & 2 deletions package/example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ react {
//
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
// hermesFlags = ["-O", "-output-source-map"]

/* Autolinking */
autolinkLibrariesWithApp()
}

project.ext.vectoricons = [
Expand Down Expand Up @@ -173,5 +176,3 @@ dependencies {

implementation project(':react-native-vision-camera')
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
3 changes: 2 additions & 1 deletion package/example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:hardwareAccelerated="true"
android:requestLegacyExternalStorage="true"
android:theme="@style/AppTheme">
android:theme="@style/AppTheme"
android:supportsRtl="true">
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
Expand Down
2 changes: 1 addition & 1 deletion package/example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.22"
kotlinVersion = "1.9.24"
}
repositories {
google()
Expand Down
1 change: 0 additions & 1 deletion package/example/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ org.gradle.configureondemand=true
# org.gradle.parallel=true

android.useAndroidX=true
android.enableJetifier=true

# Use this property to specify which architecture you want to build.
# You can also override it from the CLI using
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 3 additions & 1 deletion package/example/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
plugins { id("com.facebook.react.settings") }
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
rootProject.name = 'VisionCameraExample'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'

include ':react-native-vision-camera'
Expand Down
Loading

0 comments on commit 5037e79

Please sign in to comment.