@react-native-community/cli-platform-android
Advanced tools
Comparing version 12.1.1 to 12.2.0
@@ -107,2 +107,12 @@ /** | ||
}; | ||
export declare const customFlavor: { | ||
src: { | ||
e2e: { | ||
'AndroidManifest.xml': any; | ||
}; | ||
main: { | ||
'AndroidManifest.xml': any; | ||
}; | ||
}; | ||
}; | ||
//# sourceMappingURL=android.d.ts.map |
@@ -31,9 +31,16 @@ "use strict"; | ||
function findManifest(folder) { | ||
const manifestPath = _glob().default.sync(_path().default.join('**', 'AndroidManifest.xml'), { | ||
let manifestPaths = _glob().default.sync(_path().default.join('**', 'AndroidManifest.xml'), { | ||
cwd: folder, | ||
ignore: ['node_modules/**', '**/build/**', '**/debug/**', 'Examples/**', 'examples/**', '**/Pods/**', '**/sdks/hermes/android/**', '**/src/androidTest/**', '**/src/test/**'] | ||
})[0]; | ||
return manifestPath ? _path().default.join(folder, manifestPath) : null; | ||
}); | ||
if (manifestPaths.length > 1) { | ||
// if we have more than one manifest, pick the one in the main folder if present | ||
const mainManifest = manifestPaths.filter(manifestPath => manifestPath.includes('src/main/')); | ||
if (mainManifest.length === 1) { | ||
manifestPaths = mainManifest; | ||
} | ||
} | ||
return manifestPaths[0] ? _path().default.join(folder, manifestPaths[0]) : null; | ||
} | ||
//# sourceMappingURL=findManifest.ts.map |
@@ -67,6 +67,3 @@ "use strict"; | ||
const applicationId = buildGradlePath ? getApplicationId(buildGradlePath, packageName) : packageName; | ||
const mainActivity = (0, _getMainActivity.default)(manifestPath || ''); | ||
if (!mainActivity) { | ||
throw new (_cliTools().CLIError)(`Main activity not found in ${manifestPath}`); | ||
} | ||
const mainActivity = (0, _getMainActivity.default)(manifestPath || '') ?? ''; | ||
return { | ||
@@ -73,0 +70,0 @@ sourceDir, |
{ | ||
"name": "@react-native-community/cli-platform-android", | ||
"version": "12.1.1", | ||
"version": "12.2.0", | ||
"license": "MIT", | ||
@@ -10,3 +10,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"@react-native-community/cli-tools": "12.1.1", | ||
"@react-native-community/cli-tools": "12.2.0", | ||
"chalk": "^4.1.2", | ||
@@ -25,3 +25,3 @@ "execa": "^5.0.0", | ||
"devDependencies": { | ||
"@react-native-community/cli-types": "12.1.1", | ||
"@react-native-community/cli-types": "12.2.0", | ||
"@types/fs-extra": "^8.1.0", | ||
@@ -36,3 +36,3 @@ "@types/glob": "^7.1.1" | ||
}, | ||
"gitHead": "a45a2d92c3d53dcb0cf7ba8be4860ad75ff06702" | ||
"gitHead": "f30a010c3036b04f2bd5430a27586472466082a8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
228822
2403
+ Added@react-native-community/cli-tools@12.2.0(transitive)
- Removed@react-native-community/cli-tools@12.1.1(transitive)