Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #61 from saucelabs/feat/add-geolocation
Browse files Browse the repository at this point in the history
Add geo location
  • Loading branch information
wswebcreation authored Oct 16, 2020
2 parents 8394a88 + caf261e commit dcc7bf7
Show file tree
Hide file tree
Showing 37 changed files with 498 additions and 604 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ buck-out/

# Extra
.tmp
.env
apps/
*.log
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ If you tap on them they will auto fill the login data.
1. [Drag and Drop](#drag-and-drop)
1. [Pinch and Zoom](#pinch-zoom)
1. [Swiping](#swiping)
1. [Geo Location](#geo-location)
1. [Contributing to the app](#contributing-to-the-app)
1. [Test-automation](#test-automation)
1. [FAQ](#faq)
Expand Down Expand Up @@ -179,6 +180,12 @@ The cart contents page supports to remove an item from the cart by swiping it to

![saucelabs.ios](./docs/assets/swipe-left.gif)

### Geo Location
This app now also support testing changing the Geo Location. The app will pick up changes when the location is mocked, see this [test](./tests/e2e/spec/default/geo.location.spec.js)
for more information.

![saucelabs.ios](./docs/assets/geo-location.gif)

## Contributing to the app
If you want to contribute to the app and add new functionalities, please check the documentation [here](./docs/CONTRIBUTING.md).

Expand Down
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ android {
applicationId "com.swaglabsmobileapp"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 9
versionName "2.5.0"
versionCode 10
versionName "2.6.0"
missingDimensionStrategy 'react-native-camera', 'general'
}
splits {
Expand Down
4 changes: 3 additions & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

<application
android:name=".MainApplication"
Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ buildscript {
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
playServicesLocationVersion = "17.0.0"
}
repositories {
google()
Expand Down
Binary file added docs/assets/geo-location.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 0 additions & 15 deletions ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,5 @@ target 'SwagLabsMobileApp' do
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'Permission-Camera', :path => "#{permissions_path}/Camera.podspec"

target 'SwagLabsMobileAppTests' do
inherit! :search_paths
# Pods for testing
end

use_native_modules!
end

target 'SwagLabsMobileApp-tvOS' do
# Pods for SwagLabsMobileApp-tvOS

target 'SwagLabsMobileApp-tvOSTests' do
inherit! :search_paths
# Pods for testing
end

end
8 changes: 7 additions & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ PODS:
- React
- react-native-camera/RN (3.15.1):
- React
- react-native-geolocation-service (5.0.0):
- React
- react-native-splash-screen (3.2.0):
- React
- react-native-webview (8.0.2):
Expand Down Expand Up @@ -269,6 +271,7 @@ DEPENDENCIES:
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
- react-native-biometrics (from `../node_modules/react-native-biometrics`)
- react-native-camera (from `../node_modules/react-native-camera`)
- react-native-geolocation-service (from `../node_modules/react-native-geolocation-service`)
- react-native-splash-screen (from `../node_modules/react-native-splash-screen`)
- react-native-webview (from `../node_modules/react-native-webview`)
- React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
Expand Down Expand Up @@ -330,6 +333,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-biometrics"
react-native-camera:
:path: "../node_modules/react-native-camera"
react-native-geolocation-service:
:path: "../node_modules/react-native-geolocation-service"
react-native-splash-screen:
:path: "../node_modules/react-native-splash-screen"
react-native-webview:
Expand Down Expand Up @@ -390,6 +395,7 @@ SPEC CHECKSUMS:
React-jsinspector: fa0ecc501688c3c4c34f28834a76302233e29dc0
react-native-biometrics: e092e67ab766de7ad97f572fa4973e226a0e4c6b
react-native-camera: 1ba3e7f2375a6b44ae09ce9be70268e0b225bc10
react-native-geolocation-service: 141e33bdb179bcba10b216ee13962611e21f2be4
react-native-splash-screen: 200d11d188e2e78cea3ad319964f6142b6384865
react-native-webview: 99bdfd6c189772b0f15494f728430c23b18b93e4
React-RCTActionSheet: 600b4d10e3aea0913b5a92256d2719c0cdd26d76
Expand All @@ -411,6 +417,6 @@ SPEC CHECKSUMS:
RNVectorIcons: bc69e6a278b14842063605de32bec61f0b251a59
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b

PODFILE CHECKSUM: 3a25b58a53c04c09cbaa5aa156a21d7415f2f614
PODFILE CHECKSUM: 6ee34b6ab72003464a92d0b7e7bd1bc32e856ab7

COCOAPODS: 1.9.3
4 changes: 4 additions & 0 deletions ios/SwagLabsMobileApp-Bridging-Header.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
//
// Use this file to import your target's public headers that you would like to expose to Swift.
//

Loading

0 comments on commit dcc7bf7

Please sign in to comment.