← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~renatofilho/ubuntu-clock-app/new-snappy into lp:ubuntu-clock-app

 

Renato Araujo Oliveira Filho has proposed merging lp:~renatofilho/ubuntu-clock-app/new-snappy into lp:ubuntu-clock-app.

Requested reviews:
  Ubuntu Clock Developers (ubuntu-clock-dev)
Related bugs:
  Bug #1638292 in Ubuntu Clock App: "Snap desktop file can't be found"
  https://bugs.launchpad.net/ubuntu-clock-app/+bug/1638292

For more details, see:
https://code.launchpad.net/~renatofilho/ubuntu-clock-app/new-snappy/+merge/310585
-- 
Your team Ubuntu Clock Developers is requested to review the proposed merge of lp:~renatofilho/ubuntu-clock-app/new-snappy into lp:ubuntu-clock-app.
=== added directory 'setup'
=== added directory 'setup/gui'
=== added file 'setup/gui/icon.png'
Binary files setup/gui/icon.png	1970-01-01 00:00:00 +0000 and setup/gui/icon.png	2016-11-11 19:36:45 +0000 differ
=== added file 'setup/gui/ubuntu-clock-app.desktop'
--- setup/gui/ubuntu-clock-app.desktop	1970-01-01 00:00:00 +0000
+++ setup/gui/ubuntu-clock-app.desktop	2016-11-11 19:36:45 +0000
@@ -0,0 +1,147 @@
+[Desktop Entry]
+Version=1.0
+Name=Clock
+Name[aa]=Uddur
+Name[am]=ሰአት
+Name[ar]=الساعة
+Name[ast]=Reló
+Name[az]=Saat
+Name[be]=Гадзіннік
+Name[bg]=Часовник
+Name[br]=Eurier
+Name[bs]=Sat
+Name[ca]=Rellotge
+Name[ca@valencia]=Rellotge
+Name[cs]=Hodiny
+Name[cy]=Cloc
+Name[da]=Ur
+Name[de]=Uhr
+Name[el]=Ρολόι
+Name[en_AU]=Clock
+Name[en_GB]=Clock
+Name[es]=Reloj
+Name[eu]=Erlojua
+Name[fa]=ساعت‌
+Name[fi]=Kello
+Name[fr]=Horloge
+Name[fr_CA]=Horloge
+Name[gd]=Cleoc
+Name[gl]=Reloxo
+Name[he]=שעון
+Name[hu]=Óra
+Name[id]=Jam
+Name[it]=Orologio
+Name[km]=នាឡិកា
+Name[kn]=ಗಡಿಯಾರ
+Name[ko]=시계
+Name[ku]=Demjimêr
+Name[lv]=Pulkstenis
+Name[ms]=Jam
+Name[my]=နာရီ
+Name[nb]=Klokke
+Name[nl]=Klok
+Name[oc]=Relòtge
+Name[pa]=ਘੜੀ
+Name[pl]=Zegar
+Name[pt]=Relógio
+Name[pt_BR]=Relógio
+Name[ro]=Ceas
+Name[ru]=Часы
+Name[shn]=ဢွမ်မူင်း
+Name[sk]=Hodiny
+Name[sl]=Ura
+Name[sr]=Часовник
+Name[sv]=Klocka
+Name[ta]=கடிகாரம்
+Name[tr]=Saat
+Name[ug]=سائەت
+Name[uk]=Годинник
+Name[zh_CN]=时钟
+Name[zh_TW]=時鐘
+Comment=A sophisticated clock app that provides world clock, alarm and stopwatch functionality.
+Comment[am]=ውስብስብ የ ሰአት መተግበሪያ የ አለም ሰአት: መቀስቀሻ እና ሰአት ማስቆሚያ ተግባሮች ያካትታል
+Comment[ast]=Una sofisticada app de reló qu'ufre funciones de reló mundial, alarma y cronómetru.
+Comment[be]=Прасунуты гадзіннік з функцыяй сусветнага часу, будзільнікам і секундамерам.
+Comment[br]=Un arload horolaj eus ar c'hentañ gant ur montr evit ar bed a-bezh, un alarm hag ur c'hronometr.
+Comment[bs]=Sofisticirana aplikacija za sat koja pruža pregled svjetskog sata, uz funkcije alarma i štoperice.
+Comment[cs]=Důmyslná aplikace Hodiny, která nabízí funkci hodin s různými časovými pásmy, budíku a stopek.
+Comment[cy]=Ap cloc soffistigedig sy'n cynnig cloc y byd, larwm a watsh amseru
+Comment[da]=En sofistikeret tidsur-app, der tilbyder verdensur, alarmer og stopur.
+Comment[de]=Eine durchdachte Uhren-App mit den Funktionen Weltzeit, Wecker und Stoppuhr.
+Comment[el]=Μια εκλεπτισμένη εφαρμογή ρολόι που παρέχει λειτουργίες παγκόσμιου ρολογιού, ξυπνητηριού και χρονομέτρου
+Comment[en_AU]=A sophisticated clock app that provides world clock, alarm and stopwatch functionality.
+Comment[en_GB]=A sophisticated clock app that provides world clock, alarm and stopwatch functionality.
+Comment[es]=Una aplicación sofisticada con reloj mundial, alarmas y cronómetro.
+Comment[fa]=یک کارهٔ ساعت سطح بالا که قابلیت‌های ساعت جهانی، هشدار و زمان‌سنج را فراهم می‌کند.
+Comment[fi]=Kellosovellus, joka tarjoaa maailmankellot, hälytyksen ja sekuntikellon.
+Comment[fr]=Une application sophistiquée qui fournit des fonctionnalités d'horloge mondiale, d'alarme et de chronomètre.
+Comment[fr_CA]=Une application sophistiquée qui fournit des fonctions d'horloge mondiale, d'alarme et de chronomètre.
+Comment[gd]=Aplacaid cleoc thapaidh a bheil uaireadair an t-saoghail, caismeachdan agus stad-uaireadair dhut.
+Comment[gl]=Un aplicativo de reloxo sofisticado que proporciona horas de todo o mundo, alarma e cronómetro.
+Comment[hu]=Egy óra alkalmazás, mely stopper, ébresztő-, illetve világóra funkciókkal bír.
+Comment[id]=Aplikasi jam yang lengkap dengan fungsi jam dunia, alarm, dan stopwatch.
+Comment[it]=Un sofisticato orologio che fornisce l'ora da diversi fusi orari e funzionalità di sveglia e cronometro.
+Comment[ku]=Sepana demjimêrê ku tê de demjimêra cîhanî, alarm û kronometre heye
+Comment[lv]=Gudra pulksteņu lietotne, kas sniedz pasaules pulksteņu, atgādinājumu un hronometra funkcionalitāti.
+Comment[ms]=Apl jam canggih yang menyediakan kefungsian jam dunia, penggera dan jam randik.
+Comment[nb]=Et avansert klokkeprogram med funksjonalitet for verdens-, vekker- og stoppeklokke.
+Comment[nl]=Een uitgekiende klok-app die wereldklok-, alarm- en stopwatchfunctionaliteit biedt.
+Comment[oc]=Una aplicacion sofisticada que prpvesís de foncionalitats de relòtge mondial, d'alarma e de cronomètre.
+Comment[pl]=Zaawansowany zegar, z czasami miast z całego świata, budzikiem oraz stoperem.
+Comment[pt]=Uma app que fornece um relógio mundial, alarme e cronómetro.
+Comment[ru]=Продвинутые часы с функцией мирового времени, будильником и секундомером.
+Comment[sk]=Sofistikovaná aplikácia Hodiny, ktorá poskytuje svetový čas, budík a stopky.
+Comment[sl]=Prefinjena ura, ki nudi prikaz svetovnih časov, alarm in štoparico.
+Comment[sr]=Софистицирана апликација часовника која пружа функције светсог часовника, будилника и штоперице.
+Comment[sv]=En sofistikerad klockapp med världsur, alarm och tidtagarfunktionalitet.
+Comment[tr]=Dünya saati, alarm ve kronometre işlevselliği sunan gelişmiş saat uygulaması
+Comment[uk]=Програма-годинник із розширеними можливостями: часові пояси світу, будильник та секундомір.
+Comment[zh_CN]=一个完备世界时、闹铃以及计时功能的时钟应用。
+Keywords=time;alarm;alert;clock;world;stopwatch;
+Keywords[am]=ሰአት: መቀስቀሻ: ማስጠንቀቂያ: የ አለም ሰአት: ሰአት ማስቆሚያ
+Keywords[ast]=hora;alarma;alerta;reló;mundial;cronómetru;
+Keywords[be]=час;будзільнік;паведамленне;гадзіннік;сусветны;секундамер;
+Keywords[br]=eur,alarm;diwall;horolaj;bed;kronometr;
+Keywords[bs]=vrijeme;alarm;uzbuna;sat;svijetski;štoperica;
+Keywords[cs]=čas;budík;upozornění;hodiny;svět;stopky;
+Keywords[cy]=amser;larwm;rhybudd;cloc;byd;watshamseru;
+Keywords[da]=tid;alarm;advarsel;ur;verden;stopur;
+Keywords[de]=Zeit;Uhrzeit;time;alarm;Wecker;Weckzeit;alert;Alarm;Erinnerung;clock;Uhr;world;Welt;Weltzeit;stopwatch;Stoppuhr,Stopuhr,Stopp-Uhr;
+Keywords[el]=χρόνος;ξυπνητήρι;ειδοποίηση;ρολόι;κόσμος;χρονόμετρο;
+Keywords[en_AU]=time;alarm;alert;clock;world;stopwatch;
+Keywords[en_GB]=time;alarm;alert;clock;world;stopwatch;
+Keywords[es]=hora;alarma;alerta;reloj;mundial;cronómetro;
+Keywords[fa]=time;alarm;alert;clock;world;stopwatch;
+Keywords[fi]=time;alarm;alert;clock;world;stopwatch;aika;hälytys;herätys;kello;sekuntikello;
+Keywords[fr]=heure;alarme;alerte;horloge;monde;chronomètre;
+Keywords[fr_CA]=heure;alarme;alerte;horloge;monde;mondiale;chronomètre;
+Keywords[gd]=time;alarm;alert;clock;world;stopwatch;ùine;àm;uair;caismeachd;dùsgadh;saoghal;stad-uaireadair;
+Keywords[gl]=hora;alarma;alerta;reloxo;mundo;cronómetro;
+Keywords[hu]=idő;ébresztés;riasztás;óra;világ;stopper;
+Keywords[id]=time;alarm;alert;clock;world;stopwatch;
+Keywords[it]=ora;sveglia;allarme;avviso;orologio;cronometro;mondo;
+Keywords[ku]=dem;alarm;hişyarî;demjimêr;cîhan;kronometre
+Keywords[lv]=laiks;trauksme;atgādinājums;pulkstenis;pasaule;hronometrs;
+Keywords[ms]=waktu;penggera;amaran;jam;duni;jamrandik;
+Keywords[nb]=tid;alarm;varsel;klokke;verden;stoppeklokke;
+Keywords[nl]=tijd;alarm;alertering;klok;wereld;stopwatch;
+Keywords[oc]=ora;alarma;alèrta;relòtge;monde;cronomètre;
+Keywords[pl]=czas;alarm;budzik;alert;zegar;świat;stoper;
+Keywords[pt]=tempo;alarme;alerta;relógio;mundo;cronómetro;
+Keywords[ru]=время;будильник;уведомление;часы;мировое;секундомер;
+Keywords[sk]=čas;budík;výstraha;hodiny;svet;stopky;
+Keywords[sl]=čas;alarm;bujenje;ura;svetovni;štoparica;
+Keywords[sr]=време;будилник;упозорење;часовник;свет;штоперица;
+Keywords[sv]=tid;alarm;varning;klocka;värld;tidtagning;
+Keywords[tr]=zaman;alarm;uyarı;saat;dünya;kronometre
+Keywords[uk]=time;alarm;alert;clock;world;stopwatch;час;нагадування;будильник;дзвінок;годинник;світ;секундомір;
+Keywords[zh_CN]=time;alarm;alert;clock;world;stopwatch; 时间;闹铃;闹钟;世界时;秒表;
+Keywords[zh_TW]=time;alarm;alert;clock;world;stopwatch;時鐘;鬧鐘;鬧鈴;世界;碼表;
+Exec=ubuntu-clock-app %u
+Icon=/snap/ubuntu-clock-app/current/meta/gui/icon.png
+Terminal=false
+Type=Application
+X-Ubuntu-Touch=true
+X-Ubuntu-Default-Department-ID=accessories
+X-Ubuntu-Splash-Color=#F5F5F5
+X-Ubuntu-Supported-Orientations=portrait

