Skip to content

Commit d2d7f1a

Browse files
committed
snowflake
0 parents  commit d2d7f1a

File tree

92 files changed

+6571
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+6571
-0
lines changed

.babelrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"whitelist": [
3+
"es6.arrowFunctions",
4+
"es6.blockScoping",
5+
"es6.classes",
6+
"es6.destructuring",
7+
"es6.modules",
8+
"es6.parameters",
9+
"es6.properties.computed",
10+
"es6.properties.shorthand",
11+
"es6.spread",
12+
"es6.templateLiterals",
13+
"es7.asyncFunctions",
14+
"es7.trailingFunctionCommas",
15+
"es7.objectRestSpread",
16+
"es7.decorators",
17+
"es7.classProperties",
18+
"flow",
19+
"react",
20+
"react.displayName",
21+
"regenerator"
22+
]
23+
}

.flowconfig

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[ignore]
2+
3+
# We fork some components by platform.
4+
.*/*.web.js
5+
.*/*.android.js
6+
7+
# Some modules have their own node_modules with overlap
8+
.*/node_modules/node-haste/.*
9+
10+
# Ugh
11+
.*/node_modules/babel.*
12+
.*/node_modules/babylon.*
13+
.*/node_modules/invariant.*
14+
15+
# Ignore react and fbjs where there are overlaps, but don't ignore
16+
# anything that react-native relies on
17+
.*/node_modules/fbjs-haste/.*/__tests__/.*
18+
.*/node_modules/fbjs-haste/__forks__/Map.js
19+
.*/node_modules/fbjs-haste/__forks__/Promise.js
20+
.*/node_modules/fbjs-haste/__forks__/fetch.js
21+
.*/node_modules/fbjs-haste/core/ExecutionEnvironment.js
22+
.*/node_modules/fbjs-haste/core/isEmpty.js
23+
.*/node_modules/fbjs-haste/crypto/crc32.js
24+
.*/node_modules/fbjs-haste/stubs/ErrorUtils.js
25+
.*/node_modules/react-haste/React.js
26+
.*/node_modules/react-haste/renderers/dom/ReactDOM.js
27+
.*/node_modules/react-haste/renderers/shared/event/eventPlugins/ResponderEventPlugin.js
28+
29+
# Ignore commoner tests
30+
.*/node_modules/commoner/test/.*
31+
32+
# See https://github.com/facebook/flow/issues/442
33+
.*/react-tools/node_modules/commoner/lib/reader.js
34+
35+
# Ignore jest
36+
.*/node_modules/jest-cli/.*
37+
38+
# Ignore Website
39+
.*/website/.*
40+
41+
[include]
42+
43+
[libs]
44+
node_modules/react-native/Libraries/react-native/react-native-interface.js
45+
46+
[options]
47+
module.system=haste
48+
49+
munge_underscores=true
50+
51+
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
52+
module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub'
53+
54+
suppress_type=$FlowIssue
55+
suppress_type=$FlowFixMe
56+
suppress_type=$FixMe
57+
58+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
59+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(1[0-8]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)? #[0-9]+
60+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
61+
62+
[version]
63+
0.18.1

.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
.tern-port
5+
6+
# Xcode
7+
#
8+
build/
9+
*.pbxuser
10+
!default.pbxuser
11+
*.mode1v3
12+
!default.mode1v3
13+
*.mode2v3
14+
!default.mode2v3
15+
*.perspectivev3
16+
!default.perspectivev3
17+
xcuserdata
18+
*.xccheckout
19+
*.moved-aside
20+
DerivedData
21+
*.hmap
22+
*.ipa
23+
*.xcuserstate
24+
project.xcworkspace
25+
26+
# Android/IJ
27+
#
28+
.idea
29+
.gradle
30+
local.properties
31+
32+
# node.js
33+
#
34+
node_modules/
35+
npm-debug.log
36+
37+
# jest
38+
coverage/

.tern-project

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"plugins": {
3+
"node": {
4+
}
5+
}
6+
}

.watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 C. T. Lin
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# setup
2+
3+
* follow instructions here only for fonts (no navigator)
4+
(https://github.com/oblador/react-native-vector-icons) [https://github.com/oblador/react-native-vector-icons]
5+
6+
* Parse.com
7+
Settings -> AUthentication ->Allow anonymous users -> false
8+
Settings -> Email -> Verify User Emails -> true

android/app/build.gradle

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
apply plugin: "com.android.application"
2+
3+
/**
4+
* The react.gradle file registers two tasks: bundleDebugJsAndAssets and bundleReleaseJsAndAssets.
5+
* These basically call `react-native bundle` with the correct arguments during the Android build
6+
* cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
7+
* bundle directly from the development server. Below you can see all the possible configurations
8+
* and their defaults. If you decide to add a configuration block, make sure to add it before the
9+
* `apply from: "react.gradle"` line.
10+
*
11+
* project.ext.react = [
12+
* // the name of the generated asset file containing your JS bundle
13+
* bundleAssetName: "index.android.bundle",
14+
*
15+
* // the entry file for bundle generation
16+
* entryFile: "index.android.js",
17+
*
18+
* // whether to bundle JS and assets in debug mode
19+
* bundleInDebug: false,
20+
*
21+
* // whether to bundle JS and assets in release mode
22+
* bundleInRelease: true,
23+
*
24+
* // the root of your project, i.e. where "package.json" lives
25+
* root: "../../",
26+
*
27+
* // where to put the JS bundle asset in debug mode
28+
* jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
29+
*
30+
* // where to put the JS bundle asset in release mode
31+
* jsBundleDirRelease: "$buildDir/intermediates/assets/release",
32+
*
33+
* // where to put drawable resources / React Native assets, e.g. the ones you use via
34+
* // require('./image.png')), in debug mode
35+
* resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
36+
*
37+
* // where to put drawable resources / React Native assets, e.g. the ones you use via
38+
* // require('./image.png')), in release mode
39+
* resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
40+
*
41+
* // by default the gradle tasks are skipped if none of the JS files or assets change; this means
42+
* // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
43+
* // date; if you have any other folders that you want to ignore for performance reasons (gradle
44+
* // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
45+
* // for example, you might want to remove it from here.
46+
* inputExcludes: ["android/**", "ios/**"]
47+
* ]
48+
*/
49+
50+
apply from: "react.gradle"
51+
52+
android {
53+
compileSdkVersion 23
54+
buildToolsVersion "23.0.1"
55+
56+
defaultConfig {
57+
applicationId "com.snowflake"
58+
minSdkVersion 16
59+
targetSdkVersion 22
60+
versionCode 1
61+
versionName "1.0"
62+
ndk {
63+
abiFilters "armeabi-v7a", "x86"
64+
}
65+
}
66+
buildTypes {
67+
release {
68+
minifyEnabled false // Set this to true to enable Proguard
69+
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
70+
}
71+
}
72+
}
73+
74+
dependencies {
75+
compile fileTree(dir: "libs", include: ["*.jar"])
76+
compile "com.android.support:appcompat-v7:23.0.1"
77+
compile "com.facebook.react:react-native:0.15.+"
78+
79+
// Add this line:
80+
compile project(':react-native-vector-icons')
81+
// Add this line:
82+
compile project(':RNSimpleAlertDialogModule')
83+
84+
}

android/app/proguard-rules.pro

+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Disabling obfuscation is useful if you collect stack traces from production crashes
20+
# (unless you are using a system that supports de-obfuscate the stack traces).
21+
-dontobfuscate
22+
23+
# React Native
24+
25+
# Keep our interfaces so they can be used by other ProGuard rules.
26+
# See http://sourceforge.net/p/proguard/bugs/466/
27+
-keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip
28+
-keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters
29+
30+
# Do not strip any method/class that is annotated with @DoNotStrip
31+
-keep @com.facebook.proguard.annotations.DoNotStrip class *
32+
-keepclassmembers class * {
33+
@com.facebook.proguard.annotations.DoNotStrip *;
34+
}
35+
36+
-keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * {
37+
void set*(***);
38+
*** get*();
39+
}
40+
41+
-keep class * extends com.facebook.react.bridge.JavaScriptModule { *; }
42+
-keep class * extends com.facebook.react.bridge.NativeModule { *; }
43+
-keepclassmembers class * { @com.facebook.react.uimanager.UIProp <fields>; }
44+
-keepclassmembers class * { @com.facebook.react.uimanager.ReactProp <methods>; }
45+
-keepclassmembers class * { @com.facebook.react.uimanager.ReactPropGroup <methods>; }
46+
47+
# okhttp
48+
49+
-keepattributes Signature
50+
-keepattributes *Annotation*
51+
-keep class com.squareup.okhttp.** { *; }
52+
-keep interface com.squareup.okhttp.** { *; }
53+
-dontwarn com.squareup.okhttp.**
54+
55+
# okio
56+
57+
-keep class sun.misc.Unsafe { *; }
58+
-dontwarn java.nio.file.*
59+
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
60+
-dontwarn okio.**

0 commit comments

Comments
 (0)