Skip to content

Commit fbea3b4

Browse files
committed
Merge branch 'master' of github.com:react-native-community/react-native-progress-view into chore/addREADMEBadges
2 parents 6fedc22 + c868b13 commit fbea3b4

File tree

8 files changed

+769
-10309
lines changed

8 files changed

+769
-10309
lines changed

.circleci/config.yml

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
# -------------------------
2+
# ALIASES
3+
# -------------------------
4+
5+
aliases:
6+
# CACHE
7+
- &restore-gradle-cache
8+
keys:
9+
- gradle-cache-{{ checksum "android/build.gradle" }}-{{ checksum "example/android/build.gradle" }}-{{ checksum "example/android/app/build.gradle" }}
10+
- &save-gradle-cache
11+
paths:
12+
- ~/.gradle
13+
key: gradle-cache-{{ checksum "android/build.gradle" }}-{{ checksum "example/android/build.gradle" }}-{{ checksum "example/android/app/build.gradle" }}
14+
15+
# ANALYSE
16+
- &eslint
17+
name: ESLint Checks
18+
command: yarn lint
19+
20+
- &type-check
21+
name: TypeScript Checks
22+
command: yarn tsc
23+
24+
- &flow
25+
name: Flow TypeChecks
26+
command: yarn flow
27+
28+
- &jest
29+
name: Jest Unit Tests
30+
command: yarn test
31+
32+
# -------------------------
33+
# JOBS
34+
# -------------------------
35+
version: 2.1
36+
orbs:
37+
rn: react-native-community/[email protected]
38+
39+
jobs:
40+
# Set up a Linux environment for downstream jobs
41+
linux-checkout:
42+
executor: rn/linux_js
43+
steps:
44+
- attach_workspace:
45+
at: .
46+
- checkout
47+
- rn/yarn_install
48+
- persist_to_workspace:
49+
root: .
50+
paths: .
51+
52+
eslint:
53+
executor: rn/linux_js
54+
steps:
55+
- attach_workspace:
56+
at: .
57+
- run: *eslint
58+
59+
type-check:
60+
executor: rn/linux_js
61+
steps:
62+
- attach_workspace:
63+
at: .
64+
- run: *type-check
65+
66+
flow:
67+
executor: rn/linux_js
68+
steps:
69+
- attach_workspace:
70+
at: .
71+
- run: *flow
72+
73+
jest:
74+
executor: rn/linux_js
75+
steps:
76+
- attach_workspace:
77+
at: .
78+
- run: *jest
79+
80+
android-compile:
81+
executor: rn/linux_android
82+
steps:
83+
- attach_workspace:
84+
at: .
85+
- restore_cache: *restore-gradle-cache
86+
- run:
87+
name: Accept Android licences
88+
command: |-
89+
yes | sdkmanager --licenses || exit 0
90+
yes | sdkmanager --update || exit 0
91+
- run:
92+
name: Build Android Example App and Library
93+
command: |-
94+
cd example/android
95+
./gradlew clean assembleDebug
96+
- save_cache: *save-gradle-cache
97+
98+
ios-checkout:
99+
executor: rn/macos
100+
steps:
101+
- checkout
102+
- rn/yarn_install
103+
- persist_to_workspace:
104+
root: .
105+
paths: .
106+
107+
ios-compile:
108+
executor: rn/macos
109+
steps:
110+
- attach_workspace:
111+
at: .
112+
- run:
113+
name: Build example app
114+
command: |-
115+
react-native run-ios --project-path example/ios
116+
117+
# -------------------------
118+
# WORKFLOWS
119+
# -------------------------
120+
workflows:
121+
version: 2
122+
Test:
123+
jobs:
124+
- linux-checkout
125+
- eslint:
126+
requires:
127+
- linux-checkout
128+
# TODO: implement typescript types
129+
# - type-check:
130+
# requires:
131+
# - linux-checkout
132+
# TODO: implement test
133+
# - jest:
134+
# requires:
135+
# - linux-checkout
136+
- flow:
137+
requires:
138+
- linux-checkout
139+
- android-compile:
140+
requires:
141+
- linux-checkout
142+
# Disabled until we have macOS containers enabled
143+
# - ios-checkout
144+
# - ios-compile:
145+
# requires:
146+
# - ios-checkout

.flowconfig

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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 polyfills
9+
node_modules/react-native/Libraries/polyfills/.*
10+
11+
; These should not be required directly
12+
; require from fbjs/lib instead: require('fbjs/lib/warning')
13+
node_modules/warning/.*
14+
15+
; Flow doesn't support platforms
16+
.*/Libraries/Utilities/LoadingView.js
17+
18+
; Ignore example folder
19+
.*/example/.*
20+
21+
22+
[untyped]
23+
.*/node_modules/@react-native-community/cli/.*/.*
24+
25+
[include]
26+
27+
[libs]
28+
node_modules/react-native/Libraries/react-native/react-native-interface.js
29+
node_modules/react-native/flow/
30+
31+
[options]
32+
emoji=true
33+
34+
esproposal.optional_chaining=enable
35+
esproposal.nullish_coalescing=enable
36+
37+
module.file_ext=.js
38+
module.file_ext=.json
39+
module.file_ext=.ios.js
40+
41+
munge_underscores=true
42+
43+
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
44+
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
45+
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\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
46+
47+
suppress_type=$FlowIssue
48+
suppress_type=$FlowFixMe
49+
suppress_type=$FlowFixMeProps
50+
suppress_type=$FlowFixMeState
51+
52+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
53+
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
54+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
55+
56+
[lints]
57+
sketchy-null-number=warn
58+
sketchy-null-mixed=warn
59+
sketchy-number=warn
60+
untyped-type-import=warn
61+
nonstrict-import=warn
62+
deprecated-type=warn
63+
unsafe-getters-setters=warn
64+
inexact-spread=warn
65+
unnecessary-invariant=warn
66+
signature-verification-failure=warn
67+
deprecated-utility=error
68+
69+
[strict]
70+
deprecated-type
71+
nonstrict-import
72+
sketchy-null
73+
unclear-type
74+
unsafe-getters-setters
75+
untyped-import
76+
untyped-type-import
77+
78+
[version]
79+
^0.105.0

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
jcenter()
1414
}
1515
dependencies {
16-
classpath 'com.android.tools.build:gradle:3.3.1'
16+
classpath("com.android.tools.build:gradle:3.4.2")
1717

1818
// NOTE: Do not place your application dependencies here; they belong
1919
// in the individual module build.gradle files

example/android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@
1616
# This option should only be used with decoupled projects. More details, visit
1717
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
1818
# org.gradle.parallel=true
19+
android.useAndroidX=true
20+
android.enableJetifier=true

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
33
zipStoreBase=GRADLE_USER_HOME
44
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip

0 commit comments

Comments
 (0)