Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@haxibiao/react-native-make

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@haxibiao/react-native-make - npm Package Compare versions

Comparing version 3.0.8 to 3.0.9

9

dist/modules/setIcon/android/service.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc