Ver código fonte

update gitignore, npmignore, gradlew

Daniel Zlotin 8 anos atrás
pai
commit
42e6d811e8

+ 175
- 114
.gitignore Ver arquivo

@@ -1,151 +1,212 @@
1
-npm-debug.log
2 1
 
3
-#########################
4
-# .gitignore file for Xcode5
5
-#
6
-# NB: if you are storing "built" products, this WILL NOT WORK,
7
-#   and you should use a different .gitignore (or none at all)
8
-# This file is for SOURCE projects, where there are many extra
9
-#   files that we want to exclude
10
-#
11
-# For updates, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
12
-#   and https://gist.github.com/adamgit/3786883
13
-#########################
2
+############
3
+# Node
4
+############
5
+# Logs
6
+logs
7
+*.log
8
+npm-debug.log*
14 9
 
15
-#####
16
-# OS X temporary files that should never be committed
10
+# Runtime data
11
+pids
12
+*.pid
13
+*.seed
17 14
 
18
-.DS_Store
19
-*.swp
20
-*.lock
21
-profile
22
-# cocoapods specific exclusions
23
-!Podfile.lock
24
-!Manifest.lock
25
-
26
-#### Code coverage
27
-# json file which is used by Xcode plugin called PuncoverPlugin to show code coverrage informtaion in the Xcode gutter
28
-# it is generated using Slather
29
-.gutter.json
30
-
31
-####
32
-# Xcode temporary files that should never be committed
33
-#
34
-# NB: NIB/XIB files still exist even on Storyboard projects, so we want this...
15
+# Directory for instrumented libs generated by jscoverage/JSCover
16
+lib-cov
35 17
 
36
-*~.nib
18
+# Coverage directory used by tools like istanbul
19
+coverage
37 20
 
21
+# nyc test coverage
22
+.nyc_output
38 23
 
39
-####
40
-# Xcode build files -
41
-#
42
-# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "DerivedData"
24
+# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
25
+.grunt
43 26
 
44
-DerivedData/
27
+# node-waf configuration
28
+.lock-wscript
45 29
 
46
-# NB: slash on the end, so we only remove the FOLDER, not any files that were badly named "build"
30
+# Compiled binary addons (http://nodejs.org/api/addons.html)
31
+build/Release
47 32
 
48
-build/
33
+# Dependency directories
34
+node_modules
35
+jspm_packages
49 36
 
37
+# Optional npm cache directory
38
+.npm
50 39
 
51
-#####
52
-# Xcode private settings (window sizes, bookmarks, breakpoints, custom executables, smart groups)
53
-#
54
-# This is complicated:
40
+# Optional REPL history
41
+.node_repl_history
42
+
43
+################
44
+# JetBrains
45
+################
46
+.idea
47
+
48
+## File-based project format:
49
+*.iws
50
+
51
+## Plugin-specific files:
52
+
53
+# IntelliJ
54
+/out/
55
+
56
+# mpeltonen/sbt-idea plugin
57
+.idea_modules/
58
+
59
+# JIRA plugin
60
+atlassian-ide-plugin.xml
61
+
62
+# Crashlytics plugin (for Android Studio and IntelliJ)
63
+com_crashlytics_export_strings.xml
64
+crashlytics.properties
65
+crashlytics-build.properties
66
+fabric.properties
67
+
68
+
69
+############
70
+# iOS
71
+############
72
+# Xcode
55 73
 #
56
-# SOMETIMES you need to put this file in version control.
57
-# Apple designed it poorly - if you use "custom executables", they are
58
-#  saved in this file.
59
-# 99% of projects do NOT use those, so they do NOT want to version control this file.
60
-#  ..but if you're in the 1%, comment out the line "*.pbxuser"
74
+# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
61 75
 
76
+## Build generated
77
+ios/build/
78
+ios/DerivedData/
79
+
80
+## Various settings
62 81
 *.pbxuser
