Skip to content

Commit

Permalink
chore(android): attempt working gradle sync
Browse files Browse the repository at this point in the history
  • Loading branch information
mgcrea committed Feb 8, 2024
1 parent 88b3650 commit d036a31
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 7 deletions.
3 changes: 2 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ dependencies {
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native"
implementation "androidx.camera:camera-core:1.1.0-beta02"
implementation "com.facebook.react:react-android:+"
implementation 'com.google.mlkit:barcode-scanning:17.2.0'
implementation project(":react-native-vision-camera")
implementation project(":react-native-worklets-core")
}

if (isNewArchitectureEnabled()) {
Expand Down
5 changes: 5 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
include ':react-native-vision-camera'
project(':react-native-vision-camera').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vision-camera/android')

include ':react-native-worklets-core'
project(':react-native-worklets-core').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-worklets-core/android')

apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
},
"devDependencies": {
"@mgcrea/eslint-config-react-native": "^0.9.5",
"@react-native-community/cli-platform-android": "^12.3.5",
"@react-native-community/eslint-config": "^3.2.0",
"@react-native/gradle-plugin": "^0.73.4",
"@testing-library/jest-native": "^5.4.3",
Expand Down
40 changes: 34 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d036a31

Please sign in to comment.