Skip to content

Instantly share code, notes, and snippets.

View surendharreddy's full-sized avatar

Surendhar Reddy surendharreddy

View GitHub Profile
@surendharreddy
surendharreddy / react-native-maps-enable-google-maps-instructions.md
Created February 28, 2017 10:43 — forked from heron2014/react-native-maps-enable-google-maps-instructions.md
Visual instructions how to enable Google Maps on IOS using react-native-maps

Visual instructions how to enable Google Maps on IOS using react-native-maps

This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps

Steps from scratch:

1.react-native init GoogleMapPlayground

2. cd GoogleMapPlayground

@surendharreddy
surendharreddy / Common-Currency.json
Last active August 4, 2017 07:56 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
@surendharreddy
surendharreddy / robots.txt
Created July 10, 2018 20:21
Adding robots.txt file to sites
## Add this to not index site
User-agent: *
Disallow: /
## Add this to index everything for every use agent
User-agent: *
Disallow:
@surendharreddy
surendharreddy / checkIosProvisiongProfile.md
Created September 7, 2018 02:57 — forked from akofman/checkIosProvisiongProfile.md
Check devices in a provisioning profile

After exporting an ipa for Ad Hoc Deployment, it could be useful to check if all authorized devices are well configured in a provisioning profile. To read a provisioning profile you have to unarchive your ipa :

$ unzip your.ipa

find the embedded.mobileprovision file :

$ ls yourUnzippedIpa/Payload/appName.app/embedded.mobileprovision
@surendharreddy
surendharreddy / mobile-dev-tips.md
Last active September 19, 2018 04:59
Mobile Development Tips

iOS

Record iPhone Simulator

  • Run the following command to record iPhone Simulator xcrun simctl io booted recordVideo video-name.mp4

Android

Taking screen shots on Geny motion

@surendharreddy
surendharreddy / react-native-errors.md
Last active September 28, 2018 03:24
Fixes for React Native most common errors.

[Android] app crashes with Fatal Exception: java.lang.NoClassDefFoundError okhttp3.OkHttpClient$Builder

/* Add following dependency to dependencies in android/app/build.gradle */ implementation 'com.android.support:multidex:1.0.3'

Import the following dependencies in MainApplication.java import android.support.multidex.MultiDex; import android.content.Context;

and add

@surendharreddy
surendharreddy / gist:020345c6518f5fe3dc264af62e0cc5e5
Created October 18, 2018 01:49 — forked from steipete/ios-xcode-device-support.sh
Using iOS 12.1 devices with Xcode 10.0
// The trick is to link the DeviceSupport folder from the beta to the stable version.
// Updated on Oct 9th, 2018 for Xcode 10
ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/12.1\ \(16B5068g\) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
// Then restart Xcode and reconnect your devices. You will need to do that for every beta of future iOS versions
// sudo needed if you run the Mac App Store version. Always download the dmg instead... you'll thank me later :)
$ git remote rm origin
$ git remote add origin git@github.com:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
@surendharreddy
surendharreddy / mutlidex-application.java
Created September 13, 2018 02:37
Add mutlidex support to react native android application
// Add `implementation 'com.android.support:multidex:1.0.3'` to dependencies in android/app/build.gradle
// Update MainApplication.java with following code with following
import android.support.multidex.MultiDexApplication;
public class MainApplication extends MultiDexApplication implements ReactApplication {
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
@Override
protected List<ReactPackage> getPackages() {
@surendharreddy
surendharreddy / Update-branch.md
Created May 2, 2019 02:37 — forked from santisbon/Update-branch.md
Bring your feature branch up to date with master. Deploying from Git branches adds flexibility. Bring your branch up to date with master and deploy it to make sure everything works. If everything looks good the branch can be merged. Otherwise, you can deploy your master branch to return production to its stable state.

Updating a feature branch

First we'll update your local master branch. Go to your local project and check out the branch you want to merge into (your local master branch)

$ git checkout master

Fetch the remote, bringing the branches and their commits from the remote repository. You can use the -p, --prune option to delete any remote-tracking references that no longer exist in the remote. Commits to master will be stored in a local branch, remotes/origin/master