Merge lp:~ted/ubuntu-calendar-app/url-dispatcher into lp:ubuntu-calendar-app

Proposed by Ted Gould
Status: Merged
Approved by: David Planella
Approved revision: 184
Merged at revision: 188
Proposed branch: lp:~ted/ubuntu-calendar-app/url-dispatcher
Merge into: lp:ubuntu-calendar-app
Diff against target: 60 lines (+12/-1)
3 files modified
CMakeLists.txt (+5/-0)
click/manifest.json.in (+2/-1)
com.ubuntu.calendar_calendar.url-dispatcher (+5/-0)
To merge this branch: bzr merge lp:~ted/ubuntu-calendar-app/url-dispatcher
Reviewer Review Type Date Requested Status
David Planella Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+201543@code.launchpad.net

Commit message

Add URL dispatcher configuration

Description of the change

Configure calendar-app to get the calendar:// URL

This requires an unreleased version of URL dispatcher, but should be fine to merge as it just won't be used until that version lands.

To post a comment you must log in.
Revision history for this message
David Planella (dpm) wrote :

Thanks, and sorry for the delay with the review! Has that URL dispatcher version landed now?

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

We made some changes to the manifest file recently, which now conflict with the branch.

Would you mind merging trunk and pushing again? Thanks!

review: Needs Fixing
183. By Ted Gould

Merging trunk

184. By Ted Gould

Making the URL dispatcher work more like the desktop file stuff does now

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
David Planella (dpm) wrote :

LGTM, thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-01-18 23:29:11 +0000
3+++ CMakeLists.txt 2014-01-27 14:55:30 +0000
4@@ -9,6 +9,7 @@
5
6 set(APP_NAME calendar)
7 set(DESKTOP_FILE "${PROJECT_NAME}_${APP_NAME}.desktop")
8+set(URLS_FILE "${PROJECT_NAME}_${APP_NAME}.url-dispatcher")
9 set(MAIN_QML calendar.qml)
10 set(ICON calendar64.png)
11 set(AUTOPILOT_DIR calendar_app)
12@@ -24,6 +25,7 @@
13 set(DATA_DIR /)
14 set(EXEC "qmlscene %u ${MAIN_QML}")
15 set(DESKTOP_DIR ${DATA_DIR})
16+ set(URLS_DIR ${DATA_DIR})
17 else(CLICK_MODE)
18 set(DATA_DIR ${CMAKE_INSTALL_DATADIR}/${APP_HARDCODE})
19 set(EXEC ${APP_HARDCODE})
20@@ -33,6 +35,7 @@
21 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${APP_HARDCODE}
22 DESTINATION ${CMAKE_INSTALL_BINDIR})
23 set(DESKTOP_DIR ${CMAKE_INSTALL_DATADIR}/applications)
24+ set(URLS_DIR ${CMAKE_INSTALL_DATADIR}/url-dispatcher/urls)
25 endif(CLICK_MODE)
26
27 file(GLOB_RECURSE I18N_SRC_FILES
28@@ -49,6 +52,8 @@
29 configure_file(${DESKTOP_FILE}.in ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE})
30 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${DESKTOP_FILE} DESTINATION ${DESKTOP_DIR})
31
32+install(FILES ${URLS_FILE} DESTINATION ${URLS_DIR})
33+
34 # Tests
35 enable_testing()
36
37
38=== modified file 'click/manifest.json.in'
39--- click/manifest.json.in 2014-01-27 14:22:40 +0000
40+++ click/manifest.json.in 2014-01-27 14:55:30 +0000
41@@ -4,7 +4,8 @@
42 "hooks": {
43 "@APP_NAME@": {
44 "apparmor": "apparmor.json",
45- "desktop": "@DESKTOP_FILE@"
46+ "desktop": "@DESKTOP_FILE@",
47+ "urls": "@URLS_FILE@"
48 }
49 },
50 "icon": "@ICON@",
51
52=== added file 'com.ubuntu.calendar_calendar.url-dispatcher'
53--- com.ubuntu.calendar_calendar.url-dispatcher 1970-01-01 00:00:00 +0000
54+++ com.ubuntu.calendar_calendar.url-dispatcher 2014-01-27 14:55:30 +0000
55@@ -0,0 +1,5 @@
56+[
57+ {
58+ "protocol": "calendar"
59+ }
60+]

Subscribers

People subscribed via source and target branches

to status/vote changes: