@react-native-community/cli-platform-android
Advanced tools
Comparing version 14.0.1 to 14.1.0
@@ -60,7 +60,22 @@ "use strict"; | ||
let packages = getClassNameMatches(files, folder); | ||
if (!packages.length) { | ||
files = getMainActivityFiles(folder, false); | ||
packages = getClassNameMatches(files, folder); | ||
if (packages && packages.length > 0 && Array.isArray(packages[0])) { | ||
return packages[0][1]; | ||
} | ||
/* | ||
When module contains `expo-module.config.json` we return null | ||
because expo modules follow other practices and don't implement | ||
ReactPackage/TurboReactPackage directly, so it doesn't make sense | ||
to scan and read hundreds of files to get package class name. | ||
Exception is `expo` package itself which contains `expo-module.config.json` | ||
and implements `ReactPackage/TurboReactPackage`. | ||
Following logic is done due to performance optimization. | ||
*/ | ||
if (_fs().default.existsSync(_path().default.join(folder, '..', 'expo-module.config.json'))) { | ||
return null; | ||
} | ||
files = getMainActivityFiles(folder, false); | ||
packages = getClassNameMatches(files, folder); | ||
// @ts-ignore | ||
@@ -67,0 +82,0 @@ return packages.length ? packages[0][1] : null; |
{ | ||
"name": "@react-native-community/cli-platform-android", | ||
"version": "14.0.1", | ||
"version": "14.1.0", | ||
"license": "MIT", | ||
@@ -10,7 +10,7 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "14.0.1", | ||
"@react-native-community/cli-tools": "14.1.0", | ||
"chalk": "^4.1.2", | ||
"execa": "^5.0.0", | ||
"fast-glob": "^3.3.2", | ||
"fast-xml-parser": "^4.2.4", | ||
"fast-xml-parser": "^4.4.1", | ||
"logkitty": "^0.7.1" | ||
@@ -25,3 +25,3 @@ }, | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "14.0.1", | ||
"@react-native-community/cli-types": "14.1.0", | ||
"@types/fs-extra": "^8.1.0" | ||
@@ -35,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "18e8dbaba3ede0db9fe3290dab8678ce79072f2b" | ||
"gitHead": "9eb448fe7286bdf5f12a820c75be4ef0cf5eef67" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
245813
2540
+ Added@react-native-community/cli-tools@14.1.0(transitive)
- Removed@react-native-community/cli-tools@14.0.1(transitive)
Updatedfast-xml-parser@^4.4.1