https://medium.com/swift-programming/swift-caveats-for-structs-as-data-models-8299d84b49dc
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
General command: | |
keytool -exportcert -alias [your-key-alias] -keystore [/path/to/your/file.keystore] | openssl sha1 -binary | openssl base64 | |
Example: | |
On OS X, run: | |
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64 | |
On Windows, run: | |
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl | |
base64 |
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
- iOS IPA: | |
- bundle: react-native bundle --entry-file index.ios.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios | |
- archive: run achive under Product menu of Xcode | |
- Android APK: | |
- bundle: react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/ | |
- signed APK files: | |
- cd android && ./gradlew assembleRelease && cd .. | |
- cd android && ./gradlew assembleReleaseStaging && cd .. |
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
- CodePush release CLI: | |
1. code-push release-react <appName> <platform> | |
2. [--bundleName <bundleName>] | |
3. [--deploymentName <deploymentName>] | |
4. [--description <description>] | |
5. [--development <development>] | |
6. [--disabled <disabled>] | |
7. [--entryFile <entryFile>] | |
8. [--gradleFile <gradleFile>] | |
9. [--mandatory] |
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
- Fork add upstream: | |
- git remote add upstream [url] | |
- Fork sync: | |
- git fetch upstream | |
- git checkout master | |
- git merge upstream/master |
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
git config core.ignorecase 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
1. Generate ssh key: ssh-keygen -t rsa -C "your_email@example.com" | |
2. Go to ssh folder: cd ~/.ssh/ | |
3. Copy content of id_rsa.pub file | |
4. Go to bitbucket setting by going to your profile > select Bitbucket settings. Then select SSH keys and add new one. |
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
Terminating a process on port 8081 | |
Run the following command on a Mac to find the id for the process that is listening on port 8081: | |
$ sudo lsof -i :8081 | |
Then run the following to terminate the process: | |
$ kill -9 <PID> | |
On Windows you can find the process using port 8081 using Resource Monitor and stop it using Task Manager. |
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
Create PEM file from p12 file. | |
openssl pkcs12 -in pushcert.p12 -out pushcert.pem -nodes -clcerts |
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
For Xcode 8.2 or later | |
You can take videos and screenshots of Simulator using the xcrun Xcode command-line utility. | |
1. Run your app on the simulator. | |
2. Open Terminal.app | |
3. Run the command | |
- To take a screenshot, xcrun simctl io booted screenshot | |
- To take a video, xcrun simctl io booted recordVideo <filename>.<file extension>. | |
For example: xcrun simctl io booted recordVideo appvideo.mov |
OlderNewer