-
Evita en lo posible dejar código que no se utiliza: Eliminar código no utilizado es una excelente práctica. Puede ayudar a reducir la complejidad y el mantenimiento innecesario.
-
Comenta tu código cuando sea muy extenso y/o complejo de entender: Comentar el código complejo o poco intuitivo puede facilitar la comprensión para otros desarrolladores. Sin embargo, es mejor escribir código autoexplicativo siempre que sea posible.
-
Utiliza software para control de versiones (GIT): El uso de control de versiones como Git es fundamental para rastrear y gestionar cambios en el código.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity >=0.7.0 <0.9.0; | |
contract EthereumCohortWriters { | |
string[] ethereumWriters; | |
function addNewWriter(string calldata writer) public { | |
ethereumWriters.push(writer); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"overrides": [ | |
{ | |
"files": "*.sol", | |
"options": { | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"bracketSpacing": false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"overrides": [ | |
{ | |
"files": "*.sol", | |
"options": { | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"bracketSpacing": false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"overrides": [ | |
{ | |
"files": "*.sol", | |
"options": { | |
"printWidth": 80, | |
"tabWidth": 4, | |
"useTabs": false, | |
"singleQuote": false, | |
"bracketSpacing": false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"files.exclude": { | |
"**/.classpath": true, | |
"**/.project": true, | |
"**/.settings": true, | |
"**/.factorypath": true | |
}, | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"editor.tabSize": 2, | |
"editor.formatOnSave": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity >= 0.4.22 <0.9.0; | |
library console { | |
address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67); | |
function _sendLogPayload(bytes memory payload) private view { | |
uint256 payloadLength = payload.length; | |
address consoleAddress = CONSOLE_ADDRESS; | |
assembly { |
buscar com.<antiguo.nombre.paquete>
por reemplazar nuevo.nombre.paquete
Los nombres de los paquetes dependerán de los cambios en las difentes versiones, pero usualmente los archivos a modificar son:
<nombre-aplicacion-id>
- android/app/src/main/java/com//MainActivity.java
- android/app/src/main/java/com//MainApplication.java
- android/app/src/debug/java/com//ReactNativeFlipper.java
- android/app/src/main/AndroidManifest.xml
- android/app/build.gradle
- android/app/BUCK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Plugins: | |
- Prettier | |
- Auto Rename Tag | |
[Ctrl+,] >> Settings > change editor ui "ui" to "json" | |
{ | |
"workbench.settings.editor": "json", | |
"editor.fontSize": 13, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb uninstall PACKAGE_NAME |
NewerOlder