63
-*.mode1v3
64
-*.mode2v3
65
-*.perspectivev3
66
-#    NB: also, whitelist the default ones, some projects need to use these
67 82
 !default.pbxuser
83
+*.mode1v3
68 84
 !default.mode1v3
85
+*.mode2v3
69 86
 !default.mode2v3
87
+*.perspectivev3
70 88
 !default.perspectivev3
89
+ios/xcuserdata/
71 90
 
91
+## Other
92
+*.moved-aside
93
+*.xcuserstate
72 94
 
73
-####
74
-# Xcode 4 - semi-personal settings, often included in workspaces
75
-#
76
-# You can safely ignore the xcuserdata files - but do NOT ignore the files next to them
77
-#
78
-
79
-xcuserdata
95
+## Obj-C/Swift specific
96
+*.hmap
97
+*.ipa
98
+*.dSYM.zip
99
+*.dSYM
80 100
 
81
-####
82
-# XCode 4 workspaces - more detailed
83
-#
84
-# Workspaces are important! They are a core feature of Xcode - don't exclude them :)
85
-#
86
-# Workspace layout is quite spammy. For reference:
87
-#
88
-# (root)/
89
-#   (project-name).xcodeproj/
90
-#     project.pbxproj
91
-#     project.xcworkspace/
92
-#       contents.xcworkspacedata
93
-#       xcuserdata/
94
-#         (your name)/xcuserdatad/
95
-#     xcuserdata/
96
-#       (your name)/xcuserdatad/
97
-#
98
-#
99
-#
100
-# Xcode 4 workspaces - SHARED
101
+# CocoaPods
101 102
 #
102
-# This is UNDOCUMENTED (google: "developer.apple.com xcshareddata" - 0 results
103
-# But if you're going to kill personal workspaces, at least keep the shared ones...
103
+# We recommend against adding the Pods directory to your .gitignore. However
104
+# you should judge for yourself, the pros and cons are mentioned at:
105
+# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
104 106
 #
105
-#
106
-!xcshareddata
107
+ios/Pods/
107 108
 
108
-####
109
-# XCode 4 build-schemes
109
+# Carthage
110 110
 #
111
-# PRIVATE ones are stored inside xcuserdata
112
-!xcschemes
111
+# Add this line if you want to avoid checking in source code from Carthage dependencies.
112
+# Carthage/Checkouts
113 113
 
114
-####
115
-# Xcode 4 - Deprecated classes
116
-#
117
-# Allegedly, if you manually "deprecate" your classes, they get moved here.
114
+Carthage/Build
115
+
116
+# fastlane
118 117
 #
119
-# We're using source-control, so this is a "feature" that we do not want!
118
+# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
119
+# screenshots whenever they are needed.
120
+# For more information about the recommended setup visit:
121
+# https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md
120 122
 
121
-*.moved-aside
123
+fastlane/report.xml
124
+fastlane/screenshots
122 125
 
123
-####
124
-# Xcode 5 -  Source Control files
125
-#
126
-# Xcode 5 introduced a new file type .xccheckout. This files contains VCS metadata
127
-# and should therefore not be checked into the VCS.
128 126
 
129
-*.xccheckout
127
+############
128
+# Android
129
+############
130
+# Built application files
131
+*.apk
132
+*.ap_
130 133
 
131
-####
132
-# Xcode 7
133
-#
134
-# Code coverage files
134
+# Files for the Dalvik VM
135
+*.dex
136
+
137
+# Java class files
138
+*.class
139
+
140
+# Generated files
141
+android/bin/
142
+android/gen/
143
+android/out/
135 144
 
