Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 9e60bac

Browse files
authored
Merge pull request #455 from Microsoft/update-sample-app
Update sample app
2 parents 5ab949a + 2493a60 commit 9e60bac

File tree

69 files changed

+428
-2062
lines changed

Some content is hidden

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

69 files changed

+428
-2062
lines changed

Examples/CodePushDemoApp/.babelrc

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

Examples/CodePushDemoApp/.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

Examples/CodePushDemoApp/.flowconfig

Lines changed: 15 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,41 @@
11
[ignore]
22

33
# We fork some components by platform.
4-
.*/*.web.js
54
.*/*.android.js
65

7-
# Some modules have their own node_modules with overlap
8-
.*/node_modules/node-haste/.*
6+
# Ignore templates with `@flow` in header
7+
.*/local-cli/generator.*
98

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/lib/Map.js
18-
.*/node_modules/fbjs/lib/Promise.js
19-
.*/node_modules/fbjs/lib/fetch.js
20-
.*/node_modules/fbjs/lib/ExecutionEnvironment.js
21-
.*/node_modules/fbjs/lib/isEmpty.js
22-
.*/node_modules/fbjs/lib/crc32.js
23-
.*/node_modules/fbjs/lib/ErrorUtils.js
24-
25-
# Flow has a built-in definition for the 'react' module which we prefer to use
26-
# over the currently-untyped source
27-
.*/node_modules/react/react.js
28-
.*/node_modules/react/lib/React.js
29-
.*/node_modules/react/lib/ReactDOM.js
30-
31-
# Ignore commoner tests
32-
.*/node_modules/commoner/test/.*
33-
34-
# See https://github.com/facebook/flow/issues/442
35-
.*/react-tools/node_modules/commoner/lib/reader.js
36-
37-
# Ignore jest
38-
.*/node_modules/jest-cli/.*
39-
40-
# Ignore Website
41-
.*/website/.*
9+
# Ignore malformed json
10+
.*/node_modules/y18n/test/.*\.json
4211

4312
[include]
4413

4514
[libs]
4615
node_modules/react-native/Libraries/react-native/react-native-interface.js
16+
node_modules/react-native/flow
17+
flow/
4718

4819
[options]
4920
module.system=haste
5021

22+
esproposal.class_static_fields=enable
23+
esproposal.class_instance_fields=enable
24+
25+
experimental.strict_type_args=true
26+
5127
munge_underscores=true
5228

5329
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
54-
module.name_mapper='^[./a-zA-Z0-9$_-]+\.png$' -> 'RelativeImageStub'
30+
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'
5531

5632
suppress_type=$FlowIssue
5733
suppress_type=$FlowFixMe
5834
suppress_type=$FixMe
5935

60-
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
61-
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-0]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
36+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(2[0-7]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
37+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(2[0-7]\\|1[0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
6238
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
6339

6440
[version]
65-
0.20.1
41+
^0.27.0

Examples/CodePushDemoApp/.gitignore

Lines changed: 13 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -20,56 +20,22 @@ DerivedData
2020
*.hmap
2121
*.ipa
2222
*.xcuserstate
23+
project.xcworkspace
2324

24-
# node.js
25+
# Android/IJ
2526
#
26-
node_modules/
27-
npm-debug.log
28-
29-
main.jsbundle
30-
31-
# Intellij project files
3227
*.iml
33-
*.ipr
34-
*.iws
35-
.idea/
36-
37-
#Gradle
38-
.gradletasknamecache
39-
.gradle/
40-
build/
41-
bin/
42-
43-
# Built application files
44-
*.apk
45-
*.ap_
46-
47-
# Files for the Dalvik VM
48-
*.dex
49-
50-
# Java class files
51-
*.class
52-
53-
# Generated files
54-
bin/
55-
gen/
56-
57-
# Gradle files
58-
.gradle/
59-
build/
60-
*/build/
61-
62-
# Local configuration file (sdk path, etc)
28+
.idea
29+
.gradle
6330
local.properties
6431

65-
# Proguard folder generated by Eclipse
66-
proguard/
67-
68-
# Log Files
69-
*.log
70-
71-
# Android Studio Navigation editor temp files
72-
.navigation/
32+
# node.js
33+
#
34+
node_modules/
35+
npm-debug.log
7336

74-
# Android Studio captures folder
75-
captures/
37+
# BUCK
38+
buck-out/
39+
\.buckd/
40+
android/app/libs
41+
android/keystores/debug.keystore

Examples/CodePushDemoApp/CodePushDemoAppTests/CheckForUpdateTests.m

Lines changed: 0 additions & 70 deletions
This file was deleted.

Examples/CodePushDemoApp/CodePushDemoAppTests/CheckForUpdateTests/CheckForUpdateTestApp.js

Lines changed: 0 additions & 87 deletions
This file was deleted.

Examples/CodePushDemoApp/CodePushDemoAppTests/CheckForUpdateTests/resources/testPackages.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

Examples/CodePushDemoApp/CodePushDemoAppTests/CheckForUpdateTests/testcases/FirstUpdateTest.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)