| #
a47a1472 |
| 14-May-2019 |
Ville Immonen <[email protected]> |
[ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219)
* [ncl][test-suite] Change imports to SDK 33 syntax with the codemod
* [ncl][test-suite] Add new imported packages to de
[ncl][test-suite] Change imports to SDK 33 syntax with the codemod (#4219)
* [ncl][test-suite] Change imports to SDK 33 syntax with the codemod
* [ncl][test-suite] Add new imported packages to dependencies
show more ...
|
| #
ed15687c |
| 15-Apr-2019 |
Sergei Chestakov <[email protected]> |
Setup Initial AWS Devicefarm CI tests (#3986)
* Update channel name and export isInCI in devicefarm lane
This mirrors the logic of how a channel name is created for the test
suite app in `test-s
Setup Initial AWS Devicefarm CI tests (#3986)
* Update channel name and export isInCI in devicefarm lane
This mirrors the logic of how a channel name is created for the test
suite app in `test-suite/publish.sh`. Instead of just using git_branch it converts
it to lowercase and removes all invalid characters so that there is no
discrepancy between that and the published version. I also export a
isInCI env variable in Test config which we will use to skip tests that
require interaction (e.g. signing in).
* Remove write contacts permission in Android test suite
* Grant necessary permissions and properly log test info
* [android] add isInCI constant in ExponentTest Native module
* Update getTestModules to not require certain tests in CI
This is a temporary fix to get the devicefarm CI test to run all the way through. Ideally, we should be running all of the tests in CI as well, however, there are some that require interaction, accepting permissions, or crash the app when mounting a component. See the comments in TestUtils.js for more details
* Add back tests that no longer crash
* Make suggested changes regarding TaskManager tests
show more ...
|
| #
7efeb25e |
| 10-Apr-2019 |
Sergei Chestakov <[email protected]> |
Update test-suite app (#3932)
* Create new component for selecting tests to run
* Add buttons to select all and run tests
* Implement selecting and deselecting
* Add runTests function and
Update test-suite app (#3932)
* Create new component for selecting tests to run
* Add buttons to select all and run tests
* Implement selecting and deselecting
* Add runTests function and pass selected values to parent component
* Run only selected tests
* Fix missing name exports for test modules
* Remove async call in getTestModules and generate data array
* Add react navigation and create seperate screens
* Add styles object and done message
* Refactor select screen to use set instead of map and clear on navigation
* Check if the component is mounted before calling setState
* Move screens to new directory and Modules.js -> TestUtils.js
* Use checkboxes to indicate selected and clean up UI
* Add default case to support web
* Remove Ripple function call for ListItem background on Android
* Add support for /all deeplink that runs all modules in test-suite
* Add suggested changes for PR and run JSC test on Android emulator
show more ...
|
| #
3b6a24fb |
| 13-Dec-2018 |
Tomasz Sapeta <[email protected]> |
[ios][android][sdk][ncl] Background location, geofencing and background fetch (#2338)
# Why
Canny issues:
- https://expo.canny.io/feature-requests/p/background-tasks-support
- https://expo.cann
[ios][android][sdk][ncl] Background location, geofencing and background fetch (#2338)
# Why
Canny issues:
- https://expo.canny.io/feature-requests/p/background-tasks-support
- https://expo.canny.io/feature-requests/p/background-location-tracking
- https://expo.canny.io/feature-requests/p/geofencing-api
Related PR:
- https://github.com/expo/universe/pull/3201 (docs)
# How
The core of this PR is to implement TaskManager that provides an API to manage tasks, especially these that run while the app is in the background. I hope I documented this piece enough so I don't have to write it here again
This PR also adds three ways of how we can use background tasks:
- Background location updates
`Location.startLocationUpdatesAsync`, `Location.stopLocationUpdatesAsync`, `Location.hasStartedLocationUpdatesAsync`
- Geofencing
`Location.startGeofencingAsync`, `Location.stopGeofencingAsync`, `Location.hasStartedGeofencingAsync`
- Background fetch
`expo-background-fetch` module, *iOS only so far*
Also, to improve the quality of `expo-location`, I've deprecated `enableHighAccuracy` option and introduced a new one called `accuracy`. It allows to use all possible accuracies provided by iOS platform. Android has fewer options of accuracy, but I've made simple mapping (see https://github.com/expo/expo/pull/2338/files#diff-66bdbbc66d3410d9198aa17584b5409eR633).
All new modules and `expo-location` are now TypeScripted
# Test Plan
New APIs examples in `native-component-list`:
- `BackgroundFetch` - shows the status and the date of the last background fetch which can be manually triggered in Xcode (Debug -> Simulate background fetch).
- `Location` -> `Background location map` - it tracks your location by drawing a polyline.
- `Location` -> `Geofencing map` - this one will work better once we merge #2316, as it should show local notifications when the device enters/exits a region.
- `TaskManager` - shows all registered tasks for the experience.
There are also some quick tests in `test-suite` for the new methods in `Location` and `TaskManager` modules.
show more ...
|