Skip to content

Commit

Permalink
fix: Fix Android import path due to new subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Apr 22, 2024
1 parent 884b89d commit 406b741
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
ecmaVersion: 2018,
sourceType: 'module',
},
ignorePatterns: ['scripts', 'lib', 'docs', 'example', 'app.plugin.js'],
ignorePatterns: ['scripts', 'lib', 'docs', 'example'],
plugins: ['@typescript-eslint'],
extends: ['plugin:@typescript-eslint/recommended', '@react-native'],
rules: {
Expand Down
3 changes: 2 additions & 1 deletion package/app.plugin.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
module.exports = require('./lib/commonjs/expo-plugin/withVisionCamera')
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
module.exports = require('./expo-plugin/withVisionCamera')
1 change: 1 addition & 0 deletions package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"source": "src/index",
"files": [
"src",
"react-native.config.js",
"lib/commonjs",
"lib/module",
"lib/typescript",
Expand Down
16 changes: 16 additions & 0 deletions package/react-native.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
dependency: {
platforms: {
/**
* @type {import('@react-native-community/cli-types').IOSDependencyParams}
*/
ios: {},
/**
* @type {import('@react-native-community/cli-types').AndroidDependencyParams}
*/
android: {
packageImportPath: 'import com.mrousavy.camera.react.CameraPackage;',
},
},
},
}
2 changes: 2 additions & 0 deletions package/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@
},
"include": [
"src",
"app.plugin.js",
".eslintrc.js",
"babel.config.js",
"react-native.config.js",
],
"exclude": [
"node_modules",
Expand Down

0 comments on commit 406b741

Please sign in to comment.