136
-*.gcda
137
-*.gcno
145
+# Gradle files
146
+android/.gradle/
147
+android/build/
148
+
149
+# Local configuration file (sdk path, etc)
150
+local.properties
151
+
152
+# Proguard folder generated by Eclipse
153
+android/proguard/
154
+
155
+# Log Files
156
+*.log
157
+
158
+# Android Studio Navigation editor temp files
159
+android/.navigation/
160
+
161
+# Android Studio captures folder
162
+android/captures/
163
+
164
+# Intellij
165
+*.iml
166
+
167
+# Keystore files
168
+*.jks
169
+
170
+##################
171
+# React-Native
172
+##################
173
+# OSX
174
+#
175
+.DS_Store
138 176
 
139
-####
140
-# Webstrom
177
+# Xcode
178
+#
179
+build/
180
+*.pbxuser
181
+!default.pbxuser
182
+*.mode1v3
183
+!default.mode1v3
184
+*.mode2v3
185
+!default.mode2v3
186
+*.perspectivev3
187
+!default.perspectivev3
188
+xcuserdata
189
+*.xccheckout
190
+*.moved-aside
191
+DerivedData
192
+*.hmap
193
+*.ipa
194
+*.xcuserstate
195
+project.xcworkspace
141 196
 
197
+# Android/IJ
198
+#
142 199
 .idea
200
+.gradle
201
+local.properties
143 202
 
144
-####
145
-# UNKNOWN: recommended by others, but I can't discover what these files are
203
+# node.js
146 204
 #
147
-# ...none. Everything is now explained.:
148
-android/gradlew
149
-android/gradlew.bat
150
-android/local.properties
151
-node_modules
205
+node_modules/
206
+npm-debug.log
207
+
208
+# BUCK
209
+buck-out/
210
+\.buckd/
211
+android/app/libs
212
+android/keystores/debug.keystore

+ 3
- 5
.npmignore Ver arquivo

@@ -6,7 +6,6 @@ res/generated/
6 6
 
7 7
 .npmignore
8 8
 
9
-
10 9
 #################
11 10
 # from .gitignore:
12 11
 ################
@@ -158,7 +157,6 @@ android/out/
158 157
 # Gradle files
159 158
 android/.gradle/
160 159
 android/build/