=== added directory 'snap'
=== added directory 'snap/ubuntu-app-platform'
=== added file 'snap/ubuntu-clock-app.wrapper'
--- snap/ubuntu-clock-app.wrapper	1970-01-01 00:00:00 +0000
+++ snap/ubuntu-clock-app.wrapper	2016-11-11 19:36:45 +0000
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+if [ "$SNAP_ARCH" == "amd64" ]; then
+	ARCH="x86_64-linux-gnu"
+elif [ "$SNAP_ARCH" == "armhf" ]; then
+	ARCH="arm-linux-gnueabihf"
+else
+	ARCH="$SNAP_ARCH-linux-gnu"
+fi
+
+export QML2_IMPORT_PATH=$SNAP/usr/lib/$ARCH/qt5/qml/ClockApp:$QML2_IMPORT_PATH
+exec qmlscene --desktop_file_hint=unity8 $SNAP/usr/share/ubuntu-clock-app/ubuntu-clock-app.qml

=== modified file 'snapcraft.yaml'
--- snapcraft.yaml	2016-07-14 12:51:10 +0000
+++ snapcraft.yaml	2016-11-11 19:36:45 +0000
@@ -1,49 +1,55 @@
 name: ubuntu-clock-app
-version: "3.8.480"
+version: 3.8.480
 summary: Ubuntu Clock app
 description: The clock app for all Ubuntu devices
 confinement: strict
