@haxibiao/react-native-make
Advanced tools
Comparing version 3.0.8 to 3.0.9
@@ -19,3 +19,3 @@ "use strict"; | ||
}; | ||
const generateLegacyIcons = (iconSource) => Promise.all(config_1.config.androidIconSizes.map((size) => image_processing_1.generateResizedAssets(iconSource, `${config_2.ANDROID_MAIN_RES_PATH}/mipmap-${size.density}/ic_launcher.png`, size.value))); | ||
const generateLegacyIcons = (iconSource) => Promise.all(config_1.config.androidIconSizes.map(size => image_processing_1.generateResizedAssets(iconSource, `${config_2.ANDROID_MAIN_RES_PATH}/mipmap-${size.density}/ic_launcher.png`, size.value))); | ||
const generateAdaptiveIcons = (iconSource, backgroundColor) => { | ||
@@ -40,8 +40,11 @@ file_processing_1.replaceInFile(path_1.join(__dirname, `../../../../templates/android/values/colors-icon.xml`), `${config_2.ANDROID_MAIN_RES_PATH}/values/colors-icon.xml`, [ | ||
]); | ||
return Promise.all(config_1.config.androidIconSizes.map((size) => generateAdaptiveIcon(iconSource, size.density, size.value))); | ||
return Promise.all(config_1.config.androidIconSizes.map(size => generateAdaptiveIcon(iconSource, size.density, size.value))); | ||
}; | ||
const generateAdaptiveIcon = (iconSource, density, value) => { | ||
const destinationDirectoryPath = `${config_2.ANDROID_MAIN_RES_PATH}/mipmap-${density}`; | ||
file_processing_1.copyFile(path_1.join(__dirname, `../../../../templates/android/mipmap/ic_launcher.xml`), `${destinationDirectoryPath}/ic_launcher.xml`); | ||
// copyFile( | ||
// join(__dirname, `../../../../templates/android/mipmap/ic_launcher.xml`), | ||
// `${destinationDirectoryPath}/ic_launcher.xml` | ||
// ); | ||
return image_processing_1.generateResizedAssets(iconSource, `${destinationDirectoryPath}/ic_launcher_round.png`, value); | ||
}; |
{ | ||
"name": "@haxibiao/react-native-make", | ||
"version": "3.0.8", | ||
"version": "3.0.9", | ||
"main": "modules/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
141181
882