- In simulator, press
⌘ + /or go toDebug -> Open System Log. - That's it.
- Run
instruments -s devices
| #!/usr/bin/env bash | |
| PLUGIN_BASE='/opt/cisco/secureclient/bin/plugins' | |
| read -r -d '' USAGE << EGASU | |
| Usage: `basename $0` [-s|-e|-d|-h] | |
| -s, --status Print Umbrella Roaming Security module status | |
| -e, --enable Enable Umbrella Roaming Security module | |
| -d, --disable Disable Umbrella Roaming Security module |
| # This is Git's per-user configuration file. | |
| [user] | |
| # Please adapt and uncomment the following lines: | |
| # name = Garrett McCullough | |
| # email = [email protected] | |
| [user] | |
| name = Garrett McCullough | |
| email = [email protected] | |
| [alias] |
| apply from: rootProject.file('gradle/install-git-hooks.gradle') |
First of all, this is not my brilliant effort to get react-native working on Windows, it is the collation of work by others, particularly @mqli and @Bernd Wessels. I've just summarised what worked for me.
If you would prefer to read what I've plagerised, head over to mqli's great gist
react-native-cli 0.1.5, react-native 0.12.0 on Windows 10, node 4.1.1, and Android (physical Nexus 6 and AVD with API v22)Keep this github issue handy, it’s the bucket for all Windows/Linux related tricks to get RN working.
Centralize the support libraries dependencies in gradle
Working with multi-modules project, it is very useful to centralize the dependencies, especially the support libraries.
A very good way is to separate gradle build files, defining something like:
root
--gradleScript
----dependencies.gradle
| ###################################################################### | |
| ### How to run this script: mitmdump -q -s mitmproxy_localytics.py ### | |
| ###################################################################### | |
| import re | |
| import gzip | |
| from StringIO import StringIO | |
| import json | |
| from pprint import pprint | |
| class color: |
| import android.util.Log; | |
| import com.squareup.leakcanary.AnalysisResult; | |
| import com.squareup.leakcanary.DisplayLeakService; | |
| import com.squareup.leakcanary.HeapDump; | |
| import retrofit.RestAdapter; | |
| import retrofit.RetrofitError; | |
| import retrofit.http.Multipart; | |
| import retrofit.http.POST; | |
| import retrofit.http.Part; | |
| import retrofit.mime.TypedFile; |
| public class MistakesActivity extends ActionBarActivity | |
| { | |
| public static final String TABLE_NAME = "names"; | |
| ExecutorService executorService = Executors.newFixedThreadPool(4); | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) | |
| { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_mistakes); |
| package com.android.utils; | |
| import android.app.Activity; | |
| import android.app.Application; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import org.apache.log4j.Logger; | |
| import java.util.ArrayList; | |
| import java.util.List; |