+grade: devel
 
 apps:
-  ubuntu-clock-app:
-    command: clock
-    plugs: [unity7, opengl, network, network-bind]
+    ubuntu-clock-app:
+        command: desktop-launch $SNAP/bin/ubuntu-clock-app
+        plugs: [unity7, platform, opengl, network, network-bind]
+
+plugs:
+    platform:
+        interface: content
+        content: ubuntu-app-platform1
+        target: ubuntu-app-platform
 
 parts:
-  clock:
-    source: .
-    plugin: cmake
-    configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
-    build-packages:
-      - build-essential
-      - cmake
-      - gettext
-      - intltool
-      - ubuntu-touch-sounds
-      - suru-icon-theme
-      - qml-module-qttest
-      - qml-module-qtsysteminfo
-      - qml-module-qt-labs-settings
-      - qtdeclarative5-u1db1.0
-      - qtdeclarative5-qtmultimedia-plugin
-      - qtdeclarative5-qtpositioning-plugin
-      - qtdeclarative5-ubuntu-content1
-      - qt5-default
-      - qtbase5-dev
-      - qtdeclarative5-dev
-      - qtdeclarative5-dev-tools
-      - qtdeclarative5-folderlistmodel-plugin
-      - qtdeclarative5-ubuntu-ui-toolkit-plugin
-      - xvfb
-    stage-packages:
-      - ubuntu-sdk-libs
-      - qtubuntu-desktop
-      - qml-module-qtsysteminfo
-    snap:
-      - -usr/share/doc
-      - -usr/include
-  environment:
-    plugin: copy
-    files:
-      clock.wrapper: bin/clock
-      snappy-qt5.conf: etc/xdg/qtchooser/snappy-qt5.conf
+    ubuntu-clock-app:
+        source: .
+        plugin: cmake
+        configflags: [-DCMAKE_INSTALL_PREFIX=/usr, -DCLICK_MODE=off]
+        build-packages:
+            - build-essential
+            - cmake
+            - gettext
+            - intltool
+            - ubuntu-touch-sounds
+            - suru-icon-theme
+            - qml-module-qttest
+            - qml-module-qtsysteminfo
+            - qml-module-qt-labs-settings
+            - qtdeclarative5-u1db1.0
+            - qtdeclarative5-qtmultimedia-plugin
+            - qtdeclarative5-qtpositioning-plugin
+            - qtdeclarative5-ubuntu-content1
+            - qt5-default
+            - qtbase5-dev
+            - qtdeclarative5-dev
+            - qtdeclarative5-dev-tools
+            - qtdeclarative5-folderlistmodel-plugin
+            - qtdeclarative5-ubuntu-ui-toolkit-plugin
+            - xvfb
+
+        snap:
+            - -usr/share/doc
+            - -usr/include
+        after: [desktop-ubuntu-app-platform]
+
+    environment:
+        source: snap/
+        plugin: dump
+        organize:
+            ubuntu-clock-app.wrapper: bin/ubuntu-clock-app

=== removed file 'snappy-qt5.conf'
--- snappy-qt5.conf	2016-07-13 13:53:40 +0000
+++ snappy-qt5.conf	1970-01-01 00:00:00 +0000
@@ -1,2 +0,0 @@
-./usr/lib/x86_64-linux-gnu/qt5/bin
-./usr/lib/x86_64-linux-gnu


Follow ups