161
-android/*/build/
162 160
 
163 161
 # Local configuration file (sdk path, etc)
164 162
 local.properties
@@ -211,9 +209,8 @@ project.xcworkspace
211 209
 # Android/IJ
212 210
 #
213 211
 .idea
214
-android/.idea
215
-android/.gradle
216
-android/local.properties
212
+.gradle
213
+local.properties
217 214
 
218 215
 # node.js
219 216
 #
@@ -225,3 +222,4 @@ buck-out/
225 222
 \.buckd/
226 223
 android/app/libs
227 224
 android/keystores/debug.keystore
225
+

BIN
android/gradle/wrapper/gradle-wrapper.jar Ver arquivo


+ 6
- 0
android/gradle/wrapper/gradle-wrapper.properties Ver arquivo

@@ -0,0 +1,6 @@
1
+#Mon Dec 28 10:00:20 PST 2015
2
+distributionBase=GRADLE_USER_HOME
3
+distributionPath=wrapper/dists
4
+zipStoreBase=GRADLE_USER_HOME
5
+zipStorePath=wrapper/dists
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

+ 160
- 0
android/gradlew Ver arquivo

@@ -0,0 +1,160 @@
1
+#!/usr/bin/env bash
2
+
3
+##############################################################################
4
+##
5
+##  Gradle start up script for UN*X
6
+##
7
+##############################################################################
8
+
9
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10
+DEFAULT_JVM_OPTS=""
11
+
12
+APP_NAME="Gradle"
13
+APP_BASE_NAME=`basename "$0"`
14
+
15
+# Use the maximum available, or set MAX_FD != -1 to use that value.
16
+MAX_FD="maximum"
17
+
18
+warn ( ) {
19
+    echo "$*"
20
+}
21
+
22
+die ( ) {
23
+    echo
24
+    echo "$*"
25
+    echo
26
+    exit 1
27
+}
28
+
29
+# OS specific support (must be 'true' or 'false').
30
+cygwin=false
31
+msys=false
32
+darwin=false
33
+case "`uname`" in
34
+  CYGWIN* )
35
+    cygwin=true
36
+    ;;
37
+  Darwin* )
38
+    darwin=true
39
+    ;;
40
+  MINGW* )
41
+    msys=true
42
+    ;;
43
+esac
44
+
45
+# Attempt to set APP_HOME
46
+# Resolve links: $0 may be a link
47
+PRG="$0"
48
+# Need this for relative symlinks.
49
+while [ -h "$PRG" ] ; do
50
+    ls=`ls -ld "$PRG"`
51
+    link=`expr "$ls" : '.*-> \(.*\)$'`
52
+    if expr "$link" : '/.*' > /dev/null; then
53
+        PRG="$link"
54
+    else
55
+        PRG=`dirname "$PRG"`"/$link"
56
+    fi
57
+done
58
+SAVED="`pwd`"
59
+cd "`dirname \"$PRG\"`/" >/dev/null
60
+APP_HOME="`pwd -P`"
61
+cd "$SAVED" >/dev/null
62
+
63
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64
+
65
+# Determine the Java command to use to start the JVM.
66
+if [ -n "$JAVA_HOME" ] ; then
67
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68
+        # IBM's JDK on AIX uses strange locations for the executables
69
+        JAVACMD="$JAVA_HOME/jre/sh/java"
70
+    else
71
+        JAVACMD="$JAVA_HOME/bin/java"
72
+    fi
73
+    if [ ! -x "$JAVACMD" ] ; then
74
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75
+
76
+Please set the JAVA_HOME variable in your environment to match the
77
+location of your Java installation."
78
+    fi
79
+else
80
+    JAVACMD="java"
81
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82
+
83
+Please set the JAVA_HOME variable in your environment to match the
84
+location of your Java installation."
85
+fi
86
+
87
+# Increase the maximum file descriptors if we can.
88
+if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89
+    MAX_FD_LIMIT=`ulimit -H -n`
90
+    if [ $? -eq 0 ] ; then
91
+        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92
+            MAX_FD="$MAX_FD_LIMIT"
93
+        fi
94
+        ulimit -n $MAX_FD
95
+        if [ $? -ne 0 ] ; then
96
+            warn "Could not set maximum file descriptor limit: $MAX_FD"
97
+        fi
98
+    else
99
+        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100
+    fi
101
+fi
102
+
103
+# For Darwin, add options to specify how the application appears in the dock
104
+if $darwin; then
105
+    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106
+fi
107
+
108
+# For Cygwin, switch paths to Windows format before running java
109
+if $cygwin ; then
110
+    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111
+    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112
+    JAVACMD=`cygpath --unix "$JAVACMD"`
113
+
114
+    # We build the pattern for arguments to be converted via cygpath
115
+    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116
+    SEP=""
117
+    for dir in $ROOTDIRSRAW ; do
118
+        ROOTDIRS="$ROOTDIRS$SEP$dir"
119
+        SEP="|"
120
+    done
121
+    OURCYGPATTERN="(^($ROOTDIRS))"
122
+    # Add a user-defined pattern to the cygpath arguments
123
+    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124
+        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125
+    fi
126
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
127
+    i=0
128
+    for arg in "$@" ; do
129
+        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130
+        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
131
+
132
+        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
133
+            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134
+        else
135
+            eval `echo args$i`="\"$arg\""
136
+        fi
137
+        i=$((i+1))
138
+    done
139
+    case $i in
140
+        (0) set -- ;;
141
+        (1) set -- "$args0" ;;
142
+        (2) set -- "$args0" "$args1" ;;
143
+        (3) set -- "$args0" "$args1" "$args2" ;;
144
+        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145
+        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146
+        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147
+        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148
+        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149
+        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150
+    esac
151
+fi
152
+
153
+# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154
+function splitJvmOpts() {
155
+    JVM_OPTS=("$@")
156
+}
157
+eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158
+JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159
+
160
+exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

+ 90
- 0
android/gradlew.bat Ver arquivo

@@ -0,0 +1,90 @@
1
+@if "%DEBUG%" == "" @echo off
2
+@rem ##########################################################################
3
+@rem
4
+@rem  Gradle startup script for Windows
5
+@rem
6
+@rem ##########################################################################
7
+
8
+@rem Set local scope for the variables with windows NT shell
9
+if "%OS%"=="Windows_NT" setlocal
10
+
11
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12
+set DEFAULT_JVM_OPTS=
13
+
14
+set DIRNAME=%~dp0
15
+if "%DIRNAME%" == "" set DIRNAME=.
16
+set APP_BASE_NAME=%~n0
17
+set APP_HOME=%DIRNAME%
18
+
19
+@rem Find java.exe
20
+if defined JAVA_HOME goto findJavaFromJavaHome
21
+
22
+set JAVA_EXE=java.exe
23
+%JAVA_EXE% -version >NUL 2>&1
24
+if "%ERRORLEVEL%" == "0" goto init
25
+
26
+echo.
27
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
+echo.
29
+echo Please set the JAVA_HOME variable in your environment to match the
30
+echo location of your Java installation.
31
+
32
+goto fail
33
+
34
+:findJavaFromJavaHome
35
+set JAVA_HOME=%JAVA_HOME:"=%
36
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
+
38
+if exist "%JAVA_EXE%" goto init
39
+
40
+echo.
41
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
+echo.
43
+echo Please set the JAVA_HOME variable in your environment to match the
44
+echo location of your Java installation.
45
+
46
+goto fail
47
+
48
+:init
49
+@rem Get command-line arguments, handling Windowz variants
50
+
51
+if not "%OS%" == "Windows_NT" goto win9xME_args
52
+if "%@eval[2+2]" == "4" goto 4NT_args
53
+
54
+:win9xME_args
55
+@rem Slurp the command line arguments.
56
+set CMD_LINE_ARGS=
57
+set _SKIP=2
58
+
59
+:win9xME_args_slurp
60
+if "x%~1" == "x" goto execute
61
+
62
+set CMD_LINE_ARGS=%*
63
+goto execute
64
+
65
+:4NT_args
66
+@rem Get arguments from the 4NT Shell from JP Software
67
+set CMD_LINE_ARGS=%$
68
+
69
+:execute
70
+@rem Setup the command line
71
+
72
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
+
74
+@rem Execute Gradle
75
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76
+
77
+:end
78
+@rem End local scope for the variables with windows NT shell
79
+if "%ERRORLEVEL%"=="0" goto mainEnd
80
+
81
+:fail
82
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
+rem the _cmd.exe /c_ return code!
84
+if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85
+exit /b 1
86
+
87
+:mainEnd
88
+if "%OS%"=="Windows_NT" endlocal
89
+
90
+:omega

+ 1
- 1
example-redux/android/build.gradle Ver arquivo

@@ -5,7 +5,7 @@ buildscript {
5 5
         jcenter()
6 6
     }
7 7
     dependencies {
8
-        classpath 'com.android.tools.build:gradle:1.3.1'
8
+        classpath 'com.android.tools.build:gradle:2.1.2'
9 9
 
10 10
         // NOTE: Do not place your application dependencies here; they belong
11 11
         // in the individual module build.gradle files

+ 2
- 1
example-redux/android/gradle/wrapper/gradle-wrapper.properties Ver arquivo

@@ -1,5 +1,6 @@
1
+#Thu Jun 30 11:51:04 IDT 2016
1 2
 distributionBase=GRADLE_USER_HOME
2 3
 distributionPath=wrapper/dists
3 4
 zipStoreBase=GRADLE_USER_HOME
4 5
 zipStorePath=wrapper/dists
5
-distributionUrl=https\://services.gradle.org/distributions/gradle-2.4-all.zip
6
+distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip