Skip to content

Commit 541b0ff

Browse files
committed
First integration with git
0 parents  commit 541b0ff

File tree

92 files changed

+10455
-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

+10455
-0
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["react-native"]
3+
}

.buckconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

.flowconfig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore "BUCK" generated dirs
6+
<PROJECT_ROOT>/\.buckd/
7+
8+
; Ignore unexpected extra "@providesModule"
9+
.*/node_modules/.*/node_modules/fbjs/.*
10+
11+
; Ignore duplicate module providers
12+
; For RN Apps installed via npm, "Libraries" folder is inside
13+
; "node_modules/react-native" but in the source repo it is in the root
14+
.*/Libraries/react-native/React.js
15+
.*/Libraries/react-native/ReactNative.js
16+
17+
[include]
18+
19+
[libs]
20+
node_modules/react-native/Libraries/react-native/react-native-interface.js
21+
node_modules/react-native/flow
22+
flow/
23+
24+
[options]
25+
emoji=true
26+
27+
module.system=haste
28+
29+
munge_underscores=true
30+
31+
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
32+
33+
suppress_type=$FlowIssue
34+
suppress_type=$FlowFixMe
35+
suppress_type=$FixMe
36+
37+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
38+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-7]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
39+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
40+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
41+
42+
unsafe.enable_getters_and_setters=true
43+
44+
[version]
45+
^0.47.0

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj -text

.gitignore

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
2+
# Created by https://www.gitignore.io/api/reactnative
3+
4+
### ReactNative ###
5+
# React Native Stack Base
6+
### ReactNative.Buck Stack ###
7+
buck-out/
8+
.buckconfig.local
9+
.buckd/
10+
.buckversion
11+
.fakebuckversion
12+
13+
### ReactNative.macOS Stack ###
14+
*.DS_Store
15+
.AppleDouble
16+
.LSOverride
17+
18+
# Icon must end with two \r
19+
Icon
20+
21+
# Thumbnails
22+
._*
23+
24+
# Files that might appear in the root of a volume
25+
.DocumentRevisions-V100
26+
.fseventsd
27+
.Spotlight-V100
28+
.TemporaryItems
29+
.Trashes
30+
.VolumeIcon.icns
31+
.com.apple.timemachine.donotpresent
32+
33+
# Directories potentially created on remote AFP share
34+
.AppleDB
35+
.AppleDesktop
36+
Network Trash Folder
37+
Temporary Items
38+
.apdisk
39+
40+
### ReactNative.Android Stack ###
41+
# Built application files
42+
*.apk
43+
*.ap_
44+
45+
# Files for the ART/Dalvik VM
46+
*.dex
47+
48+
# Java class files
49+
*.class
50+
51+
# Generated files
52+
bin/
53+
gen/
54+
out/
55+
56+
# Gradle files
57+
.gradle/
58+
build/
59+
60+
# Local configuration file (sdk path, etc)
61+
local.properties
62+
63+
# Proguard folder generated by Eclipse
64+
proguard/
65+
66+
# Log Files
67+
*.log
68+
69+
# Android Studio Navigation editor temp files
70+
.navigation/
71+
72+
# Android Studio captures folder
73+
captures/
74+
75+
# Intellij
76+
*.iml
77+
.idea/workspace.xml
78+
.idea/tasks.xml
79+
.idea/gradle.xml
80+
.idea/dictionaries
81+
.idea/libraries
82+
83+
# Keystore files
84+
*.jks
85+
86+
# External native build folder generated in Android Studio 2.2 and later
87+
.externalNativeBuild
88+
89+
# Google Services (e.g. APIs or Firebase)
90+
google-services.json
91+
92+
# Freeline
93+
freeline.py
94+
freeline/
95+
freeline_project_description.json
96+
97+
### ReactNative.Gradle Stack ###
98+
.gradle
99+
/build/
100+
101+
# Ignore Gradle GUI config
102+
gradle-app.setting
103+
104+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
105+
!gradle-wrapper.jar
106+
107+
# Cache of project
108+
.gradletasknamecache
109+
110+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
111+
# gradle/wrapper/gradle-wrapper.properties
112+
113+
### ReactNative.Xcode Stack ###
114+
# Xcode
115+
#
116+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
117+
118+
## Build generated
119+
DerivedData/
120+
121+
## Various settings
122+
*.pbxuser
123+
!default.pbxuser
124+
*.mode1v3
125+
!default.mode1v3
126+
*.mode2v3
127+
!default.mode2v3
128+
*.perspectivev3
129+
!default.perspectivev3
130+
xcuserdata/
131+
132+
## Other
133+
*.moved-aside
134+
*.xccheckout
135+
*.xcscmblueprint
136+
137+
### ReactNative.Linux Stack ###
138+
*~
139+
140+
# temporary files which can be created if a process still has a handle open of a deleted file
141+
.fuse_hidden*
142+
143+
# KDE directory preferences
144+
.directory
145+
146+
# Linux trash folder which might appear on any partition or disk
147+
.Trash-*
148+
149+
# .nfs files are created when an open file is removed but is still being accessed
150+
.nfs*
151+
152+
### ReactNative.Node Stack ###
153+
# Logs
154+
logs
155+
npm-debug.log*
156+
yarn-debug.log*
157+
yarn-error.log*
158+
159+
# Runtime data
160+
pids
161+
*.pid
162+
*.seed
163+
*.pid.lock
164+
165+
# Directory for instrumented libs generated by jscoverage/JSCover
166+
lib-cov
167+
168+
# Coverage directory used by tools like istanbul
169+
coverage
170+
171+
# nyc test coverage
172+
.nyc_output
173+
174+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
175+
.grunt
176+
177+
# Bower dependency directory (https://bower.io/)
178+
bower_components
179+
180+
# node-waf configuration
181+
.lock-wscript
182+
183+
# Compiled binary addons (http://nodejs.org/api/addons.html)
184+
build/Release
185+
186+
# Dependency directories
187+
node_modules/
188+
jspm_packages/
189+
190+
# Typescript v1 declaration files
191+
typings/
192+
193+
# Optional npm cache directory
194+
.npm
195+
196+
# Optional eslint cache
197+
.eslintcache
198+
199+
# Optional REPL history
200+
.node_repl_history
201+
202+
# Output of 'npm pack'
203+
*.tgz
204+
205+
# Yarn Integrity file
206+
.yarn-integrity
207+
208+
# dotenv environment variables file
209+
.env
210+
211+
212+
# End of https://www.gitignore.io/api/reactnative

.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

__tests__/index.android.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'react-native';
2+
import React from 'react';
3+
import Index from '../index.android.js';
4+
5+
// Note: test renderer must be required after react-native.
6+
import renderer from 'react-test-renderer';
7+
8+
it('renders correctly', () => {
9+
const tree = renderer.create(
10+
<Index />
11+
);
12+
});

__tests__/index.ios.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'react-native';
2+
import React from 'react';
3+
import Index from '../index.ios.js';
4+
5+
// Note: test renderer must be required after react-native.
6+
import renderer from 'react-test-renderer';
7+
8+
it('renders correctly', () => {
9+
const tree = renderer.create(
10+
<Index />
11+
);
12+
});

android/app/BUCK

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# To learn about Buck see [Docs](https://buckbuild.com/).
2+
# To run your application with Buck:
3+
# - install Buck
4+
# - `npm start` - to start the packager
5+
# - `cd android`
6+
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7+
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8+
# - `buck install -r android/app` - compile, install and run application
9+
#
10+
11+
lib_deps = []
12+
13+
for jarfile in glob(['libs/*.jar']):
14+
name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')]
15+
lib_deps.append(':' + name)
16+
prebuilt_jar(
17+
name = name,
18+
binary_jar = jarfile,
19+
)
20+
21+
for aarfile in glob(['libs/*.aar']):
22+
name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')]
23+
lib_deps.append(':' + name)
24+
android_prebuilt_aar(
25+
name = name,
26+
aar = aarfile,
27+
)
28+
29+
android_library(
30+
name = "all-libs",
31+
exported_deps = lib_deps,
32+
)
33+
34+
android_library(
35+
name = "app-code",
36+
srcs = glob([
37+
"src/main/java/**/*.java",
38+
]),
39+
deps = [
40+
":all-libs",
41+
":build_config",
42+
":res",
43+
],
44+
)
45+
46+
android_build_config(
47+
name = "build_config",
48+
package = "com.shop",
49+
)
50+
51+
android_resource(
52+
name = "res",
53+
package = "com.shop",
54+
res = "src/main/res",
55+
)
56+
57+
android_binary(
58+
name = "app",
59+
keystore = "//android/keystores:debug",
60+
manifest = "src/main/AndroidManifest.xml",
61+
package_type = "debug",
62+
deps = [
63+
":app-code",
64+
],
65+
)

0 commit comments

Comments
 (0)