Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
Change-Id: I078939dd9ef0e8271ebaa6d51dc4161f092e4ab0
  • Loading branch information
smattiso committed Mar 26, 2015
0 parents commit af821ce
Show file tree
Hide file tree
Showing 21 changed files with 1,493 additions and 0 deletions.
62 changes: 62 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
PROJECT = DNA_GoogleMaps
INSTALL_FILES = images js icon.png index.html
WRT_FILES = DNA_common css icon.png index.html setup config.xml images js manifest.json README.md
VERSION := 0.0.1
PACKAGE = $(PROJECT)-$(VERSION)

SEND := ~/send

ifndef TIZEN_IP
TIZEN_IP=TizenVTC
endif

wgtPkg: clean
cp -rf ../DNA_common .
zip -r $(PROJECT).wgt config.xml css icon.png index.html js images DNA_common

config:
scp setup/weston.ini root@$(TIZEN_IP):/etc/xdg/weston/

$(PROJECT).wgt : dev

wgt:
zip -r $(PROJECT).wgt $(WRT_FILES)

kill.xwalk:
ssh root@$(TIZEN_IP) "pkill xwalk"

kill.feb1:
ssh app@$(TIZEN_IP) "pkgcmd -k JLRPOCX015.GoogleMaps"

run: install
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && xwalkctl | egrep -e 'GoogleMaps' | awk '{print $1}' | xargs --no-run-if-empty xwalk-launcher -d "

run.feb1: install.feb1
ssh app@$(TIZEN_IP) "app_launcher -s JLRPOCX015.GoogleMaps -d "

install.feb1: deploy
ifndef OBS
-ssh app@$(TIZEN_IP) "pkgcmd -u -n JLRPOCX015 -q"
ssh app@$(TIZEN_IP) "pkgcmd -i -t wgt -p /home/app/DNA_GoogleMaps.wgt -q"
endif

install: deploy
ifndef OBS
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && xwalkctl | egrep -e 'GoogleMaps' | awk '{print $1}' | xargs --no-run-if-empty xwalkctl -u"
ssh app@$(TIZEN_IP) "export DBUS_SESSION_BUS_ADDRESS='unix:path=/run/user/5000/dbus/user_bus_socket' && xwalkctl -i /home/app/DNA_GoogleMaps.wgt"
endif

$(PROJECT).wgt : wgt

deploy: wgtPkg
ifndef OBS
scp $(PROJECT).wgt app@$(TIZEN_IP):/home/app
endif

all:
@echo "Nothing to build"

clean:
-rm $(PROJECT).wgt
-rm -rf DNA_common

41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Copyright (c) 2014, Intel Corporation, Jaguar Land Rover

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Name: Google Maps
Version: XW_TizenIVI3_0_01FEB_AGL_05MAR2015
Maintainer: Steve Mattison <[email protected]>
Mailing list: [email protected]


Build Instructions:

make apps - To build the wgt files for all release apps

Set the TIZEN_IP enviroment varable to the ip of target. or set TizenVTC host name to that ip.

make deploy - To build and copy the wgt files to the platform

make install.feb1 - To build and install wigits on the platform

make run.feb1 - To build, install and run on the platform

-- Applications

All applications make use of the "common" repository for artifacts
common across every POC.


KnownIssues:

Occasionally the last few waypoints will not be returned by the server. Trac #190
19 changes: 19 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:tizen="http://tizen.org/ns/widgets" id="http://com.intel.tizen/navigationgoogle" version="1.0.0" viewmodes="fullscreen">
<access origin="*" subdomains="true"/>
<tizen:application id="JLRPOCX015.GoogleMaps" package="JLRPOCX015" required_version="2.1"/>
<content src="index.html"/>
<icon src="icon.png"/>
<name>Google Maps</name>
<tizen:privilege name="http://tizen.org/privilege/application.launch"/>
<tizen:privilege name="http://tizen.org/privilege/filesystem.read"/>
<tizen:privilege name="http://tizen.org/privilege/filesystem.write"/>
<tizen:privilege name="http://tizen.org/privilege/content.read" />
<tizen:privilege name="http://tizen.org/privilege/speech" />
<tizen:privilege name="http://tizen.org/privilege/bluetooth.admin" />
<tizen:privilege name="http://tizen.org/privilege/bluetooth.spp" />
<tizen:privilege name="http://tizen.org/privilege/bluetooth.gap" />
<tizen:setting screen-orientation="portrait"
context-menu="enable" background-support="disable" encryption="disable"
install-location="auto" />
</widget>
202 changes: 202 additions & 0 deletions css/googlemaps.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@
/* Overrides */

