This repository was archived by the owner on Sep 4, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 7 files changed +11
-227
lines changed
src/main/java/com/geocodere2eapp Expand file tree Collapse file tree 7 files changed +11
-227
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -51,9 +51,11 @@ class GeocoderE2EApp extends Component {
5151 < TouchableOpacity style = { { padding : 10 , backgroundColor : '#2c3e50' } } onPress = { ( ) => {
5252 this . refs . geoInput . blur ( ) ;
5353
54+ this . setState ( { result : null } ) ;
55+
5456 const [ lat , lng ] = this . state . reverseInput . split ( ' ' ) ;
5557
56- Geocoder . reverseGeocodeLocation ( { latitude : 1 * lat , longitude : 1 * lng } ) . then ( ( res ) => {
58+ Geocoder . geocodePosition ( { lat : 1 * lat , lng : 1 * lng } ) . then ( ( res ) => {
5759 this . setState ( { result : res [ 0 ] } ) ;
5860 } ) ;
5961 } } >
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ npm install ../../$NPM_PACKAGE > /dev/null
2121rm -rf ../../$NPM_PACKAGE
2222
2323echo " Prepare android"
24- cp -r ../android .
24+ rnpm link react-native-geocoder
2525
2626echo " Prepare JS app"
2727cp ../js/index.android.js .
2828
2929echo " Compile android"
3030cd android
31- ./gradlew clean assembleDebug -PdisablePreDex
31+ ./gradlew clean assembleDebug
Original file line number Diff line number Diff line change @@ -9,15 +9,20 @@ echo "Start Appium"
99node_modules/.bin/appium &
1010APPIUM_PID=$!
1111
12+ echo " Start static http server"
13+ http-server &
14+ HTTPSERVER_PID=$!
15+
1216echo " Start packager"
1317node e2e/GeocoderE2EApp/node_modules/react-native/local-cli/cli.js start --reset-cache &
1418PACKAGER_PID=$!
1519
1620sleep 5
1721
18- node_modules/.bin/mocha && SUCCESS=$? || SUCCESS=$?
22+ node_modules/.bin/mocha --require test/setup.js test/e2e && SUCCESS=$? || SUCCESS=$?
1923
2024kill $APPIUM_PID
25+ kill $HTTPSERVER_PID
2126kill $PACKAGER_PID
2227
2328exit $SUCCESS
You can’t perform that action at this time.
0 commit comments