Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating from Base Repo #3

Open
wants to merge 381 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
c87e1ee
Merge pull request #367 from aarongrider/publish-fix
aarongrider Feb 23, 2021
db543e8
publish.yml: Use checkout v2, spacing
EwoutH Feb 23, 2021
23acacc
Merge pull request #368 from EwoutH/patch-1
aarongrider Feb 23, 2021
42c0b23
example/android: Update Gradle to 6.8.3
EwoutH Feb 24, 2021
b158a81
CI: Validate Gradle Wrapper
EwoutH Feb 24, 2021
e6e546f
Reenable left button
aarongrider Feb 24, 2021
2c79c02
Update podfile version
aarongrider Feb 24, 2021
27cdac0
Merge pull request #373 from aarongrider/bottom-icons
aarongrider Feb 24, 2021
2ed1989
Merge pull request #371 from EwoutH/patch-2
aarongrider Feb 25, 2021
540f9a2
Merge pull request #370 from EwoutH/gradle
aarongrider Feb 25, 2021
3c870bc
Add docs for Android Kotlin support
aarongrider Feb 25, 2021
94c07f2
Merge pull request #376 from aarongrider/kotlin-docs
aarongrider Feb 25, 2021
d623ffa
Remove comments from publish workflow
aarongrider Feb 25, 2021
24feef5
Merge pull request #377 from aarongrider/actions-comments
aarongrider Feb 25, 2021
b4daacf
Bump version
aarongrider Feb 25, 2021
8caa6d1
Update README.md
aarongrider Feb 26, 2021
69fffec
Adding null safety check on RNCameraKitModule
bruce-acloset Mar 17, 2021
3208896
Merge pull request #385 from bruce-acloset/master
aarongrider Mar 18, 2021
60ab3c4
Updated Camera object to be instance of forwardRef function
May 4, 2021
f35ed93
Merge pull request #396 from kshahzada/master
aarongrider May 25, 2021
0228634
Add 'onOrientationChange' event handler to iOS as well
scarlac May 26, 2021
4249927
Updated docs, exported constants
scarlac May 27, 2021
2b99afb
Merge pull request #405 from teslamotors/feature/orientation-ios
scarlac May 27, 2021
0083a68
Add build script and begin fixing build errors
aarongrider May 27, 2021
d343134
Bump version
aarongrider May 27, 2021
d18ca47
Export the imperative API. Upgrade TS to 4.2
scarlac Jun 8, 2021
6be7a1f
Added support for saveToCameraRoll on Android. Doc updates.
scarlac Jun 8, 2021
297cf00
Version 12.0.0
scarlac Jun 8, 2021
2d9d43d
Updated build scripts & configs, fixed linting & types
scarlac Jun 8, 2021
f1eb365
v12.0.0-beta1
scarlac Jun 8, 2021
ae1c206
v12.0.0-beta2
scarlac Jun 8, 2021
babdc70
Reverted 'files' package directive. Include all files in releases
scarlac Jun 8, 2021
e3b2a43
Added release shortcuts, fixed incorrect entry points
scarlac Jun 9, 2021
fbdf94a
v12.0.0-beta4
scarlac Jun 9, 2021
7ddde68
Fixed release:local to always generate a new file. Removed GitHub act…
scarlac Jun 9, 2021
8eace31
Fix MimeType for API 30
Syar-tech Jun 11, 2021
502f0ef
fix import
Syar-tech Jun 11, 2021
0b333b2
Fixes #409 Remove dependency on zxing, lower library size
scarlac Jun 24, 2021
36336c3
Merge branch 'r/12.0.0' into build
scarlac Jun 25, 2021
d4c87a7
Merge pull request #406 from aarongrider/build
scarlac Jun 25, 2021
e064c61
Update CKCamera.kt
scarlac Jun 25, 2021
e6c8879
Merge pull request #407 from Syar-tech/fix-Syar-tech-mimetype
scarlac Jun 25, 2021
29fc2c8
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 12, 2021
ecdf31e
Bump path-parse from 1.0.6 to 1.0.7 in /example
dependabot[bot] Aug 12, 2021
40c4192
Update package.json to include the repository
msftenhanceprovenance Aug 25, 2021
458ac78
Remove dependency on core-ktx
scarlac Sep 2, 2021
1f95810
Version 12.0.0-beta5
scarlac Sep 2, 2021
1019a15
Fix ts issues
scarlac Sep 2, 2021
0f59049
Change android.core:core-ktx version to 1.6.0
wilkuintheair Sep 6, 2021
c66b17b
Bump tmpl from 1.0.4 to 1.0.5 in /example
dependabot[bot] Sep 22, 2021
2427212
Bump tmpl from 1.0.4 to 1.0.5
dependabot[bot] Sep 22, 2021
ffdb6af
Fix MediaStore.MediaColumns.MIME_TYPE
AlexKLWS Oct 20, 2021
abbe4e8
Merge pull request #429 from AlexKLWS/fix/android-mime-type
scarlac Nov 30, 2021
aed3fd4
Merge pull request #421 from msftenhanceprovenance/patch-1
scarlac Nov 30, 2021
798392d
Bump react-native from 0.62.2 to 0.62.3
dependabot[bot] Nov 30, 2021
fedf0a7
chore: Add Custom Styles to Components via Props
DibyajyotiMishra Dec 5, 2021
f288d5b
fix: kotlin version issue
DibyajyotiMishra Dec 6, 2021
7ffb609
Resolve error ':react-native-camera-kit:compileDebugKotlin'
DibyajyotiMishra Dec 9, 2021
13c32c5
chore: Add Types to Style Props
DibyajyotiMishra Dec 9, 2021
b2aa094
Update kotlin.md
DibyajyotiMishra Dec 9, 2021
6d915d2
Merge pull request #427 from teslamotors/dependabot/npm_and_yarn/tmpl…
scarlac Dec 14, 2021
c3c6141
Merge pull request #426 from teslamotors/dependabot/npm_and_yarn/exam…
scarlac Dec 14, 2021
ae967b7
Merge pull request #413 from teslamotors/dependabot/npm_and_yarn/reac…
scarlac Dec 14, 2021
f248202
Merge pull request #420 from teslamotors/dependabot/npm_and_yarn/exam…
scarlac Dec 14, 2021
cfb9654
Merge pull request #419 from teslamotors/dependabot/npm_and_yarn/path…
scarlac Dec 14, 2021
1744c66
Merge pull request #423 from wilkuintheair/patch-1
scarlac Dec 14, 2021
a1321e9
Merge branch 'master' into r/12.0.0
scarlac Dec 14, 2021
fc55595
Update src/CameraScreen.tsx
scarlac Dec 14, 2021
70339b9
Update src/CameraScreen.tsx
scarlac Dec 14, 2021
7d019ba
v12.0.0
scarlac Dec 14, 2021
e208e47
Merge pull request #435 from teslamotors/r/12.0.0
scarlac Dec 14, 2021
84157d2
chore: clean commits
DibyajyotiMishra Dec 15, 2021
21bc204
Merge branch 'master' into master
DibyajyotiMishra Dec 15, 2021
313ba0c
Merge pull request #433 from DibyajyotiMishra/master
scarlac Dec 18, 2021
3f1dfaa
Update issue templates
scarlac Dec 20, 2021
8819757
Added a PR template
scarlac Dec 20, 2021
d975443
Rename generic_pull_request.md to pull_request_template.md
scarlac Dec 20, 2021
30fa12b
Updated PR template
scarlac Dec 20, 2021
c61c0f0
Upgrade dependencies to latest stable; show square on tap-to-focus (#…
savv Jan 21, 2022
413c453
Bump minimist from 1.2.5 to 1.2.6 (#452)
dependabot[bot] Mar 29, 2022
50b9006
Bump minimist from 1.2.5 to 1.2.6 in /example (#451)
dependabot[bot] Mar 29, 2022
31c3667
Bump plist from 3.0.1 to 3.0.5 in /example (#454)
dependabot[bot] Mar 29, 2022
9e60590
Fix: Minor typo mistake (#437)
bobychaudhary Mar 29, 2022
b468847
Bump ansi-regex from 3.0.0 to 3.0.1 in /example (#453)
dependabot[bot] Mar 29, 2022
23e1b84
Bump plist from 3.0.1 to 3.0.5 (#455)
dependabot[bot] Mar 29, 2022
53d15bb
Bump ua-parser-js from 0.7.22 to 0.7.31 (#444)
dependabot[bot] Mar 29, 2022
9fd4474
Bump ua-parser-js from 0.7.22 to 0.7.31 in /example (#443)
dependabot[bot] Mar 29, 2022
024dc51
fix: resolve saveToCameraRoll issue (#445)
Balaji-Kotni Mar 29, 2022
63443c8
package.json should have source path (#441)
savv Mar 29, 2022
73b1110
Fix iOS crash when permisions denied (#458)
juancstlm Apr 8, 2022
ce1e83c
Fixed build issues, defaultProps (#461)
scarlac Apr 8, 2022
5fc9784
v12.1.0
scarlac Apr 8, 2022
d4e4aa9
feat: add Interleaved2of5 to supported barcode types on iOS (#481)
stetbern Aug 7, 2022
1de4ed4
issues/464 barcode scanner does not work in some devices (#465)
cassioseffrin Aug 7, 2022
edfa423
v13 (#491)
scarlac Aug 29, 2022
9a8c6fd
Bump metadata-extrator to 2.18.0 version to avoid 2.12.0 vulnerabilit…
jorgepalacio Oct 5, 2022
6196173
chore: expose a method to set the torch mode (#523)
yousrasd Mar 11, 2023
0fb5003
fix orientation problem (#542)
summer-wu May 22, 2023
27b4421
Bump ua-parser-js from 0.7.31 to 0.7.33 (#521)
dependabot[bot] May 22, 2023
3642e0d
Bump ua-parser-js from 0.7.31 to 0.7.33 in /example (#520)
dependabot[bot] May 22, 2023
d90bf3e
Bump minimatch from 3.0.4 to 3.1.2 (#503)
dependabot[bot] May 22, 2023
471f65a
Bump minimatch from 3.0.4 to 3.1.2 in /example (#502)
dependabot[bot] May 22, 2023
27d269c
Bump decode-uri-component from 0.2.0 to 0.2.2 (#507)
dependabot[bot] May 22, 2023
2ea3444
Bump qs from 6.5.2 to 6.5.3 (#509)
dependabot[bot] May 22, 2023
73770fc
Bump decode-uri-component from 0.2.0 to 0.2.2 in /example (#506)
dependabot[bot] May 22, 2023
eaf3156
Bump json5 from 1.0.1 to 1.0.2 (#513)
dependabot[bot] May 22, 2023
ff15a25
Bump simple-plist from 1.1.1 to 1.3.1 (#469)
dependabot[bot] May 22, 2023
221686d
Bump async from 2.6.3 to 2.6.4 (#466)
dependabot[bot] May 22, 2023
3a9b98a
Bump async from 2.6.3 to 2.6.4 in /example (#467)
dependabot[bot] May 22, 2023
90b8b73
Bump simple-plist from 1.1.1 to 1.3.1 in /example (#468)
dependabot[bot] May 22, 2023
e01d4aa
chore: add types (#505)
patrickkabwe May 22, 2023
85d7e1a
v14.0.0-beta3
scarlac May 23, 2023
05c8f18
Improve type definition
DavidBertet Jun 2, 2023
8cd7648
Update example to react native ^0.71.0
DavidBertet Jun 2, 2023
2c73e84
Forward/Use Camera props if sent to CameraScreen
DavidBertet Jun 2, 2023
b39b2fa
Fix #517. iOS sim pictures are PNG instead of JPEG
DavidBertet Jun 6, 2023
c952ab7
Merge pull request #544 from DavidBertet/task/update_example
scarlac Jun 12, 2023
be1efbe
Bump fast-xml-parser from 4.2.2 to 4.2.4 in /example
dependabot[bot] Jun 12, 2023
8e7b1da
Merge pull request #545 from DavidBertet/task/improve_type_definition
scarlac Jun 12, 2023
815730e
Merge pull request #548 from DavidBertet/task/fix_png_ios_simulator
scarlac Jun 12, 2023
9127612
Merge pull request #549 from teslamotors/dependabot/npm_and_yarn/exam…
scarlac Jun 12, 2023
9342a1d
Lay the foundation for a Swift migration
DavidBertet Jun 5, 2023
bdbfac1
Swift migration & rewrite
DavidBertet Jun 28, 2023
baf3e11
Fix Git Action iOS build
DavidBertet Jun 28, 2023
30feb1c
Fix: Correct onScale method signature in CKCamera.kt
coreyphillips Jun 29, 2023
855f23b
Merge pull request #551 from coreyphillips/fix-onScale-override
scarlac Jun 29, 2023
d730a76
Fix small issues, throttle scanner
DavidBertet Jun 30, 2023
a23aa47
Remove prints & signpost
DavidBertet Jun 30, 2023
01c2367
Remove unused protocol
DavidBertet Jun 30, 2023
5a7df3e
Removed CameraScreen
scarlac Jul 4, 2023
37737ac
Rewrote example project
scarlac Jul 4, 2023
fee756b
Fixed orientation issues for both orientation locked and rotated UIs
scarlac Jul 4, 2023
8b34666
Small refinements
DavidBertet Jul 4, 2023
d92b40b
Make button targets bigger by adding some padding
DavidBertet Jul 4, 2023
6c7e0fe
Fix default zoomFactor when we switch camera
DavidBertet Jul 4, 2023
d738b6c
Using hooks/functional component for App
DavidBertet Jul 4, 2023
13aed71
Refine orientation
DavidBertet Jul 4, 2023
231bb30
Try to match native app pinch to zoom
DavidBertet Jul 5, 2023
2f0195b
Enable videoStabilization if supported
DavidBertet Jul 5, 2023
fedec20
Remove extensions & unused pinch velocity
DavidBertet Jul 6, 2023
b0048a0
Remove `setTorchMode` method on Android
DavidBertet Jul 6, 2023
d7a70c3
Remove dependency on 'pod-install'
scarlac Jul 7, 2023
03c0eca
Bump fast-xml-parser from 4.2.4 to 4.2.5 in /example
dependabot[bot] Jul 7, 2023
5f10962
Rework UI to make it work on both platforms
DavidBertet Jul 8, 2023
478a68b
Fixed scan frame dimensions on Android
scarlac Jul 10, 2023
79554dd
Bump semver from 5.7.1 to 5.7.2
dependabot[bot] Jul 11, 2023
6e05414
Merge pull request #547 from DavidBertet/task/swift_migration
scarlac Jul 12, 2023
f58bc77
Added zoom control
scarlac Jul 12, 2023
e6688a2
Added zoom control on Android
scarlac Jul 14, 2023
91c57f0
Fixed uncontrolled zoom not working on the barcode scanner
scarlac Jul 14, 2023
19246c5
Fixed crash if preview view isn't ready fast enough
scarlac Jul 15, 2023
e129096
Fixed zoom prop not working when cameraType is switched
scarlac Jul 17, 2023
04dd979
Fixed zoom not updating when maxZoom prop changes
scarlac Jul 18, 2023
5349069
Merge pull request #558 from teslamotors/dependabot/npm_and_yarn/semv…
scarlac Jul 18, 2023
62710d4
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 18, 2023
6874b89
Bump semver from 5.7.1 to 5.7.2 in /example
dependabot[bot] Jul 18, 2023
9f3b47e
Merge pull request #557 from teslamotors/dependabot/npm_and_yarn/exam…
scarlac Jul 18, 2023
cef0a85
Merge pull request #555 from teslamotors/dependabot/npm_and_yarn/exam…
scarlac Jul 18, 2023
0358c56
Merge pull request #563 from teslamotors/dependabot/npm_and_yarn/word…
scarlac Jul 18, 2023
87b146f
Fixed orientation when rotating but app doesn't allow rotation
scarlac Jul 19, 2023
3253daa
Changed and normalized default zoom to be 1.0x (thx @DavidBertet)
scarlac Jul 19, 2023
e9fd082
Updated docs, minor tweaks on Android
scarlac Jul 19, 2023
21f713d
Added new camera flip icon
scarlac Jul 19, 2023
dc10c8a
Added UI rotation example code
scarlac Jul 19, 2023
7a89620
Removed unused images
scarlac Jul 19, 2023
40cc209
Fixed maxZoom not being normalized
scarlac Jul 19, 2023
b2bdc44
Merge pull request #559 from teslamotors/feature/zoom
scarlac Jul 19, 2023
ddf0ce4
v14.0.0-beta4
scarlac Jul 19, 2023
e9e514b
Fixed broken postinstall script
scarlac Jul 20, 2023
9694046
Fixed broken postinstall script (2)
scarlac Jul 20, 2023
ca2bc01
v14.0.0-beta5
scarlac Jul 20, 2023
cef3274
Added expo-file-system support (moveAsync() will now work)
scarlac Jul 20, 2023
0b27dca
Removed thumb saving until we have thumbnail sizing support in RN API
scarlac Jul 20, 2023
f7f4e30
v14.0.0-beta6
scarlac Jul 20, 2023
289696d
Removed lodash as an explicit dependency
scarlac Jul 20, 2023
4892d53
Fixed orientation on iPads when starting in landscape mode (#565)
scarlac Jul 25, 2023
faff3a9
v14.0.0-beta7
scarlac Jul 25, 2023
c4ac4a0
Fixed focusMode and zoomMode not being enabled by default
scarlac Jul 25, 2023
79fb48e
Hide statusbar when camera is open
scarlac Jul 25, 2023
8108a13
v14.0.0-beta8
scarlac Jul 25, 2023
76d2306
Fixed 'yarn bootstrap' script
scarlac Jul 26, 2023
bd21134
Update build.yml
scarlac Jul 26, 2023
5f6d94a
Fix builds and linting (#567)
scarlac Jul 27, 2023
c385947
Keep 'bootstrap' as the default, assuming macos will be default
scarlac Jul 27, 2023
73bd920
Added onError for when Android fails to initialize the camera
scarlac Aug 1, 2023
80052ea
v14.0.0-beta9
scarlac Aug 1, 2023
925816f
Fixed iOS NSRangeException when zooming
scarlac Aug 5, 2023
97b72ec
v14.0.0-beta10
scarlac Aug 5, 2023
c02b13f
iOS: Default zoom to 1.0 when wide angle is the first device
scarlac Aug 5, 2023
995943f
v14.0.0-beta11
scarlac Aug 5, 2023
33b3f98
Added multi-lens zoom support for iPhone 12, 13, and 14
scarlac Aug 10, 2023
ccf4c04
Merge pull request #569 from teslamotors/fix/iphone-12-zoom
scarlac Aug 10, 2023
de06213
Fix linting error
DavidBertet Aug 11, 2023
91915bf
Merge pull request #570 from DavidBertet/fix/lint_error
scarlac Aug 14, 2023
3efded3
Bump activesupport from 7.0.6 to 7.0.7.2 in /example
dependabot[bot] Aug 23, 2023
516e65e
Update RNCameraKitModule.kt with KDoc
dhiasaadlaui Aug 24, 2023
70ff115
Merge pull request #1 from dhiasaadlaui/RNCameraKitModule-KDoc
dhiasaadlaui Aug 24, 2023
3fa919b
Update README.md
aviswaroop Sep 10, 2023
461e08d
chore: update readme
pettomartino Sep 18, 2023
54a35f6
Fix: Correct onScale method signature in CKCamera.kt (again)
elliottkember Oct 3, 2023
2916254
Merge pull request #575 from dhiasaadlaui/master
scarlac Oct 10, 2023
abba836
Update README.md
scarlac Oct 10, 2023
64e39ab
Merge pull request #582 from aviswaroop/patch-1
scarlac Oct 10, 2023
d70ef73
Merge pull request #592 from elliottkember/patch-1
scarlac Oct 10, 2023
a13cab8
Merge pull request #588 from avantstay/master
scarlac Oct 10, 2023
ca798d2
Merge pull request #574 from teslamotors/dependabot/bundler/example/a…
scarlac Oct 10, 2023
909546e
Fixed QR scanner not always picking up clear codes
scarlac Oct 11, 2023
4ed7d53
Merge pull request #599 from teslamotors/bugfix/fixed-qr-scanning
scarlac Oct 11, 2023
5ce5315
v14.0.0-beta13
scarlac Oct 11, 2023
81d5ba8
Allow disabling the photo capture shutter sound on Android (#583)
scarlac Oct 11, 2023
bbbdcbd
Merge pull request #600 from teslamotors/feature/no-shutter-sound-583
scarlac Oct 12, 2023
5256202
Added Ruby version guidance
scarlac Oct 12, 2023
b685817
Update build target to iOS 11
elliottkember Oct 13, 2023
69060d4
Merge pull request #603 from elliottkember/patch-2
scarlac Oct 14, 2023
11b116c
Added rn-permissions recommendation (#606)
scarlac Oct 16, 2023
11b15fd
Fixed Swift runtime failure/crash during unexpected capture() call
scarlac Nov 3, 2023
00c461a
Return height/width of capture (#646)
DavidBertet Apr 30, 2024
a13aa78
Add iOS linter & report issues on PR (#634)
DavidBertet Apr 30, 2024
8a2df98
Fix barcode screen top button size (#631)
DavidBertet Apr 30, 2024
a7413aa
Fix #614. "onError" method needs to be declared (#630)
DavidBertet Apr 30, 2024
ae39ea8
Bump react-devtools-core from 4.9.0 to 4.28.4 (#613)
dependabot[bot] Apr 30, 2024
da2c7cc
Bump react-devtools-core from 4.27.8 to 4.28.4 in /example (#612)
dependabot[bot] Apr 30, 2024
d8da12c
Bump @babel/traverse from 7.22.4 to 7.23.2 in /example (#611)
dependabot[bot] Apr 30, 2024
6c5ae90
Bump @babel/traverse from 7.12.1 to 7.23.2 (#608)
dependabot[bot] Apr 30, 2024
234e7f8
added code format to see type of code scanned (#633)
android-imdad Apr 30, 2024
3135697
feat: add namespace to build.gradle for AGP > 7 (#617)
stetbern Apr 30, 2024
eb96b53
Bump ip from 1.1.5 to 1.1.9 (#655)
dependabot[bot] Apr 30, 2024
80c517d
Add resize mode cover/contain (#644)
lichstam Apr 30, 2024
21f7601
RN 0.71.0 -> 0.74.1
scarlac May 15, 2024
79ccbb0
RN 0.62.3 -> 0.74.1 for library
scarlac May 15, 2024
b9d14cc
Type fixes
scarlac May 15, 2024
a23e4d8
v14.0.0-beta14
scarlac May 15, 2024
ca2bcc3
Fixed typescript types not showing
scarlac May 16, 2024
ec75f1b
v14.0.0-beta15
scarlac May 16, 2024
0e15019
feat: add support for new arch
WoLewicki Aug 6, 2024
e034bbb
fix: fixes for use_frameworks
WoLewicki Aug 8, 2024
7261d2e
fix: indent
WoLewicki Aug 8, 2024
3b0f913
fix: indent
WoLewicki Aug 8, 2024
b8417d8
fix: apply changes from review
WoLewicki Aug 8, 2024
79dfe34
fix: apply changes from review
WoLewicki Aug 9, 2024
09578bd
fix: apply changes from review
WoLewicki Aug 12, 2024
b7f7a28
Update Android Kotlin documentation for RN0.73+
adammcarth Oct 22, 2024
ba5f5d1
v14.0.0
scarlac Oct 30, 2024
ace123e
Added maxPhotoQualityPrioritization for iOS
scarlac Nov 14, 2024
2376770
Merge branch 'master' into @wolewicki/add-new-arch
scarlac Nov 14, 2024
490a810
Merge pull request #672 from WoLewicki/@wolewicki/add-new-arch
scarlac Nov 14, 2024
4d8d6e3
Fixed iOS bundling issues with new arch changes
scarlac Nov 14, 2024
ed4023f
Merge pull request #676 from adammcarth/chore/kotlin-installation-gui…
scarlac Nov 14, 2024
22c547e
Reverted to Yarn v1.22.22 for release
scarlac Nov 14, 2024
55bdd97
v14.1.0
scarlac Nov 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
10 changes: 10 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
example/
dist/
images/
ios/
android/
assets/
.vscode/
.github/
/.eslintrc.js
/metro.config.js
61 changes: 61 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
module.exports = {
root: true,
extends: '@react-native',
plugins: ['import'],
rules: {
// disabled rules
'prettier/prettier': 'off',
'react-native/no-inline-styles': 'off',
'no-fallthrough': 'off',
curly: 'off',
// error rules
semi: 'error',
'key-spacing': [2, { beforeColon: false, afterColon: true }],
'require-await': 'error',
indent: [
'error',
2,
{
ignoredNodes: ['TemplateLiteral'], // https://github.com/babel/babel-eslint/issues/681#issuecomment-451336031
SwitchCase: 1,
},
],
'no-console': 'error',
'no-debugger': 'error',
'prefer-const': 'error',
'no-multiple-empty-lines': 'error',
'no-unused-vars': 'error',
'no-trailing-spaces': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'react/jsx-boolean-value': 'error',
'react/jsx-closing-bracket-location': 'error',
'react/jsx-max-props-per-line': ['error', { maximum: 1, when: 'multiline' }],
'max-len': [
'error',
{
code: 120,
ignoreTemplateLiterals: true,
// FIXME: doesn't work :/
ignorePattern: '^log\\(', // ignore "log('...')"
ignoreUrls: true, // ignore long urls
},
],
'import/no-unresolved': ['error', { commonjs: true, amd: true }],
'import/named': 'error',
'import/namespace': 'error',
'import/default': 'error',
'import/export': 'error',
},
settings: {
'import/ignore': ['node_modules/react-native/index\\.js$'], // https://github.com/facebook/react-native/issues/28549
'import/resolver': {
node: {
extensions: ['.js', '.ts', '.tsx', '.android.js', '.ios.js', '.android.tsx', '.ios.tsx'],
},
},
},
globals: {
WebSocket: true,
URLSearchParams: true,
},
};
89 changes: 0 additions & 89 deletions .flowconfig

This file was deleted.

37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Add prop `someProp="someValue"`
2. call `cameraRef.current.capture()`
3. See error in console

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If the issue is a visual glitch or UI issue please provide screen shots.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## Summary

<!--
1. Explain the **motivation** for making this change.
What existing problem does the pull request solve?
2. If you are fixing a bug, make sure there is an open ticket for it
-->

## How did you test this change?

<!--
1. Test your finished branch/PR on iOS and Android.
Demonstrate the code is solid with screen shots of both platforms.
If you leave this empty, your PR will very likely be closed.
-->
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build
run-name: ⚙️ Build examples on ${{ github.event_name == 'pull_request' && 'PR' || '🌱' }} ${{ github.event_name == 'pull_request' && github.event.number || github.ref_name }}

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
build-example-ios:
name: build-example-ios
runs-on: macos-latest
steps:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.4'
- name: Checkout
uses: actions/checkout@v3
- name: Install modules
run: yarn
- name: Install example
run: yarn bootstrap
- name: Build
run: cd example/ios && xcodebuild -workspace CameraKitExample.xcworkspace -configuration Debug -scheme CameraKitExample -sdk iphoneos build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
build-example-android:
name: build-example-android
runs-on: ubuntu-latest # using linux runner for speed
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Install modules
run: yarn
- name: Install example
run: yarn bootstrap-linux
- name: Build
run: cd example/android && ./gradlew assembleDebug
49 changes: 49 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Linter
run-name: 🩺 Code checks on ${{ github.event_name == 'pull_request' && 'PR' || '🌱' }} ${{ github.event_name == 'pull_request' && github.event.number || github.ref_name }}

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
eslint:
name: ESLint
runs-on: ubuntu-latest # using linux runner for speed
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install modules
run: yarn
- name: Install example
run: yarn bootstrap-linux
- name: Lint
run: yarn lint

ios:
name: Lint iOS
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: brew bundle
- name: Run swiftlint
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
updatedFiles=$(git --no-pager diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} -- '*.swift')

if [[ -z "$updatedFiles" ]]; then
echo "No Swift files changed, skipping linting"
exit 0
fi

swiftlint --reporter github-actions-logging -- $updatedFiles
else
swiftlint
fi
Loading