/* Overrides DNA_common/css/common.css*/

#google-maps-app #app {
overflow: hidden;
position: relative;
flex-direction: column;
}

.content {
flex: 1;
padding: 20px;
}

.label,
.content h3 {
margin: 0;
}

.label-lead-line {
width: 20%;
margin: 6px 10px 6px 0;
}

/* Overrides DNA_common/components/progressBar/progressBar.css */

#google-maps-app #VCouter,
#google-maps-app #VCbarWrapper,
#google-maps-app #VCline,
#google-maps-app #VCinner {
position: relative;
top: 0;
left: 0;
}

#google-maps-app #VCinner {
height: 6px;
}

/* Overrides DNA_common/components/bottomBar/css/bottomBar.css
and DNA_common/components/topBar/css/topBar.css */

#nav-map {
position: relative;
}

.flex-val-2 {
flex: 2;
}

.flex-val-3 {
flex: 3;
}

.flex-val-5 {
flex: 5;
}

.placesLibraryContentList .placesElement {
padding: 10px 0 10px 0;
height: 70px;
box-shadow: none;
border-bottom-style: solid;
border-bottom-width: 2px;
line-height: 0;
text-align: left;
cursor: pointer;
}

.placesLibraryContentList .placesBox {
display: inline-block;
vertical-align: top;
padding-top: 20px;
background-color: transparent !important;
}

#turn-arrow {
width: 100%;
height: 70px;
background-repeat: no-repeat;
background-position: center center;
}

#navigation-panel {
flex: 9;
}

#indicators {
margin-right: 20px;
}

#nav-directions p,
#destination-item p {
margin: 0;
}

#nav-data-top .content {
height: 200px;
}

#nav-data-bottom {
height: 180px;
}

#distance-to > small {
font-size: .8em;
color: rgba(196, 196, 196, 0.8);
padding-left: 6px;
}

/* Hex Arrow */

.hex-arrow {
width: 200px;
height: 50px;
line-height: 50px;
background-image: url(../images/blue_lt_flag.png);
background-repeat: no-repeat;
background-size: 100%;
}

.menu-icon {
width: 18px;
height: 18px;
display: inline-block;
background-image: url(../images/menu_icon_black.png);
background-size: 18px;
}

/* Library */


#places-library.expanded {
left: 0;
}

#destination-address {
margin-top: 2px;
}

#destination-address-town {
margin-top: 2px;
}

#still-to-go-time-and-distance {
margin: 0;
}

#still-to-go-time-and-distance > .time:after {
content: "/";
}

#arrival-text:before {
content: "arrival ";
}

#arrival-text small:before {
content: " (";
}

#arrival-text small:after {
content: ")";
}

#arrival-text small.metric:after {
content: "km/h)";
}

#arrival-text small.imperial:after {
content: "mph)";
}

.view-switch {
right: 0;
bottom: 0;
position: absolute;
width: 180px;
height: 180px;
}

.satellite-icon {
background-image: url(../images/satellite_hex_icon.png);
display: none;
}

.map-icon {
background-image: url(../images/mapview_hex_icon.png);
}

.map-icon,
.satellite-icon {
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: 75%;
}

.bottomPanelLogoImg {
background: url('../images/AMG_Linux_White.png') no-repeat center !important;
}
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blue_lt_flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_arrow_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_arrow_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_arrow_straight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_map_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon_satellite_blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mapview_hex_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/menu_icon_black.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/orange_flag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/satellite_hex_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit af821ce

Please sign in to comment.